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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章