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

when text prompt is long, prompt is cut off? #10

Open
yxchng opened this issue Apr 8, 2023 · 2 comments
Open

when text prompt is long, prompt is cut off? #10

yxchng opened this issue Apr 8, 2023 · 2 comments

Comments

@yxchng
Copy link

yxchng commented Apr 8, 2023

chair_behind_blue_chair

I run the demo using the command python grounded_sam_demo.py --config GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py --grounded_checkpoint groundingdino_swint_ogc.pth --sam_checkpoint sam_vit_h_4b8939.pth --input_image assets/demo3.jpg --output_dir "outputs" --box_threshold 0.3 --text_threshold 0.25 --text_prompt "chair behind blue chair" --device "cpu"

However, the text on the output is chair

@SlongLiu
Copy link
Contributor

SlongLiu commented Apr 8, 2023

Thanks for the issue. The model output boxes with corresponding noun in the sentence. In the example, the described words may be ignored.

@Necolizer
Copy link

Same issue for me. Using descriptions like object in hand would get both object and hand results.
Despite this limitation, this work is great and easy-to-implement. Thanks to the authors' excellent work :)

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

3 participants