mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
fix ipadapter none lookup
This commit is contained in:
@@ -5,7 +5,6 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma
|
||||
## Candidates for next release
|
||||
|
||||
- diffusers public callbacks
|
||||
- multi-ipadapter: <https://github.com/huggingface/diffusers/pull/6573>
|
||||
- control second pass: <https://github.com/vladmandic/automatic/issues/2783>
|
||||
- image2video: pia and vgen pipelines
|
||||
- video2video
|
||||
|
||||
@@ -87,7 +87,7 @@ def apply(pipe, p: processing.StableDiffusionProcessing, adapter_names=[], adapt
|
||||
if hasattr(p, 'ip_adapter_names'):
|
||||
if isinstance(p.ip_adapter_names, str):
|
||||
p.ip_adapter_names = [p.ip_adapter_names]
|
||||
adapters = [ADAPTERS.get(adapter, None) for adapter in p.ip_adapter_names]
|
||||
adapters = [ADAPTERS.get(adapter, None) for adapter in p.ip_adapter_names if adapter is not None and adapter.lower() != 'none']
|
||||
adapter_names = p.ip_adapter_names
|
||||
else:
|
||||
if isinstance(adapter_names, str):
|
||||
|
||||
Reference in New Issue
Block a user