change to code for live preview fix on OSX to be bit more obvious

This commit is contained in:
AUTOMATIC 2023-01-25 18:56:23 +03:00
parent 23dafe6d86
commit 57c1baa774

View File

@ -568,8 +568,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
with devices.autocast(): with devices.autocast():
p.init(p.all_prompts, p.all_seeds, p.all_subseeds) p.init(p.all_prompts, p.all_seeds, p.all_subseeds)
if shared.opts.live_previews_enable and sd_samplers.approximation_indexes.get(shared.opts.show_progress_type, 0) == 1: # for OSX, loading the model during sampling changes the generated picture, so it is loaded here
# preload approx nn model before sampling for a more deterministic result if shared.opts.live_previews_enable and opts.show_progress_type == "Approx NN":
sd_vae_approx.model() sd_vae_approx.model()
if not p.disable_extra_networks: if not p.disable_extra_networks: