YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
VGG16 on CIFAR-10 using PyTorch
This project implements the VGG16 architecture from scratch using PyTorch and trains it on the CIFAR-10 image classification dataset.
Features
- VGG16 architecture implemented from scratch
- CIFAR-10 training pipeline
- Data normalization
- SGD optimizer with Momentum
- Learning Rate Scheduler
- Model evaluation
- Inference on test images
- Save and load trained model
Dataset
CIFAR-10 consists of 60,000 RGB images of size 32Γ32 belonging to 10 classes.
Classes:
- Airplane
- Automobile
- Bird
- Cat
- Deer
- Dog
- Frog
- Horse
- Ship
- Truck
Dataset path:
/kaggle/input/datasets/bariankitvinod/cifar-10/data
Model Architecture
Input
β
βββ Conv(64)
βββ Conv(64)
βββ MaxPool
β
βββ Conv(128)
βββ Conv(128)
βββ MaxPool
β
βββ Conv(256)
βββ Conv(256)
βββ Conv(256)
βββ MaxPool
β
βββ Conv(512)
βββ Conv(512)
βββ Conv(512)
βββ MaxPool
β
βββ Conv(512)
βββ Conv(512)
βββ Conv(512)
βββ MaxPool
β
βββ Flatten
βββ Linear(512)
βββ ReLU
βββ Dropout
βββ Linear(512)
βββ ReLU
βββ Dropout
βββ Linear(10)
Training Configuration
Loss Function
- CrossEntropyLoss
Optimizer
- SGD
- Learning Rate = 0.01
- Momentum = 0.9
- Weight Decay = 5e-4
Learning Rate Scheduler
- StepLR
- Step Size = 10
- Gamma = 0.1
Epochs
- 50
Expected Performance
Typical Test Accuracy
Test Accuracy : 10.00%
Run
Execute all notebook cells sequentially.
Project Structure
VGG16/
β
βββ vgg16.ipynb
βββ README.md
βββ requirements.txt
βββ config.py
βββ vgg16_cifar10.pth
Technologies Used
- Python
- PyTorch
- Torchvision
- NumPy
- Matplotlib
- tqdm
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support