Code Monkey home page Code Monkey logo

pytorch-mask-rcnn-samples's Introduction

A Sample Inspired by a PyTorch Port of MaskRCNN for Instance Segmentation

Inspired by: https://github.com/multimodallearning/pytorch-mask-rcnn

NOTES:

  • This project is working with PyTorch 0.4.1. If you'd like to help update this, please feel free to fork and create a PR.
  • There are two C-extensions that require the NVIDIA compiler and CUDA support.

Setup

System Tested (Linux and NVIDIA GPU required with CUDA/cuDNN):

  • CUDA 9.0
  • NVIDIA Tesla K80
  • Ubuntu 16.04

These sets of Jupyter notebooks may also be run in a Docker container running on CUDA-capable GPU hardware.

Base Model

  • Download the COCO model (base for transfer learning) from google drive. You could also choose to start with the ImageNet model.

Setup and Demo

Work through the notebooks:

  • Setup.ipynb - install the PyTorch extensions and grab a few other tools
  • Demo.ipynb - to test setup and perform inference with a base model

Collect and Label Custom Data

  1. Choose images with your object(s) of interest
  2. Label with the VGG Image Annotator tool (http://www.robots.ox.ac.uk/~vgg/software/via/)

VGG annotated fish pic

Adult Schoolmaster Snappers (Lutjanus apodus); Source: Florent Charpin, http://reefguide.org/pixhtml/schoolmaster2.html


Train

  • Train.ipynb - train on custom-labeled data, supported by a custom PyTorch DataSet class (fish_pytorch_style.py)

Wish to Build PyTorch for Your System?

If you wish to build PyTorch latest or from a commit, follow one of the two notebooks:

  • InstallPyTorchSourceCUDA.ipynb - build from source with CUDA support

Additional Information and Credits

TIP: You can run this project inside a Docker image such as the rheartpython/cvdeep public image that has many Deep Learning frameworks preinstalled. (more info at https://github.com/michhar/custom-jupyterhub-linux-vm)

pytorch-mask-rcnn-samples's People

Contributors

idavis avatar michhar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pytorch-mask-rcnn-samples's Issues

Colab

Hi,
I try to use your example in Google colab, and I get a issue about an error in setup.py egg_info by running requirements. CAn you help me on that. Here the error:

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed

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.