Mask-RCNN代码安装,调试与测试

0.准备数据集

参考博客:
图像分割 | FCN数据集制作的全流程(图像标注)
http://blog.csdn.net/u010402786/article/details/72883421
FCN制作自己的数据集、训练和测试全流程
http://blog.csdn.net/zoro_lov3/article/details/74550735
Mask RCNN训练自己的数据集
http://blog.csdn.net/l297969586/article/details/79140840

1. Github:FastMaskRCNN

该代码基于tensorflow框架,使用前请安装tensorflow必要环境

安装与调试(Windows环境)
(1)MAKE编译工具安装
make命令是Linux环境下的命令,Windows环境下实用需要使用第三方工具,下载MinGW工具,添加环境变量“C:\MinGW\bin”至Path
具体可参考
http://blog.csdn.net/pdcxs007/article/details/8582559
http://blog.csdn.net/Millet827/article/details/26447095

(2)Cython环境安装
利用Pip命令安装,管理员身份打开cmd客户端,输入以下命令

pip install cython

Cython调试时会出现很多问题,请参考以下博客资料解决
http://blog.csdn.net/productshop/article/details/50477500
http://blog.csdn.net/a472770699/article/details/52593991?locationNum=14&fps=1

2.Github:Mask_RCNN

该代码是基于Python3,Keras,Tensorflow框架进行编写的

安装与调试(Windows环境)
根据ReadME文档安装相应库,python3, tensorflow, Keras等,安装方法即

$ pip install modulename

存在的问题
(1)运行demo代码时出现Moudule Not Found: pycocotools错误
在windows下需要安装MS VC++ Build Tools 2015进行编译,并下载更改后的适用于Windows系统的COCO Python API。
PS:提前安装git安装包并添加到Path环境变量路径中。

$ pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Collecting pycocotools from git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
  Cloning https://github.com/philferriere/cocoapi.git to c:\users\pferr\appdata\local\temp\pip-build-6n1mxmto\pycocotools
Installing collected packages: pycocotools
  Running setup.py install for pycocotools ... done
Successfully installed pycocotools-2.0

3.其他代码:

官方代码暂时没有,其他Github代码:

https://github.com/felixgwu/mask_rcnn_pytorch
https://github.com/CharlesShang/FastMaskRCNN
https://github.com/xilaili/maskrcnn.mxnet
https://github.com/TuSimple/mx-maskrcnn

参考资料:
1.浅入浅出TensorFlow 8 - 行人分割
http://blog.csdn.net/linolzhang/article/details/70306708

你可能感兴趣的:(Mask-RCNN,Object,detection)