mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 07:42:06 +00:00
nit
This commit is contained in:
parent
f1da19df41
commit
dd91b60998
@ -204,7 +204,8 @@ def preprocess_image(config, img):
|
||||
img = img.resize((img.width * 2, img.height * 2))
|
||||
elif model_type == "paligemma":
|
||||
img = img.convert("RGB")
|
||||
elif model_type not in {"llava_next", "gemma3", "llama4"}:
|
||||
|
||||
if model_type in {"llava_next", "gemma3", "llama4"}:
|
||||
img = [img]
|
||||
|
||||
return img
|
||||
|
Loading…
Reference in New Issue
Block a user