lllyasviel commited on
Commit
d0e6dba
·
1 Parent(s): b2f47d1
Files changed (1) hide show
  1. modules/core.py +4 -1
modules/core.py CHANGED
@@ -81,7 +81,10 @@ def get_previewer(device, latent_format):
81
  x_sample = einops.rearrange(x_sample, 'b c h w -> b h w c')
82
  x_sample = x_sample.cpu().numpy().clip(0, 255).astype(np.uint8)
83
  for i, s in enumerate(x_sample):
84
- show_preview(f'OpenCV Diffusion Preview {i}', s, title=f'Preview Image {i} [{step}/{total_steps}]')
 
 
 
85
 
86
  taesd.preview = preview_function
87
 
 
81
  x_sample = einops.rearrange(x_sample, 'b c h w -> b h w c')
82
  x_sample = x_sample.cpu().numpy().clip(0, 255).astype(np.uint8)
83
  for i, s in enumerate(x_sample):
84
+ if i > 0:
85
+ show_preview(f'OpenCV Diffusion Preview {i}', s, title=f'Preview Image {i} [{step}/{total_steps}]')
86
+ else:
87
+ show_preview(f'OpenCV Diffusion Preview {i}', s, title=f'Preview Image [{step}/{total_steps}]')
88
 
89
  taesd.preview = preview_function
90