ipadapter interop

This commit is contained in:
Vladimir Mandic
2024-01-25 09:29:11 -05:00
parent 3f332242a1
commit c19f95141a
3 changed files with 13 additions and 5 deletions
+4
View File
@@ -863,6 +863,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if p.scripts is not None and isinstance(p.scripts, modules.scripts.ScriptRunner):
p.scripts.process(p)
if shared.backend == shared.Backend.DIFFUSERS:
from scripts import ipadapter # pylint: disable=no-name-in-module
ipadapter.apply(shared.sd_model, p)
def get_conds_with_caching(function, required_prompts, steps, cache):
if cache[0] is not None and (required_prompts, steps) == cache[0]:
return cache[1]