初探Mask RCNN

作者: MrGiovanni | 来源:发表于2018-03-20 00:08 被阅读725次

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介绍与实现)

相关文章

网友评论

    本文标题:初探Mask RCNN

    本文链接:https://www.haomeiwen.com/subject/qawmqftx.html