mirror of
https://github.com/deepseek-ai/DeepSeek-VL2.git
synced 2026-11-05 01:07:23 +00:00
[GH-ISSUE #58] Unable to get the expected answer #43
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-VL2#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GryffindorZz on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL2/issues/58
Use the official code:
When i use "describe the image" as the input, I can get the right answer:
But when I change the text to "Is there a giraffe in the picture?" , the answer is incorrect.
I tried many kinds of input, and only the one like "describe the picture" had the correct output, and the other input answers were wrong. And I changed other models(deepseek vl2, not tiny version) and got similar results.
My env: torch==2.0.1 transformers==4.38.2
@HubHop commented on GitHub (Feb 6, 2025):
Hi @GryffindorZz , note that "<|ref|> xxx <|/ref|>" and "<|grounding|>" are special tokens for visual grounding, where "xxx" should be a specific description of an object, e.g. "apple", "dog", "cat", etc.
Otherwise, please simply ask the model via natural language. For example,
@rubentorresbonet commented on GitHub (Feb 6, 2025):
Yeah I am also struggling to get results.
```Enter your prompt (or 'quit' to exit): <|grounding|>Find the Edit menu item`
<|User|>:
<|grounding|>Find the Edit menu item.
<|Assistant|>: The edit menu is located at the top left corner of the screen.<|end▁of▁sentence|>```
@GryffindorZz commented on GitHub (Feb 7, 2025):
@HubHop Thanks a lot!, it works now.