Update README.md
Browse files
README.md
CHANGED
@@ -15,6 +15,17 @@ tags:
|
|
15 |
datasets:
|
16 |
- brsdincer/garbage-collective-data-for-nature-conservation
|
17 |
- harshpanwar/aquatrash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
---
|
19 |
# Trashnet - Trash Identification model for forensic trash cleanup
|
20 |
|
@@ -23,10 +34,11 @@ This model takes images or video frames as input, and identifies the most likely
|
|
23 |
The model has been specifically built for aquatic trash, but performs almost equally well on terrestrial trash.
|
24 |
|
25 |
# Usage
|
26 |
-
The model has been trained on 120 x 120 RGB images. To evaluate the contents of an image, you will need to pass in a tensor of shape (120,120,3).
|
|
|
27 |
|
28 |
## Training and Classes
|
29 |
-
Trained for 22 epochs on 3500 data points
|
30 |
|
31 |
#### Class labels
|
32 |
trash_classes = ['battery','biological','glass','cardboard','clothes','metal','paper','plastic','shoes','trash']
|
@@ -34,19 +46,19 @@ trash_classes = ['battery','biological','glass','cardboard','clothes','metal','p
|
|
34 |
#### Mapping common trash types from training data together
|
35 |
|
36 |
class_to_idx = {<br>
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
'brown_glass':2,<br>
|
41 |
-
'green_glass':2,<br>
|
42 |
-
'cardboard':3,<br>
|
43 |
-
'clothes':4,<br>
|
44 |
-
'metal':5,<br>
|
45 |
-
'paper':6,<br>
|
46 |
-
'plastic':7,<br>
|
47 |
-
'shoes':8,<br>
|
48 |
-
'trash':9<br>
|
49 |
-
}
|
50 |
|
51 |
|
52 |
## Limitations
|
@@ -54,5 +66,4 @@ The model has limited training data of trash in the environment. Additionally, t
|
|
54 |
in its predictions due to sampling bias and visual similarities between plastic, glass, and other common types of trash.
|
55 |
As a solution, the model is marked as 'correct' when the correct label is within the model's top N most predicted trash types.
|
56 |
|
57 |
-
|
58 |
n = 3 gives the most appropriate results.
|
|
|
15 |
datasets:
|
16 |
- brsdincer/garbage-collective-data-for-nature-conservation
|
17 |
- harshpanwar/aquatrash
|
18 |
+
model-index:
|
19 |
+
- name: Trashnet r = 1
|
20 |
+
results:
|
21 |
+
- task:
|
22 |
+
type: trash-classification # Required. Example: automatic-speech-recognition
|
23 |
+
dataset:
|
24 |
+
type: aquatic-trash # Required. Example: common_voice. Use dataset id from https://hf.co/datasets
|
25 |
+
name: combined-trash-images # Required. A pretty name for the dataset. Example: Common Voice (French)
|
26 |
+
metrics:
|
27 |
+
- type: accuracy-radius # Required. Example: wer. Use metric id from https://hf.co/metrics
|
28 |
+
value: 27.47 # Required. Example: 20.90
|
29 |
---
|
30 |
# Trashnet - Trash Identification model for forensic trash cleanup
|
31 |
|
|
|
34 |
The model has been specifically built for aquatic trash, but performs almost equally well on terrestrial trash.
|
35 |
|
36 |
# Usage
|
37 |
+
The model has been trained on 120 x 120 RGB images. To evaluate the contents of an image, you will need to pass in a tensor of shape (120,120,3). <br>
|
38 |
+
Output consists of a 10-d tensor of class probabilities.
|
39 |
|
40 |
## Training and Classes
|
41 |
+
Trained for 22 epochs on 3500 data points.
|
42 |
|
43 |
#### Class labels
|
44 |
trash_classes = ['battery','biological','glass','cardboard','clothes','metal','paper','plastic','shoes','trash']
|
|
|
46 |
#### Mapping common trash types from training data together
|
47 |
|
48 |
class_to_idx = {<br>
|
49 |
+
<tab>'battery':0,<br>
|
50 |
+
<tab> 'biological':1,<br>
|
51 |
+
<tab> 'glass':2,<br>
|
52 |
+
<tab>'brown_glass':2,<br>
|
53 |
+
<tab>'green_glass':2,<br>
|
54 |
+
<tab>'cardboard':3,<br>
|
55 |
+
<tab>'clothes':4,<br>
|
56 |
+
<tab>'metal':5,<br>
|
57 |
+
<tab>'paper':6,<br>
|
58 |
+
<tab>'plastic':7,<br>
|
59 |
+
<tab>'shoes':8,<br>
|
60 |
+
<tab>'trash':9<br>
|
61 |
+
}<br>
|
62 |
|
63 |
|
64 |
## Limitations
|
|
|
66 |
in its predictions due to sampling bias and visual similarities between plastic, glass, and other common types of trash.
|
67 |
As a solution, the model is marked as 'correct' when the correct label is within the model's top N most predicted trash types.
|
68 |
|
|
|
69 |
n = 3 gives the most appropriate results.
|