From e9e1d91b34ca348f2b27a2f7269770ef3f301066 Mon Sep 17 00:00:00 2001 From: Extraltodeus Date: Thu, 14 Mar 2024 23:16:37 +0100 Subject: [PATCH] Update nodes.py --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 688c331..b1b4c2e 100644 --- a/nodes.py +++ b/nodes.py @@ -56,7 +56,7 @@ class vector_sculptor_node: def exec(self, clip, text, sculptor_threshold, sculptor_subtract): ignored_token_ids = [49406, 49407, 0] initial_tokens = clip.tokenize(text) - if sculptor_threshold < 1: + if sculptor_threshold < 1 or text == "": total_found = 0 total_replaced = 0 total_candidates = 0