Git Product home page Git Product logo

happyearth's Introduction

HappyEarth

Inspiration

There has been a lot of waste generation over the past decade, and this is leading to global warming. Humans have, without a doubt, contributed the maximum towards global warming. However, some people have no clue that they're contributing to this global issue. Thus, hopefully, to help people make better, wiser and empathetic decisions, we came up with this app idea.

What it does

It takes a single image as input, runs it through the machine learning model at the backend, and gives information about the object, such as name, whether it is reusable, carbon footprint, etc.

How we built it

  • Haramrit began working on the machine learning model, while Simran was responsible for collecting the data and writeups.
  • First, we had to collect images and label them appropriately. For this, we found an already existing dataset on Kaggle, and we just modified its classes. We created multiple directories, one for each object and put train and test images in their respective directories. We used ~150 images for each object for the training process.
  • For the model, we used DenseNet which is a well-known pre-trained CNN model. For training the model, we used Kaggle, since it allows GPU training, and images are trained faster using GPUs than using CPUs. (Our best model got a test accuracy of ~83%, however, the numbers are not very accurate as the dataset was quite small.)
  • After training and saving the trained model, we used Streamlit to create a simple web app which serves as a GUI to upload an image which is then fed to the ML model. This model, if it is able to predict a given object with >70% confidence, it gives the desired output. If, however, it is not able to detect the image properly, it lets the user know that it was not able to detect the object in the uploaded image and fails gracefully.
  • Then we configured our app for Heroku and deployed it on to the cloud.

Challenges we ran into

  • Had trouble figuring out installing PyTorch on Heroku
  • Had to manually create the labels and put images in their respective directories - was very time consuming

Accomplishments that we're proud of

  • Being able to finish a project (almost 70-80%) which was completely outside our domain
  • Got to work on an image classification project for the first time
  • Hopefully our app plays a role, however small, to contribute to the well-being of this planet

What we learned

  • How to implement a simple image classifier using PyTorch
  • How to sync well as a team

What's next for Don't Trash Me

  • Can work on expanding dataset, adding new objects, dataset is very small at the moment
  • Add functionality to detect objects from camera live stream
  • Add multiple-image upload functionality
  • More useful ways of reusing existing objects

happyearth's People

Contributors

haramrit09k avatar simransethi643 avatar

Stargazers

Vishwajeet Vijay Paradkar 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.