fffiloni commited on
Commit
84bc684
1 Parent(s): 01c304d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1564,9 +1564,9 @@ class AccDiffusionSDXLPipeline(DiffusionPipeline, FromSingleFileMixin, LoraLoade
1564
 
1565
  print("### Phase {} Decoding ###".format(current_scale_num))
1566
  if current_height > 2048 or current_width > 2048:
1567
- image = self.tiled_decode(latents, current_height, current_width)
1568
- # self.enable_vae_tiling()
1569
- # image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
1570
  else:
1571
  image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
1572
 
 
1564
 
1565
  print("### Phase {} Decoding ###".format(current_scale_num))
1566
  if current_height > 2048 or current_width > 2048:
1567
+ # image = self.tiled_decode(latents, current_height, current_width)
1568
+ self.enable_vae_tiling()
1569
+ image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
1570
  else:
1571
  image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
1572