Update invokeai/backend/model_manager/load/model_loaders/stable_diffusion.py

Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
This commit is contained in:
Lincoln Stein
2024-06-15 19:08:15 -04:00
committed by GitHub
parent 379d02d209
commit 6b788bff51

View File

@@ -57,7 +57,7 @@ class StableDiffusionDiffusersModel(GenericDiffusersLoader):
if isinstance(config, CheckpointConfigBase):
return self._load_from_singlefile(config, submodel_type)
if not submodel_type is not None:
if submodel_type is None:
raise Exception("A submodel type must be provided when loading main pipelines.")
model_path = Path(config.path)