ComfyUI
ComfyUI copied to clipboard
Allow no preview model for latent_preview
This makes it easy for modules to show progress bar without preview Example usage:
callback = latent_preview.prepare_callback(None, len(image))
to initialize and then to use
callback(i, None, None, len(p.init_images))
to update the bar.