"doc/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "ff566d3699501108d7f10f5a8f91ae76e0ae8be3"
Commit 679bd284 authored by comfyanonymous's avatar comfyanonymous
Browse files

Safetensors isn't optional anymore.

parent eb4bd771
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 = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment