AUTOMATIC1111 / stable-diffusion-webui

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

ENHANCEMENT / FEATURE REQUEST: Color picker/restrictor #3024

Open Duemellon opened 1 year ago

Duemellon commented 1 year ago

Is there a current way to consistently restrict the color set in a way separate from prompt-language?

By that I mean: Saying "monochrome" or "monochromatic" gets a good result but saying "monochromatic canary yellow" does not because it will have a hard time associating "canary yellow" together.

Suggestion: In a separate action allow for the color parameters to be passed as colors, specifically, from a pick list

Feature 1: Pick the "Fuzziness" If you picked RGB 255,0,0 or hex FF0000 red, fuzziness would randomize usage of that value by the fuzziness by some factor

Pick featured/suppressed color If you picked RGB 255,0,0/FF0000 you could make it more prominent (featured) or negate it (mute/remove)

Pick 1-n# of colors Pick a set of colors, directly, that the palette is restricted to

ClashSAN commented 1 year ago

Is there a current way to consistently restrict the color set in a way separate from prompt-language

No, there's no way to use specific hex color codes for SD either.

Perhaps someone will find a way to use a method of cross attention control with color sketch feature to specify specific hex color codes in one go.

Duemellon commented 1 year ago

Currently I use terms like Tetradic, analogous, & other color palette terms but I'm unable to consistently pick what root colors ore. Sorry I don't know enough about programming to help out

Complexology commented 1 year ago

@Duemellon I think you need to add the tag "enhancement" to get more attention to this feature. I'd love a color palette feature where you could pick a few colors that the model would favor. A color selector built in to the interface would be super useful too.

Duemellon commented 1 year ago

Thanks for the encouragement but I'm not sure how to add a tag to this thread : L

timntorres commented 1 year ago

As discussed here, create a gradient with your desired colors in Photoshop, then load it up in img2img with a high-ish strength.

Duemellon commented 1 year ago

Yah, tried that.

Unfortunately that gradient determines too much of the position of the colors -- ie: If you have orange in the top left then the result will have a concentration of orange in the top left, not distributed throughout.