Comments (15)
running build_ext building 'deform_conv_cuda' extension Emitting ninja build file /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] c++ -MMD -MF /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o.d -pthread -B /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/TH -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/include/python3.8 -c -c /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp -o /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o c++ -MMD -MF /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o.d -pthread -B /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/TH -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/include/python3.8 -c -c /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp -o /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=deform_conv_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/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:4: /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/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) /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘void shape_check(at::Tensor, at::Tensor, at::Tensor*, at::Tensor, int, int, int, int, int, int, int, int, int, int)’: /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:66:3: error: ‘AT_CHECK’ was not declared in this scope AT_CHECK(weight.ndimension() == 4, ^~~~~~~~ /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:66:3: note: suggested alternative: ‘DCHECK’ AT_CHECK(weight.ndimension() == 4, ^~~~~~~~ DCHECK /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘int deform_conv_forward_cuda(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, int)’: /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:194:3: error: ‘AT_CHECK’ was not declared in this scope AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset"); ^~~~~~~~ /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:194:3: note: suggested alternative: ‘DCHECK’ AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset"); ^~~~~~~~ DCHECK /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘int deform_conv_backward_input_cuda(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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:301:3: error: ‘AT_CHECK’ was not declared in this scope AT_CHECK((offset.size(0) == batchSize), 3, "invalid batch size of offset"); ^~~~~~~~ /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:301:3: note: suggested alternative: ‘DCHECK’ AT_CHECK((offset.size(0) == batchSize), 3, "invalid batch size of offset"); ^~~~~~~~ DCHECK /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘int deform_conv_backward_parameters_cuda(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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:417:3: error: ‘AT_CHECK’ was not declared in this scope AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset"); ^~~~~~~~ /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:417:3: note: suggested alternative: ‘DCHECK’ AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset"); ^~~~~~~~ DCHECK /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘void modulated_deform_conv_cuda_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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:497:3: error: ‘AT_CHECK’ was not declared in this scope AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous"); ^~~~~~~~ /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:497:3: note: suggested alternative: ‘DCHECK’ AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous"); ^~~~~~~~ DCHECK /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘void modulated_deform_conv_cuda_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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:579:3: error: ‘AT_CHECK’ was not declared in this scope AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous"); ^~~~~~~~ /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:579:3: note: suggested alternative: ‘DCHECK’ AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous"); ^~~~~~~~ DCHECK ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build subprocess.run( File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "setup.py", line 4, in <module> setup( File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions build_ext.build_extensions(self) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 196, in build_extension _build_ext.build_extension(self, ext) File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension objects = self.compiler.compile(sources, File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 491, in unix_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1250, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension
hi, I got this error when I run
bash ./setup.sh
can anyone help?
maybe you have the latest version of torch. Please try to replace all the "AT_CHECK" to "TORCH _CHECK " in both deform_conv_cuda.cpp and deform_pool_cuda.cpp files
from centerpoint.
@ZhangYu1ing is the problem solved?
Yes, I noticed that my torch version is 1.7.1, which could not be used to define AT_CHECK. After replacing all the AT_CHECK to TORCH_CHECK in both deform_conv_cuda.cpp and deform_pool_cuda.cpp files, then the setup.py could successfully build and create the deform_conv_cuda.cpython-37m-x86_64-linux-gnu.so file. Finally, the ImportError for 'cannot import name 'deform_conv_cuda'' does not exist anymore~
from centerpoint.
Can you try
python setup.py build_ext --inplace
I haven't tried your way yet.
from centerpoint.
For 0.1 voxel size model, you can double this batch size and it should fit in a V100. For 0.075, you can use as large a batch size as it can fit into your gpu.
from centerpoint.
Wow, amazing, that works. Thank you very much for the quick response !! 👍
I will close this issue in a while once everything is good 😀
Thanks again !!
from centerpoint.
close for now due to inactivity
from centerpoint.
@tianweiy , Do you remember how much GPU-memory I need to train voxelnet_0075voxel_dcn_flip ?
I think 2* V100 is not enough, right?
from centerpoint.
yeah, you need to change the batch_size if using 2 GPU. I suggest you just compare with our 0.1 voxel size model (additionally with flipping). This model is faster, consumes less memory, and only marginally lower (64.9 vs. 65.5) than 0075_dcn
from centerpoint.
Thanks! where can I change the batch_size (it's not in the config) ?
from centerpoint.
Can you try
python setup.py build_ext --inplace
I haven't tried your way yet.
Hi,
I met the same ImportError for 'cannot import name 'deform_conv_cuda''. However, I tried to follow the provided method to solve the problem. After running 'python setup.py build_ext --inplace', it returns the 'error: command 'x86_64-linux-gnu-gcc' failed with exit status 1'. Do you have any ideas for what causing this error?
Thanks!
from centerpoint.
@ZhangYu1ing is the problem solved?
from centerpoint.
sounds good. I just finished ICCV submission and I am now working on a refactoring of the codebase. Hopefully, I can make the codebase easier to tune and tweak in one to two weeks.
from centerpoint.
Awesome! We are looking forward to the update~
from centerpoint.
running build_ext
building 'deform_conv_cuda' extension
Emitting ninja build file /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/1] c++ -MMD -MF /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o.d -pthread -B /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/TH -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/include/python3.8 -c -c /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp -o /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o
c++ -MMD -MF /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o.d -pthread -B /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/TH -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/include/python3.8 -c -c /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp -o /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/build/temp.linux-x86_64-3.8/src/deform_conv_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=deform_conv_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/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
from /home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:4:
/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/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)
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘void shape_check(at::Tensor, at::Tensor, at::Tensor*, at::Tensor, int, int, int, int, int, int, int, int, int, int)’:
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:66:3: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK(weight.ndimension() == 4,
^~~~~~~~
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:66:3: note: suggested alternative: ‘DCHECK’
AT_CHECK(weight.ndimension() == 4,
^~~~~~~~
DCHECK
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘int deform_conv_forward_cuda(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, int)’:
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:194:3: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset");
^~~~~~~~
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:194:3: note: suggested alternative: ‘DCHECK’
AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset");
^~~~~~~~
DCHECK
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘int deform_conv_backward_input_cuda(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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:301:3: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK((offset.size(0) == batchSize), 3, "invalid batch size of offset");
^~~~~~~~
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:301:3: note: suggested alternative: ‘DCHECK’
AT_CHECK((offset.size(0) == batchSize), 3, "invalid batch size of offset");
^~~~~~~~
DCHECK
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘int deform_conv_backward_parameters_cuda(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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:417:3: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset");
^~~~~~~~
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:417:3: note: suggested alternative: ‘DCHECK’
AT_CHECK((offset.size(0) == batchSize), "invalid batch size of offset");
^~~~~~~~
DCHECK
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘void modulated_deform_conv_cuda_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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:497:3: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous");
^~~~~~~~
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:497:3: note: suggested alternative: ‘DCHECK’
AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous");
^~~~~~~~
DCHECK
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp: In function ‘void modulated_deform_conv_cuda_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/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:579:3: error: ‘AT_CHECK’ was not declared in this scope
AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous");
^~~~~~~~
/home/leus/autoware/detection_3D/CenterPoint/det3d/ops/dcn/src/deform_conv_cuda.cpp:579:3: note: suggested alternative: ‘DCHECK’
AT_CHECK(input.is_contiguous(), "input tensor has to be contiguous");
^~~~~~~~
DCHECK
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build
subprocess.run(
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 4, in <module>
setup(
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
build_ext.build_extensions(self)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 491, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1250, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/leus/.pyenv/versions/anaconda3-5.1.0/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
hi, I got this error when I run bash ./setup.sh
can anyone help?
from centerpoint.
@ZhangYu1ing Thanks for your replying!! also I need to replace TORCH_ERROR
to TORCH_WARN
and fix it!!
from centerpoint.
Related Issues (20)
- dbinfos_train_10sweeps_withvelo.pkl is empty
- Virtual Points Loading
- the error when i train nuscenes, i think the reason is my spconv>2.0, but how can i change the code to solve it?
- about centerpoint-pillar nuscenes test set mAP and NDS HOT 1
- Why do Waymo and NuScenes have different `us_layer_strides` even though they use the same CenterPoint?
- No such file or directory: 'data/nuScenes/infos_ Test_ 10 sweeps_ Withvelo_ Filter_ True. pkl
- Tracking bug with Hungarian
- RuntimeError: Error compiling objects for extension HOT 1
- Unable to find nuScenes devkit HOT 1
- requirements change
- Error when starting training: TypeError: string indices must be integers
- Unable to build iou3d_NMS
- When I run create_data.py use nuScenes dataset have something wrong
- What's the speed of tracker in WOD
- time
- visual pkl
- assert len(detections) == 6008
- 请问有用mini数据集得到的centerpoint的检测结果吗,类似这个infos_val_10sweeps_withvelo_filter_True.json文件
- Request for Combined Train and Validation Split File
- Personal dataset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from centerpoint.