Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent 6812acbb72
commit 00c7a7e32f

@ -399,7 +399,7 @@ class DaViT(nn.Module):
self.num_features = embed_dims[-1] self.num_features = embed_dims[-1]
self.drop_rate=drop_rate self.drop_rate=drop_rate
self.grad_checkpointing = False self.grad_checkpointing = False
self._features_only = kwargs.get(features_only, False) self._features_only = kwargs.get('features_only', False)
self.feature_info = [] self.feature_info = []
self.patch_embeds = nn.ModuleList([ self.patch_embeds = nn.ModuleList([

Loading…
Cancel
Save