mirror of
https://github.com/vladmandic/automatic
synced 2026-09-01 18:46:53 +02:00
ipadapter interop
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user