Visit ComfyUI Online for ready-to-use ComfyUI environment
Manage and apply multiple LoRA models in a randomized manner for AI-generated art with flexibility and creativity.
The CR Random LoRA Stack node is designed to manage and apply multiple LoRA (Low-Rank Adaptation) models in a randomized manner, enhancing the flexibility and creativity of AI-generated art. This node allows you to stack up to three different LoRA models and apply them either exclusively or in combination, based on specified probabilities. The node supports features like deduplication of LoRA names, stride-based randomization, and forced re-randomization to ensure diverse and unique outputs. By leveraging this node, you can introduce variability and control over the application of LoRA models, making it a powerful tool for AI artists looking to experiment with different styles and effects.
This parameter determines whether only one LoRA model should be applied exclusively. When set to "On," the node evaluates the chances of each LoRA model being applied and selects the one with the highest probability. This ensures that only one LoRA model is active at a time, providing a clear and distinct effect. Options: "On", "Off".
The stride parameter sets the minimum number of cycles before a re-randomization of the LoRA models is performed. This helps in maintaining consistency over a specified number of iterations before introducing variability again. Minimum value: 1, Maximum value: N (where N is the number of cycles you want), Default value: 1.
When this parameter is set to "On," it forces the node to re-randomize the LoRA models after the specified stride, even if the same set of models was selected previously. This ensures that the output remains varied and prevents repetitive patterns. Options: "On", "Off".
The name of the first LoRA model to be considered for stacking. This parameter should be set to the specific identifier of the LoRA model you wish to use. Default value: "None".
The weight assigned to the first LoRA model, determining its influence on the final output. This value should be set based on the desired impact of the model. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
The weight assigned to the CLIP (Contrastive Language-Image Pre-Training) model associated with the first LoRA model. This value affects the text-to-image alignment. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
This parameter controls whether the first LoRA model is active. When set to "On," the model is considered for stacking. Options: "On", "Off".
The probability of the first LoRA model being applied when exclusive mode is off. This value should be set based on the desired likelihood of the model's application. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
The name of the second LoRA model to be considered for stacking. This parameter should be set to the specific identifier of the LoRA model you wish to use. Default value: "None".
The weight assigned to the second LoRA model, determining its influence on the final output. This value should be set based on the desired impact of the model. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
The weight assigned to the CLIP model associated with the second LoRA model. This value affects the text-to-image alignment. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
This parameter controls whether the second LoRA model is active. When set to "On," the model is considered for stacking. Options: "On", "Off".
The probability of the second LoRA model being applied when exclusive mode is off. This value should be set based on the desired likelihood of the model's application. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
The name of the third LoRA model to be considered for stacking. This parameter should be set to the specific identifier of the LoRA model you wish to use. Default value: "None".
The weight assigned to the third LoRA model, determining its influence on the final output. This value should be set based on the desired impact of the model. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
The weight assigned to the CLIP model associated with the third LoRA model. This value affects the text-to-image alignment. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
This parameter controls whether the third LoRA model is active. When set to "On," the model is considered for stacking. Options: "On", "Off".
The probability of the third LoRA model being applied when exclusive mode is off. This value should be set based on the desired likelihood of the model's application. Minimum value: 0.0, Maximum value: 1.0, Default value: 0.5.
An optional parameter that allows you to provide an existing stack of LoRA models. This stack will be extended with the new models based on the current configuration. Default value: None.
The output is a list of tuples representing the stacked LoRA models. Each tuple contains the name of the LoRA model, its model weight, and its CLIP weight. This stack can be used in subsequent nodes to apply the combined effects of the selected LoRA models, providing a versatile and dynamic approach to AI-generated art.
© Copyright 2024 RunComfy. All Rights Reserved.