Author: Zongwei Zhou | 周纵苇
Weibo: @MrGiovanni
Email: zongweiz@asu.edu
Credit: matterport/Mask_RCNN
Paper: Mask RCNN
1. Get start
conda create -n mask python=3.5
source activate mask
Requirements
- Python 3.4+
- Tensorflow 1.3+
- Keras 2.0.8+
- Jupyter Notebook
- Numpy, skimage, scipy, Pillow, cython, h5py
cd /your/project/home/
git clone https://github.com/matterport/Mask_RCNN.git
cd Mask_RCNN/
pip install --upgrade pip
pip install keras
pip install --upgrade tensorflow-gpu==1.4
pip install h5py pandas imageio scikit-image ipython pillow
Download the pretrained model from Mask R-CNN 2.0 >> mask_rcnn_coco.h5
urlopen error solution
Traceback (most recent call last):
File "dsb.py", line 22, in <module>
import utils
File "/mnt/.nfs/zongwei/Academic/DSB2018/Mask-RCNN/nesen-rcnn/utils.py", line 20, in <module>
from urllib2 import urlopen
ImportError: No module named 'urllib2'
1. Open utils.py
, go to line 20 and find from urllib2 import urlopen
.
2. Replace this line to
from urllib.request import urlopen
3. Save the change
This solution is credit to Import error: No module name urllib2