|
|
@ -48,6 +48,10 @@ default_cfgs = dict(
|
|
|
|
url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-rsb-weights/convnext_tiny_hnf_a2h-ab7e9df2.pth',
|
|
|
|
url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-rsb-weights/convnext_tiny_hnf_a2h-ab7e9df2.pth',
|
|
|
|
crop_pct=0.95),
|
|
|
|
crop_pct=0.95),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
convnext_tiny_in22ft1k=_cfg(
|
|
|
|
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_tiny_22k_1k_224.pth'),
|
|
|
|
|
|
|
|
convnext_small_in22ft1k=_cfg(
|
|
|
|
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_small_22k_1k_224.pth'),
|
|
|
|
convnext_base_in22ft1k=_cfg(
|
|
|
|
convnext_base_in22ft1k=_cfg(
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_base_22k_1k_224.pth'),
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_base_22k_1k_224.pth'),
|
|
|
|
convnext_large_in22ft1k=_cfg(
|
|
|
|
convnext_large_in22ft1k=_cfg(
|
|
|
@ -55,6 +59,12 @@ default_cfgs = dict(
|
|
|
|
convnext_xlarge_in22ft1k=_cfg(
|
|
|
|
convnext_xlarge_in22ft1k=_cfg(
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_xlarge_22k_1k_224_ema.pth'),
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_xlarge_22k_1k_224_ema.pth'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
convnext_tiny_384_in22ft1k=_cfg(
|
|
|
|
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_tiny_22k_1k_384.pth',
|
|
|
|
|
|
|
|
input_size=(3, 384, 384), pool_size=(12, 12), crop_pct=1.0),
|
|
|
|
|
|
|
|
convnext_small_384_in22ft1k=_cfg(
|
|
|
|
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_small_22k_1k_384.pth',
|
|
|
|
|
|
|
|
input_size=(3, 384, 384), pool_size=(12, 12), crop_pct=1.0),
|
|
|
|
convnext_base_384_in22ft1k=_cfg(
|
|
|
|
convnext_base_384_in22ft1k=_cfg(
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_base_22k_1k_384.pth',
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_base_22k_1k_384.pth',
|
|
|
|
input_size=(3, 384, 384), pool_size=(12, 12), crop_pct=1.0),
|
|
|
|
input_size=(3, 384, 384), pool_size=(12, 12), crop_pct=1.0),
|
|
|
@ -65,6 +75,10 @@ default_cfgs = dict(
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_xlarge_22k_1k_384_ema.pth',
|
|
|
|
url='https://dl.fbaipublicfiles.com/convnext/convnext_xlarge_22k_1k_384_ema.pth',
|
|
|
|
input_size=(3, 384, 384), pool_size=(12, 12), crop_pct=1.0),
|
|
|
|
input_size=(3, 384, 384), pool_size=(12, 12), crop_pct=1.0),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
convnext_tiny_in22k=_cfg(
|
|
|
|
|
|
|
|
url="https://dl.fbaipublicfiles.com/convnext/convnext_tiny_22k_224.pth", num_classes=21841),
|
|
|
|
|
|
|
|
convnext_small_in22k=_cfg(
|
|
|
|
|
|
|
|
url="https://dl.fbaipublicfiles.com/convnext/convnext_small_22k_224.pth", num_classes=21841),
|
|
|
|
convnext_base_in22k=_cfg(
|
|
|
|
convnext_base_in22k=_cfg(
|
|
|
|
url="https://dl.fbaipublicfiles.com/convnext/convnext_base_22k_224.pth", num_classes=21841),
|
|
|
|
url="https://dl.fbaipublicfiles.com/convnext/convnext_base_22k_224.pth", num_classes=21841),
|
|
|
|
convnext_large_in22k=_cfg(
|
|
|
|
convnext_large_in22k=_cfg(
|
|
|
@ -405,6 +419,20 @@ def convnext_large(pretrained=False, **kwargs):
|
|
|
|
return model
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
|
|
|
|
def convnext_tiny_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
|
|
|
|
model = _create_convnext('convnext_tiny_in22ft1k', pretrained=pretrained, **model_args)
|
|
|
|
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
|
|
|
|
def convnext_small_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
|
|
|
|
model = _create_convnext('convnext_small_in22ft1k', pretrained=pretrained, **model_args)
|
|
|
|
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
@register_model
|
|
|
|
def convnext_base_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
def convnext_base_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
@ -426,6 +454,20 @@ def convnext_xlarge_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
return model
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
|
|
|
|
def convnext_tiny_384_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
|
|
|
|
model = _create_convnext('convnext_tiny_384_in22ft1k', pretrained=pretrained, **model_args)
|
|
|
|
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
|
|
|
|
def convnext_small_384_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
|
|
|
|
model = _create_convnext('convnext_small_384_in22ft1k', pretrained=pretrained, **model_args)
|
|
|
|
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
@register_model
|
|
|
|
def convnext_base_384_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
def convnext_base_384_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
@ -447,6 +489,20 @@ def convnext_xlarge_384_in22ft1k(pretrained=False, **kwargs):
|
|
|
|
return model
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
|
|
|
|
def convnext_tiny_in22k(pretrained=False, **kwargs):
|
|
|
|
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
|
|
|
|
model = _create_convnext('convnext_tiny_in22k', pretrained=pretrained, **model_args)
|
|
|
|
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
|
|
|
|
def convnext_small_in22k(pretrained=False, **kwargs):
|
|
|
|
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
|
|
|
|
model = _create_convnext('convnext_small_in22k', pretrained=pretrained, **model_args)
|
|
|
|
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@register_model
|
|
|
|
@register_model
|
|
|
|
def convnext_base_in22k(pretrained=False, **kwargs):
|
|
|
|
def convnext_base_in22k(pretrained=False, **kwargs):
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[128, 256, 512, 1024], **kwargs)
|
|
|
@ -466,6 +522,3 @@ def convnext_xlarge_in22k(pretrained=False, **kwargs):
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[256, 512, 1024, 2048], **kwargs)
|
|
|
|
model_args = dict(depths=[3, 3, 27, 3], dims=[256, 512, 1024, 2048], **kwargs)
|
|
|
|
model = _create_convnext('convnext_xlarge_in22k', pretrained=pretrained, **model_args)
|
|
|
|
model = _create_convnext('convnext_xlarge_in22k', pretrained=pretrained, **model_args)
|
|
|
|
return model
|
|
|
|
return model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|