Fix: add .onnx to supported_pt_extensions to allow loading ONNX models
This commit is contained in:
parent
7851410511
commit
79641dc771
|
|
@ -7,7 +7,7 @@ from collections.abc import Collection
|
|||
|
||||
from comfy.cli_args import args
|
||||
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft', '.onnx'}
|
||||
|
||||
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,3 +49,8 @@ def test_empty_input_directory():
|
|||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
set_input_directory(temp_dir)
|
||||
assert get_input_subfolders() == [] # Empty since we don't include root
|
||||
|
||||
|
||||
def test_supported_pt_extensions():
|
||||
from folder_paths import supported_pt_extensions
|
||||
assert ".onnx" in supported_pt_extensions
|
||||
|
|
|
|||
Loading…
Reference in New Issue