This extension provides various nodes to support multimodal workflows.
A collection of ComfyUI nodes. These nodes are tailored for specific tasks, such as counting files in directories and sorting text segments based on token counts.
Currently this is only tested on SDXL 1.0 models. An additional swich is needed to hand 1.x
This node counts the number of tokens in a given text string using the CLIP tokenizer from the transformers library. It's useful for analyzing text complexity and preprocessing text data.
Sorts segments and words within a text string by their token count, providing two lists: one for segments and one for words. This node aids in text analysis by highlighting the most complex parts of a given text.
Trims a text string to include only a specified number of tokens. This node is particularly useful in scenarios where you need to limit the length of text inputs to certain token thresholds.
Counts the number of files within a given directory, with an option to filter by file type. This node is essential for managing and analyzing file systems, ensuring efficient handling of directories and files.