PixelBrain is a Convolutional Neural Network (CNN) model built using PyTorch to classify images from the CIFAR-10 dataset into 10 categories. It learns spatial patterns using convolutional layers and predicts classes efficiently.
- Built with PyTorch
- CNN-based deep learning model
- Image preprocessing using
torchvision.transforms - Clean and modular architecture
- Supports training and testing
-
CIFAR-10
-
60,000 images (32×32 RGB)
-
10 Classes:
- Airplane
✈️ - Car 🚗
- Bird 🐦
- Cat 🐱
- Deer 🦌
- Dog 🐶
- Frog 🐸
- Horse 🐎
- Ship 🚢
- Truck 🚚
- Airplane
- Conv1: 3 → 32 filters (3×3) + ReLU + MaxPool
- Conv2: 32 → 64 filters (3×3) + ReLU + MaxPool
- Conv3: 64 → 128 filters (3×3) + ReLU + MaxPool
- Flatten: 128 × 4 × 4 → 2048
- FC1: 2048 → 256
- FC2: 256 → 10
transform = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.5,0.5,0.5),(0.5,0.5,0.5))
])- Load dataset using DataLoader
- Forward pass
- Compute loss
- Backpropagation (
loss.backward()) - Update weights (
optimizer.step())
pip install torch torchvision matplotlibpython train.py- Predicts 10 image classes
- Outputs probability distribution
- Data augmentation
- Transfer learning (ResNet, VGG)
- Model optimization
- Deployment using Streamlit
Ishwar Sonawane Python Developer | Machine Learning Enthusiast
PixelBrain "Understanding images at pixel level like a human brain"