alt.freeweights.vision / resnetv2_18.ra4_e3600_r224_in1k
From: timm <huggingface.co/timm>Newsgroups: alt.freeweights.visionSubject:

resnetv2_18.ra4_e3600_r224_in1k

Date: 2026-11-15Commit: 2125bf2Signed: 2DC28CC7B26A283B ✓

Image classification model with 12M parameters. Safetensors weights, 93.6 MB in all. Published by timm under Apache-2.0.

12M params93.6MBresnetv2_18.ra4_e3600_r224_in1ksafetensorspermissive
FactsParams12MSize93.6 MBFormatssafetensorsTaskimage classificationLicenseApache-2.0From sourcepermissive
$ fw get timm/resnetv2_18.ra4_e3600_r224_in1k
# manifest sha256 b23f8d0f5479… · 93.6 MB · 5 files
$ fw verify ./resnetv2_18.ra4_e3600_r224_in1k timm/resnetv2_18.ra4_e3600_r224_in1k
From sourceHosted (signed)timm/resnetv2_18.ra4_e3600_r224_in1kLast check: 2026-11-15 03:48 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
93.6 MB
Weights
46.8 MB (safetensors)
Parameters
12M
Formats
safetensors
Task
image classification
License
Apache-2.0 (permissive)
Files
5, each with a sha256
Publisher
timm
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:48 UTCpassed

Model card

From the publisher at commit 2125bf2. Shown as plain text with links; images open at the publisher.

Model card for resnetv2_18.ra4_e3600_r224_in1k#

A ResNet image classification model. Trained on ImageNet-1k by Ross Wightman.

Trained with timm scripts using hyper-parameters inspired by the MobileNet-V4 small, mixed with go-to hparams from timm and "ResNet Strikes Back".

A collection of hparams (timm .yaml config files) for this training series can be found here: https://gist.github.com/rwightman/f6705cb65c03daeebca8aa129b1b94ad

Model Details#

Model Usage#

Image Classification#
from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model('resnetv2_18.ra4_e3600_r224_in1k', pretrained=True)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # unsqueeze single image into batch of 1

top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)
Feature Map Extraction#
from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model(
    'resnetv2_18.ra4_e3600_r224_in1k',
    pretrained=True,
    features_only=True,
)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # unsqueeze single image into batch of 1

for o in output:
    # print shape of each feature map in output
    # e.g.:
    #  torch.Size([1, 64, 112, 112])
    #  torch.Size([1, 64, 56, 56])
    #  torch.Size([1, 128, 28, 28])
    #  torch.Size([1, 256, 14, 14])
    #  torch.Size([1, 512, 7, 7])

    print(o.shape)
Image Embeddings#
from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model(
    'resnetv2_18.ra4_e3600_r224_in1k',
    pretrained=True,
    num_classes=0,  # remove classifier nn.Linear
)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # output is (batch_size, num_features) shaped tensor

# or equivalently (without needing to set num_classes=0)

output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 512, 7, 7) shaped tensor

output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor

Model Comparison#

By Top-1#
modeltop1top5param_countimg_size
mobilenetv4_conv_aa_large.e230_r448_in12k_ft_in1k84.9997.29432.59544
mobilenetv4_conv_aa_large.e230_r384_in12k_ft_in1k84.77297.34432.59480
mobilenetv4_conv_aa_large.e230_r448_in12k_ft_in1k84.6497.11432.59448
mobilenetv4_hybrid_large.ix_e600_r384_in1k84.35696.89237.76448
mobilenetv4_conv_aa_large.e230_r384_in12k_ft_in1k84.31497.10232.59384
mobilenetv4_hybrid_large.e600_r384_in1k84.26696.93637.76448
mobilenetv4_hybrid_large.ix_e600_r384_in1k83.99096.70237.76384
mobilenetv4_conv_aa_large.e600_r384_in1k83.82496.73432.59480
mobilenetv4_hybrid_large.e600_r384_in1k83.80096.77037.76384
mobilenetv4_hybrid_medium.ix_e550_r384_in1k83.39496.76011.07448
mobilenetv4_conv_large.e600_r384_in1k83.39296.62232.59448
mobilenetv4_conv_aa_large.e600_r384_in1k83.24496.39232.59384
mobilenetv4_hybrid_medium.e200_r256_in12k_ft_in1k82.9996.6711.07320
mobilenetv4_hybrid_medium.ix_e550_r384_in1k82.96896.47411.07384
mobilenetv4_conv_large.e600_r384_in1k82.95296.26632.59384
mobilenetv4_conv_large.e500_r256_in1k82.67496.3132.59320
mobilenetv4_hybrid_medium.ix_e550_r256_in1k82.49296.27811.07320
mobilenetv4_hybrid_medium.e200_r256_in12k_ft_in1k82.36496.25611.07256
mobilenetv4_conv_large.e500_r256_in1k81.86295.6932.59256
resnet50d.ra4_e3600_r224_in1k81.83895.92225.58288
mobilenetv3_large_150d.ra4_e3600_r256_in1k81.80695.914.62320
mobilenetv4_hybrid_medium.ix_e550_r256_in1k81.44695.70411.07256
efficientnet_b1.ra4_e3600_r240_in1k81.44095.7007.79288
mobilenetv4_hybrid_medium.e500_r224_in1k81.27695.74211.07256
resnet50d.ra4_e3600_r224_in1k80.95295.38425.58224
mobilenetv3_large_150d.ra4_e3600_r256_in1k80.94495.44814.62256
mobilenetv4_conv_medium.e500_r256_in1k80.85895.7689.72320
mobilenet_edgetpu_v2_m.ra4_e3600_r224_in1k80.68095.4428.46256
mobilenetv4_hybrid_medium.e500_r224_in1k80.44295.3811.07224
efficientnet_b1.ra4_e3600_r240_in1k80.40695.1527.79240
mobilenetv4_conv_blur_medium.e500_r224_in1k80.14295.2989.72256
mobilenet_edgetpu_v2_m.ra4_e3600_r224_in1k80.13095.0028.46224
mobilenetv4_conv_medium.e500_r256_in1k79.92895.1849.72256
mobilenetv4_conv_medium.e500_r224_in1k79.80895.1869.72256
resnetv2_34d.ra4_e3600_r224_in1k79.59094.77021.82288
mobilenetv4_conv_blur_medium.e500_r224_in1k79.43894.9329.72224
efficientnet_b0.ra4_e3600_r224_in1k79.36494.7545.29256
mobilenetv4_conv_medium.e500_r224_in1k79.09494.779.72224
resnetv2_34.ra4_e3600_r224_in1k79.07294.56621.80288
resnet34.ra4_e3600_r224_in1k78.95294.45021.80288
efficientnet_b0.ra4_e3600_r224_in1k78.58494.3385.29224
resnetv2_34d.ra4_e3600_r224_in1k78.26893.95221.82224
resnetv2_34.ra4_e3600_r224_in1k77.63693.52821.80224
mobilenetv1_125.ra4_e3600_r224_in1k77.60093.8046.27256
resnet34.ra4_e3600_r224_in1k77.44893.50221.80224
mobilenetv3_large_100.ra4_e3600_r224_in1k77.16493.3365.48256
mobilenetv1_125.ra4_e3600_r224_in1k76.92493.2346.27224
mobilenetv1_100h.ra4_e3600_r224_in1k76.59693.2725.28256
mobilenetv3_large_100.ra4_e3600_r224_in1k76.31092.8465.48224
mobilenetv1_100.ra4_e3600_r224_in1k76.09493.0044.23256
resnetv2_18d.ra4_e3600_r224_in1k76.04493.02011.71288
resnet18d.ra4_e3600_r224_in1k76.02492.78011.71288
mobilenetv1_100h.ra4_e3600_r224_in1k75.66292.5045.28224
mobilenetv1_100.ra4_e3600_r224_in1k75.38292.3124.23224
resnetv2_18.ra4_e3600_r224_in1k75.34092.67811.69288
mobilenetv4_conv_small.e2400_r224_in1k74.61692.0723.77256
resnetv2_18d.ra4_e3600_r224_in1k74.41291.93611.71224
resnet18d.ra4_e3600_r224_in1k74.32291.83211.71224
mobilenetv4_conv_small.e1200_r224_in1k74.29292.1163.77256
mobilenetv4_conv_small.e2400_r224_in1k73.75691.4223.77224
resnetv2_18.ra4_e3600_r224_in1k73.57891.35211.69224
mobilenetv4_conv_small.e1200_r224_in1k73.45491.343.77224
mobilenetv4_conv_small_050.e3000_r224_in1k65.81086.4242.24256
mobilenetv4_conv_small_050.e3000_r224_in1k64.76285.5142.24224

Citation#

@misc{rw2019timm,
  author = {Ross Wightman},
  title = {PyTorch Image Models},
  year = {2019},
  publisher = {GitHub},
  journal = {GitHub repository},
  doi = {10.5281/zenodo.4414861},
  howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
}
@inproceedings{wightman2021resnet,
  title={ResNet strikes back: An improved training procedure in timm},
  author={Wightman, Ross and Touvron, Hugo and Jegou, Herve},
  booktitle={NeurIPS 2021 Workshop on ImageNet: Past, Present, and Future}
}
@article{He2015,
  author = {Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun},
  title = {Deep Residual Learning for Image Recognition},
  journal = {arXiv preprint arXiv:1512.03385},
  year = {2015}
}
@article{qin2024mobilenetv4,
  title={MobileNetV4-Universal Models for the Mobile Ecosystem},
  author={Qin, Danfeng and Leichner, Chas and Delakis, Manolis and Fornoni, Marco and Luo, Shixin and Yang, Fan and Wang, Weijun and Banbury, Colby and Ye, Chengxi and Akin, Berkin and others},
  journal={arXiv preprint arXiv:2404.10518},
  year={2024}
}

Files

5 files · 93.6 MBWeights 46.8 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 5 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md16.1 KBc599fa3eb643e0c0e33c6b2d5ba95fa0b9fc702922258ed6fce256e47ced0c14
config.json656 B5c027c175db0c07d01218c963a1bc42ff9d00629affad5a84dfc7066e73dc8b8
model.safetensors46.8 MB8cbd1843d961f937eed89815af452c0dcc63f0bb5c54b60a4cd8ed5fc66ffb3e
pytorch_model.bin46.8 MB687c6ac8d34ef0c6d690058df7710d814fe10eb9bfbe93acf5a779d6754fb42d
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2125bf2240 pinned now2026-11-15 03:48 UTC5 files · 93.6 MB

Use it

$ fw get timm/resnetv2_18.ra4_e3600_r224_in1k
# manifest sha256 b23f8d0f5479… · 93.6 MB · 5 files
$ fw verify ./resnetv2_18.ra4_e3600_r224_in1k timm/resnetv2_18.ra4_e3600_r224_in1k
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/timm/resnetv2_18.ra4_e3600_r224_in1k.json --dir ./resnetv2_18.ra4_e3600_r224_in1k $ python3 fw.py verify ./resnetv2_18.ra4_e3600_r224_in1k ./timm__resnetv2_18.ra4_e3600_r224_in1k.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download timm/resnetv2_18.ra4_e3600_r224_in1k --revision 2125bf2240925a54bb991d833cf9da7e292cf77c --local-dir ./resnetv2_18.ra4_e3600_r224_in1k

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
c599fa3eb643e0c0e33c6b2d5ba95fa0b9fc702922258ed6fce256e47ced0c14
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: timm <huggingface.co/timm>Newsgroups: alt.freeweights.visionSubject: resnetv2_18.ra4_e3600_r224_in1kDate: 2026-11-15Commit: 2125bf2Signed: 2DC28CC7B26A283B ✓
Upstream
timm/resnetv2_18.ra4_e3600_r224_in1k
Pinned commit
2125bf2240925a54bb991d833cf9da7e292cf77c
Manifest
resnetv2_18.ra4_e3600_r224_in1k.json · .minisig
Manifest sha256
b23f8d0f547906af33a50f12a6ba62ef4e963f9fa00d97791efb48a414d815bd
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:48 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/timm/resnetv2_18.ra4_e3600_r224_in1k.json $ curl -O https://freeweights.allternit.com/manifests/timm/resnetv2_18.ra4_e3600_r224_in1k.json.minisig $ minisign -Vm resnetv2_18.ra4_e3600_r224_in1k.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download timm/resnetv2_18.ra4_e3600_r224_in1k
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. resnetv2_18.ra4_e3600_r224_in1k.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX