automatic/cli
Vladimir Mandic e92b66e2ea update version 2023-01-29 13:44:33 -05:00
..
modules add generate models preview 2023-01-27 14:53:48 -05:00
random enable pylint 2023-01-18 19:31:40 -05:00
.pylintrc enable pylint 2023-01-18 19:31:40 -05:00
README.md add cli 2023-01-14 14:15:47 -05:00
bench.py enable pylint 2023-01-18 19:31:40 -05:00
generate.json update generate 2023-01-27 07:14:59 -05:00
generate.py premerge cleanup 2023-01-28 10:35:26 -05:00
models.py update version 2023-01-29 13:44:33 -05:00
random.json add cli 2023-01-14 14:15:47 -05:00
train.json update interrogate and train 2023-01-19 17:55:31 -05:00
train.md update 2023-01-19 14:04:27 -05:00
train.py update generate 2023-01-27 09:25:43 -05:00
xformers.sh update 2023-01-14 11:12:31 -05:00

README.md

Scripts using Stable-Diffusion/Automatic API

Note: Start SD/Automatic using python launch.py --api

Generate

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

python generate.py --help

By default uses parameters from generate.json

Parameters that are not specified will be randomized to some extent:

  • 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

End-to-end embedding training

python train.py --help

Combined pipeline:

  1. Creates embedding
  2. Extracts images if input is movie
  3. Preprocesses images
  4. Runs training

Interrogate

Runs CLiP and Booru image interrogation on any provided parameters
(image, list of images, wildcards, folder, etc.)

python interrogate.py

Promptist

Attempts to beautify the provided prompt

python promptist.py

Ideas

Generate complex prompt ideas

python ideas.py --help

SDAPI

Utility module that handles async communication to Automatic API endpoints
Can be used to manually execute specific commands:

python sdapi.py progress
python sdapi.py interrupt

FFMPEG

Utility module that handles video files
Can be used to manually execute specific commands:

ffmpeg extract --help
python ffmpeg.py extract --input ~/downloads/vlado.mp4 --output ./vlado --fps 2 --skipstart 3 --skipend 1

Grid

Utility module to create image grids

python grid.py --help

Bench

Benchmark your Automatic

python bench.py