centernet2 win10使用笔记

举报
风吹稻花香 发表于 2021/09/28 22:54:52 2021/09/28
【摘要】 代码路径: GitHub - xingyizhou/CenterNet2: Two-stage CenterNet Our project is developed on detectron2. Please follow the official detectron2 installation. All...

代码路径:

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


  
  1. git clone https://github.com/facebookresearch/fvcore
  2. 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也没成功:

GitHub - saadhaxxan/Facebook_Detectron2_Windows_10: This repo contains the process of getting started with Facebook FAIR's detectron2 project on windows 10 without any Nvidia GPU.


  
  1. conda activate {your env}
  2. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
  3. git clone https://github.com/conansherry/detectron2
  4. cd detectron2
  5. python setup.py build develop

报错:


  
  1. ERROR: Command errored out with exit status 1:
  2. 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
  3. cwd: F:\project\detect\detectron2\
  4. Complete output (105 lines):
  5. running develop
  6. running egg_info
  7. creating detectron2.egg-info
  8. writing detectron2.egg-info\PKG-INFO
  9. writing dependency_links to detectron2.egg-info\dependency_links.txt
  10. writing requirements to detectron2.egg-info\requires.txt
  11. writing top-level names to detectron2.egg-info\top_level.txt
  12. writing manifest file 'detectron2.egg-info\SOURCES.txt'
  13. reading manifest file 'detectron2.egg-info\SOURCES.txt'
  14. writing manifest file 'detectron2.egg-info\SOURCES.txt'
  15. running build_ext
  16. building 'detectron2._C' extension
  17. creating build
  18. creating build\temp.win-amd64-3.7
  19. creating build\temp.win-amd64-3.7\Release
  20. creating build\temp.win-amd64-3.7\Release\project
  21. creating build\temp.win-amd64-3.7\Release\project\detect
  22. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2
  23. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2
  24. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers
  25. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc
  26. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\box_iou_rotated
  27. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\cocoeval
  28. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\nms_rotated
  29. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\ROIAlignRotated
  30. creating build\temp.win-amd64-3.7\Release\project\detect\detectron2\detectron2\layers\csrc\deformable
  31. 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
  32. vision.cpp
  33. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
  34. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
  35. d:\users\administrator\miniconda3\lib\site-packages\torch\include\pybind11\detail/common.h(106): warning C4005: “HAVE_SNPRINTF”: 宏重定义
  36. d:\users\administrator\miniconda3\include\pyerrors.h(490): note: 参见“HAVE_SNPRINTF”的前一个定义
  37. 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
  38. box_iou_rotated_cpu.cpp
  39. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
  40. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
  41. 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
  42. cocoeval.cpp
  43. 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
  44. nms_rotated_cpu.cpp
  45. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
  46. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
  47. 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
  48. ROIAlignRotated_cpu.cpp
  49. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1319): warning C4522: “at::Tensor”: 指定了多个赋值运算符
  50. D:\Users\Administrator\miniconda3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(389): warning C4101: “e”: 未引用的局部变量
  51. 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
  52. box_iou_rotated_cuda.cu
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. deform_conv_cuda.cu
  59. 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
  60. deform_conv_cuda_kernel.cu
  61. 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
  62. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(14): error: name must be a namespace name
  63. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
  64. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
  65. (105): here
  66. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: type name is not allowed
  67. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
  68. (105): here
  69. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): warning: expression has no effect
  70. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
  71. (105): here
  72. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(58): warning: variable "cur_box" was set but never used
  73. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=double]"
  74. (105): here
  75. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
  76. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
  77. (105): here
  78. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: type name is not allowed
  79. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
  80. (105): here
  81. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): warning: expression has no effect
  82. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
  83. (105): here
  84. F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(58): warning: variable "cur_box" was set but never used
  85. detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
  86. (105): here
  87. 5 errors detected in the compilation of "F:/project/detect/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu".
  88. nms_rotated_cuda.cu
  89. D:\Users\Administrator\miniconda3\lib\site-packages\torch\utils\cpp_extension.py:288: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
  90. warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
  91. error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.0\\bin\\nvcc.exe' failed with exit status 1
  92. Error in atexit._run_exitfuncs:
  93. Traceback (most recent call last):
  94. File "D:\Users\Administrator\miniconda3\lib\site-packages\colorama\ansitowin32.py", line 59, in closed
  95. return stream.closed
  96. ValueError: underlying buffer has been detached
  97. ----------------------------------------
  98. 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

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。