[Bugfix] Fix Qwen-Image-Edit-2511 TeaCache zero_cond_t handling (#3219)

Signed-off-by: JasonJ2021 <jasonj@zju.edu.cn>
Signed-off-by: Jason <72191212+JasonJ2021@users.noreply.github.com>
Co-authored-by: Zeyu Huang | 黃澤宇 <11222265+fhfuih@users.noreply.github.com>
This commit is contained in:
JasonandZeyu Huang | 黃澤宇 authored and GitHub committed 2026-05-27 11:06:18 +08:00
1 parent a3802d1e5c
commit 753508fe02
4 files changed
+15 -13

No files matched your search

+4 -2
View File
@@ -277,8 +277,10 @@ def extract_qwen_context(
def postprocess(h):
"""Apply Qwen-specific output postprocessing."""
t = temb.chunk(2, dim=0)[0] if module.zero_cond_t else temb
h = module.norm_out(h, t)
if getattr(module, "zero_cond_t", False):
h = module.norm_out(h, temb.chunk(2, dim=0)[0])
else:
h = module.norm_out(h, temb)
output = module.proj_out(h)
if not return_dict:
return (output,)