/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/setuptools/dist.py:484: UserWarning: Normalizing '1.0.rc0+unknown' to '1.0rc0+unknown'
warnings.warn(tmpl.format(**locals()))
running install
running bdist_egg
running egg_info
writing mmdet.egg-info/PKG-INFO
writing dependency_links to mmdet.egg-info/dependency_links.txt
writing requirements to mmdet.egg-info/requires.txt
writing top-level names to mmdet.egg-info/top_level.txt
/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/utils/cpp_extension.py:339: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'mmdet.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'mmdet.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying mmdet/version.py -> build/lib.linux-x86_64-3.7/mmdet
running build_ext
building 'mmdet.ops.nms.nms_cuda' extension
gcc -pthread -B /home/user/anaconda3/envs/RDS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include -I/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/TH -I/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/user/anaconda3/envs/RDS/include/python3.7m -c mmdet/ops/nms/src/nms_cuda.cpp -o build/temp.linux-x86_64-3.7/mmdet/ops/nms/src/nms_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from mmdet/ops/nms/src/nms_cuda.cpp:2:
/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning:ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)
mmdet/ops/nms/src/nms_cuda.cpp: In function ‘at::Tensor nms(const at::Tensor&, float)’:
mmdet/ops/nms/src/nms_cuda.cpp:4:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
mmdet/ops/nms/src/nms_cuda.cpp:9:3: note: in expansion of macro ‘CHECK_CUDA’
CHECK_CUDA(dets);
^~~~~~~~~~
In file included from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from mmdet/ops/nms/src/nms_cuda.cpp:2:
/home/user/anaconda3/envs/RDS/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note:declared here
DeprecatedTypeProperties & type() const {
^~~~
mmdet/ops/nms/src/nms_cuda.cpp:4:23: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
mmdet/ops/nms/src/nms_cuda.cpp:9:3: note: in expansion of macro ‘CHECK_CUDA’
CHECK_CUDA(dets);
^~~~~~~~~~
mmdet/ops/nms/src/nms_cuda.cpp:4:23: note: suggested alternative: ‘DCHECK’
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
mmdet/ops/nms/src/nms_cuda.cpp:9:3: note: in expansion of macro ‘CHECK_CUDA’
CHECK_CUDA(dets);
^~~~~~~~~~
error: command 'gcc' failed with exit status 1
请问你解决了吗?我也出现了这个问题