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

resnet-34

Date: 2026-11-15Commit: 4d180fbSigned: 2DC28CC7B26A283B ✓

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

22M params262MBresnet-34safetensorspermissive
FactsParams22MSize262 MBFormatssafetensorsTaskimage classificationLicenseApache-2.0From sourcepermissive
$ fw get microsoft/resnet-34
# manifest sha256 d5efd6ed50d9… · 262 MB · 7 files
$ fw verify ./resnet-34 microsoft/resnet-34
From sourceHosted (signed)microsoft/resnet-34Last check: 2026-11-15 03:27 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
262 MB
Weights
87.3 MB (safetensors)
Parameters
22M
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:27 UTCpassed

Model card

From the publisher at commit 4d180fb. Shown as plain text with links; images open at the publisher.

ResNet-34 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-34")
model = ResNetForImageClassification.from_pretrained("microsoft/resnet-34")

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 · 262 MBWeights 87.3 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 7 files with their sha256
FileSizesha256
.gitattributes1.23 KB98ccb431c012ebfe976280fbd45aea4cec7409935868ccecf3954370f96732a1
README.md2.66 KBeb084b1b36ba3cbe104850c392eb6f36ad9e0982ec76e07e8b44eaefcc651846
config.json69.5 KBd1710734890a162b195907635251c94f70ab34c1d59497dce41fec1cbde1d58a
model.safetensors87.3 MB1096166c7cf216a7320a6b67b754b1776b99205a44d070c6cb52429af2d136bb
preprocessor_config.json266 Bfd575b890da5a949493e1d1e7a70bfcb9e4b99fe444004d2dbfa253add254741
pytorch_model.bin87.3 MB75519549c18bebc6642677bcee247114fa24ce5ad4b1e4f4747be318a194ecb6
tf_model.h587.5 MBae6a2847c51006462492cbbcdb571b206ac8d756abf04af4167ab7a1d7574740
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
4d180fbdc8 pinned now2026-11-15 03:27 UTC7 files · 262 MB

Use it

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

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
eb084b1b36ba3cbe104850c392eb6f36ad9e0982ec76e07e8b44eaefcc651846
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-34Date: 2026-11-15Commit: 4d180fbSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/resnet-34
Pinned commit
4d180fbdc81b4d5d4eaa86ab89bdd669200dd477
Manifest
resnet-34.json · .minisig
Manifest sha256
d5efd6ed50d983891ed83bde6edda2cdb9669a44fca254f476bf61fb067f821e
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:27 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

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

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