ComfyUI  >  Nodes  >  SDXL Prompt Styler (customized version by wolfden)

ComfyUI Extension: SDXL Prompt Styler (customized version by wolfden)

Repo Name

ComfyUi_PromptStylers

Author
wolfden (Account age: 5730 days)
Nodes
View all nodes (35)
Latest Updated
5/22/2024
Github Stars
0.1K

How to Install SDXL Prompt Styler (customized version by wolfden)

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

SDXL Prompt Styler (customized version by wolfden) offers custom nodes that enhance prompt styling capabilities, building on the original SDXL Prompt Styler by twri.

SDXL Prompt Styler (customized version by wolfden) Introduction

ComfyUi_PromptStylers is an extension designed to enhance your AI-generated art by styling prompts based on predefined templates. This extension is particularly useful for AI artists who want to add a specific flair or style to their prompts without manually crafting each one. By using templates stored in JSON files, ComfyUi_PromptStylers can automatically replace placeholders in your prompts with your provided text, making it easier to generate consistent and high-quality outputs.

How SDXL Prompt Styler (customized version by wolfden) Works

At its core, ComfyUi_PromptStylers uses templates to style your prompts. Think of a template as a recipe that tells the extension how to format your text. Each template has a placeholder {prompt} that gets replaced with your provided positive text. Additionally, the extension can handle negative prompts, which are used to specify what you don't want in your generated art. If you provide negative text, it will be combined with the negative prompt from the template. If you don't, the template's default negative prompt will be used.

For example, if you have a template that says "breathtaking {prompt} . award-winning, professional, highly detailed" and you provide the positive text "a futuristic pop-up tent in a forest," the extension will generate the styled prompt: "breathtaking a futuristic pop-up tent in a forest . award-winning, professional, highly detailed."

SDXL Prompt Styler (customized version by wolfden) Features

Template-Based Styling

  • Positive Prompts: Replace the {prompt} placeholder in your template with your provided text.
  • Negative Prompts: Combine your provided negative text with the template's negative prompt or use the template's default if none is provided.

Customization

  • Multiple JSON Files: Load styles from multiple JSON files, allowing for a diverse range of templates.
  • Bypass Mode: Toggle to disable styling for positive, negative, or both sentiments.

Advanced Features

  • SDXL Prompt Styler Advanced: A more elaborate node for complex workflows, including options to copy positive prompt tokens and remove duplicates.

SDXL Prompt Styler (customized version by wolfden) Models

ComfyUi_PromptStylers includes different models to suit various needs:

  1. Base Model: A simple template that only replaces the {prompt} placeholder.
  2. Enhanced Model: Adds descriptive and stylistic elements to your prompt, such as "breathtaking," "award-winning," and "highly detailed."
  3. SDXL Prompt Styler Advanced: For more complex workflows, this model includes additional linguistic and supportive terms and allows for more customization.

Example Templates

[
  {
    "name": "base",
    "prompt": "{prompt}",
    "negative_prompt": ""
  },
  {
    "name": "enhance",
    "prompt": "breathtaking {prompt} . award-winning, professional, highly detailed",
    "negative_prompt": "ugly, deformed, noisy, blurry, distorted, grainy"
  }
]

What's New with SDXL Prompt Styler (customized version by wolfden)

Recent Updates

January 26, 2024

  • SDXL Prompt Styler Advanced: New option to copy the positive G prompt tokens to L, removing duplicates.

January 19, 2024

  • SDXL Prompt Styler: Added toggles to disable styling for positive, negative, or both sentiments (bypass mode).

August 27, 2023

  • SDXL Prompt Styler Advanced: New node for more elaborate workflows with linguistic and supportive terms. Selector to change the split behavior of the negative prompt.

August 11, 2023

  • File Structure Update: Modified file structure and naming convention for style JSONs. Ensure to back up and migrate your custom styles.

Troubleshooting SDXL Prompt Styler (customized version by wolfden)

Common Issues and Solutions

  1. Templates Not Loading:
  • Ensure your JSON files are correctly formatted and placed in the specified directory.
  • Restart ComfyUI after adding new templates.
  1. Styled Prompts Not Generating:
  • Check if the {prompt} placeholder is correctly used in your template.
  • Verify that you have provided both positive and negative texts if required.
  1. Error Messages:
  • Review the error logs for specific issues related to file reading or data validity.
  • Ensure your JSON files do not contain duplicate style names unless intended.

Frequently Asked Questions

  • Can I use multiple templates at once?
  • Yes, you can load multiple JSON files, and the system will handle them accordingly.
  • What happens if I don't provide negative text?
  • The extension will use the default negative prompt from the template.

Learn More about SDXL Prompt Styler (customized version by wolfden)

For additional resources, tutorials, and community support, consider the following:

  • Community forums and Discord channels where you can ask questions and share your experiences.
  • Example workflows and templates available in the extension's repository. By leveraging these resources, you can get the most out of ComfyUi_PromptStylers and enhance your AI-generated art with ease.

SDXL Prompt Styler (customized version by wolfden) Related Nodes

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.