This commit is contained in:
TheToxin-git
2026-07-19 19:40:24 -07:00
committed by GitHub
+1 -1
View File
@@ -73,7 +73,7 @@ class APG(io.ComfyNode):
guidance = cond - uncond
if momentum != 0:
if not torch.is_tensor(running_avg):
if not torch.is_tensor(running_avg) or (running_avg.shape != guidance.shape):
running_avg = guidance
else:
running_avg = momentum * running_avg + guidance