前期准备
1.没有anaconda,安装anaconda
2.安装cuda和cudnn,本文以cuda10.1为例
3.没有visual studio ,安装visual studio(本人安装了通用windows平台开发,使用c++桌面开发工具,使用c++的移动开发)
环境创建
1.使用conda创建一个yolact虚拟环境
2.pip install cython
3.pip install opencv-python pillow pycocotools matplotlib
4.安装torch,注意版本与cuda版本对应
pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn/simple