automatic/cli
Vladimir Mandic de94eb1589 api update 2023-07-05 18:09:34 -04:00
..
README.md update cli 2023-05-13 15:21:00 -04:00
create-previews.py fix paths 2023-06-15 19:09:32 -04:00
generate.json update 2023-03-04 18:14:56 -05:00
generate.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
hf-search.py wip diffusers 2023-07-02 21:07:26 -04:00
image-exif.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
image-grid.py update cli 2023-05-13 15:21:00 -04:00
image-interrogate.py update cli 2023-05-13 15:21:00 -04:00
image-palette.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
image-watermark.py new training and models interface 2023-06-22 07:46:48 -04:00
latents.py refactor api auth 2023-05-23 14:31:22 -04:00
nvidia-smi.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
options.py new training and models interface 2023-06-22 07:46:48 -04:00
process.py fix training messing with tags 2023-06-28 11:01:28 -04:00
prompt-ideas.py update cli 2023-05-13 15:21:00 -04:00
prompt-promptist.py update cli 2023-05-13 15:21:00 -04:00
random.json add cli 2023-01-14 14:15:47 -05:00
requirements.txt update cli 2023-05-13 15:21:00 -04:00
run-benchmark.py jumbo merge 2023-06-13 11:59:56 -04:00
sdapi.py api update 2023-07-05 18:09:34 -04:00
simple-img2txt.py update cli script examples 2023-05-16 10:52:38 -04:00
simple-txt2txt.py realtime monitoring 2023-06-19 16:40:05 -04:00
torch-compile.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
train.py fix training 2023-07-04 15:40:15 -04:00
util.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
validate-locale.py update settings and hints 2023-06-17 08:13:19 -04:00
video-extract.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00

README.md

Stable-Diffusion Productivity Scripts

Note: All scripts have built-in --help parameter that can be used to get more information


Main Scripts

Generate

Text-to-image with all of the possible parameters
Supports upsampling, face restoration and grid creation

python generate.py

By default uses parameters from generate.json

Parameters that are not specified will be randomized:

  • Prompt will be dynamically created from template of random samples: random.json
  • Sampler/Scheduler will be randomly picked from available ones
  • CFG Scale set to 5-10

Train

Combined pipeline for embeddings, lora, lycoris, dreambooth and hypernetwork
Optionally runs several image processing steps before training:

  • keep original image
  • detect and extract face
  • detect and extract body
  • detect blur
  • detect dynamic range
  • attempt to upscale low resolution images
  • attempt to restore quality of low quality images
  • automatically generate captions using interrogate
  • resize image
  • square image
  • run image segmentation to remove background

python train.py


Auxiliary Scripts

Benchmark

python run-benchmark.py

Create Previews

Create previews for embeddings, lora, lycoris, dreambooth and hypernetwork

python create-previews.py

Image Grid

python image-grid.py

Image Watermark

Create invisible image watermark and remove existing EXIF tags

python image-watermark.py

Image Interrogate

Runs CLiP and Booru image interrogation

python image-interrogate.py

Palette Extract

Extract color palette from image(s)

python image-palette.py

Prompt Ideas

Generate complex prompt ideas

python prompt-ideas.py

Prompt Promptist

Attempts to beautify the provided prompt

python prompt-promptist.py

Video Extract

Extract frames from video files

python video-extract.py


Utility Scripts

SDAPI

Utility module that handles async communication to Automatic API endpoints
Note: Requires SD API

Can be used to manually execute specific commands:

python sdapi.py progress
python sdapi.py interrupt python sdapi.py shutdown