- 在anaconda的prompt(开始菜单里就能找到)中执行“conda create -n MaskRCNN2 python=3.6 ”得到一个名为MaskRCNN2的基于python3.6的环境(anaconda去官网下载就好)
2. 升级pip “python –m pip install --upgrade pip”
3. 安装maskrcnn所需要的包 :numpy,scipy,cython,h5py,Pillow,scikit-image, keras,theano,jupyter,six
对应命令行中指令“pip install numpy”,“pip install scipy”,“pip install cython”....其余的同理都是 pip install +对应包名
4. 安装GPU版本tensorflow
注意跟cuda和cudnn版本对应,比如我装的是tensorflow1.5.0 GPU版+Cuda9.0+Cudnn v7.0.5
其中tensorflow1.5.0 GPU:“pip install tensorflow-gpu==1.5.0”
5. 安装pycocotools
从官网上下载Git安装包并安装,官方链接:https://git-scm.com/downloads;然后执行以下命令:
git clone https://github.com/philferriere/cocoapi.git;
然后安装Visual C++ 2015 build tools;再执行以下命令:
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
6. 安装OpenCV和imgaug
OpenCV的话直接在anaconda中environment界面添加就好了,选好之后点击下方的apply
安装imgaug的命令:pip install imgaug(conda install imgaug)