Git Product home page Git Product logo

pycenternet's Introduction

pycenternet's People

Contributors

duankaiwen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pycenternet's Issues

error: command '/usr/bin/gcc' failed with exit code 1

Error executing this instruction:python setup.py develop(./PyCenterNet-master/code/mmpycocotools)
running develop
/home/fdx/anaconda3/envs/pycent/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/fdx/anaconda3/envs/pycent/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
creating mmpycocotools.egg-info
writing mmpycocotools.egg-info/PKG-INFO
writing dependency_links to mmpycocotools.egg-info/dependency_links.txt
writing requirements to mmpycocotools.egg-info/requires.txt
writing top-level names to mmpycocotools.egg-info/top_level.txt
writing manifest file 'mmpycocotools.egg-info/SOURCES.txt'
reading manifest file 'mmpycocotools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mmpycocotools.egg-info/SOURCES.txt'
running build_ext
building 'pycocotools._mask' extension
creating build
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/common
creating build/temp.linux-x86_64-cpython-38/pycocotools
gcc -pthread -B /home/fdx/anaconda3/envs/pycent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/fdx/anaconda3/envs/pycent/lib/python3.8/site-packages/numpy/core/include -Icommon -I/home/fdx/anaconda3/envs/pycent/include/python3.8 -c common/maskApi.c -o build/temp.linux-x86_64-cpython-38/common/maskApi.o
common/maskApi.c: In function ‘rleToBbox’:
common/maskApi.c:141:31: warning: ‘xp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(j%2==0) xp=x; else if(xp<x) { ys=0; ye=h-1; }
^
gcc -pthread -B /home/fdx/anaconda3/envs/pycent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/fdx/anaconda3/envs/pycent/lib/python3.8/site-packages/numpy/core/include -Icommon -I/home/fdx/anaconda3/envs/pycent/include/python3.8 -c pycocotools/_mask.c -o build/temp.linux-x86_64-cpython-38/pycocotools/_mask.o
gcc: error: pycocotools/_mask.c: 没有那个文件或目录
error: command '/usr/bin/gcc' failed with exit code 1

Error in train

ImportError: cannot import name 'corner_pool_ext' from partially initialized module 'mmdet.ops.corner_pool' (most likely due to a circular import)
I met the error when i am going to start a train.I haven't figure out what the problem is.

loss_sem

what 's the mean of loss_sem?

PyCenterNet-Fast-Head

Hi, is there no representation of central features in pycenterfasthead, only representation of top-left and bottom-right features.

FileNotFoundError: [Errno 2] No such file or directory: 'README.md'

Hello, when I install mmdet and run setup.py I find that the readme.md file is missing

code: python setup.py develop
Traceback (most recent call last):
File "setup.py", line 133, in
long_description=readme(),
File "setup.py", line 11, in readme
with open('README.md', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'

Welcome update to OpenMMLab 2.0

Welcome update to OpenMMLab 2.0

I am Vansin, the technical operator of OpenMMLab. In September of last year, we announced the release of OpenMMLab 2.0 at the World Artificial Intelligence Conference in Shanghai. We invite you to upgrade your algorithm library to OpenMMLab 2.0 using MMEngine, which can be used for both research and commercial purposes. If you have any questions, please feel free to join us on the OpenMMLab Discord at https://discord.gg/amFNsyUBvm or add me on WeChat (van-sin) and I will invite you to the OpenMMLab WeChat group.

Here are the OpenMMLab 2.0 repos branches:

OpenMMLab 1.0 branch OpenMMLab 2.0 branch
MMEngine 0.x
MMCV 1.x 2.x
MMDetection 0.x 、1.x、2.x 3.x
MMAction2 0.x 1.x
MMClassification 0.x 1.x
MMSegmentation 0.x 1.x
MMDetection3D 0.x 1.x
MMEditing 0.x 1.x
MMPose 0.x 1.x
MMDeploy 0.x 1.x
MMTracking 0.x 1.x
MMOCR 0.x 1.x
MMRazor 0.x 1.x
MMSelfSup 0.x 1.x
MMRotate 1.x 1.x
MMYOLO 0.x

Attention: please create a new virtual environment for OpenMMLab 2.0.

About Center Pooling

I am very interested in the implementation code for Center Pooling. Could you tell me where its implementation is?

Problem when try to install mmcv

Hi, i have the next error when i try to install mmcv following the instructions of the github:

MMCV_WITH_OPS=1 pip install -e .

Obtaining file:///home/dmaureira/PyCenterNet/code/mmcv
Preparing metadata (setup.py) ... done
Requirement already satisfied: addict in /home/dmaureira/anaconda3/lib/python3.9/site-packages (from mmcv-full==1.3.9) (2.4.0)
Requirement already satisfied: numpy in /home/dmaureira/anaconda3/lib/python3.9/site-packages (from mmcv-full==1.3.9) (1.21.5)
Requirement already satisfied: Pillow in /home/dmaureira/anaconda3/lib/python3.9/site-packages (from mmcv-full==1.3.9) (9.2.0)
Requirement already satisfied: pyyaml in /home/dmaureira/anaconda3/lib/python3.9/site-packages (from mmcv-full==1.3.9) (6.0)
Requirement already satisfied: yapf in /home/dmaureira/anaconda3/lib/python3.9/site-packages (from mmcv-full==1.3.9) (0.31.0)
Installing collected packages: mmcv-full
Attempting uninstall: mmcv-full
Found existing installation: mmcv-full 1.3.9
Uninstalling mmcv-full-1.3.9:
Successfully uninstalled mmcv-full-1.3.9
Running setup.py develop for mmcv-full
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
      warnings.warn(
    running develop
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running egg_info
    writing mmcv_full.egg-info/PKG-INFO
    writing dependency_links to mmcv_full.egg-info/dependency_links.txt
    writing requirements to mmcv_full.egg-info/requires.txt
    writing top-level names to mmcv_full.egg-info/top_level.txt
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/utils/cpp_extension.py:411: 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 'mmcv_full.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    adding license file 'LICENSES.md'
    writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
    running build_ext
    building 'mmcv._ext' extension
    creating build/temp.linux-x86_64-cpython-39
    creating build/temp.linux-x86_64-cpython-39/mmcv
    creating build/temp.linux-x86_64-cpython-39/mmcv/ops
    creating build/temp.linux-x86_64-cpython-39/mmcv/ops/csrc
    creating build/temp.linux-x86_64-cpython-39/mmcv/ops/csrc/pytorch
    gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/bbox_overlaps.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/bbox_overlaps.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    /usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/border_align.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/border_align.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    /usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/border_align_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/border_align_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/box_iou_rotated.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/box_iou_rotated.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/box_iou_rotated_cpu.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/box_iou_rotated_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    /usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    ./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu: In function ‘void box_iou_rotated_cuda(at::Tensor, at::Tensor, at::Tensor, int, bool)’:
    ./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu:10:63: 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]
       AT_ASSERTM(boxes1.type().is_cuda(), "boxes1 must be a CUDA tensor");
                                                                   ^
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:213:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    ./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu:11:63: 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]
       AT_ASSERTM(boxes2.type().is_cuda(), "boxes2 must be a CUDA tensor");
                                                                   ^
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:213:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    /usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe_naive.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe_naive.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    /usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe_naive_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe_naive_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    /home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign
    
    gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/cc_attention.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/cc_attention.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    /usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/cc_attention_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/cc_attention_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    ./mmcv/ops/csrc/pytorch/cc_attention_cuda.cu:4:10: fatal error: THC/THC.h: No existe el archivo o el directorio
     #include <THC/THC.h>
              ^~~~~~~~~~~
    compilation terminated.
    error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

Rolling back uninstall of mmcv-full
Moving to /home/dmaureira/anaconda3/lib/python3.9/site-packages/mmcv-full.egg-link
from /tmp/pip-uninstall-7qr0h_v6/mmcv-full.egg-link
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
/home/dmaureira/anaconda3/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running develop
/home/dmaureira/anaconda3/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/dmaureira/anaconda3/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing mmcv_full.egg-info/PKG-INFO
writing dependency_links to mmcv_full.egg-info/dependency_links.txt
writing requirements to mmcv_full.egg-info/requires.txt
writing top-level names to mmcv_full.egg-info/top_level.txt
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/utils/cpp_extension.py:411: 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 'mmcv_full.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'LICENSES.md'
writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
running build_ext
building 'mmcv.ext' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/mmcv
creating build/temp.linux-x86_64-cpython-39/mmcv/ops
creating build/temp.linux-x86_64-cpython-39/mmcv/ops/csrc
creating build/temp.linux-x86_64-cpython-39/mmcv/ops/csrc/pytorch
gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/bbox_overlaps.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/bbox_overlaps.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/bbox_overlaps_cuda.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
_ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/border_align.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/border_align.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/border_align_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/border_align_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/box_iou_rotated.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/box_iou_rotated.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/box_iou_rotated_cpu.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/box_iou_rotated_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu: In function ‘void box_iou_rotated_cuda(at::Tensor, at::Tensor, at::Tensor, int, bool)’:
./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu:10:63: 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]
   AT_ASSERTM(boxes1.type().is_cuda(), "boxes1 must be a CUDA tensor");
                                                               ^
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:213:1: note: declared here
   DeprecatedTypeProperties & type() const {
 ^ ~~
./mmcv/ops/csrc/pytorch/box_iou_rotated_cuda.cu:11:63: 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]
   AT_ASSERTM(boxes2.type().is_cuda(), "boxes2 must be a CUDA tensor");
                                                               ^
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:213:1: note: declared here
   DeprecatedTypeProperties & type() const {
 ^ ~~
gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe_naive.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe_naive.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/carafe_naive_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/carafe_naive_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning: integer conversion resulted in a change of sign

gcc -pthread -B /home/dmaureira/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -I/home/dmaureira/anaconda3/include -fPIC -O2 -isystem /home/dmaureira/anaconda3/include -fPIC -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/cc_attention.cpp -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/cc_attention.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/usr/local/cuda/bin/nvcc -DMMCV_WITH_CUDA -I/home/dmaureira/PyCenterNet/code/mmcv/mmcv/ops/csrc -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/TH -I/home/dmaureira/anaconda3/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/dmaureira/anaconda3/include/python3.9 -c ./mmcv/ops/csrc/pytorch/cc_attention_cuda.cu -o build/temp.linux-x86_64-cpython-39/./mmcv/ops/csrc/pytorch/cc_attention_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
./mmcv/ops/csrc/pytorch/cc_attention_cuda.cu:4:10: fatal error: THC/THC.h: No existe el archivo o el directorio
 #include <THC/THC.h>
          ^~~~~~~~~~~
compilation terminated.
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

training log

Could you please provide the training log for the setting in pycenternet_r50_fpn_giou_1x_coco.py?
Thank you.

add web demo/model to Huggingface

Hi, would you be interested in adding PyCenterNet to Hugging Face? The Hub offers free hosting, and it would make your work more accessible and visible to the rest of the ML community. Models/datasets/spaces(web demos) can be added to a user account or organization similar to github.

Example from other organizations:
Keras: https://huggingface.co/keras-io
Microsoft: https://huggingface.co/microsoft
Facebook: https://huggingface.co/facebook

Example spaces with repos:
github: https://github.com/salesforce/BLIP
Spaces: https://huggingface.co/spaces/salesforce/BLIP

github: https://github.com/facebookresearch/omnivore
Spaces: https://huggingface.co/spaces/akhaliq/omnivore

and here are guides for adding spaces/models/datasets to your org

How to add a Space: https://huggingface.co/blog/gradio-spaces
how to add models: https://huggingface.co/docs/hub/adding-a-model
uploading a dataset: https://huggingface.co/docs/datasets/upload_dataset.html

Please let us know if you would be interested and if you have any questions, we can also help with the technical implementation.

sem_feat, hem_feat and network architecture ?

I've read your paper and the network architecture in the paper. But when I read the code pycenternet_head.py, I find it so hard to understand.

For example,

  • what is the meaning of sem_feat? why do you add it to tl_cls_feat, br_cls_feat, tl_pts_feat, br_pts_feat ?
  • what is the meaning of hem_feat?
    • why do you extract so many "out"s from it , then merge the "out"s into hem_feat,
    • and again, add it to tl_cls_feat, br_cls_feat, tl_pts_feat, br_pts_feat ?

Seems like your paper lacks explanations for these designs.

Can you provide a detailed vesion of head architecture?

How to change cuda_ids?

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:7 and cuda:0!

Error in SEPFocalLoss

Hi, I got an error in SEPFLoss, The input dimensions are 1814400 and 3628800, I don't know how to solve it, can you provide any advice? Thanks!

Traceback (most recent call last):
  File "/home/fqq/Project/15-PyCenterNet/code/tools/train.py", line 189, in <module>
    main()
  File "/home/fqq/Project/15-PyCenterNet/code/tools/train.py", line 178, in main
    train_detector(
  File "/home/fqq/Project/15-PyCenterNet/code/mmdet/apis/train.py", line 185, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/home/fqq/Anconda/envs/PyCenterNet/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 128, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/fqq/Anconda/envs/PyCenterNet/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 51, in train
    self.run_iter(data_batch, train_mode=True, **kwargs)
  File "/home/fqq/Anconda/envs/PyCenterNet/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 29, in run_iter
    outputs = self.model.train_step(data_batch, self.optimizer,
  File "/home/fqq/Anconda/envs/PyCenterNet/lib/python3.8/site-packages/mmcv/parallel/data_parallel.py", line 75, in train_step
    return self.module.train_step(*inputs[0], **kwargs[0])
  File "/home/fqq/Project/15-PyCenterNet/code/mmdet/models/detectors/base.py", line 247, in train_step
    losses = self(**data)
  File "/home/fqq/Anconda/envs/PyCenterNet/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/fqq/Anconda/envs/PyCenterNet/lib/python3.8/site-packages/mmcv/runner/fp16_utils.py", line 109, in new_func
    return old_func(*args, **kwargs)
  File "/home/fqq/Project/15-PyCenterNet/code/mmdet/models/detectors/base.py", line 181, in forward
    return self.forward_train(img, img_metas, **kwargs)
  File "/home/fqq/Project/15-PyCenterNet/code/mmdet/models/detectors/pycenternet_detector.py", line 40, in forward_train
    losses = self.bbox_head.loss(
  File "/home/fqq/Project/15-PyCenterNet/code/mmdet/models/dense_heads/pycenternet_head.py", line 1018, in loss
    loss_sem = self.loss_sem(concat_sem_scores, concat_gt_sem_map, concat_gt_sem_weights,
  File "/home/fqq/Anconda/envs/PyCenterNet/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/fqq/Project/15-PyCenterNet/code/mmdet/models/losses/focal_loss.py", line 235, in forward
    loss_cls = self.loss_weight * separate_sigmoid_focal_loss(
  File "/home/fqq/Project/15-PyCenterNet/code/mmdet/models/losses/focal_loss.py", line 73, in separate_sigmoid_focal_loss
    pos_pred = pred_sigmoid[pos_inds]
IndexError: The shape of the mask [3628800] at index 0 does not match the shape of the indexed tensor [1814400] at index 0

Error in validation

I'm sorry to bother you again, following your advice I managed to complete the training section, but when I did the validation, a new error was reported.

File "/server8/gyl/Data_clean/PyCenterNet-master/code/mmdet/models/detectors/base.py", line 183, in forward
return self.forward_test(img, img_metas, **kwargs)
File "/server8/gyl/Data_clean/PyCenterNet-master/code/mmdet/models/detectors/base.py", line 160, in forward_test
return self.simple_test(imgs[0], img_metas[0], **kwargs)
File "/server8/gyl/Data_clean/PyCenterNet-master/code/mmdet/models/detectors/single_stage.py", line 120, in simple_test
outs, img_metas, rescale=rescale)
File "/server8/gyl/Data_clean/PyCenterNet-master/code/mmdet/models/dense_heads/pycenternet_head.py", line 1082, in get_bboxes
nms)
File "/server8/gyl/Data_clean/PyCenterNet-master/code/mmdet/models/dense_heads/pycenternet_head.py", line 1204, in _get_bboxes_single
tl_bboxes = torch.stack([x1, y1, x2, y2], dim=-1)
RuntimeError: cuda runtime error (700) : an illegal memory access was encountered at /pytorch/aten/src/THC/THCCachingHostAllocator.cpp:278
terminate called after throwing an instance of 'c10::Error'
what(): CUDA error: an illegal memory access was encountered (insert_events at /pytorch/c10/cuda/CUDACachingAllocator.cpp:771)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x46 (0x7f37635b3536 in /nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: c10::cuda::CUDACachingAllocator::raw_delete(void
) + 0x7ae (0x7f37637f6fbe in /nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #2: c10::TensorImpl::release_resources() + 0x4d (0x7f37635a3abd in /nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #3: + 0x523542 (0x7f373883c542 in /nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #4: + 0x5235e6 (0x7f373883c5e6 in /nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/lib/libtorch_python.so)

frame #27: __libc_start_main + 0xe7 (0x7f3778c65c87 in /lib/x86_64-linux-gnu/libc.so.6)

Aborted (core dumped)

realtime model

Hi,

where can I find the configuration for the real time model?

thanks for your works and sharing.
Best,
Vinh

edit: I guess it's this config: pycenternet_r50_fpn_3_levels_giou_fast_adamw_mstrain_6x_coco.py ?

from GIoULoss to CIoULoss

When I modify the loss function of loss_ bbox_ Init and loss_ bbox_ from GIoULoss to CIoULoss, which can be trained but the evaluation result is null .
Can you help me ?

AttributeError: 'PyCenterNetHead' object has no attribute 'init_assigner'

Hi

I'm trying to train the PyCenterNet++ with the "[R2-101]-DCN" backbone, below is the error message and environmental details, for reference:

-----------------------
environmental details
-----------------------

torch.version :- 1.4.0
torch.cuda.is_available() :- True
mmdet.version :- 2.11.0
get_compiling_cuda_version() :- 10.1
get_compiler_version() :- GCC 7.5

-----------------------
error message
-----------------------

image

mmcv error

Hello, something happened when I'm installing mmcv, with
cuda == 11.3
pytorch == 1.11

Installing collected packages: mmcv-full
Running setup.py develop for mmcv-full

adding license file 'LICENSES.md'
writing manifest file 'mmcv_full.egg-info/SOURCES.txt'
running build_ext
building 'mmcv._ext' extension
Emitting ninja build file /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Using envvar MAX_JOBS (4) as the number of workers...
/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
  SetuptoolsDeprecationWarning,
/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/utils/cpp_extension.py:788: UserWarning: The detected CUDA version (11.5) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem.
  warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
[1/41] /usr/local/cuda-11.5/bin/nvcc  -DMMCV_WITH_CUDA -I/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/TH -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.5/include -I/nvme1/anaconda3/envs/gyl_mmdetection/include/python3.7m -c -c /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/cc_attention_cuda.cu -o /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/cc_attention_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/cc_attention_cuda.o
/usr/local/cuda-11.5/bin/nvcc  -DMMCV_WITH_CUDA -I/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/TH -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.5/include -I/nvme1/anaconda3/envs/gyl_mmdetection/include/python3.7m -c -c /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/cc_attention_cuda.cu -o /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/cc_attention_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 -std=c++14
/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/cc_attention_cuda.cu:4:10: fatal error: THC/THC.h: No such file or directory
 #include <THC/THC.h>
          ^~~~~~~~~~~
compilation terminated.
[2/41] c++ -MMD -MF /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/deform_conv.o.d -pthread -B /nvme1/anaconda3/envs/gyl_mmdetection/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/TH -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.5/include -I/nvme1/anaconda3/envs/gyl_mmdetection/include/python3.7m -c -c /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/deform_conv.cpp -o /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/deform_conv.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -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++
[3/41] c++ -MMD -MF /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/contour_expand.o.d -pthread -B /nvme1/anaconda3/envs/gyl_mmdetection/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/TH -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.5/include -I/nvme1/anaconda3/envs/gyl_mmdetection/include/python3.7m -c -c /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/contour_expand.cpp -o /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/contour_expand.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -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++
/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/contour_expand.cpp: In function ‘std::vector<std::vector<int, std::allocator<int> > > contour_expand(at::Tensor, at::Tensor, int, int)’:
/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/contour_expand.cpp:104:15: warning: variable ‘label_map_shape’ set but not used [-Wunused-but-set-variable]
   IntArrayRef label_map_shape = internal_kernel_label.sizes();
               ^~~~~~~~~~~~~~~
[4/41] c++ -MMD -MF /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/corner_pool.o.d -pthread -B /nvme1/anaconda3/envs/gyl_mmdetection/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/TH -I/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.5/include -I/nvme1/anaconda3/envs/gyl_mmdetection/include/python3.7m -c -c /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/mmcv/ops/csrc/pytorch/corner_pool.cpp -o /server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/build/temp.linux-x86_64-3.7/mmcv/ops/csrc/pytorch/corner_pool.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1746, in _run_ninja_build
    env=env)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/setup.py", line 343, in <module>
    zip_safe=False)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 148, in setup
    return run_commands(dist)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
    dist.run_commands()
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
    self.run_command(cmd)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/dist.py", line 1214, in run_command
    super().run_command(command)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
    cmd_obj.run()
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/command/develop.p
    build_ext.build_extensions(self)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
    _build_ext.build_extension(self, ext)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 534, in build_extension
    depends=ext.depends)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 571, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1424, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/nvme1/anaconda3/envs/gyl_mmdetection/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1756, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------

ERROR: Command errored out with exit status 1: /nvme1/anaconda3/envs/gyl_mmdetection/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/setup.py'"'"'; file='"'"'/server8/gyl/Data_clean/PyCenterNet-master/code/mmcv/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.