WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

Text Load Line From File has max value 2048 for index #448

Open geroldmeisinger opened 3 months ago

geroldmeisinger commented 3 months ago

I use it for batch prompting. After an overnight run a found that every image above 2048 used the same prompt.

WAS_Node_Suite.py

# TEXT LOAD FROM FILE

class WAS_Text_Load_Line_From_File:
    def __init__(self):
        self.HDB = WASDatabase(WAS_HISTORY_DATABASE)

    @classmethod
    def INPUT_TYPES(cls):
        return {
            "required": {
                "file_path": ("STRING", {"default": '', "multiline": False}),
                "dictionary_name": ("STRING", {"default": '[filename]', "multiline": False}),
                "label": ("STRING", {"default": 'TextBatch', "multiline": False}),
                "mode": (["automatic", "index"],),
                "index": ("INT", {"default": 0, "min": 0, "step": 1}),
            },
            "optional": {
                "multiline_text": (TEXT_TYPE, {"forceInput": True}),
            }
        }
ClothingAI commented 1 month ago

How did you solve it @geroldmeisinger ?

geroldmeisinger commented 1 month ago

no direct fix, because I didn't find the code responsible for it quickly. you can fix it manually by setting an alarm clock and restarting the process (I only had 10k images to process). or you use a python script to feed the prompts via API.

ClothingAI commented 1 month ago

Thanks