0

我想为 YOLOv4 构建暗网。我的配置是:win10、microsoft visual studio code 2019、openCV 4.5.1、cuda和cudnn 11.2。我遵循了一些教程,当我尝试构建“yolo_cpp_dll. vcxproj" 与 Visual Studio 代码我得到这个 11 错误

严重性代码描述项目文件行抑制状态错误MSB3721命令“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc.exe”-gencode=arch=compute_30,code="sm_30,compute_30 " -gencode=arch=compute_75,code="sm_75,compute_75" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28. 29333\bin\HostX86\x64" -x cu -I\include -IC:\opencv_3.0\opencv\build\include -I....\include -I....\3rdparty\stb\include -I ....\3rdparty\pthreads\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11. 2\include" -I\include -I\include -I"C:\Program Files\NVIDIA GPU 计算工具包\CUDA\v11.2\include"--keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -DCUDNN_HALF -DCUDNN -DGPU -DLIB_EXPORTS -D_TIMESPEC_DEFINED -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DWIN32 -DNDEBUG -D_CONSOLE -D_LIB -D_WINDLL -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Fdx64\DLL_Release\vc142.pdb /FS /MD " -o x64\DLL_Release\activation_kernels.cu.obj "C:\Users\user\Documents\Pen1\darknet\src\activation_kernels .cu"" 以代码 1 退出。yolo_cpp_dll C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets 785目标 785目标 785\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets 785\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets 785

请帮助,如何解决这个问题?或者任何人都知道如何使用我的配置构建暗网?

4

0 回答 0