Unverified Commit 746f603b authored by Liang Hou's avatar Liang Hou Committed by GitHub
Browse files

Fix the text tokenizer name in logger warning of PixArt pipelines (#7912)

Fix CLIP to T5 in logger warning
parent 2afea72d
......@@ -366,7 +366,7 @@ class PixArtAlphaPipeline(DiffusionPipeline):
):
removed_text = self.tokenizer.batch_decode(untruncated_ids[:, max_length - 1 : -1])
logger.warning(
"The following part of your input was truncated because CLIP can only handle sequences up to"
"The following part of your input was truncated because T5 can only handle sequences up to"
f" {max_length} tokens: {removed_text}"
)
......
......@@ -292,7 +292,7 @@ class PixArtSigmaPipeline(DiffusionPipeline):
):
removed_text = self.tokenizer.batch_decode(untruncated_ids[:, max_length - 1 : -1])
logger.warning(
"The following part of your input was truncated because CLIP can only handle sequences up to"
"The following part of your input was truncated because T5 can only handle sequences up to"
f" {max_length} tokens: {removed_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