An MXNet implementation of Mask R-CNN.
This repository is based largely on the mx-rcnn implementation of Faster RCNN available here.

| Method | Training data | Test data | Average | person | rider | car | truck | bus | train | motorcycle | bicycle |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Ours | fine-only | test | 26.9 | 33.0 | 25.7 | 47.7 | 21.6 | 27.4 | 23.0 | 19.9 | 16.9 |
| Reference[5] | fine-only | test | 26.2 | 30.5 | 23.8 | 46.9 | 22.8 | 32.2 | 18.6 | 19.1 | 16.0 |
| Ours | fine-only | val | 31.3 | 32.6 | 26.6 | 49.5 | 26.5 | 45.4 | 32.1 | 17.6 | 20.4 |
| Reference[5] | fine-only | val | 31.5 | - | - | - | - | - | - | - | - |
Coming soon, please stay tuned.
We tested our code on:
Ubuntu 16.04, Python 2.7 with
numpy(1.12.1), cv2(2.4.9), PIL(4.3), matplotlib(2.1.0), cython(0.26.1), easydict
data/cityscape/
├── leftImg8bit/
│ ├── train/
│ ├── val/
│ └── test/
├── gtFine/
│ ├── train/
│ ├── val/
│ └── test/
└── imglists/
├── train.lst
├── val.lst
└── test.lst
bash scripts/download_res50.sh
cp rcnn/CXX_OP/* incubator-mxnet/src/operator/
To build MXNet from source, please refer to the tutorial.
make
bash scripts/train_alternate.sh
bash scripts/download_cityscapescripts.sh
bash scripts/eval.sh
bash scripts/demo.sh
Preparation for Training (step1-step4)bash scripts/demo_single_image.sh, you can change the image path in script demo_single_image.sh.Q: It says AttributeError: 'module' object has no attribute 'ROIAlign'.
A: This is because either
you forget to copy the operators to your MXNet folder
or you forget to re-compile MXNet and re-install MXNet python interface
or you install the wrong MXNet
Please print mxnet.__path__ to make sure you use correct MXNet
Q: I encounter incubator-mxnet/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh:110: Check failed: err == cudaSuccess (7 vs. 0) Name: MapPlanKernel ErrStr:too many resources requested for launch at the begining.
A: Please try adding MSHADOW_CFLAGS += -DMSHADOW_OLD_CUDA=1 in mxnet/mshadow/make/mshadow.mk and re-compile MXNet.
149 followers · starred Aug 2018
12,858 followers · starred Jan 2018
506 followers · starred Oct 2017
115 followers · starred Jun 2018
An MXNet implementation of Mask R-CNN.
This repository is based largely on the mx-rcnn implementation of Faster RCNN available here.

| Method | Training data | Test data | Average | person | rider | car | truck | bus | train | motorcycle | bicycle |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Ours | fine-only | test | 26.9 | 33.0 | 25.7 | 47.7 | 21.6 | 27.4 | 23.0 | 19.9 | 16.9 |
| Reference[5] | fine-only | test | 26.2 | 30.5 | 23.8 | 46.9 | 22.8 | 32.2 | 18.6 | 19.1 | 16.0 |
| Ours | fine-only | val | 31.3 | 32.6 | 26.6 | 49.5 | 26.5 | 45.4 | 32.1 | 17.6 | 20.4 |
| Reference[5] | fine-only | val | 31.5 | - | - | - | - | - | - | - | - |
Coming soon, please stay tuned.
We tested our code on:
Ubuntu 16.04, Python 2.7 with
numpy(1.12.1), cv2(2.4.9), PIL(4.3), matplotlib(2.1.0), cython(0.26.1), easydict
data/cityscape/
├── leftImg8bit/
│ ├── train/
│ ├── val/
│ └── test/
├── gtFine/
│ ├── train/
│ ├── val/
│ └── test/
└── imglists/
├── train.lst
├── val.lst
└── test.lst
bash scripts/download_res50.sh
cp rcnn/CXX_OP/* incubator-mxnet/src/operator/
To build MXNet from source, please refer to the tutorial.
make
bash scripts/train_alternate.sh
bash scripts/download_cityscapescripts.sh
bash scripts/eval.sh
bash scripts/demo.sh
Preparation for Training (step1-step4)bash scripts/demo_single_image.sh, you can change the image path in script demo_single_image.sh.Q: It says AttributeError: 'module' object has no attribute 'ROIAlign'.
A: This is because either
you forget to copy the operators to your MXNet folder
or you forget to re-compile MXNet and re-install MXNet python interface
or you install the wrong MXNet
Please print mxnet.__path__ to make sure you use correct MXNet
Q: I encounter incubator-mxnet/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh:110: Check failed: err == cudaSuccess (7 vs. 0) Name: MapPlanKernel ErrStr:too many resources requested for launch at the begining.
A: Please try adding MSHADOW_CFLAGS += -DMSHADOW_OLD_CUDA=1 in mxnet/mshadow/make/mshadow.mk and re-compile MXNet.
149 followers · starred Aug 2018
12,858 followers · starred Jan 2018
506 followers · starred Oct 2017
115 followers · starred Jun 2018