Pytorch Mask Rcnn Samples Save

Example notebooks on building PyTorch, preparing data and training as well as an updated project from a PyTorch MaskRCNN port

Project README

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)

Open Source Agenda is not affiliated with "Pytorch Mask Rcnn Samples" Project. README Source: michhar/pytorch-mask-rcnn-samples
Stars
41
Open Issues
1
Last Commit
5 years ago

Open Source Agenda Badge

Open Source Agenda Rating