Allow bin extension to detect diffusers-ti provided as file

This commit is contained in:
Sergey Borisov 2023-07-17 00:32:17 +03:00
parent 32994a261a
commit b61c83e836

View File

@ -68,7 +68,7 @@ class TextualInversionModel(ModelBase):
return None # diffusers-ti
if os.path.isfile(path):
if any([path.endswith(f".{ext}") for ext in ["safetensors", "ckpt", "pt"]]):
if any([path.endswith(f".{ext}") for ext in ["safetensors", "ckpt", "pt", "bin"]]):
return None
raise InvalidModelException(f"Not a valid model: {path}")