Skip to content

Commit ca64ae5

Browse files
committed
[llama4] Pop aspect_ratios from image processor output in Llama4Processor
Signed-off-by: Jon Swenson <[email protected]>
1 parent 7352034 commit ca64ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/models/llama4/processing_llama4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def __call__(
344344
num_patches_per_chunk = int(
345345
(image_height // self.patch_size) * (image_width // self.patch_size) // self.downsample_ratio
346346
)
347-
aspect_ratios = image_inputs["aspect_ratios"]
347+
aspect_ratios = image_inputs.pop("aspect_ratios")
348348

349349
total_placeholders = sum(prompt.count(self.fake_image_token) for prompt in text)
350350
if total_placeholders != len(images):

0 commit comments

Comments
 (0)