Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhances text prompts with detailed descriptions using a T5 model for improved text-to-image model pre-generation.
Superprompt is a node designed to enhance text prompts by expanding them into more detailed descriptions. It leverages a T5 model fine-tuned on the SuperPrompt dataset to upsample text prompts, making them richer and more descriptive. This node is particularly useful as a pre-generation step for text-to-image models, which often benefit from more detailed and nuanced prompts. By providing a more elaborate prompt, Superprompt helps in generating higher quality and more accurate images. The model used is available at https://huggingface.co/roborovski/superprompt-v1
.
This parameter is a string that provides the initial instruction for expanding the prompt. It sets the context for how the prompt should be elaborated. The default value is Expand the following prompt to add more detail
, and it supports multiline input. This parameter is crucial as it guides the model on how to transform the given prompt into a more detailed description.
This is the main text prompt that you want to expand. It is a required string input and supports multiline text. The prompt serves as the base text that the model will elaborate on, adding more details and nuances as specified by the instruction_prompt
. This parameter must be provided for the node to function.
This integer parameter specifies the maximum number of new tokens that the model can generate. It controls the length of the expanded prompt. The default value is 128, with a minimum of 1 and a maximum of 4096. Adjusting this parameter allows you to control the verbosity of the output, with higher values resulting in more detailed descriptions.
The output is a single string that contains the expanded and more detailed version of the input prompt. This enhanced prompt can then be used in subsequent text-to-image generation models to produce higher quality and more accurate images. The output string is cleaned to remove any padding or end-of-sequence tokens, ensuring it is ready for immediate use.
instruction_prompt
to guide the model on how to expand the prompt. For example, if you want a more descriptive scene, you might use Describe the following scene in detail
.max_new_tokens
parameter based on the level of detail you need. For more complex and detailed prompts, increase the value, but be mindful of the maximum limit.prompt
is concise but informative. The quality of the expanded prompt depends on the clarity and specificity of the input prompt.class_type
property, which is essential for execution.class_type
property defined. Check your prompt configuration and add the missing property where necessary.<class_type>
does not exist.<output_id>
© Copyright 2024 RunComfy. All Rights Reserved.