Update README.md
Browse files
README.md
CHANGED
@@ -8,4 +8,30 @@ metrics:
|
|
8 |
- accuracy
|
9 |
- confusion_matrix
|
10 |
- f1
|
11 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
- accuracy
|
9 |
- confusion_matrix
|
10 |
- f1
|
11 |
+
---
|
12 |
+
|
13 |
+
# Trash Classifier Model
|
14 |
+
|
15 |
+
This model is a fine-tuned ResNet50 for classifying trash images into categories such as plastic, paper, glass, metal, and others.
|
16 |
+
|
17 |
+
## Dataset
|
18 |
+
- Dataset: [TrashNet](https://huggingface.co/datasets/garythung/trashnet)
|
19 |
+
- Number of Classes: 6 (Plastic, Metal, Paper, Glass, Cardboard, Trash)
|
20 |
+
|
21 |
+
## Model Details
|
22 |
+
- **Base Model**: ResNet50 (pretrained on ImageNet)
|
23 |
+
- **Fine-tuning**: Input layer adjusted for 6 classes.
|
24 |
+
- **Input Shape**: (384, 384, 3)
|
25 |
+
- **Learning Rate**: 0.0001
|
26 |
+
- **Optimizer**: Adam
|
27 |
+
|
28 |
+
## Performance
|
29 |
+
- **Accuracy**: (Add your accuracy here after training)
|
30 |
+
- **Precision**: (Add precision here)
|
31 |
+
- **Recall**: (Add recall here)
|
32 |
+
|
33 |
+
## How to Use
|
34 |
+
Load the model and use it for inference:
|
35 |
+
```python
|
36 |
+
from transformers import AutoModel
|
37 |
+
model = AutoModel.from_pretrained("username/trash-classifier")
|