CIFAR10-CNN is a deep learning based image classification project built using PyTorch and Convolutional Neural Networks (CNNs) on the CIFAR-10 dataset.
The project demonstrates how CNN architectures automatically learn visual features such as edges, textures, patterns, and objects from images to perform accurate multi-class classification.
This repository showcases a complete deep learning workflow including:
- Dataset preprocessing
- Image normalization
- CNN architecture design
- Model training
- Performance evaluation
- Accuracy analysis
The CIFAR-10 dataset contains:
- 60,000 RGB images
- 10 image categories
- Image size: 32×32 pixels
| Label | Class |
|---|---|
| 0 | Airplane |
| 1 | Automobile |
| 2 | Bird |
| 3 | Cat |
| 4 | Deer |
| 5 | Dog |
| 6 | Frog |
| 7 | Horse |
| 8 | Ship |
| 9 | Truck |
Input Image (32×32×3)
↓
Conv2D Layer (32 Filters)
↓
ReLU Activation
↓
MaxPooling
↓
Conv2D Layer (64 Filters)
↓
ReLU Activation
↓
MaxPooling
↓
Conv2D Layer (128 Filters)
↓
ReLU Activation
↓
MaxPooling
↓
Fully Connected Layer
↓
Output Layer (10 Classes)
- Convolutional Neural Networks (CNN)
- Feature Extraction
- ReLU Activation
- MaxPooling
- Backpropagation
- CrossEntropy Loss
- Adam Optimizer
- Tensor Operations
- Batch Processing
| Technology | Purpose |
|---|---|
| Python | Programming Language |
| PyTorch | Deep Learning Framework |
| TorchVision | Dataset Utilities |
| NumPy | Numerical Computing |
| Matplotlib | Visualization |
| Parameter | Value |
|---|---|
| Optimizer | Adam |
| Loss Function | CrossEntropyLoss |
| Epochs | 10 |
| Batch Size | 64 |
| Framework | PyTorch |
The CNN model achieved approximately:
75% Test Accuracy
on the CIFAR-10 dataset after training.
Dataset Loading
↓
Image Preprocessing
↓
Tensor Conversion
↓
CNN Feature Extraction
↓
Training & Backpropagation
↓
Prediction & Classification
↓
Accuracy Evaluation
git clone https://github.com/your-username/CIFAR10-CNN.gitcd CIFAR10-CNNpip install torch torchvision matplotlib numpypython main.pyCNNs are specialized neural networks designed for image processing tasks.
They help:
- Learn spatial features
- Detect patterns automatically
- Reduce computation
- Improve image classification accuracy
CNNs are widely used in:
- Computer Vision
- Medical Imaging
- Autonomous Vehicles
- Facial Recognition
- Smart Surveillance
- Data Augmentation
- Transfer Learning
- Batch Normalization
- Dropout Regularization
- TensorBoard Integration
- Real-time Prediction Interface
- Model Deployment
- Image Classification
- Computer Vision
- Object Recognition
- AI-based Vision Systems
- Smart Automation
├── main.py
├── README.md
├── requirements.txt
├── Dataset/
└── model/
This project helped in understanding:
- CNN architecture design
- Feature extraction in images
- Deep learning workflows
- Model optimization
- Practical implementation of PyTorch
This project is open-source and available for educational and research purpose.
Dataset:
- CIFAR-10 Dataset
Framework:
- PyTorch