Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no CUDA runtime is found #557

Open
MsAnitaAli opened this issue May 21, 2024 · 1 comment
Open

no CUDA runtime is found #557

MsAnitaAli opened this issue May 21, 2024 · 1 comment

Comments

@MsAnitaAli
Copy link

Although, an issue with same title exists, but it different.
I am using colab.
Have followed steps from ReadMe.

Successful Steps

  1. Have cloned FairMOT
  2. have installed cython and requirements.txt
  3. Have cloned [DCNv2_pytorch_1.7] (https://github.com/ifzhang/DCNv2/tree/pytorch_1.7)
  4. have moved to root dir of above repo

Erroneous Step
!./make.sh

** Error Message**

No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running build
running build_ext
/usr/local/lib/python3.10/dist-packages/torch/utils/cpp_extension.py:500: 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.'))
building '_ext' extension
creating build
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/content
creating build/temp.linux-x86_64-cpython-310/content/drive
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_pytorch17
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_pytorch17/src
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_pytorch17/src/cpu
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/content/drive/MyDrive/DCNv2_pytorch17/src -I/usr/local/lib/python3.10/dist-packages/torch/include -I/usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.10/dist-packages/torch/include/TH -I/usr/local/lib/python3.10/dist-packages/torch/include/THC -I/usr/include/python3.10 -c /content/drive/MyDrive/DCNv2_pytorch17/src/cpu/dcn_v2_cpu.cpp -o build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_pytorch17/src/cpu/dcn_v2_cpu.o -fopenmp -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++17
/content/drive/MyDrive/DCNv2_pytorch17/src/cpu/dcn_v2_cpu.cpp:8:10: fatal error: TH/TH.h: No such file or directory
8 | #include <TH/TH.h>
| ^~~~~
compilation terminated.
error: command '/usr/bin/g++' failed with exit code 1

Suggestion from someone at github
#267
Someone said used latest dcnv2 clone from here https://github.com/lucasjinreal/DCNv2_latest

I have cloned at run its mak.sh. Now new error messages with some old messages are these.

New Error Message

No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running build
running build_ext
/usr/local/lib/python3.10/dist-packages/torch/utils/cpp_extension.py:500: 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.'))
building '_ext' extension
creating build
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/content
creating build/temp.linux-x86_64-cpython-310/content/drive
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src
creating build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/cpu
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/content/drive/MyDrive/DCNv2_latest/src -I/usr/local/lib/python3.10/dist-packages/torch/include -I/usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.10/dist-packages/torch/include/TH -I/usr/local/lib/python3.10/dist-packages/torch/include/THC -I/usr/include/python3.10 -c /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_cpu.cpp -o build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_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++17
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_cpu.cpp: In function ‘std::vectorat::Tensor dcn_v2_cpu_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_cpu.cpp:207:69: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
207 | modulated_deformable_col2im_coord_cpu(columns.data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/ivalue.h:4,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/List_inl.h:4,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/List.h:490,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/IListRef_inl.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/IListRef.h:631,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/DeviceGuard.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:9,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_cpu.cpp:4:
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/TensorBody.h:247:7: note: declared here
247 | T * data() const {
| ^~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_cpu.cpp:208:70: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
208 | input_n.data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/ivalue.h:4,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/List_inl.h:4,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/List.h:490,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/IListRef_inl.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/IListRef.h:631,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/DeviceGuard.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:9,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_cpu.cpp:4:
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/TensorBody.h:247:7: note: declared here
247 | T * data() const {
| ^~~~

247 | T * data() const {
| ^~~~
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/content/drive/MyDrive/DCNv2_latest/src -I/usr/local/lib/python3.10/dist-packages/torch/include -I/usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.10/dist-packages/torch/include/TH -I/usr/local/lib/python3.10/dist-packages/torch/include/THC -I/usr/include/python3.10 -c /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_im2col_cpu.cpp -o build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_im2col_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++17
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/content/drive/MyDrive/DCNv2_latest/src -I/usr/local/lib/python3.10/dist-packages/torch/include -I/usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.10/dist-packages/torch/include/TH -I/usr/local/lib/python3.10/dist-packages/torch/include/THC -I/usr/include/python3.10 -c /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp -o build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_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++17
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:40: 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]
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:215:28: note: in definition of macro ‘AT_DISPATCH_SWITCH’
215 | const auto& the_type = TYPE;
| ^~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~

225 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:218:47: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations]
218 | at::ScalarType _st = ::detail::scalar_type(the_type);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:3: note: in expansion of macro ‘AT_DISPATCH_SWITCH’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:109:23: note: declared here
109 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:42: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
324 | input.contiguous().data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:233:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
233 | AT_DISPATCH_CASE(at::ScalarType::Double, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:330:41: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
330 | bbox.contiguous().data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:233:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
233 | AT_DISPATCH_CASE(at::ScalarType::Double, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:331:42: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
331 | trans.contiguous().data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:233:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
233 | AT_DISPATCH_CASE(at::ScalarType::Double, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:340:27: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
340 | out.data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:233:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
233 | AT_DISPATCH_CASE(at::ScalarType::Double, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:341:33: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
341 | top_count.data<scalar_t>());
| ~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:233:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
233 | AT_DISPATCH_CASE(at::ScalarType::Double, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:42: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
324 | input.contiguous().data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:234:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
234 | AT_DISPATCH_CASE(at::ScalarType::Float, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:330:41: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
330 | bbox.contiguous().data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:234:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
234 | AT_DISPATCH_CASE(at::ScalarType::Float, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:331:42: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
331 | trans.contiguous().data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:234:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
234 | AT_DISPATCH_CASE(at::ScalarType::Float, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:321:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
321 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
247 | T * data() const {
| ^~~~

In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:11,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:399:46: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
399 | top_count.contiguous().data<scalar_t>(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:221:7: note: in definition of macro ‘AT_DISPATCH_SWITCH’
221 | VA_ARGS
| ^~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:74:3: note: in expansion of macro ‘AT_PRIVATE_CASE_TYPE_USING_HINT’
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:233:3: note: in expansion of macro ‘AT_DISPATCH_CASE’
233 | AT_DISPATCH_CASE(at::ScalarType::Double, VA_ARGS)
| ^~~~~~~~~~~~~~~~
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/Dispatch.h:237:34: note: in expansion of macro ‘AT_DISPATCH_CASE_FLOATING_TYPES’
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(VA_ARGS))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:395:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
395 | AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/ivalue.h:4,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/List_inl.h:4,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/List.h:490,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/IListRef_inl.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/IListRef.h:631,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/DeviceGuard.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/ATen.h:9,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/TensorBody.h:247:7: note: declared here
| ^~~~
In file included from /content/drive/MyDrive/DCNv2_latest/src/vision.cpp:2:
/content/drive/MyDrive/DCNv2_latest/src/dcn_v2.h: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’:
/content/drive/MyDrive/DCNv2_latest/src/dcn_v2.h:155:19: 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]
155 | if (input.type().is_cuda())
| ~~~~~~~~~~^~
In file included from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/Tensor.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/ATen/Tensor.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
from /usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/autograd/variable.h:6,
from /usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/autograd/autograd.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
from /usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
from /usr/local/lib/python3.10/dist-packages/torch/include/torch/extension.h:5,
from /content/drive/MyDrive/DCNv2_latest/src/cpu/vision.h:2,
from /content/drive/MyDrive/DCNv2_latest/src/dcn_v2.h:3,
from /content/drive/MyDrive/DCNv2_latest/src/vision.cpp:2:
/usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/TensorBody.h:225:30: note: declared here
225 | DeprecatedTypeProperties & type() const {
| ^~~~
creating build/lib.linux-x86_64-cpython-310
x86_64-linux-gnu-g++ -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_cpu.o build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_im2col_cpu.o build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/cpu/dcn_v2_psroi_pooling_cpu.o build/temp.linux-x86_64-cpython-310/content/drive/MyDrive/DCNv2_latest/src/vision.o -L/usr/local/lib/python3.10/dist-packages/torch/lib -L/usr/lib/x86_64-linux-gnu -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-310/_ext.cpython-310-x86_64-linux-gnu.so
running develop
/usr/local/lib/python3.10/dist-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer, pypa/build or
    other standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
easy_install.initialize_options(self)
/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer, pypa/build or
    other standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
running egg_info
writing DCNv2.egg-info/PKG-INFO
writing dependency_links to DCNv2.egg-info/dependency_links.txt
writing top-level names to DCNv2.egg-info/top_level.txt
reading manifest file 'DCNv2.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'DCNv2.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-cpython-310/_ext.cpython-310-x86_64-linux-gnu.so ->
Creating /usr/local/lib/python3.10/dist-packages/DCNv2.egg-link (link to .)
DCNv2 0.1 is already the active version in easy-install.pth

Installed /content/drive/MyDrive/DCNv2_latest
Processing dependencies for DCNv2==0.1
Finished processing dependencies for DCNv2==0.1

@jeet-Abhi123
Copy link

jeet-Abhi123 commented Sep 4, 2024

Even I am facing the same issue.
Have you tried executing any other multi object tracking model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants