Python
Fixe Star zero bug
DeepBeepMeep16b6fbaceccf
diff --git a/wan/image2video.py b/wan/image2video.pyindex 67c7b07..7a9285d 100644--- a/wan/image2video.py+++ b/wan/image2video.py@@ -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 *= alphanoise_pred = noise_pred_uncond + guide_scale * (noise_pred_text - noise_pred_uncond)diff --git a/wan/text2video.py b/wan/text2video.pyindex b37b383..088a9c7 100644--- a/wan/text2video.py+++ b/wan/text2video.py@@ -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 *= alphanoise_pred = noise_pred_uncond + guide_scale * (noise_pred_text - noise_pred_uncond)