automatic/cli
Vladimir Mandic 51d6e1d559 update notes
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-03 11:14:51 -05:00
..
README.md update notes 2024-11-03 11:14:51 -05:00
api-control.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-faceid.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-faces.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-img2img.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-info.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-json.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-mask.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-preprocess.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-progress.py restructure api examples 2024-06-14 10:27:49 -04:00
api-txt2img.js restructure api examples 2024-06-14 10:27:49 -04:00
api-txt2img.py face-hires -> detailer refactor 2024-10-06 11:23:33 -04:00
api-upscale.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
api-vqa.py ipadapter optional face autocrop input image 2024-08-29 14:10:38 -04:00
clone.py fix ipadapter batch runs 2024-03-15 09:25:14 -04:00
create-previews.py face-hires -> detailer refactor 2024-10-06 11:23:33 -04:00
download.py argparse 2023-10-01 11:18:52 -04:00
gen-styles.py parametrize gen-styles 2023-10-04 14:53:00 -04:00
generate.json face-hires -> detailer refactor 2024-10-06 11:23:33 -04:00
generate.py face-hires -> detailer refactor 2024-10-06 11:23:33 -04:00
hf-convert.py always log level debug to log file 2023-11-24 09:21:47 -05:00
hf-search.py Update to new huggingface stuff 2024-08-13 10:48:11 +02:00
image-encode.py fix api ip-adapter 2024-06-18 08:37:14 -04:00
image-exif.py fix xyz grid 2024-09-26 09:24:11 -04:00
image-grid.py add context-aware image resize 2024-09-07 11:58:58 -04:00
image-interrogate.py update cli 2023-05-13 15:21:00 -04:00
image-palette.py add logo 2024-05-13 17:54:02 -04:00
image-watermark.py watermark alphablending 2024-11-01 14:50:36 -04:00
install-sf.py update install-sf.py to handle new 1.05 stable-fast 2024-05-10 21:38:57 -04:00
lcm-convert.py add vqa api 2024-03-26 09:24:01 -04:00
load-unet.py print model components for safetensors load 2024-11-02 14:00:33 -04:00
model-keys.py update notes 2024-11-03 11:14:51 -05:00
model-metadata.py display lora tag in networks and do not filter 2024-09-22 15:25:10 -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 refactor ip adapters 2024-02-10 16:04:51 -05:00
random.json add cli 2023-01-14 14:15:47 -05:00
requirements.txt fix installer and requirements 2024-02-22 20:50:23 -05:00
run-benchmark.py refactor stable-cascade, fix taesd bf16, add skip-env cmd flag 2024-02-21 17:13:53 -05:00
sdapi.py fix processor switch 2024-01-09 07:53:37 -05:00
util.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
validate-locale.py update hints 2023-09-10 13:05:31 -04:00
video-extract.py refactor html-info and do some linting cleanups 2023-06-18 11:38:42 -04:00
zluda-python.py restructure api examples 2024-06-14 10:27:49 -04:00

README.md

Stable-Diffusion Productivity Scripts

API Examples

Run Generate

  • cli/api-txt2img.py
  • cli/api-img2img.py
  • cli/api-control.py

Monitor

  • cli/api-progress.py

Generic

  • cli/api-json.py

Process

  • cli/api-info.py
  • cli/api-upscale.py
  • cli/api-vqa.py
  • cli/api-preprocess.py

Other

  • cli/api-faceid.py
  • cli/api-faces.py
  • cli/api-mask.py

JavaScript

  • cli/api-txt2img.js

Generate

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

python cli/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

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