Iwin Transformer (base, ImageNet-22K, 224×224)

Position-embedding-free hierarchical vision transformer. Paper: arXiv:2507.18405. All checkpoints: Iwin Transformer collection.

Usage

from transformers import AutoImageProcessor, AutoModelForImageClassification

ckpt = "cominder/iwin-base-patch4-window7-224-22k"
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.

ImageNet-22K pretrained weights at 224×224. 1K fine-tunes are in the same collection.

Citation

@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},
}
Downloads last month
41
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including cominder/iwin-base-patch4-window7-224-22k

Paper for cominder/iwin-base-patch4-window7-224-22k