ComfyUI > Nodes > SD Prompt Reader > SD Prompt Merger

ComfyUI Node: SD Prompt Merger

Class Name

SDPromptMerger

Category
SD Prompt Reader
Author
receyuki (Account age: 2601days)
Extension
SD Prompt Reader
Latest Updated
2024-06-28
Github Stars
0.21K

How to Install SD Prompt Reader

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

SD Prompt Merger Description

Merge two text prompts into one cohesive prompt for enhanced AI-generated art creativity and diversity.

SD Prompt Merger:

The SDPromptMerger node is designed to combine two separate text prompts into a single cohesive prompt. This is particularly useful for AI artists who want to merge different ideas or themes into one prompt for generating more complex and nuanced AI-generated art. By using this node, you can seamlessly integrate multiple text inputs, ensuring that your final prompt captures the essence of both original texts. The main goal of the SDPromptMerger is to provide a simple yet powerful way to enhance the creativity and diversity of your AI-generated outputs by merging different textual inspirations.

SD Prompt Merger Input Parameters:

text_g

This parameter accepts a string input that represents the first part of the text prompt. It is an optional parameter but can significantly influence the final merged prompt. The text_g parameter allows multiline input, meaning you can provide a detailed and extensive prompt if needed. The default value is an empty string. When combined with text_l, it forms the first part of the final prompt.

text_l

This parameter accepts a string input that represents the second part of the text prompt. Similar to text_g, it is optional and allows multiline input. The default value is an empty string. When combined with text_g, it forms the second part of the final prompt. If both text_g and text_l are provided, they will be concatenated with a newline character in between, ensuring a smooth transition between the two parts.

SD Prompt Merger Output Parameters:

STRING

The output of the SDPromptMerger node is a single string that combines the inputs from text_g and text_l. This merged prompt can then be used as a comprehensive input for AI models to generate art. The output string ensures that both parts of the input prompts are included, providing a richer and more detailed prompt for the AI to work with.

SD Prompt Merger Usage Tips:

  • To create a more detailed and nuanced prompt, provide extensive and descriptive text in both text_g and text_l parameters.
  • Use the newline character effectively to separate different themes or ideas within the merged prompt, ensuring clarity and coherence.
  • Experiment with different combinations of text_g and text_l to see how varying inputs can influence the final AI-generated output.

SD Prompt Merger Common Errors and Solutions:

"TypeError: can only concatenate str (not 'NoneType') to str"

  • Explanation: This error occurs when one of the input parameters (text_g or text_l) is not provided or is set to None.
  • Solution: Ensure that both text_g and text_l are provided as strings, even if they are empty strings by default.

"ValueError: Input must be a string"

  • Explanation: This error happens when the input provided to text_g or text_l is not a string.
  • Solution: Verify that the inputs for text_g and text_l are strings. If you are passing variables, ensure they are converted to strings before being used as inputs.

SD Prompt Merger Related Nodes

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