Fixed the logic of the RS Prompts node

This commit is contained in:
Raykosan
2026-06-05 11:13:08 +03:00
parent 46bfc6c614
commit 7435e324ac
4 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -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]},
+1 -1
View File
@@ -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__}")
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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"]