Coder Social home page Coder Social logo

mask_rcnn's Introduction

Mask_RCNN

Curious what is Mask_RCNN, so I followed tutorial by Mark Jay and made it working on my laptop. So it is actually Faster RCNN (object detection with bounding boxes) + Masks

Reference

Paper by the Facebook AI Research (FAIR) : https://arxiv.org/pdf/1703.06870.pdf
Theory: https://www.youtube.com/watch?v=g7z4mkfRjI4
Tutorial : https://www.youtube.com/playlist?list=PLX-LrBk6h3wRAF22jBUxDgOvyhIgLN4Cg
Repo: https://github.com/matterport/Mask_RCNN
Repo: https://github.com/markjay4k/Mask-RCNN-series

Run on my laptop, see my demo video below: LIVE DEMO

alt text

Installation

Step 1: create a conda virtual environment with python 3.6

conda create -n MaskRCNN python=3.6 pip

Step 2: install the dependencies

pip install -r requirements.txt

Step 3: Clone the Mask_RCNN repo

git clone https://github.com/matterport/Mask_RCNN.git

Step 4: install pycocotools NOTE: pycocotools requires Visual C++ 2015 Build Tools

git clone https://github.com/philferriere/cocoapi.git
use pip to install pycocotools
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

Step 5: download the pre-trained weights Go here https://github.com/matterport/Mask_RCNN/releases download the mask_rcnn_coco.h5 file place the file in the Mask_RCNN directory

Test on static images

open up the demo.ipynb and run it. On static images it works pretty well.

alt text
alt text
alt text

Test it on webcam

Credits to Mark Jay's youtube tutorial. Goto sample folder, Run "python visualize_cv2.py" in terminal. Stream on webcam is quite lagging. I think only 2fps. I read that the creator only got 5fps. I'm not sure if I use a light model will help or not. But I guess I can't change it since Mask is built on Faster-RCNN. Click below for my video demo.

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.