-
Notifications
You must be signed in to change notification settings - Fork 196
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
[Bug]: NameError: name '_C' is not defined #31
Comments
I think C++ did not compile due to some problem. This is GroundingDINO's problem. I will submit an issue there. |
IDEA-Research/Grounded-Segment-Anything#53 Uninstall GroundingDINO via In your specific case, run |
Ok,
But I don't understand which library is referred to in the Grounded-Segment-Anything ticket. |
They are referring to groundingdino. If you search _C inside their issue you will see a bunch of similar issues related to this. If this one does not work, look for another. I would expect at least one of them should work. If none of them is working, submit an issue there and let me know here. Another related repository: https://github.com/IDEA-Research/GroundingDINO |
Thanks. |
I checked the similar issues but found no solution. |
Try adding your CUDA_HOME to your environment variable and add 'set CUDA_HOME="<your cuda path>”' into your webui.dat file to the second line. If this is not working, let me know your cuda version, cuda home and torch version. I will see what my windows cuda home looks like, and guess whether you have put in the current cuda path. Also people mention old cuda+torch is not working, so I’m not sure. |
If it’s not working when I wake up, I’ll try to install it on my windows to see what is going wrong. |
I have not installed the CUDA drivers. Here is the versions I use :
|
This is definitely not correct. Give me some time to try which path is possibly correct. |
It seems that you should install CUDA driver. Download cuda driver from https://developer.nvidia.com/cuda-11-7-0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exe_local and check whether you have CUDA_HOME on your environment variable path. Another way that might work and I recommend you to try before installing cuda driver is to set CUDA_HOME='<your virtual environment>', in your case, it should be Let me know if this helps. If this does not help, I'll try to find another way. |
I just installed CUDA then added
into my "webui-user.bat" file. Then I deleted the "venv" folder and launched "webui-user.bat" to start from a fresh new install.
|
If I remove the "CUDA_HOME" from webui-user.bat it works! |
Great! Seems that installing cuda is the key to success. |
I still have the same issue with cuda installed. It's unclear for me now how my webui-user.bat file should look like. |
Check you windows environment path. There should be a |
I have the same problem in linux, how do I need to deal with it |
Is there an existing issue for this?
Have you updated WebUI and this extension to the newest version?
Do you understand that you should go to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues if you cannot install GroundingDINO?
What happened?
Trying to use the grounding dino mode.
I get an error when I press "generate bounding box"
The error is :
Steps to reproduce the problem
What should have happened?
Generating the bounding boxes images
Commit where the problem happens
webui: 22bcc7be428c94e9408f589966c2040187245d81
extension: 1664834
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: