Skip to content

Commit 637bc88

Browse files
committed
pass validation when os.path.isfile
1 parent 604d349 commit 637bc88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

comfy-nodes/input_image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def VALIDATE_INPUTS(s, input_name, default_value, description=""):
6565
if image == "":
6666
return "Invalid image file: please check if the image is empty or invalid"
6767

68+
if os.path.isfile(image):
69+
return True
70+
6871
if not folder_paths.exists_annotated_filepath(image):
6972
return "Invalid image file: {}".format(image)
7073

0 commit comments

Comments
 (0)