GithubHelp home page GithubHelp logo

riss-trash-detection's Introduction

RISS Trash Detection

Detecting trash cans and classifying them for my RISS 2022 project.

As part of my participation in the RISS (Robotics Institute Summer Scholar) program at CMU, I work on detectring trash cans and classifying them as empty or full. The goal is to deploy a pipeline that can use images collected by a camera-equipped traffic bus in the Pittsburgh area to help the bus company in keeping their streets clean.

This repository provides the code used, but does not include the resulting models for size reasons.

This repository is a snapshot of my work done during the summer and may or may not be incorrect. I do not guarantee any maintenance in the future.

You are more then welcome to fork and build upon my code.

Requirements

There are certain requirements for running the project, which are included in the requirements.txt file.

Detectron2 especially needs some special attention (if you want to use CUDA, which I highly recommend). I refer to the tutorial.

The pipeline

The current pipeline is a three stage pipeline:

  • a FASTER R-CNN based model to do a rough sweep and pre-selection of possible trash can (to run on the bus)
  • a Faster R-CNN based model is responsible for detecting and cutting out all trash cans (to run on the server)
  • a classifier takes in the cutout and assigns a class: "Full", "Empty" or "Garbage Bag"

Models

We use models pretrained on the ImageNet data set and only finetune for our purposes.

The bus-side detector is based on Resnet18-FPN available here https://github.com/sxhxliang/detectron2_backbone. Our training data is based on this set prepared by a previous RISS student. It has modified for our purposes and may be made available later on.

The detector is based on Resnet101-FPN-3x, available in the Detectron2 model zoo. Our training data is based on this set prepared by a previous RISS student. It has modified for our purposes and may be made available later on.

The classifier is also based on Resnet101, made available as part of the PyTorch torchvision.models package. The training data has been processed from the same data set given earlier, but with class annotations included. It is available here.

Overview over code

Every script has its own documentation and most of them provide some kind of CLI, so refer to that for usage. Here we just provide a small overview over everything there is:

riss-trash-detection's People

Contributors

timlst avatar

Stargazers

Jan-Oliver "Janonard" Opdenhövel avatar

Watchers

 avatar

Forkers

maniutek20

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.