Palettize uses k-means to reduce the number of colors in an image. This script is specifically designed for use with Retro Diffusion pixel art model.
Values can be changed in the "Scripts" dropdown menu.
Examples of Palettize, as well as an Aseprite compatible version can be found here.
Copy this repo's URL (https://github.com/Astropulse/sd-palettize) into the "Install from URL" section of the Extensions tab of Automatic1111's webui. You will need to restart webui to install the required dependencies.
ENDESGA Adigun A. Polack Luis Miguel Maldonado PICO-8 Gabriel C. Nintendo Commodore Microsoft Atari