Turoad / CLRNet

Pytorch implementation of our paper "CLRNet: Cross Layer Refinement Network for Lane Detection" (CVPR2022 Acceptance).
Apache License 2.0
479 stars 104 forks source link

I'm having some problems of Error :python setup.py build develop #29

Open SSSRgo opened 2 years ago

SSSRgo commented 2 years ago

"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc" -c ./clrnet/ops/csrc\nms_kernel.cu -o build\temp.win-amd64-3.9\Release./clrnet/ops/csrc\nms_kernel.obj -IH:\ana\envs\swinunet\lib\site-packages\torch\include -IH:\ana\envs\swinunet\lib\site-packages\torch\include\torch\csrc\api\include -IH:\ana\envs\swinunet\lib\site-packages\torch\include\TH -IH:\ana\envs\swinunet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IH:\ana\envs\swinunet\include -IH:\ana\envs\swinunet\Include "-IH:\Microsoft\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.32.31326\ATLMFC\include" "-IH:\Microsoft\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.32.31326\include" "-IH:\Windows Kits\10\include\10.0.19041.0\ucrt" "-IH:\Windows Kits\10\include\10.0.19041.0\shared" "-IH:\Windows Kits\10\include\10.0.19041.0\um" "-IH:\Windows Kits\10\include\10.0.19041.0\winrt" "-IH:\Windows Kits\10\include\10.0.19041.0\cppwinrt" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_impl -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_52,code=compute_52 -gencode=arch=compute_52,code=sm_52 --use-local-env nms_kernel.cu H:/ana/envs/swinunet/lib/site-packages/torch/include\ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

H:/ana/envs/swinunet/lib/site-packages/torch/include\ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

H:/ana/envs/swinunet/lib/site-packages/torch/include\ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

H:/ana/envs/swinunet/lib/site-packages/torch/include\ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

H:\ana\envs\swinunet\lib\site-packages\torch\include\pybind11\cast.h(1429): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here

H:\ana\envs\swinunet\lib\site-packages\torch\include\pybind11\cast.h(1503): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here

2 errors detected in the compilation of "./clrnet/ops/csrc/nms_kernel.cu". error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe' failed with exit code 1

SSSRgo commented 2 years ago

Be hopeful to your reply. Thanks!!!

MySuperSoul commented 2 years ago

Be hopeful to your reply. Thanks!!!

Sorry, we haven't test on windows yet and we don't have windows machine to test it. You'd better try on ubuntu.

SSSRgo commented 2 years ago

thank you, I have solved it.

Zhuanglong2 commented 1 year ago

thank you, I have solved it.

Excuse me, I also encountered this problem, how did you solve it?

reverse-2020 commented 1 year ago

thank you, I have solved it.

i have found the same problem , how can i fix it ? thanks!!