目录
4.2 打开simple/demo.ipynb,修改一下代码
1.依赖
安装tensorflow和keras由于版本不兼容走了不少弯路。目前可使用一下版本:
pip install tensorflow==1.9.0 --user
pip install keras==2.0.8 --user
安装pycocotools
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
2.下载源码(python3.4+)
# 克隆源码
git clone https://github.com/matterport/Mask_RCNN.git
# 进入项目目录
cd Mask_RCNN
# 安装依赖
pip3 install -r requirements.txt
# 安装项目
python setup.py install