simplify self.extra_network_data

This commit is contained in:
w-e-w 2023-06-04 05:19:34 +09:00
parent f098e726d3
commit 1c9d1b0ee0
1 changed files with 2 additions and 4 deletions

View File

@ -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():