Spaces:
Sleeping
Sleeping
Uploading Trashify box detection model app.py
Browse files- README.md +14 -2
- app.py +2 -1
- examples/trashify_example_3.jpeg +0 -0
README.md
CHANGED
@@ -10,7 +10,7 @@ pinned: false
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
-
# 🚮 Trashify Object Detector
|
14 |
|
15 |
Object detection demo to detect `trash`, `bin`, `hand`, `trash_arm`, `not_trash`, `not_bin`, `not_hand`.
|
16 |
|
@@ -18,4 +18,16 @@ Used as example for encouraging people to cleanup their local area.
|
|
18 |
|
19 |
If `trash`, `hand`, `bin` all detected = +1 point.
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
+
# 🚮 Trashify Object Detector V1
|
14 |
|
15 |
Object detection demo to detect `trash`, `bin`, `hand`, `trash_arm`, `not_trash`, `not_bin`, `not_hand`.
|
16 |
|
|
|
18 |
|
19 |
If `trash`, `hand`, `bin` all detected = +1 point.
|
20 |
|
21 |
+
## Dataset
|
22 |
+
|
23 |
+
All Trashify models are trained on a custom hand-labelled dataset of people picking up trash and placing it in a bin.
|
24 |
+
|
25 |
+
The dataset can be found on Hugging Face as [`mrdbourke/trashify_manual_labelled_images`](https://huggingface.co/datasets/mrdbourke/trashify_manual_labelled_images).
|
26 |
+
|
27 |
+
## Demos
|
28 |
+
|
29 |
+
* [V1](https://huggingface.co/spaces/mrdbourke/trashify_demo_v1) = Fine-tuned DETR model trained *without* data augmentation.
|
30 |
+
* [V2](https://huggingface.co/spaces/mrdbourke/trashify_demo_v2) = Fine-tuned DETR model trained *with* data augmentation.
|
31 |
+
* [V3](https://huggingface.co/spaces/mrdbourke/trashify_demo_v3) = Fine-tuned DETR model trained *with* data augmentation (same as V2) with an NMS (Non Maximum Suppression) post-processing step.
|
32 |
+
|
33 |
+
TK - add links to resources to learn more
|
app.py
CHANGED
@@ -133,7 +133,8 @@ demo = gr.Interface(
|
|
133 |
# Examples come in the form of a list of lists, where each inner list contains elements to prefill the `inputs` parameter with
|
134 |
examples=[
|
135 |
["examples/trashify_example_1.jpeg", 0.25],
|
136 |
-
["examples/trashify_example_2.jpeg", 0.25]
|
|
|
137 |
],
|
138 |
cache_examples=True
|
139 |
)
|
|
|
133 |
# Examples come in the form of a list of lists, where each inner list contains elements to prefill the `inputs` parameter with
|
134 |
examples=[
|
135 |
["examples/trashify_example_1.jpeg", 0.25],
|
136 |
+
["examples/trashify_example_2.jpeg", 0.25],
|
137 |
+
["examples/trashify_example_3.jpeg", 0.25],
|
138 |
],
|
139 |
cache_examples=True
|
140 |
)
|
examples/trashify_example_3.jpeg
ADDED