GitHub - 1ort/img2mosaic: Stable-Diffusion-webui custom script that allows you to generate a mosaic with tiles of random size (original) (raw)

Automatic1111' Stable Diffusion webui custom script to generate mosaics from images. The script cuts the image into tiles and processes each tile separately. The size of each tile is chosen randomlyизображение изображение

Installation & usage

Сlone or download this repo and put the img2mosaic.py file in a /scripts folder of your webui base dir. After launching the interface, select img2mosaic from the list of scripts on the txt2img tab.

Examples

grid-0386 grid-0384 grid-0382 grid-0383

Credits

The code of the method of cutting and assembling the mosaic is written using the GPT-3 Codex according to my instructions