port probing changes from main model_probe.py to refactored probe.py

This commit is contained in:
Lincoln Stein 2023-12-01 09:19:24 -05:00
parent 75089b7a9d
commit e46ac45741

View File

@ -422,6 +422,8 @@ class TextualInversionCheckpointProbe(CheckpointProbeBase):
return BaseModelType.StableDiffusion1 return BaseModelType.StableDiffusion1
elif token_dim == 1024: elif token_dim == 1024:
return BaseModelType.StableDiffusion2 return BaseModelType.StableDiffusion2
elif token_dim == 1280:
return BaseModelType.StableDiffusionXL
else: else:
raise InvalidModelConfigException("Could not determine base type") raise InvalidModelConfigException("Could not determine base type")