Skip to content
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

returned label differs from original prompt in Grounded-SAM2 #67

Closed
mtablo opened this issue Nov 2, 2024 · 2 comments
Closed

returned label differs from original prompt in Grounded-SAM2 #67

mtablo opened this issue Nov 2, 2024 · 2 comments

Comments

@mtablo
Copy link

mtablo commented Nov 2, 2024

Issue

621000000001

Hi, I'm attempting to detect "a black and white french bulldog" from the image using Grounded-SAM2.

image

While the model successfully detects the dog mask, but the results[0]["labels"] from the post_process_grounded_object_detection function is "a black french bulldog", which differs from the original prompt.

Question

I want the exact text that was in the original prompt.
How can I ensure that the detected label exactly matches the original prompt text?

@rentainhe
Copy link
Collaborator

Hi @mtablo , we have some similar discussions here: #50 , you can try the local grounding dino demo and follow our Grounding DINO specific phrase inference instructions to achieve this.

@mtablo
Copy link
Author

mtablo commented Nov 3, 2024

thank you! I'll try that!

@mtablo mtablo closed this as completed Nov 3, 2024
rentainhe pushed a commit that referenced this issue Dec 21, 2024
…rious typos (#218)

(close #217, #66, #67, #69, #91, #126, #127, #145)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants