Skip to main content
Back

Ends Soon: Get 20% off all AlphaSignal Pro subscriptions. Subscribe here.

Ross Wightman's EfficientNetV2 Hits 1M Downloads With 83.83% Accuracy

A timm-flavored EfficientNetV2 Small hits 83.8% ImageNet top-1 with 24M params, climbing to over a million downloads as a go-to vision backbone.

Pro

  • efficientnetv2_rw_s.ra2_in1k is a timm-specific EfficientNetV2-S variant with 23.9M params and 4.9 GMACs.
  • Reaches 83.83% ImageNet-1k top-1 at 384 eval resolution, trained at 288.
  • Uses RandAugment RA2 recipe (B recipe from ResNet Strikes Back) plus RMSProp and EMA.
  • Apache 2.0 licensed, loadable in one line via timm.create_model.
  • Supports classification, feature pyramid extraction, and embedding output via simple flags.
  • Over 1M downloads make it a default CNN backbone for fine-tuning and retrieval tasks.

The checkpoint efficientnetv2_rw_s.ra2_in1k has logged more than one million downloads on the Hugging Face Hub. Ross Wightman trained this PyTorch-specific EfficientNetV2-S variant from scratch on ImageNet-1k and published it through timm. Its compact size, strong classification accuracy and built-in feature extraction modes make it useful across supervised vision pipelines. The Hub metric can include repeat and automated file requests, so it does not represent unique users or production deployments.

The EfficientNetV2 paper combines fused convolution blocks in early stages with mobile inverted bottleneck, or MBConv, blocks later. Fused blocks accelerate processing of large feature maps, while depthwise convolutions reduce work as channels widen. The architecture remains a conventional convolutional neural network with multi-scale features and a pooled classification head.

What 23.9 million parameters buy

Metric Published value Practical meaning
Parameters 23.9 million About 96 MB of raw parameter storage in FP32, excluding runtime activations and optimizer state.
Compute 4.9 GMACs Roughly 4.9 billion multiply-accumulate operations per 384 × 384 crop. Hardware latency will vary.
Activations 21.4 million A relative indicator of inference memory pressure. Peak memory depends on precision, batch size and runtime.
Training resolution 288 × 288 The resolution used for the published training run.
Evaluation resolution 384 × 384 The input size associated with the reported ImageNet result.
ImageNet-1k accuracy 83.83% top-1 The highest-scoring class matched the label for 83.83% of validation images.
Data ImageNet-1k No additional pretraining dataset is listed for this checkpoint.
License Apache 2.0 The checkpoint carries an Apache 2.0 license; ImageNet’s terms remain relevant to downstream use.

The model name is an API contract

The rw token identifies Wightman’s PyTorch-specific small configuration, created before Google released its official architecture definition. Its stage layout and channel configuration differ from canonical EfficientNetV2-S implementations. Developers should treat the full timm name as the architecture identifier because a generic EfficientNetV2-S implementation may reject the state dictionary when tensor shapes differ.

ra2 captures the training recipe

The ra2_in1k suffix records a RandAugment-based recipe trained on ImageNet-1k. Derived from Recipe B in ResNet Strikes Back, the run used RandAugment, RMSProp configured to reproduce TensorFlow 1.0 behavior, exponential staircase learning-rate decay with warmup and exponential moving average weight updates. These settings describe pretraining; fine-tuning requires an explicitly configured training pipeline.

Preprocessing travels with the weights

Resolving the data configuration from the loaded model preserves its expected resize, crop, interpolation and normalization settings. The following example runs on CPU and produces class probabilities for one RGB image:

from PIL import Image
import timm
import torch

model_id = "efficientnetv2_rw_s.ra2_in1k"
model = timm.create_model(model_id, pretrained=True).eval()

data_config = timm.data.resolve_model_data_config(model)
transform = timm.data.create_transform(
    **data_config,
    is_training=False,
)

image = Image.open("image.jpg").convert("RGB")
batch = transform(image).unsqueeze(0)

with torch.inference_mode():
    logits = model(batch)
    probabilities = logits.softmax(dim=1)

The default head emits a tensor of 1,000 logits with shape [batch, 1000]. Softmax converts those logits to inference probabilities. Training with PyTorch’s CrossEntropyLoss should pass the raw logits because the loss performs the required normalization internally.

One checkpoint, four interfaces

Use case Model creation Output
ImageNet classification pretrained=True One 1,000-class logit vector per image.
Custom classification pretrained=True, num_classes=N A newly initialized N-class head over the pretrained backbone.
Embeddings pretrained=True, num_classes=0 A pooled feature vector with shape [batch, model.num_features].
Detection or segmentation pretrained=True, features_only=True A list of spatial feature maps from successive stages.

The feature wrapper exposes channel counts and output strides through backbone.feature_info.channels() and backbone.feature_info.reduction(). Reading that metadata avoids hard-coded assumptions when connecting detection, segmentation or feature-pyramid heads.

384 pixels changes the cost

The 83.83% top-1 figure depends on 384 × 384 evaluation, despite the 288 × 288 training resolution. A 384-pixel crop contains about 78% more pixels than a 288-pixel crop, increasing inference work and memory traffic. The 4.9-GMAC estimate provides a useful capacity measure, but wall-clock performance still depends on precision, batch size, memory format, runtime and hardware. Deployment benchmarks should use the resolved preprocessing pipeline on the target device.

Match the backbone to the workload

  • Fixed-label classification: Fine-tuning provides a strong ImageNet initialization for custom datasets with a defined set of classes.
  • Detection and segmentation: Multi-scale feature maps support dense prediction heads without a separate feature extractor.
  • Similarity search and clustering: The pooled embedding offers deterministic inference when ImageNet-derived visual semantics match the data.
  • Architecture benchmarking: The modern training recipe provides a stronger CNN reference than older, minimally augmented baselines.

ImageNet-1k supervision centers the representation on 1,000 labeled object categories. A CLIP-family encoder adds image-text alignment for zero-shot classification and open-vocabulary retrieval. DINOv2-style encoders provide a self-supervised comparison for broad transfer beyond fixed labels. MobileNet-class networks also merit testing under strict memory or power limits because this checkpoint’s parameter count and 384-pixel input may exceed smaller edge budgets.

Pin the details that drift

  • Record the full model identifier, timm version and downloaded weight hash.
  • Resolve preprocessing from the model instead of applying generic ImageNet transforms.
  • Use eval() and inference mode when measuring latency or accuracy.
  • Benchmark the required resolution, precision and batch size on deployment hardware.
  • Evaluate embeddings and fine-tuned models on the target data distribution.
  • Review the checkpoint license and ImageNet terms before distribution or commercial deployment.