conda create -n adela python=3.7 source activate adela - 安装pytorch1.8.0
conda install pytorch==1.8.0 torchvision==0.9.0 cudatoolkit=10.2 -c pytorch
conda install cudnn
python -m pip install detectron2 -f \
https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.8/index.html
- 安装adelaidet
git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop
总是报错build.ninja nvcc fatal : Unknown option ‘-generate-dependencies-with-compile’ 直接修改setup.py最后一行,不使用ninja:
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension.with_options(use_ninja=False)}
参考https://blog.csdn.net/fengmaomao1991/article/details/118899841 5.修改之后,又按照提示装了几个包,再次python setup.py build develop,成功
结果python demo.py 还是报错!
|