diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-02-19 06:15:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 06:15:45 +0000 |
commit | 6911deb2423755000ccbc2283da738512b3eec27 (patch) | |
tree | 2ff5ea289b09e6eec6639bcab399a5aa07a77de0 /modules/processing.py | |
parent | b20737815a55cd90cfab2a1a3d60d682a67b127a (diff) | |
parent | 75e03785fe1fb47c3b288105e2638ef06d81aef2 (diff) | |
download | stable-diffusion-webui-gfx803-6911deb2423755000ccbc2283da738512b3eec27.tar.gz stable-diffusion-webui-gfx803-6911deb2423755000ccbc2283da738512b3eec27.tar.bz2 stable-diffusion-webui-gfx803-6911deb2423755000ccbc2283da738512b3eec27.zip |
Merge branch 'master' into fix-save-params-2
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/processing.py b/modules/processing.py index 73894822..269a1a9f 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -543,8 +543,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: if os.path.exists(cmd_opts.embeddings_dir) and not p.do_not_reload_embeddings:
model_hijack.embedding_db.load_textual_inversion_embeddings()
- _, extra_network_data = extra_networks.parse_prompts(p.all_prompts[0:1])
-
if p.scripts is not None:
p.scripts.process(p)
@@ -605,7 +603,11 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: if len(prompts) == 0:
break
- prompts, _ = extra_networks.parse_prompts(prompts)
+ prompts, extra_network_data = extra_networks.parse_prompts(prompts)
+
+ if not p.disable_extra_networks:
+ with devices.autocast():
+ extra_networks.activate(p, extra_network_data)
if p.scripts is not None:
p.scripts.process_batch(p, batch_number=n, prompts=prompts, seeds=seeds, subseeds=subseeds)
|