ComfyUI Node: Randomizer

Class Name

Randomizer

Category
autotrigger
Author
idrirap (Account age: 3058days)
Extension
ComfyUI-Lora-Auto-Trigger-Words
Latest Updated
2024-06-20
Github Stars
0.1K

How to Install ComfyUI-Lora-Auto-Trigger-Words

Install this extension via the ComfyUI Manager by searching for ComfyUI-Lora-Auto-Trigger-Words
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Lora-Auto-Trigger-Words 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

Randomizer Description

Introduce controlled randomness to AI art generation with text selection based on seed and LoRA stacks for model fine-tuning.

Randomizer:

The Randomizer node is designed to introduce an element of randomness into your AI art generation process. By taking two text inputs and an optional seed, it allows you to randomly select between the two texts based on the provided seed. Additionally, it can handle optional LoRA (Low-Rank Adaptation) stacks, which are used to fine-tune models. This node is particularly useful for creating variations in your outputs, ensuring that your art remains dynamic and diverse. The main goal of the Randomizer is to provide a simple yet effective way to introduce controlled randomness into your workflow, enhancing creativity and variability in the generated content.

Randomizer Input Parameters:

text_1

This parameter accepts a string input and is one of the two text options that the node will randomly select from. It is a required parameter and must be provided by the user. The content of this text will be used in the output if the seed condition is met.

text_2

Similar to text_1, this parameter also accepts a string input and is the second text option for random selection. It is also a required parameter and must be provided by the user. The content of this text will be used in the output if the seed condition is not met.

seed

This parameter accepts an integer value and is used to determine the randomness of the selection between text_1 and text_2. The seed ensures that the randomization process can be replicated if needed. The default value is 0, with a minimum value of 0 and a maximum value of 0xffffffffffffffff.

lora_1

This optional parameter accepts a LoRA stack, which is used to fine-tune models. If provided, this stack will be associated with text_1 and will be included in the output if the seed condition is met.

lora_2

This optional parameter accepts a LoRA stack, similar to lora_1. If provided, this stack will be associated with text_2 and will be included in the output if the seed condition is not met.

Randomizer Output Parameters:

text

This output parameter returns the selected text based on the seed value. It will be either text_1 or text_2, depending on whether the seed is even or odd.

lora stack

This output parameter returns the associated LoRA stack based on the selected text. It will be either lora_1 or lora_2, depending on the seed value and the selected text.

Randomizer Usage Tips:

  • To ensure consistent results, use a fixed seed value. This will allow you to replicate the randomization process and achieve the same output each time.
  • Experiment with different seed values to explore various combinations of text_1 and text_2, enhancing the diversity of your generated content.
  • Utilize the optional LoRA stacks to fine-tune your models and achieve more refined and targeted outputs.

Randomizer Common Errors and Solutions:

"Missing required input: text_1"

  • Explanation: This error occurs when the text_1 parameter is not provided.
  • Solution: Ensure that you provide a valid string input for the text_1 parameter.

"Missing required input: text_2"

  • Explanation: This error occurs when the text_2 parameter is not provided.
  • Solution: Ensure that you provide a valid string input for the text_2 parameter.

"Invalid seed value"

  • Explanation: This error occurs when the seed value is outside the acceptable range.
  • Solution: Ensure that the seed value is an integer between 0 and 0xffffffffffffffff.

"LoRA stack not provided"

  • Explanation: This warning occurs when the optional LoRA stacks are not provided.
  • Solution: If you intend to use LoRA stacks, ensure that you provide valid LoRA stack inputs for lora_1 and lora_2. If not, you can ignore this warning.

Randomizer Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Lora-Auto-Trigger-Words
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.