ComfyDeploy: How ComfyUI_Finetuners_Suite works in ComfyUI?
What is ComfyUI_Finetuners_Suite?
A suite of nodes for ComfyUI that helps making ComfyUI more accesible for artists
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI_Finetuners_Suite
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ComfyUI Finetuners
A collection of utility nodes for ComfyUI to enhance your workflow.
Nodes
🔄 Variables Injector
Dynamically replace placeholders (like !variable_name) in a text prompt with actual values, making it easy to reuse and modify prompts without changing their structure.
📐 Auto Image Resize
Automatically resizes images based on a desired width while maintaining aspect ratio, using high-quality Lanczos scaling.
🔗 Group Link
A utility node that allows you to link and toggle multiple groups of nodes simultaneously, helping you organize and control complex workflows.
🔵 Variables Logic
A toggle boolean node that changes colors (purple/green) based on its state and displays custom text from a string input. Perfect for visual workflow control and status indication.
Model List
A utility node that reads LoRA models from a CSV file, providing an easy-to-use dropdown menu for model selection with automatic path and prompt formatting for ComfyUI's LoRA loader.
Variables Injector Node
The Variables Injector node allows you to dynamically replace placeholders in your prompts with variable values. This makes it easy to reuse prompts with different values.
How to Use
- Load the Variables Injector node into your workflow
- Connect a string node to Var1's input
- Use the following syntax in the string node:
variable_name | variable_value
- For example:
item | bag
- For example:
- In your prompt, reference the variable using
!variable_name
- For example:
"A woman holding a !item"
- For example:
- The node will replace
!item
withbag
in the final prompt - You can add as many variables as you like using Var1 through Var8
Example
Input string: item | bag
Prompt: "A woman holding a !item"
Result: "A woman holding a bag"
Variables Logic Node
The Variables Logic node provides a visual toggle with customizable text labels. It's useful for controlling workflow logic and providing visual feedback.
How to Use
- Add the Variables Logic node to your workflow
- Connect a String Literal node to the labels input using the format:
text_when_off | text_when_on
- For example:
"book | shoos"
- For example:
- The toggle will:
- Display purple color and first text when OFF
- Display green color and second text when ON
- The node outputs a boolean value that can be used to control other parts of your workflow
Example
Input string: "book | shoos"
Result: Shows "book" in purple when OFF, "shoos" in green when ON
Model List Node
A utility node that provides a convenient way to manage and select LoRA models from a CSV list. The node reads model paths and metadata from a CSV file and provides them in a format compatible with ComfyUI's LoRA loader.
Features:
- Reads model paths and metadata from a CSV file
- Provides a dropdown menu for easy model selection
- Outputs model path (M), prefix (P), and suffix (S) for each model
- Compatible with ComfyUI's LoRA loader node
- Configurable model list location via modellocation.txt
Setup:
- The default path in modellocation.txt is set to Rundiffusion's storage location, but can be easily changed by editing the file
- A sample CSV file format is provided in the workflows folder
- The CSV should contain columns: "Name on list", "model path", "prefix", "sufix"
Usage:
- Connect the 'M' output to a CR String To Combo node
- Connect the CR String To Combo output to the LoRA loader's 'lora_name' input
- Optionally use the 'P' (prefix) and 'S' (suffix) outputs for prompt engineering
Credits
- Custom nodes were developed by Finetuners
- Variables Injector's UI was created with the help of Shmuel Ronen (https://github.com/ShmuelRonen)
- The group link custom node is heavily based on RGThree mute groups node
Installation
- Clone this repository into your
ComfyUI/custom_nodes
directory:
cd custom_nodes
git clone https://github.com/FinetunersAI/finetunersTest.git
- Restart ComfyUI
Usage
After installation, you'll find the nodes in the node menu under the "finetuners" category.