Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification regarding environment setup #3

Closed
UnityBoy opened this issue Dec 24, 2021 · 7 comments
Closed

Clarification regarding environment setup #3

UnityBoy opened this issue Dec 24, 2021 · 7 comments

Comments

@UnityBoy
Copy link

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
Copy link
Author

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
Copy link
Author

image

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

@JosephKJ
Copy link
Owner

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.

@JosephKJ JosephKJ changed the title cannot setup from this rep. Clarification regarding environment setup Dec 24, 2021
@UnityBoy
Copy link
Author

UnityBoy commented Dec 24, 2021 via email

@onepiece010938
Copy link

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
Copy link
Owner

JosephKJ commented Jan 6, 2022

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

@onepiece010938
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants