mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
PaliGemma - fix processor with no input text (#30916)
Update processing_paligemma.py
This commit is contained in:
parent
d502bd6475
commit
a755745546
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user