Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- image-classification
|
| 6 |
+
- computer-vision
|
| 7 |
+
- animals10
|
| 8 |
+
- resnet
|
| 9 |
+
- pytorch-lightning
|
| 10 |
+
datasets:
|
| 11 |
+
- custom
|
| 12 |
+
library_name: pytorch-lightning
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# 🐾 Animal Breed Classifier (ResNet18 - Animals10)
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned ResNet18 trained on the Animals-10 dataset using PyTorch Lightning. It classifies images into one of 10 animal categories.
|
| 18 |
+
|
| 19 |
+
## 🧠 Model Details
|
| 20 |
+
|
| 21 |
+
- Architecture: ResNet18
|
| 22 |
+
- Framework: PyTorch Lightning
|
| 23 |
+
- Training dataset: Animals-10
|
| 24 |
+
- Input size: 224x224 RGB
|
| 25 |
+
- Classes: ['butterfly', 'cat', 'chicken', 'cow', 'dog', 'elephant', 'horse', 'sheep', 'spider', 'squirrel']
|
| 26 |
+
|
| 27 |
+
## 📊 Performance
|
| 28 |
+
|
| 29 |
+
| Metric | Value |
|
| 30 |
+
|---------------|-------|
|
| 31 |
+
| Accuracy | 95% |
|
| 32 |
+
| Macro F1 | 94% |
|
| 33 |
+
| Weighted F1 | 95% |
|
| 34 |
+
|
| 35 |
+
For a detailed comparison with zero-shot CLIP, see the [GitHub repo](https://github.com/YOUR_USERNAME/YOUR_REPO).
|
| 36 |
+
|
| 37 |
+
## 🚀 Usage
|
| 38 |
+
|
| 39 |
+
```python
|
| 40 |
+
from models.lightning_model import Classifier
|
| 41 |
+
|
| 42 |
+
model = Classifier.load_from_checkpoint(
|
| 43 |
+
'https://huggingface.co/MichaelMM2000/animals10-resnet/resolve/main/resnet_animals10.ckpt',
|
| 44 |
+
num_classes=10
|
| 45 |
+
)
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## 🧪 Dataset
|
| 49 |
+
|
| 50 |
+
The [Animals-10 dataset](https://www.kaggle.com/datasets/alessiocorrado99/animals10) consists of over 28,000 images across 10 animal categories.
|
| 51 |
+
|
| 52 |
+
## 📎 License
|
| 53 |
+
|
| 54 |
+
This model is released under the MIT License.
|