Skip to content

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.

License

Notifications You must be signed in to change notification settings

shinshin86/sample-script-separate-dirs-by-sd-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-script-separate-dirs-by-sd-models

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.

Usage

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published