diff --git a/comfy_extras/v3/nodes_images.py b/comfy_extras/v3/nodes_images.py index 35666a444..839622d40 100644 --- a/comfy_extras/v3/nodes_images.py +++ b/comfy_extras/v3/nodes_images.py @@ -165,7 +165,7 @@ class LoadImage(io.ComfyNodeV3): return io.NodeOutput(output_image, output_mask) @classmethod - def IS_CHANGED(s, image): + def fingerprint_inputs(s, image): image_path = folder_paths.get_annotated_filepath(image) m = hashlib.sha256() with open(image_path, 'rb') as f: @@ -173,7 +173,7 @@ class LoadImage(io.ComfyNodeV3): return m.digest().hex() @classmethod - def VALIDATE_INPUTS(s, image): + def validate_inputs(s, image): if not folder_paths.exists_annotated_filepath(image): return "Invalid image file: {}".format(image) return True @@ -260,7 +260,7 @@ class LoadImageOutput(io.ComfyNodeV3): return io.NodeOutput(output_image, output_mask) @classmethod - def IS_CHANGED(s, image): + def fingerprint_inputs(s, image): image_path = folder_paths.get_annotated_filepath(image) m = hashlib.sha256() with open(image_path, 'rb') as f: @@ -268,7 +268,7 @@ class LoadImageOutput(io.ComfyNodeV3): return m.digest().hex() @classmethod - def VALIDATE_INPUTS(s, image): + def validate_inputs(s, image): if not folder_paths.exists_annotated_filepath(image): return "Invalid image file: {}".format(image) return True diff --git a/comfy_extras/v3/nodes_webcam.py b/comfy_extras/v3/nodes_webcam.py index 6c0a96e15..9c25aa633 100644 --- a/comfy_extras/v3/nodes_webcam.py +++ b/comfy_extras/v3/nodes_webcam.py @@ -100,16 +100,15 @@ class WebcamCapture(io.ComfyNodeV3): return io.NodeOutput(output_image, output_mask) @classmethod - def IS_CHANGED(s, image, width, height, capture_on_queue): + def fingerprint_inputs(s, image, width, height, capture_on_queue): image_path = folder_paths.get_annotated_filepath(image) m = hashlib.sha256() with open(image_path, 'rb') as f: m.update(f.read()) return m.digest().hex() - @classmethod - def VALIDATE_INPUTS(s, image): + def validate_inputs(s, image): if not folder_paths.exists_annotated_filepath(image): return "Invalid image file: {}".format(image) return True