ComfyUI > Nodes > SDXL Prompt Styler > SDXL Prompt Styler Advanced

ComfyUI Node: SDXL Prompt Styler Advanced

Class Name

SDXLPromptStylerAdvanced

Category
utils
Author
twri (Account age: 4077days)
Extension
SDXL Prompt Styler
Latest Updated
2024-05-22
Github Stars
0.63K

How to Install SDXL Prompt Styler

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

SDXL Prompt Styler Advanced Description

Enhance AI art with advanced prompt styling for customization and control.

SDXL Prompt Styler Advanced:

The SDXLPromptStylerAdvanced node is designed to enhance your AI-generated art by applying sophisticated styling to your prompts. This node allows you to process and combine both positive and negative prompts with advanced templates, ensuring that your artistic vision is accurately reflected in the generated output. By leveraging this node, you can achieve a higher level of customization and control over the stylistic elements of your prompts, making it easier to create unique and compelling AI art. The node also provides logging capabilities to help you track and refine your prompt styling process.

SDXL Prompt Styler Advanced Input Parameters:

text_positive_g

This parameter accepts a global positive prompt as a string. It is used as the primary positive input that will be styled and combined with the template. The default value is an empty string, and it supports multiline input.

text_positive_l

This parameter accepts a local positive prompt as a string. It is used as an additional positive input that will be styled and combined with the template. The default value is an empty string, and it supports multiline input.

text_negative

This parameter accepts a negative prompt as a string. It is used to specify elements that should be avoided in the generated art. The default value is an empty string, and it supports multiline input.

style

This parameter allows you to select a style from a predefined list of styles loaded from the current directory. The selected style will be applied to both positive and negative prompts.

negative_prompt_to

This parameter determines where the negative prompt should be applied. The options are "Both", "G only", and "L only", with the default being "Both". This allows you to control whether the negative prompt affects both global and local prompts or just one of them.

copy_to_l

This boolean parameter specifies whether the global positive prompt should be copied to the local positive prompt. The default value is False, with "yes" and "no" labels for enabling and disabling this option, respectively.

log_prompt

This boolean parameter enables or disables logging of the prompt styling process. When set to True, detailed information about the styling process will be printed to the console. The default value is False, with "yes" and "no" labels for enabling and disabling this option, respectively.

SDXL Prompt Styler Advanced Output Parameters:

text_positive_g

This output parameter returns the styled global positive prompt as a string. It reflects the application of the selected style to the original global positive prompt.

text_positive_l

This output parameter returns the styled local positive prompt as a string. It reflects the application of the selected style to the original local positive prompt.

text_positive

This output parameter returns the combined and styled positive prompt as a string. It merges the global and local positive prompts into a single styled prompt.

text_negative_g

This output parameter returns the styled global negative prompt as a string. It reflects the application of the selected style to the original global negative prompt.

text_negative_l

This output parameter returns the styled local negative prompt as a string. It reflects the application of the selected style to the original local negative prompt.

text_negative

This output parameter returns the combined and styled negative prompt as a string. It merges the global and local negative prompts into a single styled prompt.

SDXL Prompt Styler Advanced Usage Tips:

  • To achieve a cohesive style across both global and local prompts, consider enabling the copy_to_l option.
  • Use the log_prompt option to debug and refine your prompt styling process by reviewing the detailed logs.
  • Experiment with different styles to see how they affect the output and find the one that best matches your artistic vision.

SDXL Prompt Styler Advanced Common Errors and Solutions:

"Style not found in directory"

  • Explanation: The selected style is not available in the current directory.
  • Solution: Ensure that the style files are correctly placed in the directory and that the style name is spelled correctly.

"Invalid input type for text_positive_g"

  • Explanation: The input provided for text_positive_g is not a string.
  • Solution: Make sure to provide a valid string input for the text_positive_g parameter.

"Logging failed"

  • Explanation: There was an issue with enabling the logging feature.
  • Solution: Verify that the log_prompt parameter is set to a boolean value and try again.

SDXL Prompt Styler Advanced Related Nodes

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