In this workflow, I want to show you how easy it is to automatically compare different LoRA epochs and model strengths. I particularly like this method because it's flexible, scalable, and gives me a level of control that I often miss with other methods.
You'll need the Impact Pack by ltdrdata. | Repo: https://github.com/ltdrdata/ComfyUI-Impact-Pack
The method is simple. A loop reads the values you want to test and automatically triggers the next run until the specified number of iterations is reached.
In my example, I'm testing three epochs of my Krea 2 Style LoRA lowkeybeauties with six prompts and model strengths ranging from 0.1 to 1.0.
That's 60 runs producing a total of 180 images.
The Most Important Nodes
1. Queue Trigger (Countdown): Controls the loop and triggers the next run.
2. String Selector: Selects the next entry from a list of values based on the count.
3. ImpactConvertDataType: Converts values from STRING to FLOAT.
4. Set Widget Value: Automatically changes widget values in other nodes.
How It Works
All three epochs use the same prompt, seed, and identical sampling settings. After generation, the images are saved and combined. The countdown then triggers the value updates and the next run. Each prompt is tested with ten different strength values before moving on to the next prompt.
The images are automatically organized by epoch and saved with the prompt number and strength value in their filenames.
Finding the Node ID and Widget Name
Node ID: Open the ComfyUI settings using the gear icon and navigate to LiteGraph → Node → Node ID badge mode. Set this option to Show all. The Node ID will then be displayed directly on each node.
Widget Name: This is the internal name of the setting you want to change. In most cases, it matches the visible label in the node, such as strength_model, steps, cfg, or filename_prefix.
If you're unsure, save your workflow as a JSON file and look for widgets_values_named in the corresponding node. You'll find the exact widget names there.
Enter both values into the Impact Set Widget Value node under node_id and widget_name.
Important
The first combination is already configured directly in the nodes. The selector lists contain the values for the next run. Make sure the Node IDs are correct and that all lists follow the same order.
I recommend testing the first two runs to make sure the strength values and filenames are updated correctly.
Of course, you can also use this method to test CFG, steps, samplers, schedulers, or other parameters. Just adjust the value lists and the corresponding target widgets.
