Downloads · 30 days
0
iamgarvit/pvt-tiny-cifar100-224-2
pvt-tiny-cifar100-224-2 is a image classification model from iamgarvit. Use it when you need a label for an image. It is set up for pytorch.
This model is PVT-Tiny (Pyramid Vision Transformer) trained from scratch on CIFAR-100 (upsampled to 224×224) as a baseline for Vision GNN research.
Downloads · 30 days
0
Access
Public
Updated Jan 17, 2026
Repo size
9.1 GB
Likes
0
Public
Click a slice to open those files.
.pth972 MB · 100%
From the Hugging Face model README
This model is PVT-Tiny (Pyramid Vision Transformer) trained from scratch on CIFAR-100 (upsampled to 224×224) as a baseline for Vision GNN research.
PVT-Tiny uses a pyramid structure with spatial reduction attention:
We follow the original PVT training protocol adapted for CIFAR-100 to ensure fair comparison with Vision GNN and CNN baselines. All models in the comparison are trained under identical conditions:
best_model.pth - Best performing checkpoint (68.52% Acc@1)final_model.pth - Final model after all epochscheckpoint_epoch_X.pth - Saved every 20 epochsimport torch
import torch.nn as nn
from functools import partial
# Use pvt-tiny configuration
# Load model
model = pvt_tiny(num_classes=100)
# Load trained weights
checkpoint = torch.load('best_model.pth')
model.load_state_dict(checkpoint['model_state_dict'])
model.eval()
This implementation is based on:
Pyramid Vision Transformer:
@inproceedings{wang2021pyramid,
title={Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions},
author={Wang, Wenhai and Xie, Enze and Li, Xiang and Fan, Deng-Ping and Song, Kaitao and Liang, Ding and Lu, Tong and Luo, Ping and Shao, Ling},
booktitle={ICCV},
year={2021}
}
Training follows the standard PVT protocol with AdamW optimizer and cosine annealing scheduler, ensuring reproducibility and fair comparison with other vision architectures.