Giter Site home page Giter Site logo

delldu / maskrcnn Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 279.73 MB

Mask R-CNN is for "instance segmentation". Please reference https://arxiv.org/abs/1703.06870.

License: Other

Python 8.61% Lua 0.92% MATLAB 2.66% C++ 1.41% Makefile 0.01% Jupyter Notebook 85.18% C 0.59% Shell 0.01% Cuda 0.62%
mask rcnn pytorch instance segmentation extension c

maskrcnn's Introduction

MaskRCNN

Mask R-CNN is for "instance segmentation". Please reference https://arxiv.org/abs/1703.06870.

Example 1

Example2

Demo

python predict.py images/car58a54312d.jpg

Training

1. Put Coco files under data directory.

data/
├── annotations
├── test2014
├── train2014
└── val2014

2. ./train.sh

Evaluation

./eval.sh

DONE (t=2.57s).
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.317  
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.525  
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.336  
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.139  
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.366  
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.492  
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.261  
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.369  
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.379  
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.169  
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.425  
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.562  
Prediction time: 349.81333112716675. Average 0.6996266622543335/image
Total time:  401.12283730506897

Requirements

  • Python 3.6.2

  • Pytorch 1.0.0

  • matplotlib, scipy, scikit-image

pip install scipy==1.2.1

Installation

  1. Clone this repository.

     git clone https://github.com/delldu/MaskRCNN.git
    
  2. Download pre-trained model.

   Download mask_rcnn_coco.pth from https://pan.baidu.com/s/1HVUdfrFKPMGlMcUP7mXZGw

and put it under models .

  1. Install c++ extension packages

    cd c++ext  
    make  
    cd ../
    
    cd cocoapi/PythonAPI  
    make  
    cd ../..
    

Thanks

  1. Mask R-CNN https://arxiv.org/abs/1703.06870

  2. https://github.com/multimodallearning/pytorch-mask-rcnn

Chinese Document

中文文档

maskrcnn's People

Contributors

delldu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ssbahade blyucs

maskrcnn's Issues

Issue with evaluation mode Precision and recall

while in debugging mode, in linear layer of the model gives the class_id all zeros. input size is (91, 1024), weight is (81,1024) and bias is 81. when doing the torch.addmm(bias, input, weight.t()) is gives the all class_id 0 0 0 0 0 0 00 ......... i spend about a week on this issues. please help.

image

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.