-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why can I only have 75 characters after updating the latest version? #1471
Comments
Did I use up any ghostwriting? Or is the old version also limited to 75, but the new version is displayed? |
It has to do with the tokenize limit for input characters. Long story short, Stable Diffusion has a limit for input text length. In general, a prompt must be 75 tokens or less, anything above will result in "prompt truncated after tokenization". Your prompt is case insensitive. There's about 30,000 tokens understood by the AI, this means it won't know about some weird word unused since the 1600s. A token is roughly a word, a punctuation, or a Unicode character. You can preview some common prompts here: https://promptomania.com/stable-diffusion-prompt-builder/ This is where Textual Inversion and saving existing tokenizer parameters as Styles come into play. Styles Example:
Textual Inversion Example:
|
You can manually tweak the https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/modules/ui.py#L348 |
Only 75 characters can't be used normally. Some keywords have more than 20 characters, some artists have more than 20 characters, and some keywords have a series of 50 characters. The limit of 75 characters can't be used normally
The text was updated successfully, but these errors were encountered: