windows下 需要环境
cython
git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI&egg=pycocotools
torch>=1.5.0
torchvision>=0.6.0
git+https://github.com/cocodataset/panopticapi.git#egg=panopticapi
scipy
onnx
onnxruntime
1.cython
pip install Cython
2.torch torchvision
我是在Windows下,安装的cuda10.2,大家可以自行参考,或者上pytorch官网查看,还是很好用的。找自己指定版本,或者自己修改到指定版本。
pip install torch==1.9.1+cu102 torchvision==0.10.1+cu102 torchaudio -f https://download.pytorch.org/whl/cu102/torch_stable.html
3.pycocotools
官方连接给的只能在Linux下,Windows有大佬修改出来了,下带连接https://github.com/philferriere/cocoapi。
先下载,之后编译,已经测试安装成功。
cd coco/PythonAPI # 根据自己的下载路径
# install pycocotools locally
python setup.py build_ext --inplace
4.panopticapi
相对好装很多,先下载,在安装
pip install .\panopticapi-master.zip
5.scipy onnx onnxruntime
pip install scipy onnx onnxruntime