Skip to content
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

What attention_scale.py does and how it works? #11

Open
rezponze opened this issue Jun 2, 2024 · 3 comments
Open

What attention_scale.py does and how it works? #11

rezponze opened this issue Jun 2, 2024 · 3 comments

Comments

@rezponze
Copy link

rezponze commented Jun 2, 2024

HI!! Thanks for Attention Couple, really useful!

Regarding Attention Scale, is it supposed to work with Attention Couple when doing a HiRes Fix pass?

If so, what do the values mean, and how it is wired?

@laksjdjf
Copy link
Owner

laksjdjf commented Jun 3, 2024

It is similar to UNetSelfAttentionMultiply or UNetCrossAttentionMultiply.

@rezponze
Copy link
Author

rezponze commented Jun 3, 2024

I'm unfamiliar with those two nodes and my knowledge is not that deep. Tried googling but couldn't find much.
Would you mind explaining just a bit what they do?

@laksjdjf
Copy link
Owner

laksjdjf commented Jun 3, 2024

The model has a mechanism to investigate the correlation between each token of the prompt and each pixel of the image. By lowering the temperature, the correlation is adjusted to become stronger for only certain pixels. This was implemented with the expectation of making the model more faithful to the prompt.

The effect of attn1 is unclear.

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

No branches or pull requests

2 participants