mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Safetensors isn't optional anymore.
This commit is contained in:
parent
eb4bd7711a
commit
679bd2845a
@ -1,14 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
supported_ckpt_extensions = set(['.ckpt', '.pth'])
|
supported_ckpt_extensions = set(['.ckpt', '.pth', '.safetensors'])
|
||||||
supported_pt_extensions = set(['.ckpt', '.pt', '.bin', '.pth'])
|
supported_pt_extensions = set(['.ckpt', '.pt', '.bin', '.pth', '.safetensors'])
|
||||||
try:
|
|
||||||
import safetensors.torch
|
|
||||||
supported_ckpt_extensions.add('.safetensors')
|
|
||||||
supported_pt_extensions.add('.safetensors')
|
|
||||||
except:
|
|
||||||
print("Could not import safetensors, safetensors support disabled.")
|
|
||||||
|
|
||||||
|
|
||||||
folder_names_and_paths = {}
|
folder_names_and_paths = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user