fffiloni commited on
Commit
4bb7fd5
·
verified ·
1 Parent(s): 92c26dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1570,10 +1570,11 @@ class AccDiffusionSDXLPipeline(DiffusionPipeline, FromSingleFileMixin, LoraLoade
1570
  else:
1571
  image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
1572
 
 
1573
  image = self.image_processor.postprocess(image, output_type=output_type)
1574
- print(f"DEBUG IMAGE: {image}")
1575
  image[0].save(f'{result_path}/AccDiffusion_{current_scale_num}.png')
1576
- print(f"DEBUG IMAGE[0]: {image[0]}")
1577
  output_images.append(f'{result_path}/AccDiffusion_{current_scale_num}.png')
1578
 
1579
  # cast back to fp16 if needed
 
1570
  else:
1571
  image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
1572
 
1573
+ print(f"DEBUG: Image shape before postprocess: {image.shape}, dtype: {image.dtype}")
1574
  image = self.image_processor.postprocess(image, output_type=output_type)
1575
+ print(f"DEBUG: Image shape after postprocess: {image.shape}, dtype: {image.dtype}")
1576
  image[0].save(f'{result_path}/AccDiffusion_{current_scale_num}.png')
1577
+ print(f"DEBUG: Image saved at {result_path}/AccDiffusion_{current_scale_num}.png")
1578
  output_images.append(f'{result_path}/AccDiffusion_{current_scale_num}.png')
1579
 
1580
  # cast back to fp16 if needed