fix(api): use img2img pipeline for loopback when controlnet was originally selected
This commit is contained in:
parent
47c7f5d1da
commit
93b02261b2
|
@ -48,6 +48,10 @@ def run_loopback(
|
|||
|
||||
# load img2img pipeline once
|
||||
pipe_type = params.get_valid_pipeline("img2img")
|
||||
if pipe_type == "controlnet":
|
||||
logger.debug("controlnet pipeline cannot be used for loopback, switching to img2img")
|
||||
pipe_type = "img2img"
|
||||
|
||||
logger.debug("using %s pipeline for loopback", pipe_type)
|
||||
|
||||
pipe = pipeline or load_pipeline(
|
||||
|
|
Loading…
Reference in New Issue