mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 22:26:36 +00:00
Fixe Star zero bug
This commit is contained in:
parent
4282a4c095
commit
16b6fbacec
@ -409,7 +409,7 @@ class WanI2V:
|
||||
|
||||
|
||||
if (i <= cfg_zero_step):
|
||||
noise_pred *= 0. # it would be faster not to compute noise_pred...
|
||||
noise_pred = noise_pred_text*0. # it would be faster not to compute noise_pred...
|
||||
else:
|
||||
noise_pred_uncond *= alpha
|
||||
noise_pred = noise_pred_uncond + guide_scale * (noise_pred_text - noise_pred_uncond)
|
||||
|
||||
@ -306,7 +306,7 @@ class WanT2V:
|
||||
alpha = alpha.view(batch_size, 1, 1, 1)
|
||||
|
||||
if (i <= cfg_zero_step):
|
||||
noise_pred *= 0. # it would be faster not to compute noise_pred...
|
||||
noise_pred = noise_pred_text*0. # it would be faster not to compute noise_pred...
|
||||
else:
|
||||
noise_pred_uncond *= alpha
|
||||
noise_pred = noise_pred_uncond + guide_scale * (noise_pred_text - noise_pred_uncond)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user