Downloads · 30 days
0
christo357/shvit_s2-cifar
shvit_s2-cifar is a image classification model from christo357. Use it when you need a label for an image. It is set up for timm. The card lists the license as mit.
This model is a fine-tuned version of SHViT (Single-Head Vision Transformer) on the CIFAR-100 dataset.
Downloads · 30 days
0
Access
Public
Updated Dec 3, 2025
Repo size
177 MB
Likes
0
Public
Click a slice to open those files.
.pth177 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of SHViT (Single-Head Vision Transformer) on the CIFAR-100 dataset.
SHViT is from the CVPR 2024 paper: SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design by Seokju Yun and Youngmin Ro.
CIFAR-100: 100-class image classification dataset
This model was trained as part of a comprehensive analysis comparing SHViT with baseline models (DeiT-Tiny, MobileNetV2) across multiple dimensions:
Training configuration:
import torch
from timm import create_model
# Load model
model = create_model('shvit_s2', num_classes=100, pretrained=False)
# Load checkpoint
checkpoint = torch.hub.load_state_dict_from_url(
'hf://YOUR_USERNAME/shvit_s2-cifar/checkpoint_99.pth'
)
model.load_state_dict(checkpoint['model'])
model.eval()
# Use for inference
# (your image preprocessing code here)
Or use with Hugging Face Hub:
from huggingface_hub import hf_hub_download
import torch
# Download checkpoint
checkpoint_path = hf_hub_download(
repo_id="YOUR_USERNAME/shvit_s2-cifar",
filename="checkpoint_99.pth"
)
# Load model (requires timm and the SHViT model definition)
checkpoint = torch.load(checkpoint_path)
# ... load into your model
This model is part of a comprehensive analysis project. Full analysis code, scripts, and additional models available at:
If you use this model, please cite the original SHViT paper:
@inproceedings{yun2024shvit,
author={Yun, Seokju and Ro, Youngmin},
title={SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
pages={5756--5767},
year={2024}
}
And if you found this fine-tuned model or analysis useful:
@misc{shvit_s2_cifar,
author = {Your Name},
title = {shvit_s2 Fine-tuned on CIFAR-100},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/YOUR_USERNAME/shvit_s2-cifar}},
}
This work was done in collaboration with:
This model follows the MIT license. The original SHViT implementation is also under MIT license.