close

先下載開源碼

https://github.com/matterport/Mask_RCNN

解壓縮到某一個硬碟

下載已經訓練好的權重 :

https://github.com/matterport/Mask_RCNN/releases/download/v2.0/mask_rcnn_coco.h5

放到剛剛的資料夾,通常是Mask_RCNN-master

安裝必要的包

conda create -n MaskRCNN python=3.6

activate Maskrcnn

pip install tensorflow==1.6.0

pip install numpy==1.18.1

pip install opencv-python

pip install keras==2.1.6

pip install scipy

pip install matplotlib

pip install imgaug

pip install Cython

pip install scikit-image

https://docs.floydhub.com/guides/environments/

如果imgaug安裝失敗, 傳送門

http://tn00343140a.pixnet.net/blog/post/278257384-win-10%E5%AE%89%E8%A3%9Dimgaug%E7%99%BC%E7%94%9F%E9%8C%AF%E8%AA%A4

下載Pycocotools

https://github.com/philferriere/cocoapi

擷取.PNG

把Pycocotools解壓縮到MASK_RCNN資料夾下

擷取.PNG

進入cocoapi-master\PythonAPI輸入

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

不過要記得先安裝git

如果這裡有問題, 可以參考我之前的文章

傳送門 :

http://tn00343140a.pixnet.net/blog/post/278251784-win-10-%e5%ae%89%e8%a3%9dpycocotools%e7%99%bc%e7%94%9f%e9%8c%af%e8%aa%a4%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95#comment-2255981

 

擷取.PNG

然後在Mask_RCNN-master目錄下輸入:

python setup.py install

看到成功就OK了~

擷取.PNG

然後打開jupyter notebook

擷取.PNG

打開sample\demo.py

擷取.PNG

一步一步運行就可以得到這樣的結果

下載 (1).png

 

 

 

arrow
arrow

    張郎屋 發表在 痞客邦 留言(0) 人氣()