initial control api draft

This commit is contained in:
Vladimir Mandic
2024-03-26 12:52:07 -04:00
parent a56d54df9e
commit 1227e76128
11 changed files with 238 additions and 58 deletions
+3 -1
View File
@@ -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]