Spaces:
Runtime error
Runtime error
File size: 2,190 Bytes
c19ca42 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# Stable-Diffusion Productivity Scripts
Note: All scripts have built-in `--help` parameter that can be used to get more information
<br>
## 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
<br>
## 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
<br>
## 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
|