先检查cuda版本和pytorch版本是否对应
然后重新安装:
python setup.py build --force develop
detectron2 配置记录
原文:https://www.cnblogs.com/QingHuan/p/12024564.html