Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kennymckormick committed Mar 23, 2024
1 parent 837a2a8 commit 05e9b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlmeval/vlm/llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def generate(self, image_path, prompt, dataset=None):
elif 'ASSISTANT:' in answer:
answer = answer.split('ASSISTANT:')[1].strip()
elif '<|im_start|>assistant\n' in answer:
answer = answer.split('<|im_start|>assistant\n')[1].strip()
answer = answer.split('assistant\n')[1].strip()

if '</s>' in answer:
answer = answer.split('</s>')[0].strip()
Expand Down

0 comments on commit 05e9b97

Please sign in to comment.