Visit ComfyUI Online for ready-to-use ComfyUI environment
Transforms partially constructed prompts for AI art generation by refining, balancing, and optimizing components.
The Finalize Prompt [Dream] node is designed to transform a partially constructed prompt into a finalized format suitable for AI art generation. This node takes a partially built prompt and applies various adjustments to ensure the prompt is well-formed and optimized for the AI model. The primary goal of this node is to refine the prompt by scaling and clamping the weights of different prompt components, ensuring that the final prompt is balanced and within specified constraints. This process helps in achieving more controlled and predictable outputs from the AI model, enhancing the overall quality and coherence of the generated art.
This parameter represents the partially constructed prompt that you want to finalize. It is an instance of the PartialPrompt
class, which contains the text and associated weights of the prompt components. The partial_prompt
is essential as it provides the base content that will be adjusted and finalized by the node.
This parameter determines the method used to adjust the weights of the prompt components. It can take one of three values: raw
, by_abs_max
, or by_abs_sum
. The raw
option leaves the weights unchanged, while by_abs_max
and by_abs_sum
scale the weights based on the maximum absolute weight and the sum of absolute weights, respectively. This adjustment helps in normalizing the prompt weights to achieve a balanced final prompt.
This parameter specifies the maximum value to which the weights of the prompt components can be clamped. It is a floating-point number with a default value of 2.0, a minimum value of 0.1, and adjustable in steps of 0.1. Clamping ensures that no individual component of the prompt has an excessively high weight, which could otherwise dominate the generated output.
This parameter provides a reference value used in the scaling process when the adjustment
parameter is set to by_abs_max
or by_abs_sum
. It is a floating-point number with a default value of 1.0 and a minimum value of 0.1. This reference value helps in determining the scaling factor applied to the prompt weights, ensuring they are adjusted relative to a consistent baseline.
This output parameter contains the finalized positive prompt components. It is a string that lists the prompt components with positive weights, formatted and clamped according to the specified parameters. This output is used as the main input for the AI model to generate the desired art.
This output parameter contains the finalized negative prompt components. It is a string that lists the prompt components with negative weights, formatted and clamped according to the specified parameters. This output is used to guide the AI model in avoiding certain features or styles in the generated art.
adjustment
parameter to normalize the weights of your prompt components, ensuring a balanced and coherent final prompt.clamp
parameter to control the influence of individual prompt components, preventing any single component from dominating the output.adjustment_reference
values to find the optimal scaling factor for your specific prompt, enhancing the quality of the generated art.partial_prompt
parameter is empty or not provided.partial_prompt
with at least one component before finalizing the prompt.adjustment
parameter.adjustment
parameter and ensure it is set to one of the valid options: raw
, by_abs_max
, or by_abs_sum
.clamp
parameter is set to a value outside the allowed range.clamp
parameter to a value within the specified range (0.1 to 2.0) to avoid this error.© Copyright 2024 RunComfy. All Rights Reserved.