swinv2-tiny-patch4-window16-256
microsoft · microsoft/swinv2-tiny-patch4-window16-256
Weights license: Apache 2.0 · code and components may use other terms
Not benchmarked or estimated yet
No comparable score, no memory figure to match against hardware and no published speed measurement for this checkpoint. Nothing is guessed.
How to run
Runtime compatibility and speed have not been measured for this entry. Published metadata does not prove a successful local run; check the files and terms at the source first.
Documented ways to run it
Copied as printed in the linked source (read 2026-10-18); not run by this site.
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/swinv2-tiny-patch4-window16-256")
model = AutoModelForImageClassification.from_pretrained("microsoft/swinv2-tiny-patch4-window16-256")
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])Technical details
What the source and the catalog store for this checkpoint. Missing fields are left out, never zero.
- Checkpoint / source
- microsoft/swinv2-tiny-patch4-window16-256
- Task
- image-classification
- Architecture
- Swinv2ForImageClassification
- Library in source
- transformers
- Weight license
- Apache 2.0
- Commercial use
- Allowed Apache License 2.0 text (SPDX) · read 2026-10-18license text
Every stored field
- Revision checked
- f4d3075206f2ad5eda586c30d6b4d0500f312421
- Architecture
- Swinv2ForImageClassification
- Library
- transformers
- Hub task tag
- image-classification
- Formats
- bin, pytorch, transformers
- Access
- Open download
- Publisher kind
- Official
- Repository created
- 2022-06-14creation is not the model's release
- Repository updated
- 2022-12-10a commit is not a release date
- Hub downloads (30 days) · likes
- 410,421 · 23this repository only · read 2026-11-19
- Read from the Hub page
- transformers class, task tagsHub overview and file listing · read 2026-10-18
- Catalog state
- Hub config or weights found; no inventory benchmark link
Sources
Valid source snapshot: 2026-11-19. This source record has not received a complete technical review. Missing data remain unknown; a repository commit is not a model release date.