Skip to content

Commit

Permalink
Update optimum/intel/openvino/modeling_visual_language.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Mar 5, 2025
1 parent 7316d4e commit 36bf571
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion optimum/intel/openvino/modeling_visual_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,6 @@ def load_image(image, input_size=448, max_num=12):
)
image_tokens = IMG_START_TOKEN + IMG_CONTEXT_TOKEN * num_image_token * num_patches + IMG_END_TOKEN
text = text.replace("<image>", image_tokens, 1)
logger.warn(text)
inputs.update({"pixel_values": pixel_values})
inputs.update(tokenizer(text, return_tensors="pt"))
return inputs
Expand Down

0 comments on commit 36bf571

Please sign in to comment.