初探Mask RCNN

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


References.

TensorFlow实战:Chapter-8上(Mask R-CNN介绍与实现)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容