This is a work in progress repo.
The Randomize LoRAs node randomly loads LoRAs based on a predefined selection with also randomized weights. This enables users to experiment with different artistic effects on their generated images.
Note: The "Show Text" node is part of pythongosssss/ComfyUI-Custom-Scripts
There is also a "stack" version for working with other lora nodes with the stacking functionality such as Efficiency Nodes
Connect the model and clip outputs from this node to your KSampler or other processing nodes. The output, chosen loras, provides a textual representation detailing which LoRAs and corresponding weights were applied during the generation.
You can also provide the trigger words for each lora. They will be outputted as a formatted text separated by commas. Useful for you to concatenate the trigger words into your prompts.
- seed: Ensures reproducibility. Maintain the same seed for consistent results across generations. Note: Keep the same selected loras for this to work.
- max_random: Limits the maximum number of LoRAs to apply. Even if you select up to 10, you can choose to apply fewer.
- lora_x: Specifies the LoRA file to use.
- min_str_x and max_str_x: Defines the minimum and maximum strengths for each LoRA, allowing for a range of intensities.
- trigger_words_x: The trigger words for the selected lora.
Will output one (or multiple) lines from a multiline text component.
Will replace instances of !var_x in your text with the contents of the var_x inputs.
You can use the ComfyUI-Manager. Search for "unwdef" or "unwdef-nodes".
Or you can install it manually:
- Open your terminal and navigate to your
ComfyUI/custom_nodes
directory. - Clone the repository using:
git clone https://github.com/unwdef/unwdef-nodes-comfyui.git
- Restart ComfyUI to apply the changes.
To remove the custom node:
- Delete the
unwdef-nodes-comfyui
directory fromComfyUI/custom_nodes
. - Restart ComfyUI to apply the changes.
To update the node:
- Navigate to
ComfyUI/custom_nodes/unwdef-nodes-comfyui
in your terminal. - Run the following command:
git pull
- Restart ComfyUI to apply the changes.