Skip to content

Comments

Add option to disable normalize embeddings after after calculating emphasis.#14874

Merged
AUTOMATIC1111 merged 5 commits intoAUTOMATIC1111:devfrom
hako-mikan:master
Feb 11, 2024
Merged

Add option to disable normalize embeddings after after calculating emphasis.#14874
AUTOMATIC1111 merged 5 commits intoAUTOMATIC1111:devfrom
hako-mikan:master

Conversation

@hako-mikan
Copy link
Contributor

@hako-mikan hako-mikan commented Feb 9, 2024

Description

In SDXL, there have been reports of artifacts occurring when combining prompts or using long prompts. I have discovered the cause of this phenomenon. It is the normalization that occurs after the calculation of emphasis. During this normalization, artifacts arise due to division by values close to zero and the inversion of signs. This normalization process dates back to the SD1.X era, where it seems to work well. However, in certain models of XL, it appears to have the opposite effect. Therefore, I will add an option to toggle this normalization on and off.
The detailed explanation can be found here or here(Japanese)

Checklist:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants