You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, I'm trying compile the code in windows 10,cuda10.1,vs2019, and I followed the guidance of: https://github.com/MrGF/py-faster-rcnn-windows
when I was complie the gpu_nms, the original setup need two file 'nms/gpu_nms_kernel.cu', 'nms/gpu_nms.pyx', here is the original code:
“cudamat_ext = Extension('nms.gpu_nms',
['nms/gpu_nms_kernel.cu', 'nms/gpu_nms.pyx'],
language='c++',
libraries=cuda_libs,
extra_compile_args=nvcc_compile_args,
include_dirs = [numpy_include, 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include'])”
hi, I'm trying compile the code in windows 10,cuda10.1,vs2019, and I followed the guidance of:
https://github.com/MrGF/py-faster-rcnn-windows
when I was complie the gpu_nms, the original setup need two file 'nms/gpu_nms_kernel.cu', 'nms/gpu_nms.pyx', here is the original code:
“cudamat_ext = Extension('nms.gpu_nms',
['nms/gpu_nms_kernel.cu', 'nms/gpu_nms.pyx'],
language='c++',
libraries=cuda_libs,
extra_compile_args=nvcc_compile_args,
include_dirs = [numpy_include, 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include'])”
Error:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe --compiler-bindir "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64" -c -IC:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\numpy\core\include "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\ProgramData\Anaconda3\envs\tensorflow\include -IC:\ProgramData\Anaconda3\envs\tensorflow\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" -o build\temp.win-amd64-3.7\Release\nms\gpu_nms.obj -O3 --ptxas-options=-v -arch=sm_75 -c --compiler-options=/nologo,/Ox,/W3,/GL,/DNDEBUG,/MD,/EHsc,/Tpnms\gpu_nms.cpp
nvcc fatal : No input files specified; use option --help for more information
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe' failed with exit status 1
I changed the code, deleted, 'nms/gpu_nms.pyx' like https://github.com/MrGF/py-faster-rcnn-windows dose, the changed code :
“cudamat_ext = Extension('nms.gpu_nms',
['nms/gpu_nms_kernel.cu'],
language='c++',
libraries=cuda_libs,
extra_compile_args=nvcc_compile_args,
include_dirs = [numpy_include, 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include'])”
and error :
nsorflow\libs -LC:\ProgramData\Anaconda3\envs\tensorflow\PCbuild\amd64 "-LC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x64" "-LC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x64" "-LC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" "-LC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x64" "-LC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x64" "-LC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" -lcublas build\temp.win-amd64-3.7\Release\nms/nms_kernel.obj -o build\lib.win-amd64-3.7\nms\gpu_nms.cp37-win_amd64.pyd --linker-options=/nologo,/INCREMENTAL:NO,/LTCG,/MANIFEST:EMBED,ID=2,/MANIFESTUAC:NO,/IMPLIB:build\temp.win-amd64-3.7\Release\nms\gpu_nms.cp37-win_amd64.lib,/NODEFAULTLIB:libcmt.lib
nms_kernel.obj
LINK : fatal error LNK1181: 无法打开输入文件“ID=2.obj”
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe' failed with exit status 2
Followed the guidance of https://blog.csdn.net/jacke121/article/details/79284083?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.not_use_machine_learn_pai&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.not_use_machine_learn_pai
copy the command , deleted ID=2.obj and run in the cmd successfully,
dose all those changed make influence to final use ? Especially deleted the pyx in the code.
I'll be very appreciate if you have any reply, thank you!
The text was updated successfully, but these errors were encountered: