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

Is SD15 base pass to T0 manatory? #23

Open
huchenlei opened this issue Feb 25, 2024 · 2 comments
Open

Is SD15 base pass to T0 manatory? #23

huchenlei opened this issue Feb 25, 2024 · 2 comments

Comments

@huchenlei
Copy link

I am trying to implement X-Adapter in A1111 here https://github.com/huchenlei/sd-webui-xadapter/. As A1111 does not support running 2 denosing unet side by side (Or change this need more engineering effort I would like to commit), I decided to make the SD15 pass run before the SDXL pass. Hidden state outputs of last 3 decoder blocks are stored, and then applied back onto the SDXL model via xadapter. Implementation can be found here: https://github.com/huchenlei/sd-webui-xadapter/blob/main/scripts/xadapter.py

I am omitting the SD15 base pass from T0 for simplicity. However, the result is not satisfactory. Am I missing something? Is the SD15 base pass manatory?

@Semolce9
Copy link
Collaborator

Hi. Thank you for trying it in A1111. SD1.5's last three decoder's output changes after T0 and these changing values will guide sdxl in the following steps. Store it and meke it unchanged will affect the result.

@huchenlei
Copy link
Author

In the code I am storing the sd15 hidden states for each timesteps.

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