Unverified Commit a7557455 authored by hoshi-hiyouga's avatar hoshi-hiyouga Committed by GitHub
Browse files

PaliGemma - fix processor with no input text (#30916)

Update processing_paligemma.py
parent d502bd64
......@@ -177,6 +177,7 @@ class PaliGemmaProcessor(ProcessorMixin):
logger.warning_once(
"You are using PaliGemma without a text prefix. It will perform as a picture-captioning model."
)
text = ""
if isinstance(text, List) and isinstance(images, List):
if len(images) < len(text):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment