aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorInvincibleDude <81354513+InvincibleDude@users.noreply.github.com>2023-01-29 20:40:06 +0300
committerGitHub <noreply@github.com>2023-01-29 20:40:06 +0300
commit0d834b9394bb1a9dbcbdc02a3d4d24d1e6511073 (patch)
treebae57ae9a419211fa4326d3daa8b15942496ab6b /modules/processing.py
parentee3d63b6beb88e63542976a1095d4c8aa97388bd (diff)
parent425eab34641e8e378db610d6a2b23f3ababe1058 (diff)
Merge pull request #2 from InvincibleDude/extra-networks-test
Extra networks test
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 605c541e..a2a91a5b 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -555,6 +555,12 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
model_hijack.embedding_db.load_textual_inversion_embeddings()
_, extra_network_data = extra_networks.parse_prompts(p.all_prompts[0:1])
+ if type(p) == StableDiffusionProcessingTxt2Img:
+ if p.enable_hr and p.hr_prompt != '':
+ _, hr_extra_network_data = extra_networks.parse_prompts(p.all_hr_prompts[0:1])
+ if p.all_hr_prompts != p.all_prompts:
+ extra_network_data.update(hr_extra_network_data)
+
if p.scripts is not None:
p.scripts.process(p)