Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent d7930c70bd
commit 284de330cd

@ -560,14 +560,14 @@ class DaViT(nn.Module):
def _cfg(url='', **kwargs): # not sure how this should be set up def _cfg(url='', **kwargs): # not sure how this should be set up
return { return {
'url': url, 'url': url,
'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': (7, 7), 'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': (7, 7),
'crop_pct': 0.875, 'interpolation': 'bilinear', 'crop_pct': 0.875, 'interpolation': 'bilinear',
'mean': IMAGENET_DEFAULT_MEAN, 'std': IMAGENET_DEFAULT_STD, 'mean': IMAGENET_DEFAULT_MEAN, 'std': IMAGENET_DEFAULT_STD,
'first_conv': 'patch_embeds.0.proj', 'classifier': 'head.fc', 'first_conv': 'patch_embeds.0.proj', 'classifier': 'head.fc',
**kwargs **kwargs
} }

Loading…
Cancel
Save