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

Support for UNet3DConditionModel #4

Merged
merged 9 commits into from
Sep 28, 2023
Merged

Conversation

neurowelt
Copy link
Contributor

Thank you so much for this repository! As I am currently working with both image and video pipelines, I added the UNet 3D regsiter methods, so you could use FreeU in Zeroscope/Modelscope models.

Changelog:

  • Add UpBlock3D and CrossAttnUpBlock3D register methods
  • Add scale argument required for newer diffusers versions (tested on v.0.21.2)
  • Cosmetics, added method descriptions, improved logging and cleaned up imports

@charlesmccarthy
Copy link

Amazing please join us on the t2v and zeroscope discord https://discord.gg/hQEjvgRQkY

@YisuiTT
Copy link

YisuiTT commented Oct 3, 2023

Thank you so much for this repository! As I am currently working with both image and video pipelines, I added the UNet 3D regsiter methods, so you could use FreeU in Zeroscope/Modelscope models.

Changelog:

  • Add UpBlock3D and CrossAttnUpBlock3D register methods
  • Add scale argument required for newer diffusers versions (tested on v.0.21.2)
  • Cosmetics, added method descriptions, improved logging and cleaned up imports

Hello, I use this code in animatediff, but there is an error:TypeError: register_free_upblock3d..up_forward..forward() got an unexpected keyword argument 'encoder_hidden_states'

@neurowelt
Copy link
Contributor Author

@YisuiTT Could you provide a bit more context - which AnimateDiff are you using and how do you register the FreeU blocks?

@YisuiTT
Copy link

YisuiTT commented Oct 3, 2023

Thanks for answer. I use this AnimateDiff:https://github.com/tumurzakov/AnimateDiff, and add FreeU like this:
image

the whole error:
1696326700106

@neurowelt
Copy link
Contributor Author

Thanks for the traceback @YisuiTT , I'll try to reproduce it and will let know when I figure it out 🤗

@neurowelt
Copy link
Contributor Author

@YisuiTT Sorry for not checking this out for such a long time, it was a bit hectic for me. I think you should check out the newest diffusers update, it contains a lot of things including AnimateDiff and FreeU.

You can check out the detailed changelog here.

@YisuiTT
Copy link

YisuiTT commented Nov 7, 2023

🆗, thanks for telling me.

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.

4 participants