hnmr293 / sd-webui-cutoff

Cutoff - Cutting Off Prompt Effect
Other
1.2k stars 85 forks source link

Parse Prompt into Target tokens automatically #2

Open butaixianran opened 1 year ago

butaixianran commented 1 year ago

Great extension. also can be better.

There is no need to fill Target tokens manually. You can parse prompt, split them by "," and " " to get the first word, then fill then into Target tokens automatically.

And you can also create a color word list, as a filter, to remove non-color words, which is an option can be enabled by user.

It won't be perfect, but still be more convenient

DaifaGan commented 1 year ago

The S/R script still works.

You can use " ... prompt ... [col1] ... prompt ... [col2] ... prompt ..."

Target "col1, col2,", Then, in S/R boxes, add your color lists.

acorderob commented 1 year ago

A better solution would be if the tokens were surrounded by, for example, double quotes so they can be detected and extracted.