About a parameter suddenly appeared in the settings #2401
-
It's in the settings, in the Stable Diffusion column. "Increase coherency by padding from the last comma within n tokens when using more than 75 tokens" I want to know what function it works on...and whether it affects the generation of the image. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
When prompts are over 75 tokens (let's say 150 tokens), we are submitting multiple sets of 75 tokens. Tokens only have context of whatever else is in the same set. This means you might have "blue hair" at the border between the 1st and 2nd set, and the token "blue" will be in the 1st set, and "hair" will be in the second. What this leads to is incoherency, as the two words are separated. That setting tries to mitigate that by finding the last comma if there are any within the last N tokens, and if so - moving everything past that comma together into the next set. So: Don't know if that made much sense. If your prompts are <= 75 tokens then it won't make a difference. |
Beta Was this translation helpful? Give feedback.
When prompts are over 75 tokens (let's say 150 tokens), we are submitting multiple sets of 75 tokens. Tokens only have context of whatever else is in the same set. This means you might have "blue hair" at the border between the 1st and 2nd set, and the token "blue" will be in the 1st set, and "hair" will be in the second. What this leads to is incoherency, as the two words are separated.
That setting tries to mitigate that by finding the last comma if there are any within the last N tokens, and if so - moving everything past that comma together into the next set.
So:
Set 1: {[74]=COMMA,[75]=blue}, Set 2: {[76]=hair} => Set 1: {[74]=COMMA,[75]=PADDING}, Set 2: {[76]=blue, [77]=hair}
Don't …