← 开源
multimodallearning

pytorch-mask-rcnn

Model DevelopmentObject detectionPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
2.06k
Star
545
Fork
+0
本周
1
贡献者
创建于 2018-02-02 · 更新于 2026-10-06 · 今日第 9034 名
主要开发者
lasseha

multimodallearning/pytorch-mask-rcnn 排名第 9,034,有 2,064 个星标。

同类别比较

multimodallearning/pytorch-mask-rcnn 排名第 9,034,此处有 8 个同类条目;ozan-oktay/Attention-Gated-Networks 排名第 9,032。

同类别比较
名称排名指标
koth/kcws9,027
语言:
C++
星标数:
2,068
分叉数:
628
简介:
Deep Learning Chinese Word Segment
NVIDIA-NeMo/RL9,028
语言:
Python
星标数:
2,067
分叉数:
601
简介:
Scalable toolkit for efficient model reinforcement
mapbox/robosat9,031
语言:
Python
星标数:
2,065
分叉数:
384
简介:
Semantic segmentation on aerial and satellite imagery. Extracts features such as: buildings, parking lots, roads, water, clouds
ozan-oktay/Attention-Gated-Networks9,032
语言:
Python
星标数:
2,065
分叉数:
437
简介:
Use of Attention Gates in a Convolutional Neural Network / Medical Image Classification and Segmentation
ChenglongChen/tensorflow-DeepFM9,036
语言:
Python
星标数:
2,063
分叉数:
799
简介:
Tensorflow implementation of DeepFM for CTR prediction.
lucidrains/toolformer-pytorch9,038
语言:
Python
星标数:
2,063
分叉数:
132
简介:
Implementation of Toolformer, Language Models That Can Use Tools, by MetaAI
facebookresearch/theseus9,040
语言:
Python
星标数:
2,060
分叉数:
152
简介:
A library for differentiable nonlinear optimization
tristandeleu/pytorch-meta9,043
语言:
Python
星标数:
2,058
分叉数:
264
简介:
A collection of extensions and data-loaders for few-shot learning & meta-learning in PyTorch
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Object detection
星标数2,064
分叉数545
贡献者1
创建日期2018-02-02
更新日期2026-10-06
1 天星标数0
7 天星标数0
排名9,034
上次排名9,073
排名变化39
7 天星标排名12,153
上次 7 天星标排名12,214
7 天星标排名变化61
总星标排名6,180
上次总星标排名6,174
总星标排名变化-6
README 摘录

pytorch-mask-rcnn This is a Pytorch implementation of Mask R-CNN that is in large parts based on Matterport's Mask_RCNN. Matterport's repository is an implementation on Keras and TensorFlow. The following parts of the README are excerpts from the Matterport README. Details on the requirements, training on MS COCO and detection results for this repository can be found at the end of the document. The Mask R-CNN model generates bounding boxes and segmentation masks for each instance

of an object in the image. It's based on Feature Pyramid Network (FPN) and a ResNet101 backbone. The next four images visualize different stages in the detection pipeline: 1. Anchor sorting and filtering The Region Proposal Network proposes bounding boxes that are likely to belong to an object. Positive and negative anchors along with anchor box refinement are visualized. Bounding Box Refinement This is an example of final detection boxes (dotted lines) and the refinement applied to them (solid lines

) in the second stage. Mask Generation Examples of generated masks. These then get scaled and placed on the image in the right location. Composing the different pieces into a final result Requirements Python 3 Pytorch 0. 3 matplotlib, scipy, skimage, h5py Installation 1. We use functions from two more repositories that need to be build with the right option for cuda support. The two functions are Non-Maximum Suppression from ruotianluo's pytorch-faster-rcnn repository and longcw's RoiAlign. As we

use the COCO dataset install the Python COCO API and create a symlink. Download the pretrained models on COCO and ImageNet from Google Drive. Demo To test your installation simply run the demo with It works on CPU or GPU and the result should look like this: Training on COCO Training and evaluation code is in coco. You can run it from the command line as such: If you have not yet downloaded the COCO dataset you should run the

command with the download option set, e. : You can also run the COCO evaluation code with: The training schedule, learning rate, and other parameters can be set in coco. Results COCO results for bounding box and segmentation are reported based on training with the default configuration and backbone initialized with pretrained ImageNet weights.

常见问题

记录了多少星标和分叉?

multimodallearning/pytorch-mask-rcnn 有 2,064 个星标和 545 个分叉。

仓库排名是多少?

multimodallearning/pytorch-mask-rcnn 排名第 9,034。

记录的语言和类别是什么?

multimodallearning/pytorch-mask-rcnn 有 2,064 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

multimodallearning/pytorch-mask-rcnn 与 ozan-oktay/Attention-Gated-Networks 比较,后者排名第 9,032,有 2,065 个星标。

README

pytorch-mask-rcnn

This is a Pytorch implementation of Mask R-CNN that is in large parts based on Matterport's Mask_RCNN. Matterport's repository is an implementation on Keras and TensorFlow. The following parts of the README are excerpts from the Matterport README. Details on the requirements, training on MS COCO and detection results for this repository can be found at the end of the document.

The Mask R-CNN model generates bounding boxes and segmentation masks for each instance of an object in the image. It's based on Feature Pyramid Network (FPN) and a ResNet101 backbone.

The next four images visualize different stages in the detection pipeline:

1. Anchor sorting and filtering

The Region Proposal Network proposes bounding boxes that are likely to belong to an object. Positive and negative anchors along with anchor box refinement are visualized.

2. Bounding Box Refinement

This is an example of final detection boxes (dotted lines) and the refinement applied to them (solid lines) in the second stage.

3. Mask Generation

Examples of generated masks. These then get scaled and placed on the image in the right location.

4. Composing the different pieces into a final result

Requirements

  • Python 3
  • Pytorch 0.3
  • matplotlib, scipy, skimage, h5py

Installation

  1. Clone this repository.

     git clone https://github.com/multimodallearning/pytorch-mask-rcnn.git
    
  2. We use functions from two more repositories that need to be build with the right --arch option for cuda support. The two functions are Non-Maximum Suppression from ruotianluo's pytorch-faster-rcnn repository and longcw's RoiAlign.

    GPU arch
    TitanX sm_52
    GTX 960M sm_50
    GTX 1070 sm_61
    GTX 1080 (Ti) sm_61
     cd nms/src/cuda/
     nvcc -c -o nms_kernel.cu.o nms_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]
     cd ../../
     python build.py
     cd ../
    
     cd roialign/roi_align/src/cuda/
     nvcc -c -o crop_and_resize_kernel.cu.o crop_and_resize_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]
     cd ../../
     python build.py
     cd ../../
    
  3. As we use the COCO dataset install the Python COCO API and create a symlink.

     ln -s /path/to/coco/cocoapi/PythonAPI/pycocotools/ pycocotools
    
  4. Download the pretrained models on COCO and ImageNet from Google Drive.

Demo

To test your installation simply run the demo with

python demo.py

It works on CPU or GPU and the result should look like this:

Training on COCO

Training and evaluation code is in coco.py. You can run it from the command line as such:

# Train a new model starting from pre-trained COCO weights
python coco.py train --dataset=/path/to/coco/ --model=coco

# Train a new model starting from ImageNet weights
python coco.py train --dataset=/path/to/coco/ --model=imagenet

# Continue training a model that you had trained earlier
python coco.py train --dataset=/path/to/coco/ --model=/path/to/weights.h5

# Continue training the last model you trained. This will find
# the last trained weights in the model directory.
python coco.py train --dataset=/path/to/coco/ --model=last

If you have not yet downloaded the COCO dataset you should run the command with the download option set, e.g.:

# Train a new model starting from pre-trained COCO weights
python coco.py train --dataset=/path/to/coco/ --model=coco --download=true

You can also run the COCO evaluation code with:

# Run COCO evaluation on the last trained model
python coco.py evaluate --dataset=/path/to/coco/ --model=last

The training schedule, learning rate, and other parameters can be set in coco.py.

Results

COCO results for bounding box and segmentation are reported based on training with the default configuration and backbone initialized with pretrained ImageNet weights. Used metric is AP on IoU=0.50:0.95.

from scratch converted from keras Matterport's Mask_RCNN Mask R-CNN paper
bbox t.b.a. 0.347 0.347 0.382
segm t.b.a. 0.296 0.296 0.354
排名相邻
同类项目