ComfyUI > Nodes > Santodan Random LoRA Node > Random LoRA Folder to Model Selector

ComfyUI Node: Random LoRA Folder to Model Selector

Class Name

RandomLoRAFolderModel

Category
Santodan/LoRA
Author
Santodan (Account age: 3353days)
Extension
Santodan Random LoRA Node
Latest Updated
2026-02-24
Github Stars
0.03K

How to Install Santodan Random LoRA Node

Install this extension via the ComfyUI Manager by searching for Santodan Random LoRA Node
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Santodan Random LoRA Node 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 Folder to Model Selector Description

Automates random selection and application of LoRA models from a folder for AI art creation.

Random LoRA Folder to Model Selector:

The RandomLoRAFolderModel is designed to facilitate the random selection and application of LoRA (Low-Rank Adaptation) models from a specified folder. This node is particularly useful for AI artists who want to experiment with different LoRA models without manually selecting each one. By automating the selection process, it allows for a more dynamic and varied application of LoRA models, enhancing creativity and exploration in AI-generated art. The node can handle exclusions, ensuring that certain models are not selected, and can also manage the number of models applied, providing flexibility in how many LoRAs are used at any given time. This capability is beneficial for users looking to introduce randomness and variety into their workflows, making it easier to discover new and interesting combinations of LoRA models.

Random LoRA Folder to Model Selector Input Parameters:

selected_folder

This parameter specifies the folder from which the LoRA models will be randomly selected. It is crucial as it determines the pool of available models for selection. The folder path should be relative to the base path where LoRA models are stored. If the folder does not exist, the node will not be able to select any models, resulting in an empty output.

count

This parameter defines the number of LoRA models to be selected randomly from the specified folder. It impacts the diversity of the models applied, with a higher count leading to more varied results. The minimum value is 1, and the maximum is determined by the number of available models in the folder. The default value is typically 1, allowing for a single model to be selected.

rng

The random number generator (RNG) parameter allows for the customization of the randomness source used in selecting the models. By default, the node uses Python's built-in random module, but users can provide their own RNG for more controlled randomness. This parameter is optional and is primarily used by advanced users who need consistent randomization across different runs.

exclude_list

This parameter is a list of model names that should be excluded from the random selection process. It is useful for ensuring that certain models are not used, either due to preference or because they do not fit the current artistic goals. The list should contain the base names of the models to be excluded, and it can be empty if no exclusions are needed.

Random LoRA Folder to Model Selector Output Parameters:

selected_loras

This output parameter provides a list of the randomly selected LoRA models from the specified folder. Each entry in the list includes the full path to the model file, allowing for easy loading and application. The output is crucial for integrating the selected models into the AI art generation process, providing the necessary data to apply the LoRAs effectively.

Random LoRA Folder to Model Selector Usage Tips:

  • Ensure that the selected_folder parameter points to a valid directory containing LoRA models to avoid empty selections.
  • Use the exclude_list to prevent specific models from being selected, which can help maintain consistency in your art style or avoid known issues with certain models.
  • Experiment with different count values to see how varying the number of applied models affects your results, as this can lead to unexpected and creative outcomes.

Random LoRA Folder to Model Selector Common Errors and Solutions:

"No LoRA files found in selected folder"

  • Explanation: This error occurs when the specified folder does not contain any LoRA model files, or the folder path is incorrect.
  • Solution: Verify that the selected_folder parameter is set to the correct path and that the folder contains valid LoRA model files with extensions like .safetensors or .pt.

"Invalid folder path"

  • Explanation: The folder path provided does not exist or is not accessible, leading to an inability to select models.
  • Solution: Check the folder path for typos or errors, and ensure that the path is relative to the base LoRA directory. Make sure the folder is accessible and contains the necessary files.

Random LoRA Folder to Model Selector Related Nodes

Go back to the extension to check out more related nodes.
Santodan Random LoRA Node
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Random LoRA Folder to Model Selector