tianzhi0549 / FCOS

FCOS: Fully Convolutional One-Stage Object Detection (ICCV'19)
https://arxiv.org/abs/1904.01355
Other
3.27k stars 630 forks source link

Compling object error #317

Closed Dongzhou-1996 closed 4 years ago

Dongzhou-1996 commented 4 years ago

System: Centos7 GCC: 5.4.0 python: 3.8 pytorch: 1.7.0

Look forward to your reply! Regards

Partial output log as follows:

Emitting ninja build file /home/group1/dzhou/fcos/FCOS/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/12] c++ -MMD -MF /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/nms_cpu.o.d -pthread -B /home/group1/dzhou/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cpu/nms_cpu.cpp -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/nms_cpu.o c++ -MMD -MF /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/nms_cpu.o.d -pthread -B /home/group1/dzhou/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cpu/nms_cpu.cpp -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -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++ /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cpu/nms_cpu.cpp:2:24: fatal error: cpu/vision.h: No such file or directory compilation terminated. [2/12] c++ -MMD -MF /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/ROIAlign_cpu.o.d -pthread -B /home/group1/dzhou/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cpu/ROIAlign_cpu.cpp -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/ROIAlign_cpu.o c++ -MMD -MF /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/ROIAlign_cpu.o.d -pthread -B /home/group1/dzhou/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cpu/ROIAlign_cpu.cpp -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cpu/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -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++ /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cpu/ROIAlign_cpu.cpp:2:24: fatal error: cpu/vision.h: No such file or directory compilation terminated. [3/12] /usr/local/cuda/bin/nvcc -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cuda/deform_conv_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=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=sm_60 -std=c++14 FAILED: /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cuda/deform_conv_cuda.o /usr/local/cuda/bin/nvcc -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cuda/deform_conv_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=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=sm_60 -std=c++14 /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu(72): error: identifier "AT_CHECK" is undefined

/home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu(200): error: identifier "AT_CHECK" is undefined

/home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu(307): error: identifier "AT_CHECK" is undefined

/home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu(423): error: identifier "AT_CHECK" is undefined

/home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu(504): error: identifier "AT_CHECK" is undefined

/home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_conv_cuda.cu(586): error: identifier "AT_CHECK" is undefined

6 errors detected in the compilation of "/tmp/tmpxft_000133b9_00000000-6_deform_conv_cuda.cpp1.ii". [4/12] /usr/local/cuda/bin/nvcc -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_pool_cuda.cu -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cuda/deform_pool_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=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=sm_60 -std=c++14 FAILED: /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cuda/deform_pool_cuda.o /usr/local/cuda/bin/nvcc -DWITH_CUDA -Ifcos_core/csrc -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/TH -I/home/group1/dzhou/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/group1/dzhou/anaconda3/envs/FCOS/include/python3.8 -c -c /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_pool_cuda.cu -o /home/group1/dzhou/fcos/FCOS/build/temp.linux-x86_64-3.8/fcos_core/csrc/cuda/deform_pool_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=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=sm_60 -std=c++14 /home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_pool_cuda.cu(42): error: identifier "AT_CHECK" is undefined

/home/group1/dzhou/fcos/FCOS/fcos_core/csrc/cuda/deform_pool_cuda.cu(68): error: identifier "AT_CHECK" is undefined

2 errors detected in the compilation of "/tmp/tmpxft_000133bb_00000000-6_deform_pool_cuda.cpp1.ii".

Dongzhou-1996 commented 4 years ago

This issue was tackled by changing PyTorch version to v1.4.0 with GCC5.4.0. I have successfully tested with PyTorch 1.4 and 1.1, and re-write the Dockerfile provided in thie repository.

docker.zip