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 diffusers v0.29 #1037

Merged
merged 3 commits into from
Jul 24, 2024
Merged

support diffusers v0.29 #1037

merged 3 commits into from
Jul 24, 2024

Conversation

marigoold
Copy link
Collaborator

社区用户反馈 0.29 diffusers 切换分辨率报错 #1033
原因是 0.29 的 transformer2d 的实现从 diffusers.models.transformer_2d 挪到了 diffusers.models.transformers.transformer_2d 里面,导致原来的代码 register 转换的 map 失败,运行报错

这个 PR 修复了 bug,把 0.29 的对应实现放在了一个新的文件里,增加可读性,并且准备以此为例子,对这部分代码进行重构。
另外对于装饰器函数,增加了 wrap(func) 的装饰。(原来的实现会改变函数 inspect 的内容,导致很难 debug)

@marigoold marigoold merged commit 38abb3a into main Jul 24, 2024
7 checks passed
@marigoold marigoold deleted the fix-wy-support-diffusers-0-29 branch July 24, 2024 14:30
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