AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.16k stars 26.98k forks source link

Uncapped token limit does not work past the ~85th token #2106

Closed hentailord85ez closed 2 years ago

hentailord85ez commented 2 years ago

Describe the bug Tokens past ~85 do not really affect the prompt in a expected or consistant way. Tokens past ~90 do not do anything (except provide noise). It would be nice if someone could try on NovelAI (as they have a cap of ~200) if the behavior is the same.

To Reproduce I have generated an image with the same seed multiple times, with the text green eyes at different token positions and varying attention. Commas are used as an unobtrusive padding to help get up to the nth token, without changing the image in any significant way. The end of the prompt is also padded up to the 99th token.

All images are generated with: Steps: 20, Sampler: Euler, CFG scale: 11, Seed: 2347389309, Size: 512x640, Model hash: 925997e9, Clip skip: 2 Negative prompt: lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, artist name Using a certain trendy model (final-pruned), with the VAE and no hypernetworks. This model has been demonstrated to support up to ~200 tokens on the premium UI.

With green eyes at the:

Additional context I've only demonstrated with 1 seed here, but the behavior is consistent with any seed. Commas are used, but behavior is the same with normal words/tags.

hentailord85ez commented 2 years ago

If PR #2138 gets merged then it will be fixed. If some people could test try it out beforehand, that would be nice.