-
Notifications
You must be signed in to change notification settings - Fork 96
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
GroundingDINO Import Error #24
Comments
Sorry, I'm not very familiar with this import error either. On our side, we placed the entire |
Hi dear cremebrule, The difference you noticed is due to a naming convention change in Grounded-SAM-2. In our repository, we've renamed the path to grounding_dino, whereas in the original GroundingDINO repo, it's named groundingdino. When Python attempts to import modules, it requires the exact path match, which is why this discrepancy exists. Hope this clarifies the situation! Best regards, |
Hi @rentainhe and @ShuoShenDe , Huge thanks for the rapid response! This is interesting -- as far as I understand, when you run the For what it's worth, when I modify all the internal imports to be |
Hi Grounded-SAM-2 team,
Huge thanks for this fantastic error!
I believe there's some bad imports with regards to grounding dino -- e.g., in
groundingdino/utils/util.py
, imports usegrounding_dino.groundingdino
instead ofgroundingdino
as in the original Grounded SAM repo (see here).Is there a reason for this? This causes imports to fail unless the current working directory is in the root Grounded-SAM-2 directory.
Thanks!!
The text was updated successfully, but these errors were encountered: