The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
filter image files in load image dropdown (#7573)
Christian Byrne73ecb75a3d37
diff --git a/nodes.py b/nodes.pyindex 8c1720c1a..e2893e83a 100644--- a/nodes.py+++ b/nodes.py@@ -1654,6 +1654,7 @@ class LoadImage:def INPUT_TYPES(s):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, ["image"])return {"required":{"image": (sorted(files), {"image_upload": True})},}