Skip to content

Commit fb9dcb7

Browse files
committed
fix a bug
1 parent b403293 commit fb9dcb7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

llava_next/llava/mm_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,10 @@ def process_images(images, image_processor, model_cfg):
398398
for image in images:
399399
image = process_highres_image(image, image_processor, model_cfg.image_grid_pinpoints)
400400
new_images.append(image)
401+
elif image_aspect_ratio == "native":
402+
for image in images:
403+
image = process_native_image(image, image_processor)
404+
new_images.append(image)
401405
elif image_aspect_ratio == "anyres" or "anyres_max" in image_aspect_ratio:
402406
for image in images:
403407
image = process_anyres_image(image, image_processor, model_cfg.image_grid_pinpoints)

0 commit comments

Comments
 (0)