ifzhang / FairMOT

[IJCV-2021] FairMOT: On the Fairness of Detection and Re-Identification in Multi-Object Tracking
MIT License
3.96k stars 930 forks source link

DCNv2_new problem, shall I downgrade cuda to 10.0? #114

Open catherine-qian opened 4 years ago

catherine-qian commented 4 years ago

hi, I run 'sh make.sh' for DCNv2_new folder but have the following error:

--- My environment ---- gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

python Python 3.7.7 (default, May 7 2020, 21:25:33) [GCC 7.3.0] :: Anaconda, Inc. on linux

torch.version '1.2.0'

running build running build_ext building '_ext' extension g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/TH -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/qian/anaconda3/envs/FairMOT/include/python3.7m -c /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/vision.cpp -o build/temp.linux-x86_64-3.7/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/TH -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/qian/anaconda3/envs/FairMOT/include/python3.7m -c /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_im2col_cpu.cpp -o build/temp.linux-x86_64-3.7/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_im2col_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/TH -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/qian/anaconda3/envs/FairMOT/include/python3.7m -c /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp -o build/temp.linux-x86_64-3.7/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0, from /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:150:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations] at::ScalarType _st = ::detail::scalar_type(the_type); \ ^ /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^ /home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:78:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) { ^ /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_cpu_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’: /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:295:13: warning: unused variable ‘batch’ [-Wunused-variable] const int batch = input.size(0); ^ In file included from /home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0, from /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:150:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations] at::ScalarType _st = ::detail::scalar_type(the_type); \ ^ /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^ /home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:78:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) { ^ g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/TH -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/qian/anaconda3/envs/FairMOT/include/python3.7m -c /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_cpu.cpp -o build/temp.linux-x86_64-3.7/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cpu/dcn_v2_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ /usr/local/cuda-10.2/bin/nvcc -DWITH_CUDA -I/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/TH -I/home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/qian/anaconda3/envs/FairMOT/include/python3.7m -c /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cuda/dcn_v2_im2col_cuda.cu -o build/temp.linux-x86_64-3.7/home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cuda/dcn_v2_im2col_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 In file included from /home/qian/Documents/code/FairMOT/src/lib/models/networks/DCNv2_new/src/cuda/dcn_v2_im2col_cuda.cu:7:0: /home/qian/anaconda3/envs/FairMOT/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:13:23: fatal error: cublas_v2.h: No such file or directory compilation terminated. error: command '/usr/local/cuda-10.2/bin/nvcc' failed with exit status 1

yai3xx commented 4 years ago

我也遇到了同样的问题,请问你解决了吗

catherine-qian commented 4 years ago

Sorry,并没有解决这个问题呢


From: yai3xx notifications@github.com Sent: 02 June 2020 03:34 To: ifzhang/FairMOT FairMOT@noreply.github.com Cc: xinyuanqian catherine921229@hotmail.co.uk; Author author@noreply.github.com Subject: Re: [ifzhang/FairMOT] DCNv2_new problem, shall I downgrade cuda to 10.0? (#114)

我也遇到了同样的问题,请问你解决了吗

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ifzhang/FairMOT/issues/114#issuecomment-637232853, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB7ABTGLEUOQULKHXOG7GI3RURQLTANCNFSM4NHX4D4Q.

arvindchandel commented 3 years ago

Hi catherine...I am getting same issue..did u resolved it, help me too

ZiyanZhu1994 commented 3 years ago

Same issue here...anyone fixed it?

arvindchandel commented 3 years ago

@ZiyanZhu1994 i checked MOT long before. As i remember i looked some other GITHub implementation of MOT, which helped me to run it.