Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
This model is trained on a curated dataset of most frequently seen trash items in our college.</br>
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
model_path = hf_hub_download(
|
| 5 |
-
repo_id=
|
| 6 |
-
filename=
|
| 7 |
)
|
| 8 |
|
| 9 |
-
model = tf.keras.models.load_model(model_path
|
| 10 |
```
|
| 11 |
The current target values are:
|
| 12 |
1. apples
|
|
@@ -19,6 +48,8 @@ The current target values are:
|
|
| 19 |
8. mixed leftover food (labeled as generalcompost)
|
| 20 |
9. wooden coffee stirrers (labeled as mixers)
|
| 21 |
10. oranges (labeled as peels)
|
| 22 |
-
11.
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
To help with expanding the dataset, feel free to
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
datasets:
|
| 4 |
+
- dvk65/TrashTypes
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
base_model:
|
| 8 |
+
- microsoft/resnet-50
|
| 9 |
+
---
|
| 10 |
This model is trained on a curated dataset of most frequently seen trash items in our college.</br>
|
| 11 |
+
## Model Details
|
| 12 |
+
|
| 13 |
+
- **Backbone**: ResNet50 (ImageNet pre-trained, fine-tuned)
|
| 14 |
+
- **Classes**: 13 trash / recycling / compost categories
|
| 15 |
+
- **Input size**: 224×224 RGB
|
| 16 |
+
- **Loss**: sparse_categorical_crossentropy
|
| 17 |
+
- **Optimizer**: Adam
|
| 18 |
+
|
| 19 |
+
## Dataset
|
| 20 |
+
|
| 21 |
+
Processed training, validation, and test splits are included in the `*_processed` directories.
|
| 22 |
+
Original dataset: [`dvk65/TrashTypes`](https://huggingface.co/dvk65/TrashTypes)
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
from huggingface_hub import hf_hub_download
|
| 28 |
+
import tensorflow as tf
|
| 29 |
+
|
| 30 |
+
REPO_ID = "dvk65/trash-classifier-resnet50"
|
| 31 |
+
FILENAME = "trashclassify_13.keras"
|
| 32 |
+
|
| 33 |
model_path = hf_hub_download(
|
| 34 |
+
repo_id=REPO_ID,
|
| 35 |
+
filename=FILENAME,
|
| 36 |
)
|
| 37 |
|
| 38 |
+
model = tf.keras.models.load_model(model_path)
|
| 39 |
```
|
| 40 |
The current target values are:
|
| 41 |
1. apples
|
|
|
|
| 48 |
8. mixed leftover food (labeled as generalcompost)
|
| 49 |
9. wooden coffee stirrers (labeled as mixers)
|
| 50 |
10. oranges (labeled as peels)
|
| 51 |
+
11. platicbags
|
| 52 |
+
12. plastic wrappers (labeled as plastics)
|
| 53 |
+
13. tissue papers
|
| 54 |
|
| 55 |
+
To help with expanding the dataset, feel free to contribute to: https://huggingface.co/datasets/dvk65/TrashTypes </br>
|