mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +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))
|
img = img.resize((img.width * 2, img.height * 2))
|
||||||
elif model_type == "paligemma":
|
elif model_type == "paligemma":
|
||||||
img = img.convert("RGB")
|
img = img.convert("RGB")
|
||||||
elif model_type not in {"llava_next", "gemma3", "llama4"}:
|
|
||||||
|
if model_type in {"llava_next", "gemma3", "llama4"}:
|
||||||
img = [img]
|
img = [img]
|
||||||
|
|
||||||
return img
|
return img
|
||||||
|
Loading…
Reference in New Issue
Block a user