This commit is contained in:
Mohit Sharma 2025-04-22 14:41:20 +00:00
parent f1da19df41
commit dd91b60998

View File

@ -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