facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
30.55k stars 7.49k forks source link

error when I install detectron2 #723

Closed yustaub closed 4 years ago

yustaub commented 4 years ago

If you do not know the root cause of the problem / bug, and wish someone to help you, please post according to this template:

Instructions To Reproduce the Issue:

  1. what changes you made (git diff) or what code you wrote
    I didn't change any code now
  2. what exact command you run: cd detectron2 && pip install -e .
  3. what you observed (including the full logs):
    Installing collected packages: detectron2
    Running setup.py develop for detectron2
    ERROR: Command errored out with exit status 1:
     command: /home/yuwentao/anaconda3/envs/py36det/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yuwentao/ml_test/detectron2/setup.py'"'"'; __file__='"'"'/home/yuwentao/ml_test/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: /home/yuwentao/ml_test/detectron2/
    Complete output (249 lines):
    running develop
    running 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
    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.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/home
    creating build/temp.linux-x86_64-3.6/home/yuwentao
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/ROIAlign
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/ROIAlignRotated
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/box_iou_rotated
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/nms_rotated
    creating build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable
    gcc -pthread -B /home/yuwentao/anaconda3/envs/py36det/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc -I/home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include -I/home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/TH -I/home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/yuwentao/anaconda3/envs/py36det/include/python3.6m -c /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/vision.cpp -o build/temp.linux-x86_64-3.6/home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/vision.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/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:19:0,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/core/MemoryFormat.h:5,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:5,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:11,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                     from /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/vision.cpp:3:
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:17:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 5 or later."
     #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 5 or later."
      ^
    In file included from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/typeid.h:27:0,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h:6,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/core/Scalar.h:9,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:7,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:11,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/ATen.h:5,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                     from /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/vision.cpp:3:
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/TypeIndex.h:31:2: error: #error "You're running a too old version of GCC. We need GCC 5 or later."
     #error "You're running a too old version of GCC. We need GCC 5 or later."
      ^
    In file included from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/core/Device.h:5:0,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/ATen/ATen.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
                     from /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                     from /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/vision.cpp:3:
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h: In function ‘int detectron2::deform_conv_forward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, int)’:
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:136:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:136:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:137:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:137:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h: In function ‘int detectron2::deform_conv_backward_input(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, int)’:
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:184:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:184:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:185:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:185:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:186:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:186:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h: In function ‘int detectron2::deform_conv_backward_filter(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, float, int)’:
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:234:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:234:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:235:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:235:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h: In function ‘void detectron2::modulated_deform_conv_forward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, bool)’:
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:284:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:284:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:285:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(bias.type().is_cuda(), "bias tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:285:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(bias.type().is_cuda(), "bias tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:286:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:286:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h: In function ‘void detectron2::modulated_deform_conv_backward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, bool)’:
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:341:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:341:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(input.type().is_cuda(), "input tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:342:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:342:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(weight.type().is_cuda(), "weight tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:343:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(bias.type().is_cuda(), "bias tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:343:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(bias.type().is_cuda(), "bias tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:20: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                        ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:344:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:355:40: warning: ‘void c10::detail::deprecated_AT_CHECK()’ is deprecated (declared at /home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330) [-Wdeprecated-declarations]
         ::c10::detail::deprecated_AT_CHECK();                 \
                                            ^
    /home/yuwentao/ml_test/detectron2/detectron2/layers/csrc/deformable/deform_conv.h:344:5: note: in expansion of macro ‘AT_CHECK’
         AT_CHECK(offset.type().is_cuda(), "offset tensor is not on GPU!");
         ^
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Command errored out with exit status 1: /home/yuwentao/anaconda3/envs/py36det/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yuwentao/ml_test/detectron2/setup.py'"'"'; __file__='"'"'/home/yuwentao/ml_test/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.

Environment:

Please paste the output of python -m detectron2.utils.collect_env. If detectron2 hasn't been successfully installed, use python detectron2/utils/collect_env.py.


sys.platform linux Python 3.6.10 Anaconda, Inc. (default, Jan 7 2020, 21:14:29) [GCC 7.3.0] numpy 1.18.1 detectron2._C failed to import DETECTRON2_ENV_MODULE PyTorch 1.4.0 @/home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch PyTorch debug build False CUDA available True GPU 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 Tesla K80 CUDA_HOME /usr/local/cuda NVCC Cuda compilation tools, release 10.1, V10.1.105 Pillow 6.2.2 torchvision 0.5.0 @/home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torchvision torchvision arch flags sm_35, sm_50, sm_60, sm_70, sm_75 cv2 4.1.2

PyTorch built with:

ppwwyyxx commented 4 years ago

/home/yuwentao/anaconda3/envs/py36det/lib/python3.6/site-packages/torch/include/c10/util/TypeIndex.h:31:2: error: #error "You're running a too old version of GCC. We need GCC 5 or later."

error "You're running a too old version of GCC. We need GCC 5 or later.

The error already says it.