JosephKJ / iOD

(TPAMI 2021) iOD: Incremental Object Detection via Meta-Learning

Home Page:https://josephkj.in

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clarification regarding environment setup

UnityBoy opened this issue · comments

Thank you for you amazing working!

in my docker i can setup the official detectron2 ,and run the demo test

i can also run your anothor great work OWOD

But i cannot seteup to build from this rep. any help will be greate thanks.

running build_ext
building 'detectron2._C' extension
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/nms_rotated
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/box_iou_rotated
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlign
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlignRotated
creating /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/deformable
Emitting ninja build file /mnt/iOD-main/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.10.2
g++ -pthread -shared -B /opt/conda/compiler_compat -L/opt/conda/lib -Wl,-rpath=/opt/conda/lib -Wl,--no-as-needed -Wl,--sysroot=/ /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/vision.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/nms_rotated/nms_rotated_cpu.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cpu.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/deformable/deform_conv_cuda.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlign/ROIAlign_cuda.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.o /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/cuda_version.o -L/opt/conda/lib/python3.8/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.8/detectron2/_C.cpython-38-x86_64-linux-gnu.so
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/vision.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/nms_rotated/nms_rotated_cpu.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cpu.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/deformable/deform_conv_cuda.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlign/ROIAlign_cuda.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.o: No such file or directory
g++: error: /mnt/iOD-main/build/temp.linux-x86_64-3.8/mnt/iOD-main/detectron2/layers/csrc/cuda_version.o: No such file or directory
error: command 'g++' failed with exit status 1
root@aa5c88906608:/mnt/iOD-main#

ubuntu1804
pytorch1.7.1
cuda11.0
python3.8
gcc version 7.5.0

2\ How can i use OWOD env to run this rep code.? just with this configs file and tools files change?

image

I think there is a mistake ,your cuda should be 10.0 with pytorch pytorch1.3 .

Hi @UnityBoy : Thanks for your interest in our work.

PyTorch is quite forward compatible. Please refer to the screenshot of my environment.
Screenshot 2021-12-24 at 9 47 53 AM

Regarding using OWOD environment: No, you need to set this up separately. Both are independent code bases and the bundled Detectron should be installed.

01

I have the same error , after I run python3 setup.py build develop
Can you help me check where there is a problem?

Hi @onepiece010938 : the error is not same as above. gcc compile is failing in your case. Please use the software versions specified here.

Thanks @JosephKJ , I will try to downgrade pytorch to 1.3.0 and test it again.