ComfyUI  >  Nodes  >  ComfyUI Easy Use >  EasyLoraStack

ComfyUI Node: EasyLoraStack

Class Name

easy loraStack

Category
EasyUse/Loaders
Author
yolain (Account age: 1341 days)
Extension
ComfyUI Easy Use
Latest Updated
6/25/2024
Github Stars
0.5K

How to Install ComfyUI Easy Use

Install this extension via the ComfyUI Manager by searching for  ComfyUI Easy Use
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Easy Use 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

EasyLoraStack Description

Streamline loading and managing LoRA models for AI art projects, stack models for image control and effects.

EasyLoraStack:

The easy loraStack node is designed to streamline the process of loading and managing multiple LoRA (Low-Rank Adaptation) models in your AI art projects. This node allows you to stack multiple LoRA models, enabling you to fine-tune and control various aspects of your AI-generated images. By providing a user-friendly interface, it simplifies the complex task of adjusting model strengths and clip strengths, making it accessible even to those without a deep technical background. The main goal of this node is to enhance your creative workflow by offering a flexible and efficient way to incorporate multiple LoRA models, thereby expanding the range of artistic effects and styles you can achieve.

EasyLoraStack Input Parameters:

toggle

This parameter is a boolean switch that enables or disables the stacking of LoRA models. When set to "enabled," the node will process the LoRA models as specified; when set to "disabled," it will ignore them. This is useful for quickly toggling the effect of the LoRA stack without removing the configurations. The default value is "disabled."

mode

This parameter allows you to choose between "simple" and "advanced" modes. In "simple" mode, you can set a single strength value for each LoRA model, which will be applied uniformly. In "advanced" mode, you can specify separate strengths for the model and the clip, giving you finer control over the adjustments. The available options are "simple" and "advanced."

num_loras

This integer parameter specifies the number of LoRA models you wish to stack. It determines how many LoRA configurations will be available for you to set. The maximum value is 10, allowing you to stack up to 10 different LoRA models. The default value is 1.

lora_{i}_name

This optional parameter allows you to select the name of the LoRA model from a list of available models. If set to "None," the corresponding LoRA model will not be included in the stack. This parameter is available for each LoRA model you wish to stack, where {i} ranges from 1 to the value of num_loras.

lora_{i}_strength

In "simple" mode, this parameter sets the strength of the LoRA model. It is a floating-point value that determines the intensity of the LoRA effect. The default value is 1.0, with a minimum of -10.0 and a maximum of 10.0, allowing for both amplification and attenuation of the effect.

lora_{i}_model_strength

In "advanced" mode, this parameter sets the strength of the model component of the LoRA. It is a floating-point value with a default of 1.0, a minimum of -10.0, and a maximum of 10.0. This allows for precise control over the model's influence on the final output.

lora_{i}_clip_strength

In "advanced" mode, this parameter sets the strength of the clip component of the LoRA. Similar to lora_{i}_model_strength, it is a floating-point value with a default of 1.0, a minimum of -10.0, and a maximum of 10.0. This parameter allows you to fine-tune the clip's contribution to the final image.

EasyLoraStack Output Parameters:

lora_stack

The output parameter "lora_stack" is a list of dictionaries, each containing the name, model strength, and clip strength of the LoRA models included in the stack. This output is crucial for downstream nodes that will use these configurations to apply the LoRA effects to your AI-generated images. The lora_stack provides a structured way to manage and apply multiple LoRA models, enhancing the flexibility and creativity of your projects.

EasyLoraStack Usage Tips:

  • To quickly test different LoRA configurations, use the "toggle" parameter to enable or disable the stack without changing other settings.
  • Use "simple" mode for quick adjustments and "advanced" mode for fine-tuning specific aspects of the model and clip strengths.
  • Start with a lower number of LoRA models and gradually increase to find the optimal combination for your project.

EasyLoraStack Common Errors and Solutions:

"No LoRA models selected"

  • Explanation: This error occurs when no LoRA models are selected, but the toggle is enabled.
  • Solution: Ensure that at least one LoRA model is selected by setting the lora_{i}_name parameter to a valid model name.

"Invalid strength value"

  • Explanation: This error occurs when the strength values are set outside the allowed range.
  • Solution: Check that all strength values (lora_{i}strength, lora{i}model_strength, lora{i}_clip_strength) are within the range of -10.0 to 10.0.

"Mode not recognized"

  • Explanation: This error occurs when an invalid mode is selected.
  • Solution: Ensure that the mode parameter is set to either "simple" or "advanced."

EasyLoraStack Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Easy Use
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.