From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.visionSubject:

resnet-152

Date: 2026-11-15Commit: 189229bSigned: 2DC28CC7B26A283B ✓

Image classification model with 60M parameters. Safetensors weights, 726 MB in all. Published by microsoft under Apache-2.0.

60M params726MBresnet-152safetensorspermissive
FactsParams60MSize726 MBFormatssafetensorsTaskimage classificationLicenseApache-2.0From sourcepermissive
$ fw get microsoft/resnet-152
# manifest sha256 78f09883dfe6… · 726 MB · 7 files
$ fw verify ./resnet-152 microsoft/resnet-152
From sourceHosted (signed)microsoft/resnet-152Last check: 2026-11-15 03:24 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
726 MB
Weights
242 MB (safetensors)
Parameters
60M
Formats
safetensors
Task
image classification
License
Apache-2.0 (permissive)
Files
7, each with a sha256
Publisher
microsoft
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:24 UTCpassed

Model card

From the publisher at commit 189229b. Shown as plain text with links; images open at the publisher.

ResNet-152 v1.5#

ResNet model pre-trained on ImageNet-1k at resolution 224x224. It was introduced in the paper Deep Residual Learning for Image Recognition by He et al.

Disclaimer: The team releasing ResNet did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description#

ResNet (Residual Network) is a convolutional neural network that democratized the concepts of residual learning and skip connections. This enables to train much deeper models.

This is ResNet v1.5, which differs from the original model: in the bottleneck blocks which require downsampling, v1 has stride = 2 in the first 1x1 convolution, whereas v1.5 has stride = 2 in the 3x3 convolution. This difference makes ResNet50 v1.5 slightly more accurate (\~0.5% top1) than v1, but comes with a small performance drawback (~5% imgs/sec) according to Nvidia.

Image: model image

Intended uses & limitations#

You can use the raw model for image classification. See the model hub to look for fine-tuned versions on a task that interests you.

How to use#

Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:

from transformers import AutoFeatureExtractor, ResNetForImageClassification
import torch
from datasets import load_dataset

dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][0]

feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/resnet-152")
model = ResNetForImageClassification.from_pretrained("microsoft/resnet-152")

inputs = feature_extractor(image, return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

# model predicts one of the 1000 ImageNet classes
predicted_label = logits.argmax(-1).item()
print(model.config.id2label[predicted_label])

For more code examples, we refer to the documentation.

BibTeX entry and citation info#
@inproceedings{he2016deep,
  title={Deep residual learning for image recognition},
  author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
  booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
  pages={770--778},
  year={2016}
}

Files

7 files · 726 MBWeights 242 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 7 files with their sha256
FileSizesha256
.gitattributes1.23 KB98ccb431c012ebfe976280fbd45aea4cec7409935868ccecf3954370f96732a1
README.md2.67 KB06e023b53ac2f409d015467dd1e58d2b46f50560367f3da6498fa95b438e0fc2
config.json69.6 KBd95a518d9f9df2d7812de347cb188648e40f3c2234f035fa99596411db75c7ca
model.safetensors242 MB8daaaa74fcdeff48b2c2466c83802dc9b7a02aa3639f60ad251c3dc798517ae7
preprocessor_config.json266 Bfd575b890da5a949493e1d1e7a70bfcb9e4b99fe444004d2dbfa253add254741
pytorch_model.bin242 MB7ebcf680ad55ee87b94142d741d38d9a4355d7c2193b9532d201ef2a8b8dcd7e
tf_model.h5242 MBd6f9bb33d7ed9ba5a7cb3c3d11be2962aed0523373faed4b35896b3fb487ec13
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
189229b159 pinned now2026-11-15 03:24 UTC7 files · 726 MB

Use it

$ fw get microsoft/resnet-152
# manifest sha256 78f09883dfe6… · 726 MB · 7 files
$ fw verify ./resnet-152 microsoft/resnet-152
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/resnet-152.json --dir ./resnet-152 $ python3 fw.py verify ./resnet-152 ./microsoft__resnet-152.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/resnet-152 --revision 189229b1590873cc46c03813abc7d0a7cb8f02b2 --local-dir ./resnet-152

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
06e023b53ac2f409d015467dd1e58d2b46f50560367f3da6498fa95b438e0fc2
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: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.visionSubject: resnet-152Date: 2026-11-15Commit: 189229bSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/resnet-152
Pinned commit
189229b1590873cc46c03813abc7d0a7cb8f02b2
Manifest
resnet-152.json · .minisig
Manifest sha256
78f09883dfe6a531c42af71acd07922e89d81deb7b58d08e7fc0a098fdda5625
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:24 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/resnet-152.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/resnet-152.json.minisig $ minisign -Vm resnet-152.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 microsoft/resnet-152
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. resnet-152.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