File size: 1,374 Bytes
f6dfcfd
 
e7d4d29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f6dfcfd
 
 
a49b82d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
license: mit
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
dataset_info:
  features:
  - name: image
    dtype: image
  - name: label
    dtype:
      class_label:
        names:
          '0': apples
          '1': bananas
          '2': bottles
          '3': cans
          '4': cardboard
          '5': cups
          '6': eggshells
          '7': generalcompost
          '8': mixers
          '9': peels
          '10': plasticbags
          '11': plastics
          '12': tissues
  splits:
  - name: train
    num_bytes: 122444841
    num_examples: 14651
  download_size: 2050293304
  dataset_size: 122444841
---
The dataset has images collected from publicly available resources like Kaggle and Roboflow, and some photos that I clicked.</br>
Feel free to expand on the ones available and add more directories.</br>
To get an idea of which additional directories could be useful refer recycle.jpeg and compost.jpeg.</br>
The notebook used to train the dataset and the best performing model with 98.2947% accuracy is saved at https://huggingface.co/dvk65/trash-classifier-resnet50. </br>
To use this dataset in your python project use:
```
from datasets import load_dataset

dataset = load_dataset("dvk65/TrashTypes", split="train")
label_names = dataset.features["label"].names
```
Currently, it is in a single train split.