1.3 KiB

Usage

For detailed command-line arguments, run:

./bin/sd-cli -h

Logging defaults to info. Use --log-level <level> to select debug, verbose, info, warn, or error (from most to least detailed). Each level includes messages at that level and all less detailed levels. -v and --verbose are equivalent to --log-level verbose. If repeated, the last logging option wins.

For direct image repair or automatic post-generation YOLOv8 detection followed by cropped inpainting, see ADetailer.

Use repeatable --image-preprocess rules to select resizing, cropping, padding, and resampling separately for each image input. Add canny=true to any input rule for edge detection. See Image preprocessing for input selectors, input defaults, downstream model processing, mask alignment, and examples.

Metadata mode inspects PNG/JPEG container metadata without loading any model:

./bin/sd-cli -M metadata --image ./output.png
./bin/sd-cli -M metadata --image ./output.jpg --metadata-format json
./bin/sd-cli -M metadata --image ./output.png --metadata-raw
./bin/sd-cli -M metadata --image ./output.png --metadata-all

For completely black or white images or videos, NaNs, and the --linear-scale / --attn-scale workaround, see Troubleshooting.