diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-21 13:41:25 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-21 13:41:25 +0000 |
commit | 92fb1096dbf6403e109a8eb7bc5d18ce487ae9b5 (patch) | |
tree | e1940d64533fcc3006875852567110541c6c18b3 /modules/processing.py | |
parent | 855b9e3d1c5a1bd8c2d815d38a38bc7c410be5a8 (diff) | |
download | stable-diffusion-webui-gfx803-92fb1096dbf6403e109a8eb7bc5d18ce487ae9b5.tar.gz stable-diffusion-webui-gfx803-92fb1096dbf6403e109a8eb7bc5d18ce487ae9b5.tar.bz2 stable-diffusion-webui-gfx803-92fb1096dbf6403e109a8eb7bc5d18ce487ae9b5.zip |
make it so that extra networks are not removed from infotext
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index b5deeacf..241961ac 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -561,7 +561,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: cache[0] = (required_prompts, steps)
return cache[1]
- p.all_prompts, extra_network_data = extra_networks.parse_prompts(p.all_prompts)
+ _, extra_network_data = extra_networks.parse_prompts(p.all_prompts[0:1])
with torch.no_grad(), p.sd_model.ema_scope():
with devices.autocast():
@@ -593,6 +593,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: if len(prompts) == 0:
break
+ prompts, _ = extra_networks.parse_prompts(prompts)
+
if p.scripts is not None:
p.scripts.process_batch(p, batch_number=n, prompts=prompts, seeds=seeds, subseeds=subseeds)
|