Fixe Star zero bug

This commit is contained in:
DeepBeepMeep 2025-03-26 19:07:21 +01:00
parent 4282a4c095
commit 16b6fbacec
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)