Do we need single line prompt comments? #14465
Replies: 8 comments 2 replies
-
I'm not sure if I'll use comment, but I think it is a useful feature because user can get more information from past images. If the effect of comments on the generated images is "0%", I agree with the addition. |
Beta Was this translation helpful? Give feedback.
-
YES! I've always wanted this. Would save me from using an external text editor all the time, or "abusing" other input fields in webui for temporary string storage when copy/pasting. |
Beta Was this translation helpful? Give feedback.
-
we've kind of already supports comment in prompts
though not in negative prompts |
Beta Was this translation helpful? Give feedback.
-
I use comments from sd-dynamic-prompts extensively, they're indespensible for quickly experimenting with prompts. My preference is to strip comments from infotext. I often have dozens of lines of commented-out tags, I don't want those cluttering the infotext. This also means other software doesn't need to understand comments (it's nice to be able to use dumb search tools to search infotext in images and generation logs, that would be more complicated if comments were left in). I'd suggest collapsing multiple blank lines down to one, to remove big chunks of empty lines from removed comments but leave "spacer" blank lines intact. One advantage of doing this natively is toggling LORA tags could understand comments, so it doesn't add a LORA tag onto a commented-out line. Showing comments in a different color in the prompt text box would be amazing, since it's hard to tell at a glance what the active tags are when you have a lot of comments. Probably a headache to implement through Gradio, though. (I might take a look at this if comments are added, maybe it could be done transparently to Gradio by substituting the textarea with a web component.) |
Beta Was this translation helpful? Give feedback.
-
Oh, and of course mid-line comments should work too, not just whole lines. |
Beta Was this translation helpful? Give feedback.
-
If this would work better than current negative prompt system (I meant the negative was affected better), YES for sure, why not! |
Beta Was this translation helpful? Give feedback.
-
People have spoken; comments are added in v1.8.0-RC; enabled by default. Both line comments and mid-line comments work; use |
Beta Was this translation helpful? Give feedback.
-
Prompt comments would let you mark an entire line of text from the prompt as hidden from the model.
Here
red hair, drill hair,
tags are commented out and do not end up in the final image.Additional questions for discussion:
#10486
36 votes ·
Beta Was this translation helpful? Give feedback.
All reactions