mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-26 03:41:57 -08:00
Merge pull request #2 from InvincibleDude/extra-networks-test
Extra networks test
This commit is contained in:
commit
0d834b9394
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue