Skip to content

Commit

Permalink
florence default prompt to <MORE_DETAILED_CAPTION>
Browse files Browse the repository at this point in the history
  • Loading branch information
matatonic committed Jun 19, 2024
1 parent d087b6c commit 2beb5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_qna.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ async def glm4v_prompt_from_messages(messages: list[Message], img_tok = "<|begin
return images, prompt

async def florence_prompt_from_messages(messages: list[Message], url_handler = url_to_image):
prompt = '<CAPTION>' # "<CAPTION>", "<DETAILED_CAPTION>", "<MORE_DETAILED_CAPTION>", "<OCR>"
prompt = '<MORE_DETAILED_CAPTION>' # "<CAPTION>", "<DETAILED_CAPTION>", "<MORE_DETAILED_CAPTION>", "<OCR>"
images = []

for m in messages:
Expand Down

0 comments on commit 2beb5e0

Please sign in to comment.