Skip to content

Commit

Permalink
minor fix for comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunhao Fang committed Apr 3, 2024
1 parent f45e423 commit bbe444e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llava/model/multimodal_encoder/vision_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _maybe_resize_pos_embeds(
):
if resolution in [model.config.image_size, -1]:
return
print("Resizing vision model's position embeddings to increase vision resolution...")
print(f"Resizing vision model's position embeddings to support higher vision resolution: from {model.config.image_size} to {resolution} ...")
embeddings = model.vision_model.embeddings
patch_size = embeddings.patch_size
num_new_tokens = int((resolution // patch_size) ** 2)
Expand Down

0 comments on commit bbe444e

Please sign in to comment.