diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-03 20:19:34 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-03 20:19:34 +0000 |
commit | 1c9d1b0ee06cffe0ba1b33a5795755cf39e5dde2 (patch) | |
tree | c31cd90c84ce15adee3fd96feccaf8f1694f6cff /modules/processing.py | |
parent | f098e726d3e63aae8a6276ce83c55ac905c4379c (diff) | |
download | stable-diffusion-webui-gfx803-1c9d1b0ee06cffe0ba1b33a5795755cf39e5dde2.tar.gz stable-diffusion-webui-gfx803-1c9d1b0ee06cffe0ba1b33a5795755cf39e5dde2.tar.bz2 stable-diffusion-webui-gfx803-1c9d1b0ee06cffe0ba1b33a5795755cf39e5dde2.zip |
simplify self.extra_network_data
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/processing.py b/modules/processing.py index 22ddc256..fae83788 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -339,9 +339,7 @@ class StableDiffusionProcessing: self.c = self.get_conds_with_caching(prompt_parser.get_multicond_learned_conditioning, self.prompts, self.steps * self.step_multiplier, self.cached_c, self.extra_network_data)
def parse_extra_network_prompts(self):
- self.prompts, extra_network_data = extra_networks.parse_prompts(self.prompts)
-
- return extra_network_data
+ self.prompts, self.extra_network_data = extra_networks.parse_prompts(self.prompts)
class Processed:
@@ -702,7 +700,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: if len(p.prompts) == 0:
break
- p.extra_network_data = p.parse_extra_network_prompts()
+ p.parse_extra_network_prompts()
if not p.disable_extra_networks:
with devices.autocast():
|