Views
No views yet
checkpoints/ — trained model weights: Plain20, Plain56, ResNet20, ResNet56notebooks/ — Jupyter notebooks covering architectures, training, evaluation, and comparisonsresults/ — performance plots (accuracy, loss curves, degradation behaviour)README.md — this file



notebooks/ and results/.





1import torch
2from huggingface_hub import hf_hub_download
3from models import create_model
4
5repo_id = "arpit-gour02/resnet-vs-plainnets-cifar10"
6
7ckpt = hf_hub_download(repo_id=repo_id, filename="resnet56.pth")
8model = create_model("resnet56", num_classes=10)
9state_dict = torch.load(ckpt, map_location="cpu")
10model.load_state_dict(state_dict)
11model.eval()
12
13# Example inference
14x = torch.randn(1, 3, 32, 32)
15logits = model(x)
16pred = logits.argmax(dim=1).item()
17print("Predicted class:", pred)| Hyperparameter | Value |
|---|---|
| Dataset | CIFAR-10 |
| Batch Size | 128 |
| Optimizer | SGD (Stochastic Gradient Descent) |
| Initial Learning Rate | 0.1 |
| Momentum | 0.9 |
| Weight Decay | 0.0001 ($10^{-4}$) |
| Total Epochs | ~164 (64k iterations) |
| Initialization | He Normal (kaiming_normal_) |
lr = 0.1lr = 0.01lr = 0.001(0.4914, 0.4822, 0.4465)(0.2023, 0.1994, 0.2010)