ILSVRC/imagenet-1k
Viewer • Updated • 1.43M • 102k • 1.2k
Run cominder/iwin-base-patch4-window7-224 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/cominder/iwin-base-patch4-window7-224. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/cominder/iwin-base-patch4-window7-224 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use cominder/iwin-base-patch4-window7-224 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="cominder/iwin-base-patch4-window7-224", trust_remote_code=True)
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForImageClassification
model = AutoModelForImageClassification.from_pretrained("cominder/iwin-base-patch4-window7-224", trust_remote_code=True, device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForImageClassification
model = AutoModelForImageClassification.from_pretrained("cominder/iwin-base-patch4-window7-224", trust_remote_code=True, device_map="auto")Position-embedding-free hierarchical vision transformer. Paper: arXiv:2507.18405. All checkpoints: Iwin Transformer collection.
from transformers import AutoImageProcessor, AutoModelForImageClassification
ckpt = "cominder/iwin-base-patch4-window7-224"
processor = AutoImageProcessor.from_pretrained(ckpt)
model = AutoModelForImageClassification.from_pretrained(ckpt, trust_remote_code=True)
inputs = processor(images=image, return_tensors="pt")
print(model.config.id2label[model(**inputs).logits.argmax(-1).item()])
trust_remote_code=True is required because Iwin is not in the Transformers core library yet. Training and evaluation code: Cominder/Iwin-Transformer.
Reported ImageNet-1K top-1: 83.5. The snippet resizes directly to 224.
@misc{huo2025iwin,
title={Iwin Transformer: Hierarchical Vision Transformer using Interleaved Windows},
author={Simin Huo and Ning Li},
year={2025},
eprint={2507.18405},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2507.18405},
}
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="cominder/iwin-base-patch4-window7-224", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")