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

error when run "python setup.py build develop --no-deps" #331

Open SkyeSong38 opened 3 years ago

SkyeSong38 commented 3 years ago

when I run python setup.py build develop --no-deps

the wrong information:

running build_py
running egg_info
writing fcos.egg-info/PKG-INFO
writing dependency_links to fcos.egg-info/dependency_links.txt
writing requirements to fcos.egg-info/requires.txt
writing top-level names to fcos.egg-info/top_level.txt
reading manifest file 'fcos.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'fcos/configs'
writing manifest file 'fcos.egg-info/SOURCES.txt'
running build_ext
building 'fcos_core._C' extension
Emitting ninja build file /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.0.git.kitware.jobserver-1
/usr/bin/g++ -pthread -shared -B /home/szk/anaconda3/envs/python_tracker/compiler_compat -L/home/szk/anaconda3/envs/python_tracker/lib -Wl,-rpath=/home/szk/anaconda3/envs/python_tracker/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/vision.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cpu/ROIAlign_cpu.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cpu/nms_cpu.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_pool_cuda.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_pool_kernel_cuda.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/SigmoidFocalLoss_cuda.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/ROIAlign_cuda.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/ml_nms.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_conv_cuda.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/ROIPool_cuda.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_conv_kernel_cuda.o /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/nms.o -L/home/szk/anaconda3/envs/python_tracker/lib/python3.6/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.6/fcos_core/_C.cpython-36m-x86_64-linux-gnu.so
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/vision.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cpu/ROIAlign_cpu.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cpu/nms_cpu.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_pool_cuda.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_pool_kernel_cuda.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/SigmoidFocalLoss_cuda.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/ROIAlign_cuda.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/ml_nms.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_conv_cuda.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/ROIPool_cuda.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/deform_conv_kernel_cuda.o: No such file or directory
g++: error: /home/szk/Developer/Python/FCOS-master/build/temp.linux-x86_64-3.6/fcos_core/csrc/cuda/nms.o: No such file or directory
error: command '/usr/bin/g++' failed with exit status 1

my environment: cuda=10.2, pytorch=1.5.1, g++ = 5.4

anmolduainter commented 3 years ago

I m also getting error when running that

anmolduainter commented 3 years ago

cpu/vision.h , No such file or directory

shenyi0220 commented 3 years ago

Same error. Any idea about it?

jizefeng0810 commented 3 years ago

Same error. Any idea about it?

shenyi0220 commented 3 years ago

For missing "cpu/vision.h", I could get it worked around by copying this file directly to the csrc include folder under pytorch install dir. My env is pytorch1.7.1+GCC7.5 under ubuntu18.04

chuxiang93 commented 3 years ago

the csrc include folder under pytorch install dir

Can you explain in detail where the "the csrc include folder under pytorch install dir" is? Thank you.

langwangdezhexue commented 3 years ago

cpu/vision.h , No such file or directory

For this question,I solved it by changing "#include "cpu/vision.h" into "#include "vision.h"" in both files "FCOS/fcos_core/csrc/cpu/nms_cpu.cpp" and "FCOS/fcos_core/csrc/cpu/ROI Align_cpu.cpp",I use Ubuntu18.04.

micro-step commented 3 years ago

replace AT_CHECK with TORCH_CHECK n the code retry python setup.py build develop --no-deps

xiaoyu617 commented 2 years ago

image I'm getting above two errors, any ideas about thems?