acorderob / sd-webui-prompt-postprocessor

Stable Diffusion WebUI extension to post-process the prompt, including sending content from the prompt to the negative prompt.
MIT License
18 stars 0 forks source link

Commas disappears out of the prompt line ends #8

Closed Ariloum closed 3 months ago

Ariloum commented 5 months ago

So if my prompt contains new lines (\n\r) this addon removes commas at the end of each line, here is some example on the screenshots:

this one with addon turned off 2024-02-16 02_35_10-Stable Diffusion

this one with addon on 2024-02-16 02_35_37-Stable Diffusion

acorderob commented 5 months ago

This is on purpose. Separators (commas) at the start or end of lines are removed. It's part of the cleanup process. Do you have a reason/use case for not doing it?

Ariloum commented 5 months ago

This is on purpose. Separators (commas) at the start or end of lines are removed. It's part of the cleanup process. Do you have a reason/use case for not doing it?

yes, result images with commas and w/o are different. I have to manually reapply commas for the images I reuse prompts (from the images generated before I have installed that addon). also if I'd like to copy that prompt line in front of another line I have to put comma too in the middle...

is there any reason you are clearing typical commas separator in the end of lines?

acorderob commented 5 months ago

I'm removing the commas there because they are unnecessary for reading purposes, and that's the cleaning phase purpose.

If your intention is replicating an old prompt, then just disable the cleaning in the settings (or all the options so nothing gets modified).

I might add an option to disable just this case in the next version.

Ariloum commented 5 months ago

I see, adding such an option would be awesome, will be waiting for the update

acorderob commented 3 months ago

Use v2.4..0 and deselect the "Remove additional extra separators" option.