detectron2 windows 安装
https://github.com/facebookresearch/detectron2官方目前暂时没有提供官方的windows安装教程,这里记录使用中碰到的坑
1. 主要参考
https://github.com/conansherry/detectron2
2. 安装依赖
-
安装已有的包
conda create -n detectron2 python=3.8 conda activate detectron2 conda install pytorch torchvision cudatoolkit=10.2 -c pytorch pip install cython pycocotools-windows fvcore pydot future tensorboard tqdm mock matplotlib cloudpickle tabulate yacs Pillow termcolor opencv-python
-
安装vs2019或者2017,然后执行如下
2019版本执行
set DISTUTILS_USE_SDK=1 set MAX_JOBS=5 "H:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
2017版本执行
set DISTUTILS_USE_SDK=1 set MAX_JOBS