From 71354c7c579b1009857b120a1e632a45af26990e Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 17 Feb 2023 12:53:05 -0500 Subject: [PATCH] Sort images on LoadImageMask node. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index ec65ca3a3..f53531cc9 100644 --- a/nodes.py +++ b/nodes.py @@ -670,7 +670,7 @@ class LoadImageMask: @classmethod def INPUT_TYPES(s): return {"required": - {"image": (os.listdir(s.input_dir), ), + {"image": (sorted(os.listdir(s.input_dir)), ), "channel": (["alpha", "red", "green", "blue"], ),} }