YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

AlexNet on CIFAR-10 using PyTorch

This project implements AlexNet from scratch using PyTorch and trains it on the CIFAR-10 dataset.

The notebook covers:

  • Loading and preprocessing the CIFAR-10 dataset
  • Building AlexNet from scratch
  • Training the model
  • Evaluating test accuracy
  • Saving the trained model
  • Performing inference on sample images

Dataset

CIFAR-10 contains 60,000 color images of size 32Γ—32 across 10 classes.

Classes:

  • Airplane
  • Automobile
  • Bird
  • Cat
  • Deer
  • Dog
  • Frog
  • Horse
  • Ship
  • Truck

Dataset path used:

/kaggle/input/datasets/bariankitvinod/cifar-10/data

Model

AlexNet (CIFAR-10 Version)

Architecture:

Conv β†’ ReLU β†’ MaxPool
Conv β†’ ReLU β†’ MaxPool
Conv β†’ ReLU
Conv β†’ ReLU
Conv β†’ ReLU β†’ MaxPool
Flatten
FC β†’ ReLU β†’ Dropout
FC β†’ ReLU β†’ Dropout
FC β†’ Output (10)

Training

Loss Function

  • CrossEntropyLoss

Optimizer

  • SGD
  • Momentum = 0.9
  • Weight Decay = 5e-4

Learning Rate Scheduler

  • StepLR

Results

Typical test accuracy:

Accuracy: 80.26%

Run

Open the notebook and execute all cells.

Project Structure

AlexNet/
β”‚
β”œβ”€β”€ alexnet.ipynb
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ config.py
└── alexnet_cifar10.pth
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