From 5886a538dada7491a280ec8841215399365b674c Mon Sep 17 00:00:00 2001 From: Rhys Yang Date: Wed, 18 Oct 2023 23:33:34 +0800 Subject: [PATCH] Fix parameter_index --- nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index af41836..48066eb 100644 --- a/nodes.py +++ b/nodes.py @@ -169,14 +169,14 @@ class SDPromptReader: return data_list[0] if len(data_list) == 1 else data_list[index] @classmethod - def IS_CHANGED(s, image, data_index): + def IS_CHANGED(s, image, parameter_index): image_path = folder_paths.get_annotated_filepath(image) with open(Path(image_path), "rb") as f: image_data = ImageDataReader(f) return image_data.props @classmethod - def VALIDATE_INPUTS(s, image, data_index): + def VALIDATE_INPUTS(s, image, parameter_index): if not folder_paths.exists_annotated_filepath(image): return "Invalid image file: {}".format(image) return True