From 49633dccab7766ceedfd23bf3ab182407634723a Mon Sep 17 00:00:00 2001 From: KLL535 Date: Mon, 27 Jan 2025 01:14:51 +0300 Subject: [PATCH] Update nodes.py --- nodes/nodes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index 7c48a96..2e92097 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -11,6 +11,7 @@ import comfy.sd import folder_paths import requests import piexif +import time from safetensors import safe_open from collections import deque @@ -58,9 +59,10 @@ class SimpleLoadLineFromTextFile: self.random_list = [] @classmethod - def IS_CHANGED(s, image): + def IS_CHANGED(s, start = 0, load_file = False, file_path = "", next = "increment", prefix = "", postfix = "", count = 0): #always update - m = hashlib.sha256().update(str(time.time()).encode("utf-8")) + m = hashlib.sha256() + m.update(str(time.time()).encode("utf-8")) return m.digest().hex() @classmethod