takes a batch of transparent PNG images, upscales them to 512x512 using nearest neighbor, and adds a random background color
I use this script for preparing images for training in stable diffusion
- put your images in
input_images
- run the script by typing
python main.py
in your terminal, or however you prefer - enjoy the new images in
output_images
Example input | Example output |
---|---|