JosephKJ / iOD

(TPAMI 2021) iOD: Incremental Object Detection via Meta-Learning
https://josephkj.in
Apache License 2.0
121 stars 22 forks source link

Clarification regarding environment setup #3

Closed UnityBoy closed 2 years ago

UnityBoy commented 2 years ago

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#

UnityBoy commented 2 years ago

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?

UnityBoy commented 2 years ago

image

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

JosephKJ commented 2 years ago

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.

UnityBoy commented 2 years ago

Okay ,i see. I get your meaning.

------------------ 原始邮件 ------------------ 发件人: "JosephKJ/iOD" @.>; 发送时间: 2021年12月24日(星期五) 中午12:21 @.>; @.**@.>; 主题: Re: [JosephKJ/iOD] cannot setup from this rep. (Issue #3)

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

PyTorch is quite forward compatible. Please refer to the screenshot of my environment.

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

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

onepiece010938 commented 2 years ago

01

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

JosephKJ commented 2 years ago

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

onepiece010938 commented 2 years ago

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