Git Product home page Git Product logo

zerowaste365's Introduction

Creating a Waste Classifier

"Good artists create, great artists steal"

Code Credits: Universidad de la República, Uruguay URL: https://www.rootstrap.com/blog/how-to-build-a-waste-classifier-app-using-ai Repo: https://github.com/xyfer17/Waste-classification-app

Fastai for Zerowaste365 is a deep learning library which provides high-level components that can quickly and easily provide state-of-the-art results in standard deep learning domains.

It has two main design goals:

To be approachable and rapidly productive To be also configurable.

The aim is to build a model for waste classification that identifies among the different classes:

  • cardboard
  • compost
  • glass
  • metal
  • paper
  • plastic
  • trash

This machine learning model will help people to improve their decision when classifying trash

Dataset

The data is already splitted in train and test folders. Inside each folder contains one folder for each class. Those images were obtained using Bing searcher using the api HTTP. You can find the code used to download the images at this Google Colab. You can find the final dataset splitted into train and test here in a Google Drive folder.

Split into train/test

Model

You can find the code for the classifier resnet-model.ipynb To load the model in the file result-resnet34.pkl

The model reaches an accuracy of 0.98, here we can see the confusion matrix: confusion_matrix

Build image

docker buildx build --platform linux/amd64 -t waste-classifier .

Web

The model is uploaded at this url http://waste-classifer.rs-sandbox.net/

Google Colab - use the model

Check this Google Colab to use the model with your own images.

zerowaste365's People

Contributors

excitedmuck 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.