From ce92dd0570edb2ff6c0485c8b90ae8d3210ef8ff Mon Sep 17 00:00:00 2001 From: EmmanuelMr18 Date: Fri, 27 Sep 2024 15:13:27 -0700 Subject: [PATCH] refactor: remove ExternalTextList node, was for lora traning --- comfy-nodes/external_text_list.py | 52 ------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 comfy-nodes/external_text_list.py diff --git a/comfy-nodes/external_text_list.py b/comfy-nodes/external_text_list.py deleted file mode 100644 index cc52258..0000000 --- a/comfy-nodes/external_text_list.py +++ /dev/null @@ -1,52 +0,0 @@ -import folder_paths -from PIL import Image, ImageOps -import numpy as np -import torch -import json - -class ComfyUIDeployExternalTextList: - @classmethod - def INPUT_TYPES(s): - return { - "required": { - "input_id": ( - "STRING", - {"multiline": False, "default": 'input_text_list'}, - ), - "text": ( - "STRING", - {"multiline": True, "default": "[]"}, - ), - }, - "optional": { - "display_name": ( - "STRING", - {"multiline": False, "default": ""}, - ), - "description": ( - "STRING", - {"multiline": True, "default": ""}, - ), - } - } - - RETURN_TYPES = ("STRING",) - RETURN_NAMES = ("text",) - - OUTPUT_IS_LIST = (True,) - - FUNCTION = "run" - - CATEGORY = "text" - - def run(self, input_id, text=None, display_name=None, description=None): - text_list = [] - try: - text_list = json.loads(text) # Assuming text is a JSON array string - except Exception as e: - print(f"Error processing images: {e}") - pass - return ([text_list],) - -NODE_CLASS_MAPPINGS = {"ComfyUIDeployExternalTextList": ComfyUIDeployExternalTextList} -NODE_DISPLAY_NAME_MAPPINGS = {"ComfyUIDeployExternalTextList": "External Text List (ComfyUI Deploy)"}