mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
initial control api draft
This commit is contained in:
@@ -70,7 +70,9 @@ class Script(scripts.Script):
|
||||
def process(self, p: processing.StableDiffusionProcessing, *args): # pylint: disable=arguments-differ
|
||||
if shared.backend != shared.Backend.DIFFUSERS:
|
||||
return
|
||||
args = list(args)
|
||||
args = list(args) if args is not None else []
|
||||
if len(args) == 0:
|
||||
return
|
||||
units = args.pop(0)
|
||||
if getattr(p, 'ip_adapter_names', []) == []:
|
||||
p.ip_adapter_names = args[:MAX_ADAPTERS][:units]
|
||||
|
||||
Reference in New Issue
Block a user