mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-08 21:30:50 +08:00
Merge 1fc1c9a7b1 into 33aa808713
This commit is contained in:
commit
74dd1e834d
6
nodes.py
6
nodes.py
@ -1644,8 +1644,10 @@ class LoadImage:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(s):
|
||||||
input_dir = folder_paths.get_input_directory()
|
input_dir = folder_paths.get_input_directory()
|
||||||
files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))]
|
files = folder_paths.filter_files_content_types(
|
||||||
files = folder_paths.filter_files_content_types(files, ["image"])
|
[os.path.join(root, f) for root, _, files in os.walk(input_dir) for f in files if os.path.isfile(os.path.join(root, f))],
|
||||||
|
["image"]
|
||||||
|
)
|
||||||
return {"required":
|
return {"required":
|
||||||
{"image": (sorted(files), {"image_upload": True})},
|
{"image": (sorted(files), {"image_upload": True})},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user