本文主要是介绍Windows10 DCNv2编译,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
我的环境是,cuda10.1,python3.7,pytorch1.7.1,为了跑FairMOT模型,需要编译DCNv2,在windows上编译报错,最后成功解决。
错误:
RuntimeError: Error compiling objects for extension
1.下载DCNv2模型
https://github.com/jinfagang/DCNv2_latest
2.下载安装vs2017,测试了2015,2019都不行
打开命令行工具
3.进入到dcnv2-master目录,models\networks\dcnv2-master
运行python setup.py build develop
报错:
UserWarning: It seems that the VC environment is activated but DISTUTILS_USE_SDK is not set.This may lead to multiple activations of the VC env.Please set `DISTUTILS_USE_S
这篇关于Windows10 DCNv2编译的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!