fix(api): make sure a controlnet has been selected when using that pipeline
This commit is contained in:
parent
f30c5f2d31
commit
7966f001e1
|
@ -231,6 +231,9 @@ def load_pipeline(
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if params.is_control():
|
if params.is_control():
|
||||||
|
if "controlnet" not in components or components["controlnet"] is None:
|
||||||
|
raise ValueError("ControlNet is required for control pipelines")
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"assembling SD pipeline for %s with ControlNet",
|
"assembling SD pipeline for %s with ControlNet",
|
||||||
pipeline_class.__name__,
|
pipeline_class.__name__,
|
||||||
|
|
Loading…
Reference in New Issue