tiny fix
Former-commit-id: 8b4f408da110d74285bae20bbd969013a979964b
This commit is contained in:
@@ -208,7 +208,7 @@ class Qwen2vlPlugin(BasePlugin):
|
|||||||
) -> List[Dict[str, str]]:
|
) -> List[Dict[str, str]]:
|
||||||
image_processor: "BaseImageProcessor" = getattr(processor, "image_processor")
|
image_processor: "BaseImageProcessor" = getattr(processor, "image_processor")
|
||||||
merge_length: int = getattr(image_processor, "merge_size") ** 2
|
merge_length: int = getattr(image_processor, "merge_size") ** 2
|
||||||
if len(images) > 0:
|
if len(images) != 0:
|
||||||
image_grid_thw = _get_mm_inputs(images, processor)["image_grid_thw"]
|
image_grid_thw = _get_mm_inputs(images, processor)["image_grid_thw"]
|
||||||
else:
|
else:
|
||||||
image_grid_thw = []
|
image_grid_thw = []
|
||||||
|
|||||||
Reference in New Issue
Block a user