Epiphqny / VisTR

[CVPR2021 Oral] End-to-End Video Instance Segmentation with Transformers
https://arxiv.org/abs/2011.14503
Apache License 2.0
739 stars 95 forks source link

error: command 'g++' failed with exit status 1 #56

Open StiphyJay opened 3 years ago

StiphyJay commented 3 years ago

Hello. Thanks for you open-source code. However, when i run the command in python setup.py build_ext --inplace. I meet the problems in here:

(pytorch15) sifan@fudan:~/slam-package/vistr/models/dcn$ python setup.py build_ext --inplace running build_ext building '_C' extension creating /home/sifan/slam-package/vistr/models/dcn/build creating /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7 creating /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable Emitting ninja build file /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.10.2 creating build/lib.linux-x86_64-3.7 g++ -pthread -shared -B /home/sifan/anaconda3/envs/pytorch15/compiler_compat -L/home/sifan/anaconda3/envs/pytorch15/lib -Wl,-rpath=/home/sifan/anaconda3/envs/pytorch15/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv.o /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda.o /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda_kernel.o -L/home/sifan/anaconda3/envs/pytorch15/lib/python3.7/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.7/_C.cpython-37m-x86_64-linux-gnu.so g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv.o: No such file or directory g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda.o: No such file or directory g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda_kernel.o: No such file or directory error: command 'g++' failed with exit status 1

I don't know how to solve this problem. Could you give me some help? Thank you very much!

youngkyoonjang commented 3 years ago

I have the same problem. Have you solved it?