sdxl_prompt_styler icon indicating copy to clipboard operation
sdxl_prompt_styler copied to clipboard

Feature request: custom style prompt

Open rsandx opened this issue 1 year ago • 2 comments

The included styles in this node are pretty good, but there're actually endless styles, it's impossible to include all, and if you include more the list will become too long to use easily. I propose to add a custom style prompt input, so that user can use an artist style, such as "breathtaking {prompt} by Anna Dittmann," weights can also be easily added by user. This should work as long as the simple format is followed, i.e., the style contains a {prompt} placeholder, which is simple to validate. When there're values in both the selected style and custom style, the custom one should take precedence. Please consider adding this feature., which will make this node the most powerful prompt styler.

rsandx avatar Feb 26 '24 15:02 rsandx

It's been requested before in some form or another. See #18 #14. It only loads files named .json so splitting them into different files and just renaming them will prevent them from being loaded. Not the most elegant solution but it works.

Multiselect and features like this has to be implemented client side since the GUI only updates when you queue something. And then it would probably be better to put a category or tags that you could filter for in the JSON.

I probably won't put the effort into doing something complex out of something that is simple, sorry. I think it would be better to build a frontend for ComfyUI that handles this instead like StableSwarmUI.

twri avatar Feb 27 '24 17:02 twri

@twri Thanks for your excellent work! What I proposed is not multiselect, but a new input field that takes a plain string, using the same template as other styles you have in the JSON files, such as "breathtaking {prompt} by Anna Dittmann," Although it's up to user to enter the style text, you can do a simple validation to make sure a {prompt} placeholder to be present so that the text can be used as a style by your node, This should be a simple addition, but makes your node extendable with endless styles.

rsandx avatar Feb 27 '24 23:02 rsandx