AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.56k stars 26.75k forks source link

Convert multi-parens emphesis to new format in PNG & TXT generation parameters #3099

Open Ruffy314 opened 2 years ago

Ruffy314 commented 2 years ago

Is your feature request related to a problem? Please describe. Prompt sharing of already existing images is done most easily by copy-pasting the generation parameters from the PNG Info tab or the text files next to the image. Since there already is a more versatile alternate pattern for emphasis than multi parenthesis, the following could promote adaption. In addition, the old syntax has an unfortunate association with hate speech for a certain special case (see additional context below)

Describe the solution you'd like Automatically convert multi parens / brackets emphasis to the new format when the generation parameters are saved "as chunks to png files" or directly to "text file next to image" (as specified in settings tab).

Describe alternatives you've considered The following, while more consistent and precise, introduce visual noise and hamper readability

Pitfalls This may be less trivial to implement for cases like prompt with an ((important section that has a ((really important part))))

Additional context A Reddit thread suggests that the use of triple parenthesis emphasis in a posted prompt may have triggered the anti-hate filters and led to the ban of a user. Triple parenthesis seems to be an antisemitic symbol on social media.

cgessai commented 2 years ago

A Reddit thread suggested...

Is there any actual hard evidence to support this assertion, though? Searching Reddit for triple parenthesis show it's being posted without incident regularly.

jmp909 commented 1 year ago

hi please confirm how multiple words within brackets work with the new emphasis

is the new (jmp909 man) or specifically (jmp909 man:1.1) the same as the original (jmp909 man)?

similarly with (jmp909 man:1.21) compared to original ((jmp909 man))

that is, is the emphasis value applied to the 2 words as single phrase?

thanks

Ruffy314 commented 1 year ago

Hi, I was not aware that multiple words in parenthesis get treated differently than a single word. I had assumed that everything between a pair/pairs of parens, old style or new, would get the same emphasis. so (jmp909 man) same as (jmp909)(man) and (jmp909:1.1)(man:1.1) and (jmp909 man:1.1) If that is not the case, is there anywhere I can read up on this?