Spaces:
Running
on
A10G
Running
on
A10G
Update inversion_utils.py
Browse files- inversion_utils.py +1 -1
inversion_utils.py
CHANGED
@@ -143,7 +143,7 @@ def inversion_forward_process(model, x0,
|
|
143 |
timesteps = model.scheduler.timesteps.to(model.device)
|
144 |
variance_noise_shape = (
|
145 |
num_inference_steps,
|
146 |
-
model.unet.in_channels,
|
147 |
model.unet.sample_size,
|
148 |
model.unet.sample_size)
|
149 |
if etas is None or (type(etas) in [int, float] and etas == 0):
|
|
|
143 |
timesteps = model.scheduler.timesteps.to(model.device)
|
144 |
variance_noise_shape = (
|
145 |
num_inference_steps,
|
146 |
+
model.unet.config.in_channels,
|
147 |
model.unet.sample_size,
|
148 |
model.unet.sample_size)
|
149 |
if etas is None or (type(etas) in [int, float] and etas == 0):
|