mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +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(
|
logger.warning_once(
|
||||||
"You are using PaliGemma without a text prefix. It will perform as a picture-captioning model."
|
"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 isinstance(text, List) and isinstance(images, List):
|
||||||
if len(images) < len(text):
|
if len(images) < len(text):
|
||||||
|
Loading…
Reference in New Issue
Block a user