-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Segmentation fault #493
Comments
grounding dino有个_c的cuda库,是要自己编译的。如果使用时和编译时cuda版本、torch版本不一致就会崩,但是又没有明显的错误提示。你看看是不是这个问题。重新编译一下就好了 |
@zylo117 I want to double check, because if there is a CUDA version mismatch, the compilation error will be(build with CUDA_HOME to 12.1):
I think this may not be the root cause of this issue. I'm also encountering this :( |
well for me it was torch version mismatch,i build it with 2.2 and run with 2.3,then segmentation fault. I am just saying that if there is no python assertion,it will also cause segmentation fault |
@zylo117 oh, you are right. I have success after downgrade pytorch==2.1.2 |
Hello,
I also encountered the segmentation fault error. Could you tell me how to check the build and run versions of torch? Thank you :) |
Current thread 0x00007fa75d499740 (most recent call first):
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 456 in _conv_forward
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 460 in forward
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541 in _call_impl
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532 in _wrapped_call_impl
File "/mnt/workspace/segment_003/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/backbone/swin_transformer.py", line 491 in forward
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541 in _call_impl
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532 in _wrapped_call_impl
File "/mnt/workspace/segment_003/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/backbone/swin_transformer.py", line 716 in forward
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541 in _call_impl
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532 in _wrapped_call_impl
File "/mnt/workspace/segment_003/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/backbone/backbone.py", line 151 in forward
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541 in _call_impl
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532 in _wrapped_call_impl
File "/mnt/workspace/segment_003/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 289 in forward
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541 in _call_impl
File "/home/pai/envs/segment_003/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532 in _wrapped_call_impl
File "/mnt/workspace/segment_003/Grounded-Segment-Anything/GroundingDINO/groundingdino/util/inference.py", line 67 in predict
File "/mnt/workspace/segment_003/Grounded-Segment-Anything/001.py", line 114 in
哪个大佬能帮我看看吗
The text was updated successfully, but these errors were encountered: