Downloads · 30 days
3
7% of all-time downloads
AnjanSB/prenorm-resnet-cifar10-v4
prenorm-resnet-cifar10-v4 is a image classification model from AnjanSB. Use it when you need a label for an image. The card lists the license as mit.
PreNormResNetv4 is a custom ResNet-style architecture trained from scratch on CIFAR-10 using modern stabilization and regularization techniques.
Downloads · 30 days
3
7% of all-time downloads
All-time downloads
46
Public
Repo size
18.7 MB
Likes
0
Public
Click a slice to open those files.
.pt18.7 MB · 100%
From the Hugging Face model README
PreNormResNet_v4 is a custom ResNet-style architecture trained from scratch on CIFAR-10 using modern stabilization and regularization techniques.
Unlike fine-tuned ImageNet models, this network learns all representations directly from CIFAR-10, making it suitable for architectural research and controlled experimentation.
| Input (32×32) |
|---|
| └─ Conv + BN + ReLU + MaxPool |
| └─ PreNorm Bottleneck Stage (128 ch) |
| └─ PreNorm Bottleneck Stage (256 ch) |
| └─ Conv Downsampling (512 ch) |
| └─ PreNorm Bottleneck Stage (1024 ch) |
| └─ Global Average Pool |
| └─ MLP Head |
| Metric | Value |
|---|---|
| Validation Accuracy | 89.29% |
| Validation Loss | 0.415 |
| Training Epochs | 72 (early stopped) |
| Optimizer | AdamW |
| Learning Rate | 1e-5 |
| Weight Decay | 1e-4 |
Note: This model is trained from scratch, not fine-tuned.
import torch
from model import ResNet50Style_v4, PreNormBottleneck_v4
ckpt = torch.load("prenorm_resnet_cifar_v4.pt", map_location="cpu")
model = ResNet50Style_v4(
block=PreNormBottleneck_v4,
n_blocks=[1, 2, 2],
num_classes=10
)
model.load_state_dict(ckpt["state_dict"])
model.eval()
Built with PyTorch, MLflow, DVC, and Dagshub. Experiment Repo : https://dagshub.com/AnjanSB/cifar-image-classification-modeling-dlops