Skip to content

Commit

Permalink
fix: Update missing name types to new names
Browse files Browse the repository at this point in the history
  • Loading branch information
blessedcoolant committed Jun 17, 2023
1 parent 76dd749 commit c8dfa49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invokeai/backend/model_management/models/stable_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def convert_if_required(
) -> str:
assert model_path == config.path

if isinstance(config, cls.CheckpointModelConfig):
if isinstance(config, cls.StableDiffusion1CheckpointModelConfig):
return _convert_ckpt_and_cache(
version=BaseModelType.StableDiffusion1,
model_config=config,
Expand Down Expand Up @@ -220,7 +220,7 @@ def convert_if_required(
) -> str:
assert model_path == config.path

if isinstance(config, cls.CheckpointModelConfig):
if isinstance(config, cls.StableDiffusion2CheckpointModelConfig):
return _convert_ckpt_and_cache(
version=BaseModelType.StableDiffusion2,
model_config=config,
Expand Down

0 comments on commit c8dfa49

Please sign in to comment.