mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Finish TODO fix script
This commit is contained in:
@@ -71,14 +71,14 @@ class Script(scripts.Script):
|
||||
return
|
||||
args = list(args)
|
||||
units = args.pop(0)
|
||||
if p.ip_adapter_names is None:
|
||||
if p.ip_adapter_names == []:
|
||||
p.ip_adapter_names = args[:MAX_ADAPTERS][:units]
|
||||
if p.ip_adapter_scales == 0.0:
|
||||
if p.ip_adapter_scales == [0.0]:
|
||||
p.ip_adapter_scales = args[MAX_ADAPTERS:MAX_ADAPTERS*2][:units]
|
||||
if p.ip_adapter_images is None:
|
||||
if p.ip_adapter_images == []:
|
||||
p.ip_adapter_images = args[MAX_ADAPTERS*2:MAX_ADAPTERS*3][:units]
|
||||
if p.ip_adapter_starts is None:
|
||||
if p.ip_adapter_starts == [0.0]:
|
||||
p.ip_adapter_starts = args[MAX_ADAPTERS*3:MAX_ADAPTERS*4][:units]
|
||||
if p.ip_adapter_ends is None:
|
||||
if p.ip_adapter_ends == [1.0]:
|
||||
p.ip_adapter_ends = args[MAX_ADAPTERS*4:MAX_ADAPTERS*5][:units]
|
||||
# ipadapter.apply(shared.sd_model, p, adapter_name, scale, image) # called directly from processing.process_images_inner
|
||||
|
||||
Reference in New Issue
Block a user