ResNet-50 Still Dominates With 1.3M Monthly Downloads Thanks to RAM Recipe
A ResNet-50 variant in timm trained with AugMix, RandAugment, and JSD loss hits 79 percent top-1 on ImageNet and remains a workhorse baseline.
ProTakeaways
- resnet50.ram_in1k is a timm ResNet-50 checkpoint pulling 1.3M+ monthly downloads.
- Recipe combines AugMix, RandAugment, SGD with Nesterov, and Jensen-Shannon divergence loss.
- Reaches 79.03% top-1 at 224x224 and 79.97% at 288x288 on ImageNet-1k.
- Standard ResNet-B architecture with 25.6M parameters and 4.1 GMACs, Apache-2.0 licensed.
- Loads in one line via timm or Hugging Face Transformers pipelines.
- Part of the ResNet Strikes Back family of modernized ResNet-50 baselines.
ResNet-50 refuses to die. A decade after Kaiming He's original paper, the timm resnet50.ram_in1k checkpoint is still pulling more than 1.3 million downloads a month on Hugging Face, quietly powering feature extractors, teacher models for distillation, and computer vision baselines across research and production. It is one of dozens of ResNet-50 variants Ross Wightman has trained with different recipes, and the .ram suffix is a useful lens on how modern training tricks squeeze extra points out of an old architecture.
What the RAM recipe actually is
Architecturally there is nothing new. This is a plain ResNet-B: ReLU activations, a single 7x7 convolution with pooling, and a 1x1 convolution shortcut downsample, trained on ImageNet-1k. The recipe is what differentiates the checkpoint. According to the model card, it combines AugMix with RandAugment, an SGD optimizer with Nesterov momentum paired with a Jensen-Shannon divergence loss, and a cosine learning rate schedule with warmup.
That JSD loss is the interesting part. Instead of only minimizing cross-entropy on one view of an image, AugMix generates several augmented copies of the same picture and penalizes the model when its predicted distributions across those views drift apart. The network has to produce consistent outputs whether the input has been color-jittered, sheared, or posterized, which tends to improve robustness on corrupted or out-of-distribution images.
The numbers
The checkpoint has 25.6M parameters and 4.1 GMACs at 224x224, and pushes to 288x288 at test time for a modest bump. From the timm comparison table:
- 79.03 top-1 / 94.38 top-5 at 224x224, roughly 3,453 images/sec
- 79.97 top-1 / 95.05 top-5 at 288x288, roughly 2,086 images/sec
Compare that with the classic resnet50.a1_in1k from the ResNet Strikes Back recipes, which lands around 80.4% top-1 at 224x224 on ImageNet-val without extra data or distillation. RAM trails the top A1 recipe by roughly a point, but its AugMix and JSD ingredients typically translate into stronger behavior on ImageNet-C style corruptions, which matters more for downstream tasks than a raw validation delta.
How you actually use it
Because it is a timm model with a Hugging Face mirror, plugging it in takes two lines. The model card shows the standard flow for classification, feature maps, or pooled embeddings.
import timm
model = timm.create_model('resnet50.ram_in1k', pretrained=True)
model.eval()
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
Pass features_only=True to get the five-stage pyramid (64, 256, 512, 1024, 2048 channels) for detection or segmentation heads, or num_classes=0 to strip the classifier and use it as a 2048-dim embedding backbone. The weights are Apache-2.0 licensed, about 25.6M parameters in float32 safetensors, and run anywhere PyTorch does. Transformers users can also load it through the standard pipeline("image-classification", ...) interface.
Why this checkpoint and not another
Wightman has released a small zoo of ResNet-50 weights, each tuned to a different training philosophy. The suffix conventions come from ResNet Strikes Back, where the authors re-evaluated the vanilla ResNet-50 with a procedure integrating modern optimization and augmentation, then shared the settings and pretrained models in timm as better baselines. A rough decision guide:
| Variant | Recipe flavor | Good for |
|---|---|---|
| resnet50.a1_in1k | LAMB, BCE loss, mixup and CutMix, 600 epochs | Peak ImageNet top-1 |
| resnet50.a2_in1k | LAMB variant, 300 epochs | Balanced accuracy and cost |
| resnet50.ram_in1k | AugMix, RandAugment, SGD, JSD loss | Robustness and consistency across augmentations |
| resnet50.tv2_in1k | Torchvision v2 defaults | Matching torchvision baselines |
Where it fits in your work
ResNet-50 is no longer the sharpest model on the leaderboard, but it hits a sweet spot that keeps it useful:
- A cheap, well-understood backbone for object detection or segmentation pipelines where you would rather spend compute on the head
- A teacher or reference model for knowledge distillation experiments where reproducibility matters
- A 2048-dim feature extractor for retrieval, clustering, or classical downstream classifiers
- A baseline your reviewers already trust, at a training cost anyone with a couple of GPUs can replicate
The broader point sitting under this checkpoint is one the ResNet Strikes Back paper made explicit: much of the gap between vintage architectures and shiny new ones is really a gap in training recipes. If you are benchmarking a new idea against ResNet-50, using resnet50.tv_in1k from 2016 is a soft comparison. Loading resnet50.ram_in1k or one of its A1/A2 siblings gives you a much fairer opponent, and it is one timm.create_model call away.