Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

How to deal with "name '_C' is not defined" on Windows?

Open Yuanen-Pang opened this issue 1 year ago • 4 comments

A wonderful job! It's a pity that I haven't tried it yet, and I'm asking for your help.

I have looked through the relevent issues for this problem, but all of them are on Linux (e.g., export CUDA_HOME=/path/to/cuda-11.3/ pip install ... )

I want to know how it can be solved on Windows? I really appreciate this job, and I really want to try it on my device!!!!

Looking forward to your reply, thanks!

Yuanen-Pang avatar Jan 10 '24 01:01 Yuanen-Pang

Hello, we did not test grounded-sam on Windows device before, maybe the community can help with this question I guess

rentainhe avatar Jan 12 '24 03:01 rentainhe

Thanks for your reply! But I meet another problem... Actually, I don't find the similar issue here,I want to know if it's because windows or something else:

python -m pip install -e GroundingDINO

Then I see: Installing build dependencies ... / I wait a lot of time and it gives me : pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. This error originates from a subprocess, and is likely not a problem with pip.

Yuanen-Pang avatar Jan 13 '24 01:01 Yuanen-Pang

Thanks for your reply! But I meet another problem... Actually, I don't find the similar issue here,I want to know if it's because windows or something else:

python -m pip install -e GroundingDINO

Then I see: Installing build dependencies ... / I wait a lot of time and it gives me : pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. This error originates from a subprocess, and is likely not a problem with pip.

have you fixed this error?

SynUW avatar Feb 10 '24 18:02 SynUW

I have fixed this error. It is quite simple, and what you need to do is just copy the groundingdino folder and past it to the same folder in Grounded-SAM. groundingdino

SynUW avatar Feb 10 '24 18:02 SynUW