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
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support