aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-04 05:19:34 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-04 05:19:34 +0900
commit1c9d1b0ee06cffe0ba1b33a5795755cf39e5dde2 (patch)
treec31cd90c84ce15adee3fd96feccaf8f1694f6cff /modules/processing.py
parentf098e726d3e63aae8a6276ce83c55ac905c4379c (diff)
simplify self.extra_network_data
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py6
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():