You are viewing main version, which requires installation from source. If you'd like
regular pip install, checkout the latest stable version (v1.0.30).
Join the Hugging Face community
and get access to the augmented documentation experience
ConvNeXt is a pure convolutional network that adopts design choices from vision transformers, such as large depthwise
kernels, inverted bottlenecks and LayerNorm. ConvNeXt-V2 adds Global Response Normalization (GRN) and is pretrained as a
fully convolutional masked autoencoder (FCMAE).
β supported, β (square) works for square sizes only, β not supported, β not needed (the model already accepts any input
size). Checked by running each feature on a randomly initialized model (ConvNeXt with convnext_zepto_rms at 224),
other architectures of the same class are expected to behave the same. See the Model API page for
details.
Architectures
Architecture
Params (M)
GMACs
Input size
Pretrained weights
convnext_atto
3.70
0.55
224
1
convnext_atto_ols
3.70
0.58
224
1
convnext_atto_rms
3.69
0.55
224
0
convnext_base
88.59
15.38
224
16
convnext_femto
5.22
0.79
224
1
convnext_femto_ols
5.23
0.82
224
1
convnext_large
197.77
34.40
224
5
convnext_large_mlp
200.13
70.21
320
10
convnext_nano
15.59
2.46
224
6
convnext_nano_ols
15.65
2.65
224
1
convnext_pico
9.05
1.37
224
1
convnext_pico_ols
9.06
1.43
224
1
convnext_small
50.22
8.71
224
9
convnext_tiny
28.59
4.47
224
9
convnext_tiny_hnf
28.59
4.47
224
1
convnext_xlarge
350.20
60.98
224
3
convnext_xxlarge
846.47
198.09
256
4
convnext_zepto_rms
2.16
0.30
224
1
convnext_zepto_rms_ols
2.16
0.34
224
1
convnextv2_atto
3.71
0.55
224
2
convnextv2_base
88.72
15.38
224
4
convnextv2_femto
5.23
0.79
224
2
convnextv2_huge
660.29
337.96
384
4
convnextv2_large
197.96
34.40
224
4
convnextv2_nano
15.62
2.46
224
4
convnextv2_pico
9.07
1.37
224
2
convnextv2_small
50.32
8.71
224
0
convnextv2_tiny
28.64
4.47
224
4
test_convnext
0.27
0.03
160
1
test_convnext2
0.48
0.05
160
1
test_convnext3
0.47
0.05
160
1
GMACs and parameter counts are for the default input size and classifier of each architecture, from the benchmark
results.
Pretrained weights
Top-1 is ImageNet-1k validation accuracy from results-imagenet.csv at
the listed eval size, - if the weight has no ImageNet-1k result (e.g. pretraining or image-text weights). Classes is the
size of the pretrained classifier, none for weights without one.
Weights are grouped by source: the paper or origin given in the pretrained config, else a Hub organization other than timm, else the first part of the pretrained tag (architecture.tag). Sources with a single weight are listed under
other.
@Article{liu2022convnet,
author = {Zhuang Liu and Hanzi Mao and Chao-Yuan Wu and Christoph Feichtenhofer and Trevor Darrell and Saining Xie},
title = {A ConvNet for the 2020s},
journal = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2022},
}
@article{Woo2023ConvNeXtV2,
title={ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders},
author={Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon and Saining Xie},
year={2023},
journal={arXiv preprint arXiv:2301.00808},
}