Visit ComfyUI Online for ready-to-use ComfyUI environment
Node for processing and transforming scene prompts in Storydiffusion pipeline, with focus on formatting and translation.
The Pre_Translate_prompt
node is designed to process and transform scene prompts for use in the Storydiffusion pipeline. This node is particularly useful for AI artists who need to manage and manipulate text prompts that describe scenes or narratives. The primary function of this node is to handle the formatting and translation of scene prompts, ensuring that they are correctly structured for subsequent processing. One of the key features of this node is its ability to optionally remove character names from the prompts, which can be useful for generating more generalized scene descriptions. By using this node, you can streamline the preparation of text prompts, making it easier to integrate them into your creative workflows.
scene_prompts
is a string input that contains the text prompts describing the scenes you want to process. This parameter is essential as it provides the raw text data that the node will transform. The function of this parameter is to serve as the source material for the node's processing capabilities. There is no minimum or maximum value for this parameter, but it should be a well-formed string that accurately describes the scenes you wish to work with. The default value is an empty string.
keep_character_name
is a boolean input that determines whether character names should be retained in the processed prompts. If set to True
, the node will keep the character names in the prompts; if set to False
, it will remove them. This parameter impacts the node's execution by altering the way text prompts are formatted, which can be crucial depending on whether you want character-specific or generalized scene descriptions. The default value is False
.
prompt_array
is a string output that contains the processed and formatted scene prompts. This output is the result of the node's transformation process, where the input prompts are split into lines and optionally stripped of character names. The importance of this output lies in its readiness for further processing in the Storydiffusion pipeline, ensuring that the prompts are in the correct format for generating narrative content. The interpretation of this output is straightforward: it is a cleaned and structured version of the original scene prompts, ready for use in subsequent nodes or processes.
keep_character_name
parameter to True
. This is useful when character-specific details are important for your narrative.keep_character_name
parameter to False
. This can help in creating more versatile and reusable prompts.scene_prompts
string is well-formed and accurately describes the scenes you want to work with. Clear and concise prompts will yield better results in the subsequent processing stages.scene_prompts
input is not a valid string.scene_prompts
parameter is a well-formed string. Check for any syntax errors or unsupported characters.scene_prompts
are enclosed in parentheses. Ensure consistent formatting to allow the node to correctly identify and remove character names.prompt_array
is empty, which can occur if the input scene_prompts
is empty or improperly formatted.scene_prompts
input is not empty and is correctly formatted. Provide a valid string with scene descriptions to ensure a non-empty output.© Copyright 2024 RunComfy. All Rights Reserved.