ComfyUI > Nodes > Bjornulf_custom_nodes > 🎲 Random Lora Selector

ComfyUI Node: 🎲 Random Lora Selector

Class Name

Bjornulf_RandomLoraSelector

Category
Bjornulf
Author
justUmen (Account age: 3046days)
Extension
Bjornulf_custom_nodes
Latest Updated
2025-02-28
Github Stars
0.2K

How to Install Bjornulf_custom_nodes

Install this extension via the ComfyUI Manager by searching for Bjornulf_custom_nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Bjornulf_custom_nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🎲 Random Lora Selector Description

Enhances AI art generation by randomly selecting LoRA models for creative variability and style exploration.

🎲 Random Lora Selector:

The Bjornulf_RandomLoraSelector node is designed to enhance your AI art generation process by randomly selecting a LoRA (Low-Rank Adaptation) model from a specified list of available options. This node is particularly useful when you want to introduce variability and creativity into your model outputs without manually selecting different LoRAs each time. By leveraging a random selection mechanism, it allows you to explore a diverse range of artistic styles and effects that LoRAs can offer, thereby enriching the creative possibilities of your AI-generated art. The node ensures that even if no valid LoRAs are available, it gracefully defaults to using the original model and clip, maintaining the integrity of your workflow.

🎲 Random Lora Selector Input Parameters:

number_of_loras

This parameter specifies the number of LoRAs you want to consider for random selection. It determines how many LoRA options will be evaluated, and the node will randomly pick one from these. The minimum value is 1, the maximum is 20, and the default is set to 3. Adjusting this number allows you to control the pool size of LoRAs from which the node can randomly select.

model

This input represents the base model that will be used in conjunction with the selected LoRA. It is a required parameter and serves as the foundation upon which the LoRA's effects will be applied. The model should be compatible with the LoRA files you intend to use.

clip

The clip parameter is another required input that works alongside the model. It is used to process and enhance the visual output of the model. The clip should be compatible with the model and the selected LoRA to ensure optimal results.

strength_model

This parameter controls the intensity of the LoRA's effect on the model. It is a float value with a default of 1.0, and it can range from -100.0 to 100.0. Adjusting this value allows you to fine-tune how strongly the LoRA influences the model's output, with higher values leading to more pronounced effects.

strength_clip

Similar to strength_model, this parameter adjusts the intensity of the LoRA's effect on the clip. It is also a float value with a default of 1.0, and it ranges from -100.0 to 100.0. This parameter helps you control the degree to which the LoRA modifies the clip's contribution to the final output.

seed

The seed parameter is an optional integer input that initializes the random number generator. It ensures that the random selection of LoRAs is reproducible. The default value is 0, and it can range from 0 to 0xffffffffffffffff. Using the same seed will result in the same LoRA being selected, allowing for consistent results across different runs.

🎲 Random Lora Selector Output Parameters:

model

This output is the modified model after applying the randomly selected LoRA. It reflects the changes introduced by the LoRA, based on the specified strength_model parameter, and is ready for further processing or rendering.

clip

The clip output is the modified version of the input clip, adjusted according to the selected LoRA and the strength_clip parameter. It complements the model output to produce the final artistic result.

lora_path

This output provides the full file path to the selected LoRA. It is useful for tracking which LoRA was applied and for documentation purposes.

lora_name

The lora_name output is a string representing the name of the selected LoRA, extracted from the file name. It helps in identifying the specific LoRA used in the process.

lora_folder

This output indicates the folder where the selected LoRA is located. It provides context about the organization of your LoRA files and can be useful for managing your resources.

🎲 Random Lora Selector Usage Tips:

  • To explore a wide range of artistic styles, increase the number_of_loras parameter to include more options for random selection.
  • Use the seed parameter to ensure reproducibility of results when you find a particular LoRA selection that you like.
  • Adjust the strength_model and strength_clip parameters to fine-tune the influence of the LoRA on your outputs, experimenting with different values to achieve the desired artistic effect.

🎲 Random Lora Selector Common Errors and Solutions:

No valid LoRAs available

  • Explanation: This error occurs when none of the specified LoRAs are valid or available for selection.
  • Solution: Ensure that the LoRA files are correctly specified in the input parameters and that they exist in the designated directory. Check for any typos or incorrect file paths.

Seed value out of range

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Ensure that the seed value is within the range of 0 to 0xffffffffffffffff. Adjust the seed value accordingly to fit within this range.

🎲 Random Lora Selector Related Nodes

Go back to the extension to check out more related nodes.
Bjornulf_custom_nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.