Coder Social home page Coder Social logo

patipol-bkk / alphatrash-dataset Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 2.2 GB

Self-collected trash dataset used in AlphaTrash project. Contains 5600+ images of trash gathered in Thailand, sorted into general, metal, organic, paper, and plastic wastes.

Home Page: https://ieeexplore.ieee.org/document/9095775

License: MIT License

Python 100.00%
dataset image-classification image-dataset thailand trash-classification garbage-classification paper plastic-bottles trash-dataset food-scraps metal-cans trash-images

alphatrash-dataset's Introduction

alphatrash-dataset

This dataset is a part of the AlphaTrash project which has been published in the paper: Automatic Trash Classification using Convolutional Neural Network Machine Learning.

Contents

The folder trash_dataset contains trash image files that has been collected in this project. All of the trash here are from Thailand and the images has been taken using a Raspberry Pi Camera Module 2 within the trash disposal compartment of the AlphaTrash system. Here, the dataset has been structured as train/, val/, and test/ for training, validation, and testing data which currently has a 70%, 15%, 15% split.

The images within each splits are organized in labeled folders as follows:

  • general/: Miscellaneous trash that couldn't be categorized in the following categories - 1190 images
  • metal/: Metal waste (Current dataset only contains soda cans) - 1065 images
  • organic/: Organic waste such as food scraps, vegetable or fruit peels. - 819 images
  • paper/: Paper and cardboard waste - 895 images
  • plasic/: Plastic waste - 1722 images

Adding New Images to the Dataset

To add new images to the current dataset, organize the image files by grouping them into folders that are named after their labels. Then group these in to a new single folder named e.g. new_dataset/ that is located in the main directory and run the formatter.py script to auto format them.

The format for the command is as follow:

python formatter.py path/to/new_dataset_folder/ path/to/destination_folder/ train_ratio val_ratio test_ratio

This command imports the new images from new_dataset/ into the current trash_dataset and split them into 60% train/, 20% val/, and 20% test/:

python formatter.py new_dataset trash_dataset 0.6 0.2 0.2

This command creates a new dataset named trash_dataset_2/ from new_dataset/ with 70% train/, 0% val/, and 30% test/ split:

python formatter.py new_dataset trash_dataset_2 0.7 0 0.3

Re-Splitting or Re-Shuffling of Current Dataset

To re-split or re-shuffle the current dataset, run the formatter.py script to auto format.

The format for the command is as follow:

python formatter.py path/to/dataset_folder/ train_ratio val_ratio test_ratio

This command redistribute images within the current trash_dataset into 80% train/, 10% val/, and 10% test/ splits:

python formatter.py trash_dataset_2 0.8 0.1 0.1

Future Contributions and Contact Information

If you are interested in contributing to this dataset or have any inquiries, please feel free to contact me at [email protected].

alphatrash-dataset's People

Contributors

patipol-bkk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.