Skip to content

Script that generates palettes by text description via stable diffusion.

Notifications You must be signed in to change notification settings

1ort/txt2palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

txt2palette

Automatic1111' Stable Diffusion webui custom script to generate palettes by text description. The script takes the generated images and converts them into color palettes.

изображение изображение

Installation & usage

Сlone or download this repo and put the txt2palette.py file in a /scripts folder of your webui base dir.

To use the KMeans algorithm, add a scikit-learn to the requirements_versions.txt file in the base folder.

After launching the interface, select txt2palette from the list of scripts on the txt2img tab.

Examples

"Tokyo neon" Steps: 20, Sampler: Euler a, CFG scale: 7 изображение изображение

"Underwater disco" Steps: 20, Sampler: Euler a, CFG scale: 7 изображение изображение

"van gogh starry night" Steps: 20, Sampler: Euler a, CFG scale: 7 изображение изображение

Improvement Ideas:

  • Somehow save hex codes of palettes

Credits

The most important part of the script is based on the sources of Pylette color extractor: https://github.com/qTipTip/Pylette

About

Script that generates palettes by text description via stable diffusion.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages