linoyts HF staff commited on
Commit
437dac5
·
verified ·
1 Parent(s): fcfe1ba

Update inversion_utils.py

Browse files
Files changed (1) hide show
  1. 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):