From eaeb5453b878cfaad9b46cfd73d9719ef45cfd0d Mon Sep 17 00:00:00 2001 From: Disty0 Date: Wed, 7 Jun 2023 21:16:11 +0300 Subject: [PATCH] Fix show_progress_type --- modules/processing.py | 2 +- modules/sd_samplers_common.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/processing.py b/modules/processing.py index 4edef3350..386ec9985 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -609,7 +609,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: with torch.no_grad(), ema_scope_context(): with devices.autocast(): p.init(p.all_prompts, p.all_seeds, p.all_subseeds) - if shared.opts.live_previews_enable and opts.show_progress_type == "Approx NN" and backend == Backend.ORIGINAL: + if shared.opts.live_previews_enable and opts.show_progress_type == "Approximate NN" and backend == Backend.ORIGINAL: sd_vae_approx.model() if state.job_count == -1: state.job_count = p.n_iter diff --git a/modules/sd_samplers_common.py b/modules/sd_samplers_common.py index 1eacedca1..e76e7d4e8 100644 --- a/modules/sd_samplers_common.py +++ b/modules/sd_samplers_common.py @@ -22,7 +22,7 @@ def setup_img2img_steps(p, steps=None): return steps, t_enc -approximation_indexes = {"Full": 0, "Approx NN": 1, "Approx cheap": 2, "TAESD": 3} +approximation_indexes = {"Full VAE": 0, "Approximate NN": 1, "Approximate simple": 2, "TAESD": 3} def single_sample_to_image(sample, approximation=None):