aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-21 19:36:08 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-21 19:36:08 +0300
commit3deea3413575db0ff71f20f4265f3bdc08e35453 (patch)
tree94d0128a3325684b3a9688274cb5a73019985310 /modules
parenta2749ec655af93d96ea7ebed85e8c1e7c5072b02 (diff)
extract extra network data from prompt earlier
Diffstat (limited to 'modules')
-rw-r--r--modules/processing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 241961ac..6e6371a1 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -532,6 +532,8 @@ 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)
@@ -561,8 +563,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
cache[0] = (required_prompts, steps)
return cache[1]
- _, extra_network_data = extra_networks.parse_prompts(p.all_prompts[0:1])
-
with torch.no_grad(), p.sd_model.ema_scope():
with devices.autocast():
p.init(p.all_prompts, p.all_seeds, p.all_subseeds)