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

Diffusers with newer version #4

Open
SeucheAchat9115 opened this issue Jan 12, 2024 · 2 comments
Open

Diffusers with newer version #4

SeucheAchat9115 opened this issue Jan 12, 2024 · 2 comments

Comments

@SeucheAchat9115
Copy link

Hi, the Code does not work anymore with diffusers version e.g. 0.25.0 because the unet expects another input nowadays.
Is there a quick fix how to handle such?

@vinesmsuic
Copy link

vinesmsuic commented Jan 18, 2024

https://github.com/MichalGeyer/pnp-diffusers/blob/main/pnp_utils.py

...
def register_conv_control_efficient(model, injection_schedule):
    def conv_forward(self):
        def forward(input_tensor, temb, scale=None): # https://github.com/omerbt/TokenFlow/issues/29 workaround with diffusers 0.21+
            hidden_states = input_tensor
...

@SeucheAchat9115
Copy link
Author

Thank you very much!

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