Skip to content

Commit

Permalink
[fix] LlavaNextProcessor '_get_unpadded_features' method
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentd-lunit committed Sep 4, 2024
1 parent ebbe8d8 commit e9a7b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/llava_next/processing_llava_next.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ def _get_unpadded_features(self, height, width, patches_height, patches_width, s
because it divided each image into patches depending on its resolution. Therefore we need to calculate how many
patches an image is divided into and get the number of features from that.
"""
current_width = patches_height * scale_height
current_height = patches_width * scale_width
current_height = patches_height * scale_height
current_width = patches_width * scale_width

original_aspect_ratio = width / height
current_aspect_ratio = current_width / current_height
Expand Down

0 comments on commit e9a7b30

Please sign in to comment.