From 635c0715106c0e08e73b686e9665e2009f08d77b Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 13 Feb 2024 21:24:19 -0500 Subject: [PATCH] fix ipadapter check --- TODO.md | 1 + modules/processing_diffusers.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 8edee25c0..0d6a59904 100644 --- a/TODO.md +++ b/TODO.md @@ -14,3 +14,4 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma - masking api - preprocess api - bind panZoom to control input +- masking.outpaint should return mask and override future run_masking diff --git a/modules/processing_diffusers.py b/modules/processing_diffusers.py index 2703c37c5..0a0fa5205 100644 --- a/modules/processing_diffusers.py +++ b/modules/processing_diffusers.py @@ -67,7 +67,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing): time.sleep(0.1) if kwargs.get('latents', None) is None: return kwargs - if getattr(p, "ip_adapter_names", ["None"])[0] != "None": + if len(getattr(p, "ip_adapter_names", [])) > 0: ip_adapter_scales = list(p.ip_adapter_scales) ip_adapter_starts = list(p.ip_adapter_starts) ip_adapter_ends = list(p.ip_adapter_ends)