Checks all PNG image files generated by Stable Diffusion web UI in the specified directory.
The script then creates a directory and moves the image files there according to the model generated.
The directory name will be the model name listed in the PNG Info of the image.
To install dependencies:
bun install
To run:
# Specify the target directory. If not specified, it points to the current directory
bun run main.ts ./images/
This project was created using bun init
in bun v1.0.3. Bun is a fast all-in-one JavaScript runtime.