simplify self.extra_network_data
This commit is contained in:
parent
f098e726d3
commit
1c9d1b0ee0
@ -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)
|
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):
|
def parse_extra_network_prompts(self):
|
||||||
self.prompts, extra_network_data = extra_networks.parse_prompts(self.prompts)
|
self.prompts, self.extra_network_data = extra_networks.parse_prompts(self.prompts)
|
||||||
|
|
||||||
return extra_network_data
|
|
||||||
|
|
||||||
|
|
||||||
class Processed:
|
class Processed:
|
||||||
@ -702,7 +700,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||||||
if len(p.prompts) == 0:
|
if len(p.prompts) == 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
p.extra_network_data = p.parse_extra_network_prompts()
|
p.parse_extra_network_prompts()
|
||||||
|
|
||||||
if not p.disable_extra_networks:
|
if not p.disable_extra_networks:
|
||||||
with devices.autocast():
|
with devices.autocast():
|
||||||
|
Loading…
Reference in New Issue
Block a user