Downloads · 30 days
8
6% of all-time downloads
LWWZH/Mini-Vision-V1
Mini-Vision-V1 is a image classification model from LWWZH. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
Downloads · 30 days
8
6% of all-time downloads
All-time downloads
138
Public
Repo size
598 KB
Likes
0
Public
Click a slice to open those files.
.pth598 KB · 80%
From the Hugging Face model README
Welcome to Mini-Vision-V1, the first model in the Mini-Vision series. This project demonstrates a robust implementation of a Convolutional Neural Network (CNN) for image classification using the CIFAR-10 dataset. It is designed to be lightweight, efficient, and easy to understand, making it perfect for beginners learning PyTorch.
Mini-Vision-V1 is a custom 4-layer CNN architecture. It utilizes Batch Normalization and Dropout to prevent overfitting and ensure stable training. With only 1.34M parameters, it achieves a competitive accuracy on the CIFAR-10 test set.
The network consists of 4 convolutional blocks followed by a classifier head.
| Layer | Input Channels | Output Channels | Kernel Size | Stride | Padding | Activation | Other |
|---|---|---|---|---|---|---|---|
| Conv Block 1 | 3 | 32 | 5 | 1 | 2 | ReLU | MaxPool(2), BatchNorm |
| Conv Block 2 | 32 | 64 | 5 | 1 | 2 | ReLU | MaxPool(2), BatchNorm |
| Conv Block 3 | 64 | 128 | 5 | 1 | 2 | ReLU | MaxPool(2), BatchNorm |
| Conv Block 4 | 128 | 256 | 5 | 1 | 2 | ReLU | MaxPool(2), BatchNorm |
| Flatten | - | - | - | - | - | - | Output: 1024 |
| Linear 1 | 1024 | 256 | - | - | - | ReLU | Dropout(0.5) |
| Linear 2 | 256 | 10 | - | - | - | - | - |
The model was trained using standard practices for CIFAR-10 to maximize performance on a small footprint.
The model achieved the following results on the CIFAR-10 test set:
| Metric | Value |
|---|---|
| Test Accuracy | 78% |
| Parameters | 1.34M |
Below are the training and testing curves visualized via TensorBoard.
(Recorded every step)
(Recorded every epoch)
You can easily load the model and perform inference on a single image using the test.py file.
.
├── model.py # Model architecture definition
├── train.py # Training script
├── test.py # Inference script
├── Mini-Vision-V1.pth # Trained model weights
├── config.json
├── README.md
└── assets
├── train_loss.png # Visualized train loss graph
└── test_loss.png # Visualized test loss graph
This project is licensed under the MIT License.