fix: WanVAE2.2 encode and decode error#1296
fix: WanVAE2.2 encode and decode error#1296Explorer-Dong wants to merge 3 commits intomodelscope:mainfrom
Conversation
Summary of ChangesHello @Explorer-Dong, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 此拉取请求旨在修复 WanVAE2.2 模型中存在的编码和解码错误,这些错误是由于近期对 WanVAE 代码的调整导致 Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
diffsynth/models/wan_video_vae.py
Outdated
| x = self.conv2(z) | ||
| for i in range(iter_): | ||
| self._conv_idx = [0] | ||
| # breakpoint() |
我正在 Wan2.2-TI2V-5B 上展开实验,但我发现最近对 WanVAE 的调整 4e9db26 6886f7b 导致原本可以运行的代码失效了。我的修复逻辑如下:
x, feat_cache, feat_idx,所以 Resample38 的前向传播结果需要三元组来收集。WanVAE2.2 的 decode 阶段也调用了 Resample38 类的 forward,所以同理。