You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompt truncation detection and return of tokenized prompts #447
Is your feature request related to a problem? Please describe.
There are examples of long prompts on the web, but many people are unaware that long strings are truncated.
However, there is no way to know wheter StableDifusionPipelineOutputprompt truncated long prompt or not.
Additional context
In my app, after generating images, it tokenizes prompts separately to check whether they has been truncated or not.
However, this is a waste to tokenize them again.
Activity
patrickvonplaten commentedon Sep 13, 2022
Thanks for opening this issue - that's a good comment indeed!
Cc @anton-l @patil-suraj here
Warning for too long prompts in DiffusionPipelines (Resolve #447) (#472)
Warning for too long prompts in DiffusionPipelines (Resolve huggingfa…
[WEB] Update stable diffusion UI and enable live preview (huggingface…
Warning for too long prompts in DiffusionPipelines (Resolve huggingfa…