From 7435e324aca474bb19afd6a8bb4ab389c03d2490 Mon Sep 17 00:00:00 2001 From: Raykosan <71210053+Raykosan@users.noreply.github.com> Date: Fri, 5 Jun 2026 11:13:08 +0300 Subject: [PATCH] Fixed the logic of the RS Prompts node --- Rayko_Prompts.py | 6 ++++-- __init__.py | 2 +- package.json | 2 +- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Rayko_Prompts.py b/Rayko_Prompts.py index 813e0d3..92ec6b1 100644 --- a/Rayko_Prompts.py +++ b/Rayko_Prompts.py @@ -111,8 +111,10 @@ class RSPrompts: tokens_pos = clip.tokenize(current_text) pos_cond = clip.encode_from_tokens_scheduled(tokens_pos) - tokens_neg = clip.tokenize("") - neg_cond = clip.encode_from_tokens_scheduled(tokens_neg) + neg_cond = [] + for t in pos_cond: + d = t[1].copy() if len(t) > 1 else {} + neg_cond.append((torch.zeros_like(t[0]), d)) return { "ui": {"text": [current_text]}, diff --git a/__init__.py b/__init__.py index 5ed0235..c699036 100644 --- a/__init__.py +++ b/__init__.py @@ -29,7 +29,7 @@ IGNORED_MODULES: Set[str] = {'__init__.py'} REQUIRED_MODULES: Set[str] = set() PACKAGE_DISPLAY_NAME = "ComfyUI_RaykoStudio" -__version__ = "0.20.5" +__version__ = "0.20.6" def load_modules(): print(f"🦊 {PACKAGE_DISPLAY_NAME}: Version: {__version__}") diff --git a/package.json b/package.json index 93392fc..ce976a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ComfyUI_RaykoStudio", - "version": "0.20.5", + "version": "0.20.6", "description": "Set of custom nodes for ComfyUI providing additional image processing capabilities", "author": "Raykosan", "license": "Apache License 2.0", diff --git a/pyproject.toml b/pyproject.toml index b2d818a..5a77c72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "ComfyUI_RaykoStudio" description = "Set of custom nodes for ComfyUI providing additional image processing capabilities" -version = "0.20.5" +version = "0.20.6" license = { file = "LICENSE" } dependencies = ["torch>=1.7.0", "numpy>=1.19.0", "Pillow>=8.0.0", "freetype-py>=2.5.1"]