|
|
|
@ -1306,7 +1306,7 @@ class LoadImage:
|
|
|
|
|
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))] |
|
|
|
|
return {"required": |
|
|
|
|
{"image": (sorted(files), )}, |
|
|
|
|
{"image": (sorted(files), {"image_upload": True})}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CATEGORY = "image" |
|
|
|
@ -1349,7 +1349,7 @@ class LoadImageMask:
|
|
|
|
|
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))] |
|
|
|
|
return {"required": |
|
|
|
|
{"image": (sorted(files), ), |
|
|
|
|
{"image": (sorted(files), {"image_upload": True}), |
|
|
|
|
"channel": (s._color_channels, ), } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|