1
0
mirror of https://github.com/vladmandic/sdnext.git synced 2026-01-29 05:02:09 +03:00
Files
sdnext/cli
Vladimir Mandic 959e8acdbd add cli load state dict example
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-17 10:25:41 -04:00
..
2024-06-14 10:27:49 -04:00
2024-06-14 10:27:49 -04:00
2024-10-06 11:23:33 -04:00
2024-03-15 09:25:14 -04:00
2023-10-01 11:18:52 -04:00
2023-10-04 14:53:00 -04:00
2024-10-06 11:23:33 -04:00
2024-10-06 11:23:33 -04:00
2024-08-13 10:48:11 +02:00
2024-06-18 08:37:14 -04:00
2024-09-26 09:24:11 -04:00
2024-09-07 11:58:58 -04:00
2023-05-13 15:21:00 -04:00
2024-05-13 17:54:02 -04:00
2024-03-26 09:24:01 -04:00
2024-10-17 10:25:41 -04:00
2023-06-22 07:46:48 -04:00
2024-02-10 16:04:51 -05:00
2023-01-14 14:15:47 -05:00
2023-05-13 15:21:00 -04:00
2024-01-09 07:53:37 -05:00
2023-09-10 13:05:31 -04:00
2024-06-14 10:27:49 -04:00

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