mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
Cleanup console spam
This commit is contained in:
@@ -77,7 +77,10 @@ def activate(p, extra_network_data, step=0):
|
||||
for extra_network_args in extra_network_data.values():
|
||||
stepwise = stepwise or is_stepwise(extra_network_args)
|
||||
functional = shared.opts.lora_functional
|
||||
shared.opts.lora_functional = stepwise or functional
|
||||
if shared.opts.lora_force_diffusers and stepwise:
|
||||
shared.log.warning("Composable LoRA not compatible with 'lora_force_diffusers'")
|
||||
stepwise = False
|
||||
shared.opts.data['lora_functional'] = stepwise or functional
|
||||
for extra_network_name, extra_network_args in extra_network_data.items():
|
||||
extra_network = extra_network_registry.get(extra_network_name, None)
|
||||
if extra_network is None:
|
||||
|
||||
@@ -74,13 +74,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
|
||||
raise AssertionError('Interrupted...')
|
||||
time.sleep(0.1)
|
||||
if hasattr(p, "extra_network_data"):
|
||||
if shared.opts.lora_force_diffusers:
|
||||
shared.log.warning("Composable LoRA not compatible with 'lora_force_diffusers'")
|
||||
else:
|
||||
functional = shared.opts.lora_functional
|
||||
shared.opts.lora_functional = True
|
||||
extra_networks.activate(p, p.extra_network_data, step=step)
|
||||
shared.opts.lora_functional = functional
|
||||
extra_networks.activate(p, p.extra_network_data, step=step)
|
||||
if latents is None:
|
||||
return kwargs
|
||||
elif shared.opts.nan_skip:
|
||||
|
||||
Reference in New Issue
Block a user