bunnybunny_ 2022-01-27 17:02
浏览 290
已结题

编译DCNv2时报错无法打开输入文件vision.obj

环境
python3.7  CUDA10.0 torch1.5 
输入python setup.py build develop后

pycharm运行结果及报错内容

(pytorch) D:\PyCharm\MyProjects\JCCL\models\DCNv2>python setup.py build develop
running build
running build_ext
building '_ext' extension
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cpu
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cuda
Emitting ninja build file D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.2
creating D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\lib.win-amd64-3.7
D:\Microsoft Visual Studio2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\anaconda3.7\envs\pyto
rch\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib/x64" /LIBPATH:D:\anaconda3.7\envs\pytorch\libs /LIBPATH:D:\anaconda3.7\envs\pytorch\
PCbuild\amd64 "/LIBPATH:D:\Microsoft Visual Studio2017\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:D:\Microsoft Visual Studio2017\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\P
rogram Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib
\10.0.17763.0\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda.lib /EXPORT:PyInit__ext D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-am
d64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\vision.obj D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cpu\d
cn_v2_cpu.obj D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cuda\dcn_v2_cuda.obj D:\PyCharm\MyProjects\JCCL\models\DCNv
2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\cuda\dcn_v2_im2col_cuda.obj D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\My
Projects\JCCL\models\DCNv2\src\cuda\dcn_v2_psroi_pooling_cuda.obj /OUT:build\lib.win-amd64-3.7\_ext.cp37-win_amd64.pyd /IMPLIB:D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64
-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\_ext.cp37-win_amd64.lib
LINK : fatal error LNK1181: 无法打开输入文件“D:\PyCharm\MyProjects\JCCL\models\DCNv2\build\temp.win-amd64-3.7\Release\PyCharm\MyProjects\JCCL\models\DCNv2\src\vision.obj”
error: command 'D:\\Microsoft Visual Studio2017\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 2月4日
    • 创建了问题 1月27日

    悬赏问题

    • ¥15 用visualstudio2022创建vue项目后无法启动
    • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
    • ¥500 把面具戴到人脸上,请大家贡献智慧
    • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
    • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
    • ¥30 c#打开word开启修订并实时显示批注
    • ¥15 如何解决ldsc的这条报错/index error
    • ¥15 VS2022+WDK驱动开发环境
    • ¥30 关于#java#的问题,请各位专家解答!
    • ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并