alt.freeweights.vision / swin-tiny-patch4-window7-224-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

swin-tiny-patch4-window7-224-ONNX

Date: 2026-11-15Commit: 5e1ad78Signed: 2DC28CC7B26A283B ✓

Image classification model. Onnx weights, 328 MB in all. Published by onnx-community under Apache-2.0.

vision328MBswin-tiny-patch4-window7-224-ONNXonnxpermissive
FactsParamsnot statedSize328 MBFormatsonnxTaskimage classificationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/swin-tiny-patch4-window7-224-ONNX
# manifest sha256 7fddd838c97c… · 328 MB · 13 files
$ fw verify ./swin-tiny-patch4-window7-224-ONNX onnx-community/swin-tiny-patch4-window7-224-ONNX
From sourceHosted (signed)onnx-community/swin-tiny-patch4-window7-224-ONNXLast check: 2026-11-15 05:30 UTC

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

Quantized of swin-tiny-patch4-window7-224.

Works with

Runs with

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

Convert with

Scan with

Overview

Size
328 MB
Weights
18.6 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
image classification
License
Apache-2.0 (permissive)
Files
13, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: microsoft/swin-tiny-patch4-window7-224

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 05:30 UTCpassed

Model card

From the publisher at commit 5e1ad78. Shown as plain text with links; images open at the publisher.

swin-tiny-patch4-window7-224 (ONNX)#

This is an ONNX version of microsoft/swin-tiny-patch4-window7-224. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for image-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageClassificationPipeline


Swin Transformer (tiny-sized model)#

Swin Transformer model trained on ImageNet-1k at resolution 224x224. It was introduced in the paper Swin Transformer: Hierarchical Vision Transformer using Shifted Windows by Liu et al. and first released in this repository.

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

Model description#

The Swin Transformer is a type of Vision Transformer. It builds hierarchical feature maps by merging image patches (shown in gray) in deeper layers and has linear computation complexity to input image size due to computation of self-attention only within each local window (shown in red). It can thus serve as a general-purpose backbone for both image classification and dense recognition tasks. In contrast, previous vision Transformers produce feature maps of a single low resolution and have quadratic computation complexity to input image size due to computation of self-attention globally.

Image: model image

Source

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 AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import requests

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

processor = AutoImageProcessor.from_pretrained("microsoft/swin-tiny-patch4-window7-224")
model = AutoModelForImageClassification.from_pretrained("microsoft/swin-tiny-patch4-window7-224")

inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
# model predicts one of the 1000 ImageNet classes
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])

For more code examples, we refer to the documentation.

BibTeX entry and citation info#
@article{DBLP:journals/corr/abs-2103-14030,
  author    = {Ze Liu and
               Yutong Lin and
               Yue Cao and
               Han Hu and
               Yixuan Wei and
               Zheng Zhang and
               Stephen Lin and
               Baining Guo},
  title     = {Swin Transformer: Hierarchical Vision Transformer using Shifted Windows},
  journal   = {CoRR},
  volume    = {abs/2103.14030},
  year      = {2021},
  url       = {https://arxiv.org/abs/2103.14030},
  eprinttype = {arXiv},
  eprint    = {2103.14030},
  timestamp = {Thu, 08 Apr 2021 07:53:26 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2103-14030.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Files

13 files · 328 MBWeights 18.6 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md4.32 KBf981e52f9f6d24b07e4ac67c80e2ef917f2bb1930f47df005b755121c555fe30
config.json70.1 KBa5c0bb03eed10335046672010e153d4c4a8954d9eaf3d07f041e750353bb90ca
onnx/model.onnx115 MB270e905de29f4933de2aa8aa6a861cd0873c0ca15bb92dff612076d9c850ce35
onnx/model_bnb4.onnx20.9 MBc3e9173fbfbef3aa23b110fe33a682f8aa0d9de07228e40d69f1016ff1b6d238
onnx/model_fp16.onnx58.0 MBfbfc71eaae14b954f6db6bed93446312682bbfaf4b8d3f939d86708b61b45bce
onnx/model_int8.onnx30.9 MB3926b645d5d5991cddcd130c6db635ffd2e6174eaf748f1c75fe9e3271979276
onnx/model_q4.onnx22.6 MB361805e91690c55514b9f59b95ee0b5c785b408b6fc64db8ce9c8de5ea44ea91
onnx/model_q4f16.onnx18.6 MB7de07640ec3a09598075a9d403de6d397db314f0f50f8753120b000e4b7b5450
onnx/model_quantized.onnx30.9 MB552f5911ee23768326e708c6997a9fe494efc977282ec92dfb95328d70412cba
onnx/model_uint8.onnx30.9 MB552f5911ee23768326e708c6997a9fe494efc977282ec92dfb95328d70412cba
preprocessor_config.json365 Bc8bd311d0271406c794bbc133ca706780f6d94c4c337999793356a191d3c1167
quantize_config.json310 B9b60b5877b9a1687b5cddbc06124a974cb7536af9dbf5295279bf73c3823170c
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5e1ad787e9 pinned now2026-11-15 05:30 UTC13 files · 328 MB

Use it

$ fw get onnx-community/swin-tiny-patch4-window7-224-ONNX
# manifest sha256 7fddd838c97c… · 328 MB · 13 files
$ fw verify ./swin-tiny-patch4-window7-224-ONNX onnx-community/swin-tiny-patch4-window7-224-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/swin-tiny-patch4-window7-224-ONNX.json --dir ./swin-tiny-patch4-window7-224-ONNX $ python3 fw.py verify ./swin-tiny-patch4-window7-224-ONNX ./onnx-community__swin-tiny-patch4-window7-224-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/swin-tiny-patch4-window7-224-ONNX --revision 5e1ad787e956d6d5d106d800f308b1a7416cc052 --local-dir ./swin-tiny-patch4-window7-224-ONNX

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
f981e52f9f6d24b07e4ac67c80e2ef917f2bb1930f47df005b755121c555fe30
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: swin-tiny-patch4-window7-224-ONNXDate: 2026-11-15Commit: 5e1ad78Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/swin-tiny-patch4-window7-224-ONNX
Pinned commit
5e1ad787e956d6d5d106d800f308b1a7416cc052
Manifest
swin-tiny-patch4-window7-224-ONNX.json · .minisig
Manifest sha256
7fddd838c97cf9cc595f6904877af2ce54a7c703fcd2372914043bfe05e3552b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:30 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/swin-tiny-patch4-window7-224-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/swin-tiny-patch4-window7-224-ONNX.json.minisig $ minisign -Vm swin-tiny-patch4-window7-224-ONNX.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

Parent

microsoft/swin-tiny-patch4-window7-224 · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/swin-tiny-patch4-window7-224-ONNX
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. swin-tiny-patch4-window7-224-ONNX.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