"git@developer.sourcefind.cn:OpenDAS/warpctc.git" did not exist on "a60ed4d7e77cc6b454a58bcd6460e5c9dc363361"
Commit 25c177aa authored by Patrick von Platen's avatar Patrick von Platen
Browse files

make style

parent c7e08958
...@@ -2434,7 +2434,11 @@ class FromSingleFileMixin: ...@@ -2434,7 +2434,11 @@ class FromSingleFileMixin:
from .pipelines.controlnet.multicontrolnet import MultiControlNetModel from .pipelines.controlnet.multicontrolnet import MultiControlNetModel
# list/tuple or a single instance of ControlNetModel or MultiControlNetModel # list/tuple or a single instance of ControlNetModel or MultiControlNetModel
if not (isinstance(controlnet, (ControlNetModel, MultiControlNetModel)) or isinstance(controlnet, (list, tuple)) and isinstance(controlnet[0], ControlNetModel)): if not (
isinstance(controlnet, (ControlNetModel, MultiControlNetModel))
or isinstance(controlnet, (list, tuple))
and isinstance(controlnet[0], ControlNetModel)
):
raise ValueError("ControlNet needs to be passed if loading from ControlNet pipeline.") raise ValueError("ControlNet needs to be passed if loading from ControlNet pipeline.")
elif "StableDiffusion" in pipeline_name: elif "StableDiffusion" in pipeline_name:
# Model type will be inferred from the checkpoint. # Model type will be inferred from the checkpoint.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment