Skip to content

Commit 562d2dd

Browse files
Allow bin extension to detect diffusers-ti provided as file (#3796)
2 parents f767bf2 + cbfd1d1 commit 562d2dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/backend/model_management/models/textual_inversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def detect_format(cls, path: str):
6868
return None # diffusers-ti
6969

7070
if os.path.isfile(path):
71-
if any([path.endswith(f".{ext}") for ext in ["safetensors", "ckpt", "pt"]]):
71+
if any([path.endswith(f".{ext}") for ext in ["safetensors", "ckpt", "pt", "bin"]]):
7272
return None
7373

7474
raise InvalidModelException(f"Not a valid model: {path}")

0 commit comments

Comments
 (0)