IDEA-Research / Grounded-Segment-Anything

Grounded SAM: Marrying Grounding DINO with Segment Anything & Stable Diffusion & Recognize Anything - Automatically Detect , Segment and Generate Anything
https://arxiv.org/abs/2401.14159
Apache License 2.0
14.88k stars 1.38k forks source link

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

Open Yuanen-Pang opened 9 months ago

Yuanen-Pang commented 9 months ago

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!

rentainhe commented 8 months ago

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

Yuanen-Pang commented 8 months ago

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._

SynUW commented 7 months ago

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 commented 7 months ago

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