mirror of https://github.com/facebookresearch/deit
Update resmlp_models.py
parent
6fa7ef60b4
commit
31b3d676b3
|
@ -173,7 +173,7 @@ def resmlp_36(pretrained=False,dist=False, **kwargs):
|
||||||
return model
|
return model
|
||||||
|
|
||||||
@register_model
|
@register_model
|
||||||
def resmlpB_24(pretrained=False,dist=False, 22k = False, **kwargs):
|
def resmlpB_24(pretrained=False,dist=False, in_22k = False, **kwargs):
|
||||||
model = resmlp_models(
|
model = resmlp_models(
|
||||||
patch_size=8, embed_dim=768, depth=24,
|
patch_size=8, embed_dim=768, depth=24,
|
||||||
Patch_layer=PatchEmbed,
|
Patch_layer=PatchEmbed,
|
||||||
|
@ -182,7 +182,7 @@ def resmlpB_24(pretrained=False,dist=False, 22k = False, **kwargs):
|
||||||
if pretrained:
|
if pretrained:
|
||||||
if dist:
|
if dist:
|
||||||
url_path = "https://dl.fbaipublicfiles.com/deit/resmlpB_24_dist.pth"
|
url_path = "https://dl.fbaipublicfiles.com/deit/resmlpB_24_dist.pth"
|
||||||
elif 22k:
|
elif in_22k:
|
||||||
url_path = "https://dl.fbaipublicfiles.com/deit/resmlpB_24_22k.pth"
|
url_path = "https://dl.fbaipublicfiles.com/deit/resmlpB_24_22k.pth"
|
||||||
else:
|
else:
|
||||||
url_path = "https://dl.fbaipublicfiles.com/deit/resmlpB_24_no_dist.pth"
|
url_path = "https://dl.fbaipublicfiles.com/deit/resmlpB_24_no_dist.pth"
|
||||||
|
|
Loading…
Reference in New Issue