centernet2 win10使用笔记
代码路径:
GitHub - xingyizhou/CenterNet2: Two-stage CenterNet
Our project is developed on detectron2. Please follow the official detectron2 installation. All our code is under projects/CenterNet2/
. In theory, you should be able to copy-paste projects/CenterNet2/
to the latest detectron2 release or your own detectron2 repo to run our project. There might be API changes in future detectron2 releases that make it incompatible.
Detectron2 is continuously built on windows with CircleCI. However we do not provide official support for it. PRs that improves code compatibility on windows are welcome.
安装detectron2:
方法1没成功
pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu100/index.html
去看一下:
https://dl.fbaipublicfiles.com/detectron2/wheels/cu100/index.html
只有linux 安装whl
安装fvcore:
1). Install latest from GitHub
pip install -U 'git+https://github.com/facebookresearch/fvcore'
2). Install from a local clone
-
git clone https://github.com/facebookresearch/fvcore
-
pip install -e fvcore
方法2:
GitHub - conansherry/detectron2: detectron2 windows build
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvars64.bat"
set DISTUTILS_USE_SDK=1
python setup.py build develop
也没成功。
主要报错:
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(14): error: name must be a namespace name
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
方案3也没成功:
-
conda activate {your env}
-
-
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
-
-
git clone https://github.com/conansherry/detectron2
-
-
cd detectron2
-
-
python setup.py build develop
报错:
-
ERROR: Command errored out with exit status 1:
-
command: 'D:\Users\Administrator\miniconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'F:\\project\\detect\\detectron2\\setup.py'"'"'; __file__='"'"'F:\\project\\detect\\detectron2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
-
cwd: F:\project\detect\detectron2\
-
Complete output (105 lines):
-
running develop
-
running egg_info
-
creating detectron2.egg-info
-
writing detectron2.egg-info\PKG-INFO
-
writing dependency_links to detectron2.egg-info\dependency_links.txt
-
writing requirements to detectron2.egg-info\requires.txt
-
writing top-level names to detectron2.egg-info\top_level.txt
-
writing manifest file 'detectron2.egg-info\SOURCES.txt'
-
reading manifest file 'detectron2.egg-info\SOURCES.txt'
-
writing manifest file 'detectron2.egg-info\SOURCES.txt'
-
running build_ext
-
building 'detectron2._C' extension
-
creating build
-
creating build\temp.win-amd64-3.7
-
creating build\temp.win-amd64-3.7\Release
-
creating build\temp.win-amd64-3.7\Release\project
-
creating build\temp.win-amd64-3.7\Release\project\detect
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\box_iou_rotated
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\cocoeval
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\nms_rotated
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\ROIAlignRotated
-
creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\deformable
-
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /TpF:\project\detect\detectron2\detectron2\layers\csrc\vision.cpp /Fobuild\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\vision.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
-
vision.cpp
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
-
d:\users\administrator\miniconda3\lib\site-packages\torch\include\pybind11\detail/common.h(106): warning C4005: “HAVE_SNPRINTF”: 宏重定义
-
d:\users\administrator\miniconda3\include\pyerrors.h(490): note: 参见“HAVE_SNPRINTF”的前一个定义
-
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /TpF:\project\detect\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cpu.cpp /Fobuild\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
-
box_iou_rotated_cpu.cpp
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
-
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /TpF:\project\detect\detectron2\detectron2\layers\csrc\cocoeval\cocoeval.cpp /Fobuild\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\cocoeval\cocoeval.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
-
cocoeval.cpp
-
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /TpF:\project\detect\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cpu.cpp /Fobuild\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
-
nms_rotated_cpu.cpp
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
-
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /TpF:\project\detect\detectron2\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cpu.cpp /Fobuild\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
-
ROIAlignRotated_cpu.cpp
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
-
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe -c F:\project\detect\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cuda.cu -o build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cuda.obj -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.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 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 --use-local-env
-
box_iou_rotated_cuda.cu
-
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe -c F:\project\detect\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda.cu -o build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda.obj -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.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 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 --use-local-env
-
D:/Users/Administrator/miniconda3/lib/site-packages/torch/include\ATen/core/boxing/impl/boxing.h(100): warning: integer conversion resulted in a change of sign
-
-
D:/Users/Administrator/miniconda3/lib/site-packages/torch/include\ATen/core/op_registration/op_whitelist.h(39): warning: integer conversion resulted in a change of sign
-
-
D:/Users/Administrator/miniconda3/lib/site-packages/torch/include\ATen/core/boxing/impl/boxing.h(100): warning: integer conversion resulted in a change of sign
-
-
D:/Users/Administrator/miniconda3/lib/site-packages/torch/include\ATen/core/op_registration/op_whitelist.h(39): warning: integer conversion resulted in a change of sign
-
-
deform_conv_cuda.cu
-
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe -c F:\project\detect\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda_kernel.cu -o build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\deformable\deform_conv_cuda_kernel.obj -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.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 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 --use-local-env
-
deform_conv_cuda_kernel.cu
-
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe -c F:\project\detect\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.cu -o build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.obj -IF:\project\detect\detectron2\detectron2\layers\csrc -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\TH -ID:\Users\Administrator\miniconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -ID:\Users\Administrator\miniconda3\include -ID:\Users\Administrator\miniconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.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 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 --use-local-env
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(14): error: name must be a namespace name
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
-
(105): here
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: type name is not allowed
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
-
(105): here
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): warning: expression has no effect
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
-
(105): here
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(58): warning: variable "cur_box" was set but never used
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
-
(105): here
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
-
(105): here
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: type name is not allowed
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
-
(105): here
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): warning: expression has no effect
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
-
(105): here
-
-
F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(58): warning: variable "cur_box" was set but never used
-
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
-
(105): here
-
-
5 errors detected in the compilation of "F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu".
-
nms_rotated_cuda.cu
-
D:\Users\Administrator\miniconda3\lib\site-packages\torch\utils\cpp_extension.py:288: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
-
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
-
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.0\\bin\\nvcc.exe' failed with exit status 1
-
Error in atexit._run_exitfuncs:
-
Traceback (most recent call last):
-
File "D:\Users\Administrator\miniconda3\lib\site-packages\colorama\ansitowin32.py", line 59, in closed
-
return stream.closed
-
ValueError: underlying buffer has been detached
-
----------------------------------------
-
ERROR: Command errored out with exit status 1: 'D:\Users\Administrator\miniconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'F:\\project\\detect\\detectron2\\setup.py'"'"'; __file__='"'"'F:\\project\\detect\\detectron2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
文章来源: blog.csdn.net,作者:AI视觉网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/120477248
- 点赞
- 收藏
- 关注作者
评论(0)