ConvNeXt-Tiny Hits 84% Accuracy With 750K Downloads on Hugging Face
A 28M-parameter ConvNeXt variant trained on an 11,821-class ImageNet subset hits 84.2% top-1 while pushing 2,400+ images per second on a single RTX 3090.
Takeaways
- ConvNeXt-Tiny pretrained on ImageNet-12k, fine-tuned on ImageNet-1k, hits 84.19% top-1.
- Only 28.6M params and 4.47 GMACs, running ~2,434 samples/sec on an RTX 3090.
- Matches ConvNeXt-Small accuracy at nearly 2x the throughput and half the FLOPs.
- Apache-2.0 licensed, loadable via
timmor Hugging Face Transformers pipeline. - Exposes classifier head, four-stage feature maps, and pooled embeddings for downstream use.
- Based on the A ConvNet for the 2020s architecture by Liu et al.
The model page has recorded more than 750,000 downloads on Hugging Face. The counter includes repeated and automated file pulls, but the checkpoint has practical advantages that help explain its adoption: 28.6 million parameters, an Apache-2.0 license, standard timm integration, and 84.19% ImageNet-1k top-1 accuracy at its default 288-pixel evaluation size.
The checkpoint uses the standard ConvNeXt-Tiny architecture. Ross Wightman pretrained it on ImageNet-12k, an 11,821-class subset of ImageNet-22k, then fine-tuned it on ImageNet-1k. Pretraining ran on TPUs through Google’s TPU Research Cloud program, while fine-tuning used eight-GPU Lambda Labs instances.
A wider label space in a compact CNN
ConvNeXt, introduced in the ConvNeXt paper, updates a ResNet-style convolutional network with ideas popularized by vision transformers. Its blocks use depthwise convolutions with large kernels, LayerNorm, inverted bottlenecks, and revised stage layouts. These changes give developers transformer-era training practices within a conventional CNN backbone.
ImageNet-12k exposes the model to a broader visual vocabulary than ImageNet-1k while using fewer labels than the full ImageNet-22k collection. Broader supervision can produce features that transfer more effectively during the final 1,000-class fine-tune. Because the release includes no controlled dataset ablation, the published result should be attributed to the complete recipe, including subset construction, optimization, fine-tuning, preprocessing, and evaluation resolution.
- Parameters: 28.6 million
- Training input: 224 by 224 pixels
- Default evaluation input: 288 by 288 pixels
- ImageNet-1k accuracy: 84.19% top-1 and 97.12% top-5 at 288 pixels
- Compute: about 4.47 GMACs at 224 pixels and 7.4 GMACs at 288 pixels
GMAC counts multiply-accumulate operations. Some profiling tools count each multiply and addition separately, producing a FLOP figure roughly twice as large.
The 84.19% result uses more pixels
The published ConvNeXt checkpoints use different evaluation resolutions, which affects both accuracy and compute. The ImageNet-12k checkpoint’s 84.19% score uses 288-pixel inputs, while the Facebook-released Tiny baselines below use 224-pixel inputs. A controlled 224-pixel evaluation with identical preprocessing would be required to isolate the contribution of the pretraining recipe.
| Checkpoint | Pretraining | Eval size | Top-1 | Parameters | GMACs |
|---|---|---|---|---|---|
convnext_tiny.fb_in1k |
ImageNet-1k | 224 | 82.07% | 28.6M | 4.47 |
convnext_tiny.fb_in22k_ft_in1k |
ImageNet-22k | 224 | 82.90% | 28.6M | 4.47 |
convnext_tiny.in12k_ft_in1k |
ImageNet-12k | 288 | 84.19% | 28.6M | ≈7.4 |
convnext_small.fb_in22k_ft_in1k |
ImageNet-22k | 224 | 84.56% | 50.2M | 8.71 |
At their published evaluation settings, the 12K-pretrained Tiny nearly matches ConvNeXt-Small while using about 43% fewer parameters. Its 288-pixel input brings inference compute close to the Small model’s 224-pixel cost, so memory savings are clearer than FLOP savings in that comparison.
A standardized 224-pixel RTX 3090 benchmark reported roughly 2,434 samples per second for the 12K Tiny checkpoint with automatic mixed precision and a batch size of 256, compared with 1,478 for ConvNeXt-Small. Throughput varies with input size, batch size, framework version, memory layout, and hardware, so deployment decisions require measurements on the target system.
The 384-pixel checkpoint reaches 85.12% top-1. Moving from 288 to 384 pixels increases spatial compute by about 78%, making that variant more suitable when accuracy has priority over latency.
Load it with the matching preprocessing
The native integration path uses timm. Reading the data configuration from the model prevents common accuracy losses caused by an incorrect resize, crop, interpolation method, or normalization scheme.
from PIL import Image
import torch
import timm
from timm.data import create_transform, resolve_model_data_config
MODEL_ID = "convnext_tiny.in12k_ft_in1k"
model = timm.create_model(MODEL_ID, pretrained=True).eval()
data_config = resolve_model_data_config(model)
transform = create_transform(**data_config, is_training=False)
image = Image.open("image.jpg").convert("RGB")
batch = transform(image).unsqueeze(0)
with torch.inference_mode():
probabilities = model(batch).softmax(dim=-1)
scores, class_ids = probabilities.topk(5)
The classifier returns 1,000 logits in ImageNet-1k class order. Applications that display category names must map the returned indices to the corresponding ImageNet labels.
One checkpoint, three output modes
The same weights can provide class logits, intermediate feature maps, or pooled embeddings. That flexibility lets teams reuse one backbone across classification, dense prediction, retrieval, and multimodal systems.
Replace the classification head
num_classes = 12
classifier = timm.create_model(
MODEL_ID,
pretrained=True,
num_classes=num_classes,
)
Setting num_classes replaces the ImageNet head with a randomly initialized layer while retaining the pretrained backbone. The new head and any unfrozen backbone stages require fine-tuning on the target dataset.
Extract a four-stage feature pyramid
backbone = timm.create_model(
MODEL_ID,
pretrained=True,
features_only=True,
).eval()
with torch.inference_mode():
feature_maps = backbone(batch)
print(backbone.feature_info.channels())
# [96, 192, 384, 768]
print(backbone.feature_info.reduction())
# [4, 8, 16, 32]
The four feature maps provide progressively lower spatial resolution and richer semantic features. Detection and segmentation frameworks can connect these outputs to a feature-pyramid network, decoder, or task-specific prediction head.
Produce pooled image embeddings
encoder = timm.create_model(
MODEL_ID,
pretrained=True,
num_classes=0,
).eval()
with torch.inference_mode():
embeddings = encoder(batch)
embeddings = torch.nn.functional.normalize(embeddings, dim=-1)
print(embeddings.shape)
# torch.Size([1, 768])
The normalized 768-dimensional vectors can support cosine-similarity search, clustering, nearest-neighbor classification, or a visual branch in a multimodal model. Domain-specific retrieval systems usually benefit from contrastive or metric-learning fine-tuning.
Where the checkpoint fits
The model suits workloads that need a compact, reusable visual encoder with strong ImageNet accuracy and mature CNN tooling. Common applications include:
- Fine-tuning for custom image classification with limited GPU memory
- Supplying multiscale features to detection and segmentation heads
- Generating embeddings for search, clustering, and deduplication
- Running high-throughput batch inference on server GPUs
- Deploying through runtimes with established convolution support
The default 288-pixel configuration can be expensive for latency-sensitive or memory-constrained devices. Testing both 224 and 288 pixels can reveal whether the accuracy gain offsets the additional compute for a particular dataset.
ImageNet pretraining also carries domain and sampling biases associated with web-sourced natural images. Medical scans, satellite imagery, industrial inspection, documents, and other specialized inputs require representative validation and usually benefit from fine-tuning. The Apache-2.0 license permits broad use of the checkpoint, while downstream teams remain responsible for assessing training-data provenance, class behavior, and deployment risk.