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.11k stars 1.31k forks source link

How to make text prompt support Non-English, like Chinese? #465

Closed tangmingxing1988 closed 4 months ago

tangmingxing1988 commented 4 months ago

I have a problem with the text prompt, it could not be Chinese, or the result makes nonsense. I have to translate Chinse To English to make it work, and it works very well. So, is there a way to use Chinese text prompt directly?

rentainhe commented 4 months ago

Hello, Grounding-DINO did not support Chinese prompt, maybe you can use a translator to translate your prompt into English first

tangmingxing1988 commented 4 months ago

Hello, Grounding-DINO did not support Chinese prompt, maybe you can use a translator to translate your prompt into English first

Thank you. My prompt is just the category name, can you suggest a translator or dictionary for this? For example, like database for category names etc. Because ordinary translator is two slow and over-killed for this.

tangmingxing1988 commented 4 months ago

I end up using translator and the speed is acceptable, thanks and I will close this issue.