Merge pull request #113 from JX446/master

fix: 修复 eval_vlm.py 中 f-string 引号嵌套导致的语法错误
pull/115/head
jingyaogong 2026-04-01 15:31:33 +08:00 committed by GitHub
commit ac4c506eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,8 @@ def main():
inputs = tokenizer(inputs_text, return_tensors="pt", truncation=True).to(args.device)
print(f'[图像]: {image_file}')
print(f'💬: {prompt.replace('\n', '\\n')}')
display_prompt = prompt.replace('\n', '\\n')
print(f'💬: {display_prompt}')
print('🤖: ', end='')
st = time.time()
generated_ids = model.generate(

@ -0,0 +1 @@
Subproject commit 9327b4fe10ef8352fa3a32eddc8d3c8bff984286