diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-25 15:56:23 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-25 15:56:23 +0000 |
commit | 57c1baa774d07060af0abbd2974c5f36c8cb63ac (patch) | |
tree | 676bdb600487d33fa49fc86376e488e15c0b0ce2 /modules/processing.py | |
parent | 23dafe6d868d8da1523f71bc08266e370675a909 (diff) | |
download | stable-diffusion-webui-gfx803-57c1baa774d07060af0abbd2974c5f36c8cb63ac.tar.gz stable-diffusion-webui-gfx803-57c1baa774d07060af0abbd2974c5f36c8cb63ac.tar.bz2 stable-diffusion-webui-gfx803-57c1baa774d07060af0abbd2974c5f36c8cb63ac.zip |
change to code for live preview fix on OSX to be bit more obvious
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index 3bd590ba..57c3db1b 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -568,8 +568,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: with devices.autocast():
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:
- # preload approx nn model before sampling for a more deterministic result
+ # for OSX, loading the model during sampling changes the generated picture, so it is loaded here
+ if shared.opts.live_previews_enable and opts.show_progress_type == "Approx NN":
sd_vae_approx.model()
if not p.disable_extra_networks:
|