linoyts HF staff commited on
Commit
d97f88a
1 Parent(s): 814d856

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1716,12 +1716,12 @@ class LEditsPPPipelineStableDiffusionXL(
1716
  xts[idx] = xtm1_corrected
1717
  print("post loop 2")
1718
 
1719
- self.init_latents = xts[-1]
1720
  zs = zs.flip(0)
1721
 
1722
  if num_zero_noise_steps > 0:
1723
  zs[-num_zero_noise_steps:] = torch.zeros_like(zs[-num_zero_noise_steps:])
1724
- self.zs = zs
1725
  #return LEditsPPInversionPipelineOutput(images=resized, vae_reconstruction_images=image_rec)
1726
  return xts[-1], zs
1727
 
 
1716
  xts[idx] = xtm1_corrected
1717
  print("post loop 2")
1718
 
1719
+ #self.init_latents = xts[-1]
1720
  zs = zs.flip(0)
1721
 
1722
  if num_zero_noise_steps > 0:
1723
  zs[-num_zero_noise_steps:] = torch.zeros_like(zs[-num_zero_noise_steps:])
1724
+ #self.zs = zs
1725
  #return LEditsPPInversionPipelineOutput(images=resized, vae_reconstruction_images=image_rec)
1726
  return xts[-1], zs
1727