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
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support