Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance AI-generated art reproducibility by processing wildcards with stable seed for consistent prompt output selection.
Stable Wildcards is a custom node designed to enhance the reproducibility of AI-generated art by using a stable seed to process wildcards within prompts. This node allows you to define multiple options within curly braces {}
in your prompt, and it will randomly select one of these options based on the provided seed. By using a consistent seed, the node ensures that the same prompt will always produce the same output, making it easier to recreate and refine your artistic workflows. This feature is particularly useful for artists who want to experiment with different variations of a prompt while maintaining control over the randomness, ensuring that the creative process remains both flexible and predictable.
The prompt
parameter is a string input where you can define your creative prompt, including any wildcards enclosed in curly braces {}
. These wildcards can contain multiple options separated by the |
character. For example, {red|blue|green}
will randomly select one of the colors based on the seed. This parameter supports multiline input and has dynamic prompts disabled to ensure that the prompt remains unchanged before processing. The default value is an empty string.
The seed
parameter is an integer that determines the randomness of the wildcard selection. By providing the same seed, you can ensure that the same prompt will always produce the same output, making your workflows reproducible. The seed must be a non-negative integer, with a minimum value of 0 and a maximum value determined by the system's maximum integer size. The default value is 0.
The version
parameter is currently unused but reserved for future compatibility. It allows for backward compatibility in case of breaking changes. The default value is 1, and it is not expected to be modified by the user.
The id
parameter is a unique identifier used internally to save the result in metadata. It is not intended to be set by the user.
The png_info
parameter contains additional metadata, including workflow information. It is used internally to save the result in the metadata and is not intended to be set by the user.
The output parameter Prompt String
is a string that contains the processed prompt with all wildcards replaced by the selected options. This output is crucial for generating consistent and reproducible results in your AI art projects. By using the same seed, you can ensure that the same prompt will always produce the same output, allowing for precise control over the creative process.
png_info
parameter does not contain workflow information, preventing the node from saving the result in the metadata.png_info
parameter includes the necessary workflow information before executing the node.id
and png_info
) are not provided, preventing the node from saving the result in the metadata.id
and png_info
parameters are correctly set before executing the node.© Copyright 2024 RunComfy. All Rights Reserved.