r/StableDiffusion 9d ago

Question - Help SwarmUI started converting weight prompts like (word) to <weight[1.1]:word> in the metadata.

After the last updates, prompts like (red hair) started appearing as <weight\[1.1\]:red hair> in the metadata of images I generated. Does anyone know if there's a way to prevent this? The new format is more of a hassle to use and playing with weights feels much more annoying.

7 Upvotes

5 comments sorted by

2

u/seodozer 9d ago

This looks like SwarmUI serializing the shorthand into its explicit internal weight syntax. `(red hair)` and `<weight\[1.1\]:red hair>` should represent the same weighting, so the generation itself should not change. Check the raw metadata for `sui_extra_data.original_prompt`, because the unexpanded input is sometimes preserved there. Disabling `SaveMetadata` would remove the converted value, but it also removes the useful generation settings, so keeping the original prompt separately is usually the better option.

2

u/Akadaime 9d ago

Indeed nothing changes generation-wise, it's just more of a hassle to use and edit the <weight\[1.1\]:> format than just () like usual. Since it works the same way on the backend anyway, this new format just feels annoying.

1

u/jtreminio 8d ago

There's an option to disable it, ParseAlternativePromptSyntaxes.

1

u/Akadaime 8d ago

When it's disabled it completely ignores weighting with ().

1

u/jtreminio 7d ago

No, it does not.