Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
the documentations are correct increase by a factor means that you multiply by the factor increase by 1.1 -> 1 * 1.1 = 1.1 = 110% yes the terminology are confusing (and it seems sometimes the terms are used differently)
so a (word:0.25)
regardless of the terminology what is actually implemented in code is the important thing stable-diffusion-webui/modules/prompt_parser.py Lines 410 to 411 in de03882 as you can see |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There are some numeric errors in the factor values from increase/decrease attention in the following page:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#attentionemphasis
The so called multipliers are not constants. They are percentages.
"AUTOMATIC1111 have 1.1 as the multiplier": 1.1 = 1.10 = 110/100 = 110% (this is an increase of 10%)
"NAI have 1.05 as the multiplier": 1.05 = 105/100 = 105% (this is an increase of 5%)
This is to say:
AUTOMATIC1111: increase/decrease attention 10% by 10%
NAI: increase/decrease attention 5% by 5%
It says:
It should say:
(Attention/emphasis)
Cheat sheet:
a (word) - increase attention to word by a factor of 1.1
—(= increase attention by 10%)
—(= resulting attention is 110%)
a ((word)) - increase attention to word by a factor of 1.21 (= 1.1 * 1.1)
—(= increase attention by 21%)
—(= increase attention by 10% and increase again by 10%)
—(= resulting attention is 121%)
a [word] - decrease attention to word by a factor of 0.9
—(= decrease attention by 10%)
—(= resulting attention is 90%)
—[word] = (word:0.9)
☻ a [[word]] - decrease attention to word by a factor of 0.81 (= 0.9 * 0.9)
—(= decrease attention by 19%)
—(= decrease attention by 10% and decrease again by 10%)
—(= resulting attention is 81%)
☻ a [[[word]]] - decrease attention to word by a factor of 0.729 (= 0.9 * 0.9 * 0.9)
—(= decrease attention by 27.1%)
—(= decrease attention by 10%, decrease again by 10%, and decrease again by 10%)
—(= resulting attention is 72.9%)
a (word:1.5) - increase attention to word by a factor of 1.5
—(= increase attention by 50%)
—(= resulting attention is 150%)
a (word:0.25) - decrease attention to word by a factor of 0.25 (= 25/100 = 25% = 1/4)
—(= decrease attention by 75%)
—(= decrease attention to one-fourth)
—(= resulting attention is 25%)
a (word) - use literal () characters in prompt
It says:
It should say:
NAI uses ... they have 1.05 as the multiplier and ... So the conversion applies:
their {word} = our (word:1.05) (1.05 = 105/100 = 105%)
—(= increase attention by 5%)
—(= resulting attention is 105%)
their {{word}} = our (word:1.1025) (1.1025 = 110.25/100 = 110.25%)
—(= increase attention by 10.25%)
—(= resulting attention is 110.25%)
their [word] = our (word:0.95)
—(= decrease attention by 5%)
—(= resulting attention is 95%)
their [[word]] = our (word:0.9025) (0.9025 = 0.95 * 0.95)
—(= decrease attention by 9.75%)
—(= decrease attention by 5% and decrease again by 5%)
—(= resulting attention is 90.25%)
Beta Was this translation helpful? Give feedback.
All reactions