Skip to content

Custom prompt styler node for SDXL in ComfyUI

License

Notifications You must be signed in to change notification settings

noahtim/sdxl_prompt_styler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDXL Prompt Styler

Custom node for ComfyUI

SDXL Prompt Styler Screenshot

SDXL Prompt Styler is a node that enables you to style prompts based on predefined templates stored in a JSON file. The node specifically replaces a {prompt} placeholder in the 'prompt' field of each template with provided positive text.

The node also effectively manages negative prompts. If negative text is provided, the node combines this with the 'negative_prompt' field from the template. If no negative text is supplied, the system defaults to using the 'negative_prompt' from the JSON template.

In the case where both negative text and the 'negative_prompt' field are present in the JSON template, the node merges them into a unified negative prompt. This flexibility enables the creation of a diverse and specific range of negative prompts.

Here's a template example from a JSON file:

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

About

Custom prompt styler node for SDXL in ComfyUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%