Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# CIFAR-10 CNN Model
|
| 2 |
|
| 3 |
This is a convolutional neural network trained on the CIFAR-10 dataset, achieving 92.59% test accuracy after 100 epochs.
|
|
|
|
| 4 |
## Model Details
|
| 5 |
-
- Architecture: 9 convolutional layers with batch normalization, max pooling, and dropout, followed by 3 fully connected layers.
|
| 6 |
-
- Dataset: CIFAR-10 (10 classes: airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck).
|
| 7 |
-
- Training: 100 epochs, SGD optimizer, CrossEntropyLoss, learning rate scheduling.
|
|
|
|
|
|
|
| 8 |
## Usage
|
| 9 |
Load the model using:
|
|
|
|
| 10 |
```python
|
| 11 |
from huggingface_hub import from_pretrained_pytorch
|
| 12 |
model = from_pretrained_pytorch('chandu1617/CIFAR10-CNN_Model')
|
| 13 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- image-classification
|
| 6 |
+
- computer-vision
|
| 7 |
+
- pytorch
|
| 8 |
+
- cifar10
|
| 9 |
+
datasets:
|
| 10 |
+
- cifar10
|
| 11 |
+
metrics:
|
| 12 |
+
- accuracy
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
# CIFAR-10 CNN Model
|
| 16 |
|
| 17 |
This is a convolutional neural network trained on the CIFAR-10 dataset, achieving 92.59% test accuracy after 100 epochs.
|
| 18 |
+
|
| 19 |
## Model Details
|
| 20 |
+
- **Architecture**: 9 convolutional layers with batch normalization, max pooling, and dropout, followed by 3 fully connected layers.
|
| 21 |
+
- **Dataset**: CIFAR-10 (10 classes: airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck).
|
| 22 |
+
- **Training**: 100 epochs, SGD optimizer, CrossEntropyLoss, learning rate scheduling.
|
| 23 |
+
- **Accuracy**: 92.59% on the CIFAR-10 test set.
|
| 24 |
+
|
| 25 |
## Usage
|
| 26 |
Load the model using:
|
| 27 |
+
|
| 28 |
```python
|
| 29 |
from huggingface_hub import from_pretrained_pytorch
|
| 30 |
model = from_pretrained_pytorch('chandu1617/CIFAR10-CNN_Model')
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## Interactive Demo
|
| 34 |
+
Try the model in an interactive Gradio UI at [chandu1617/cifar10-cnn-demo](https://huggingface.co/spaces/chandu1617/cifar10-cnn-demo).
|
| 35 |
+
|
| 36 |
+
## Training Details
|
| 37 |
+
- **Optimizer**: SGD with momentum 0.9, weight decay 1e-6.
|
| 38 |
+
- **Learning Rate**: Initial 0.01, reduced on plateau (factor 0.1, patience 10, min_lr 0.00001).
|
| 39 |
+
- **Data Augmentation**: Color jitter, random perspective, random horizontal flip, normalization.
|