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
I have a problem during installation.
When I typed "python3 setup.py build develop" which is the last instruction of installation,
I got an error like below
running build
running build_py
running build_ext
building 'detectron2._C' extension
gcc -pthread -B /home/dek/miniconda2/envs/bcnet_for_clumpping/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/TH -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/THC -I/home/dek/miniconda2/envs/bcnet_for_clumpping/include/python3.7m -c /data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp -o build/temp.linux-x86_64-3.7/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0,
from /home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign.h:3,
from /data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:3:
/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp: In lambda function:
/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:116:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations]
at::ScalarType _st = ::detail::scalar_type(the_type); \
^
/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:429:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "ROIAlign_forward", [&] {
^
/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:31:23: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^~~~~~~~~~~
/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp: In lambda function:
/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:116:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations]
at::ScalarType _st = ::detail::scalar_type(the_type); \
^
/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:481:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(grad.type(), "ROIAlign_forward", [&] {
^
/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:31:23: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^~~~~~~~~~~
/usr/bin/nvcc -DWITH_CUDA -I/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/TH -I/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/THC -I/home/dek/miniconda2/envs/bcnet_for_clumpping/include/python3.7m -c /data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cuda.cu -o build/temp.linux-x86_64-3.7/data2/dek_data/BCNet_for_clumpping/detectron2/layers/csrc/ROIAlign/ROIAlign_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -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_70,code=sm_70 -std=c++11
/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/c10/core/TensorTypeSet.h(44): warning: integer conversion resulted in a change of sign
/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/c10/core/TensorTypeSet.h(44): warning: integer conversion resulted in a change of sign
/usr/include/c++/6/tuple: In instantiation of ‘static constexpr bool std::_TC<<anonymous>, _Elements>::_MoveConstructibleTuple() [with _UElements = {std::tuple<at::Tensor, at::Tensor, at::Tensor>}; bool <anonymous> = true; _Elements = {at::Tensor, at::Tensor, at::Tensor}]’:
/usr/include/c++/6/tuple:626:248: required by substitution of ‘template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), at::Tensor, at::Tensor, at::Tensor>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), at::Tensor, at::Tensor, at::Tensor>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), at::Tensor, at::Tensor, at::Tensor>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type <anonymous> > constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::tuple<at::Tensor, at::Tensor, at::Tensor>}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), at::Tensor, at::Tensor, at::Tensor>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), at::Tensor, at::Tensor, at::Tensor>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), at::Tensor, at::Tensor, at::Tensor>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type <anonymous> = <missing>]’
/home/dek/miniconda2/envs/bcnet_for_clumpping/lib/python3.7/site-packages/torch/include/ATen/core/TensorMethods.h:5613:173: required from here
/usr/include/c++/6/tuple:483:67: error: mismatched argument pack lengths while expanding ‘std::is_constructible<_Elements, _UElements&&>’
return __and_<is_constructible<_Elements, _UElements&&>...>::value;
^~~~~
/usr/include/c++/6/tuple:484:1: error: body of constexpr function ‘static constexpr bool std::_TC<<anonymous>, _Elements>::_MoveConstructibleTuple() [with _UElements = {std::tuple<at::Tensor, at::Tensor, at::Tensor>}; bool <anonymous> = true; _Elements = {at::Tensor, at::Tensor, at::Tensor}]’ not a return-statement
}
^
...
error: command '/usr/bin/nvcc' failed with exit code 1
Hi, @lkeab
I have a problem during installation.
When I typed "python3 setup.py build develop" which is the last instruction of installation,
I got an error like below
It seems that there is a issue with gcc or CUDA version according to facebookresearch/maskrcnn-benchmark#25
Can you give a tip for this?
Sincerely
Dek
The text was updated successfully, but these errors were encountered: