diff options
author | InvincibleDude <81354513+InvincibleDude@users.noreply.github.com> | 2023-01-29 17:40:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 17:40:06 +0000 |
commit | 0d834b9394bb1a9dbcbdc02a3d4d24d1e6511073 (patch) | |
tree | bae57ae9a419211fa4326d3daa8b15942496ab6b | |
parent | ee3d63b6beb88e63542976a1095d4c8aa97388bd (diff) | |
parent | 425eab34641e8e378db610d6a2b23f3ababe1058 (diff) | |
download | stable-diffusion-webui-gfx803-0d834b9394bb1a9dbcbdc02a3d4d24d1e6511073.tar.gz stable-diffusion-webui-gfx803-0d834b9394bb1a9dbcbdc02a3d4d24d1e6511073.tar.bz2 stable-diffusion-webui-gfx803-0d834b9394bb1a9dbcbdc02a3d4d24d1e6511073.zip |
Merge pull request #2 from InvincibleDude/extra-networks-test
Extra networks test
-rw-r--r-- | modules/processing.py | 6 |
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)
|