Fix RescaleCFG for batch size > 1.

This commit is contained in:
comfyanonymous 2023-11-10 22:05:25 -05:00
parent 58d5d71a93
commit ca2812bae0
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ class RescaleCFG:
uncond = args["uncond"]
cond_scale = args["cond_scale"]
sigma = args["sigma"]
sigma = sigma.view(sigma.shape[:1] + (1,) * (cond.ndim - 1))
x_orig = args["input"]
#rescale cfg has to be done on v-pred model output