ComfyUI > Nodes > ComfyUI-Prompt-Expansion > Prompt Expansion

ComfyUI Node: Prompt Expansion

Class Name

PromptExpansion

Category
utils
Author
meap158 (Account age: 3212days)
Extension
ComfyUI-Prompt-Expansion
Latest Updated
2024-05-22
Github Stars
0.06K

How to Install ComfyUI-Prompt-Expansion

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

Prompt Expansion Description

Enhance text prompts with advanced language models for AI artists seeking nuanced outputs.

Prompt Expansion:

The PromptExpansion node is designed to enhance and expand your initial text prompts using advanced language models. This node takes a given text prompt and, through a series of sophisticated transformations, generates a more detailed and enriched version of the original prompt. This can be particularly useful for AI artists looking to add depth and complexity to their textual inputs, thereby enabling more nuanced and creative outputs from AI models. By leveraging the power of pre-trained language models, PromptExpansion ensures that your prompts are not only expanded but also contextually relevant and coherent. This node is a valuable tool for anyone looking to push the boundaries of AI-generated art and text.

Prompt Expansion Input Parameters:

text

This parameter accepts a string input, which can be multiline, representing the initial text prompt you wish to expand. The quality and content of this input will significantly influence the final expanded prompt. There are no specific minimum or maximum values for this parameter, but providing a clear and concise initial prompt will yield better results.

seed

The seed parameter is an integer that helps in generating deterministic outputs. By setting a specific seed value, you can ensure that the same input prompt will always produce the same expanded prompt. This is useful for reproducibility. The default value is 0, and it can range from 0 to 0xFFFFFFFF (4,294,967,295). If an invalid seed is provided, a random seed within the valid range will be used.

log_prompt

This parameter is a dropdown with two options: "No" and "Yes". It controls whether the expanded prompt and additional logging information should be printed to the console. The default value is "No". Setting this to "Yes" can be useful for debugging or for understanding how the prompt was expanded.

Prompt Expansion Output Parameters:

final_prompt

This output is a string that contains the expanded version of the initial text prompt. It combines the original prompt with additional context and details generated by the language model, resulting in a richer and more elaborate prompt.

seed

This output is an integer that represents the seed value used during the prompt expansion process. This is useful for reproducibility, allowing you to regenerate the same expanded prompt by using the same initial prompt and seed value.

Prompt Expansion Usage Tips:

  • To achieve the best results, provide a clear and concise initial text prompt. The more specific and detailed your initial prompt, the more relevant and coherent the expanded prompt will be.
  • Use the seed parameter to ensure reproducibility. By setting a specific seed value, you can generate the same expanded prompt multiple times, which is useful for iterative creative processes.
  • Enable the log_prompt option if you want to see the intermediate steps and understand how the prompt was expanded. This can provide valuable insights into the workings of the language model and help you fine-tune your inputs.

Prompt Expansion Common Errors and Solutions:

Cannot execute because a node is missing the class_type property.

  • Explanation: This error occurs when the node configuration is incomplete or incorrect, specifically missing the class_type property.
  • Solution: Ensure that all nodes in your configuration have the class_type property correctly set. Check the node definitions and make sure they are properly initialized.

Cannot execute because node <class_type> does not exist.

  • Explanation: This error indicates that the specified node class_type does not exist in the NODE_CLASS_MAPPINGS.
  • Solution: Verify that the class_type you are using is correctly defined and mapped in the NODE_CLASS_MAPPINGS. Ensure that the node class is properly imported and registered.

Prompt has no outputs

  • Explanation: This error means that the prompt configuration does not produce any outputs, which is required for execution.
  • Solution: Check your prompt configuration to ensure that it includes nodes that generate outputs. Make sure that the nodes are correctly connected and configured to produce the desired outputs.

Prompt Expansion Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Prompt-Expansion
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.