Grounded-Segment-Anything
Grounded-Segment-Anything copied to clipboard
I have been successfully installed groundingDINO, but ms still appears" during runtime_ deform_ attn.py:33: UserWarning: Failed to load custom C++ ops. Running on CPU mode Only! warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!")"
log.txt When I tried to use 'Python setup. py build', this phenomenon occurred. I saved it in 'log. txt', but I am not sure if there is a problem. When I continue to execute 'Python setup. py develop', it will run normally and ultimately display successful installation; But the same error will still be reported during final use Error: This sentence generates' from groundingdino import _ C ', which seems to indicate that the installation was not successful. Environment: anaconda on win11 cuda:11.7 cudnn:8.9 python:3.9.16
same issue
You can try to remove the build
dir and reinstall the GroundingDINO again to see if it works. To install GroundingDINO in Windows you should make sure you have C++14 and CUDA Runtime successfully installed.
Unfortunately, it doesn't work. I've tried many times
------------------ Original ------------------ From: Ren Tianhe @.> Date: Sat,May 6,2023 11:10 AM To: IDEA-Research/Grounded-Segment-Anything @.> Cc: LQDWJY @.>, Author @.> Subject: Re: [IDEA-Research/Grounded-Segment-Anything] I have beensuccessfully installed groundingDINO, but ms still appears" during runtime_deform_ attn.py:33: UserWarning: Failed to load custom C++ ops. Running onCPU mode Only! warnings.warn("Failed to load custom C++ ops. Running on CPUmode Only!")" (Issue #224)
You can try to remove the build dir and reinstall the GroundingDINO again to see if it works
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
first,you can try to uninstall torch and torchversion,because the current version you installed may only use CPU, not use GPU.
then you can reinstall torch and torchversion with GPU version,
Finally, after you reinstall it,you can perform the following tests,if the return value is true, that's ok. good luck!
in my evn,after installed,like this:
You means the issue seem to be related to the version of pytorch?🧐Thank you.
------------------ Original ------------------ From: guytakeiteasy @.> Date: Sat,May 6,2023 2:21 PM To: IDEA-Research/Grounded-Segment-Anything @.> Cc: LQDWJY @.>, Author @.> Subject: Re: [IDEA-Research/Grounded-Segment-Anything] I have beensuccessfully installed groundingDINO, but ms still appears" during runtime_deform_ attn.py:33: UserWarning: Failed to load custom C++ ops. Running onCPU mode Only! warnings.warn("Failed to load custom C++ ops. Running on CPUmode Only!")" (Issue #224)
first,you can try to uninstall torch and torchversion,because the current version are not use GPU. then you can reinstall torch and torchversion with GPU version, good luck!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
You means the issue seem to be related to the version of pytorch?🧐Thank you. … ------------------ Original ------------------ From: guytakeiteasy @.> Date: Sat,May 6,2023 2:21 PM To: IDEA-Research/Grounded-Segment-Anything @.> Cc: LQDWJY @.>, Author @.> Subject: Re: [IDEA-Research/Grounded-Segment-Anything] I have beensuccessfully installed groundingDINO, but ms still appears" during runtime_deform_ attn.py:33: UserWarning: Failed to load custom C++ ops. Running onCPU mode Only! warnings.warn("Failed to load custom C++ ops. Running on CPUmode Only!")" (Issue #224) first,you can try to uninstall torch and torchversion,because the current version are not use GPU. then you can reinstall torch and torchversion with GPU version, good luck! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I think so :-)
@LQDWJY 有解决吗? 我单独跑segment_anything的时候cuda是能用的 但是使用GroundingDINO就会出现ms_deform_attn.py:31: UserWarning: Failed to load custom C++ ops. Running on CPU mode Only!
我的torch版本
torch 1.13.0
torchmetrics 0.6.0
torchvision 0.14.0
设置成cpu,是可以run的
没有
现在解决了吗 @LQDWJY ,我单独跑GroundingDINO能成功,跑这些就不行。
哈喽,在安装GroundingDINO的时候可以检查一下CUDA_HOME
这个环境变量是否为空,如果为空的话可能不能安装CUDA版本,可以设置一下路径
export CUDA_HOME=/path/to/cuda-11.3
然后删除build
目录重新pip install -e .
,注意要用pip install -e .
,试试看是否还会遇到类似的问题
哈喽,在安装GroundingDINO的时候可以检查一下
CUDA_HOME
这个环境变量是否为空,如果为空的话可能不能安装CUDA版本,可以设置一下路径export CUDA_HOME=/path/to/cuda-11.3
然后删除
build
目录重新pip install -e .
,注意要用pip install -e .
,试试看是否还会遇到类似的问题
it works
It seems cuda12.1 is not currently supported