Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Sort the list of input images.

comfyanonymous638f92454661
diff --git a/nodes.py b/nodes.py
index be3952ac3..547e6fbc8 100644
--- a/nodes.py
+++ b/nodes.py
@@ -640,7 +640,7 @@ class LoadImage:
@classmethod
def INPUT_TYPES(s):
return {"required":
- {"image": (os.listdir(s.input_dir), )},
+ {"image": (sorted(os.listdir(s.input_dir)), )},
}
CATEGORY = "image"