You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/cli/README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,10 @@ usage: ./bin/sd-cli [options]
5
5
6
6
CLI Options:
7
7
-o, --output <string> path to write result image to. you can use printf-style %d format specifiers for image sequences (default: ./output.png) (eg. output_%03d.png)
8
-
--output-begin-idx <int> starting index for output image sequence, must be non-negative (default 0 if specified %d in output path, 1 otherwise)
9
8
--preview-path <string> path to write preview image to (default: ./preview.png)
10
9
--preview-interval <int> interval in denoising steps between consecutive updates of the image preview file (default is 1, meaning updating at
11
10
every step)
11
+
--output-begin-idx <int> starting index for output image sequence, must be non-negative (default 0 if specified %d in output path, 1 otherwise)
12
12
--canny apply canny preprocessor (edge detection)
13
13
--convert-name convert tensor name (for convert mode)
14
14
-v, --verbose print extra info
@@ -18,6 +18,8 @@ CLI Options:
18
18
-M, --mode run mode, one of [img_gen, vid_gen, upscale, convert], default: img_gen
19
19
--preview preview method. must be one of the following [none, proj, tae, vae] (default is none)
20
20
-h, --help show this help message and exit
21
+
--rpc add a rpc device
22
+
--list-devices list available ggml compute devices
21
23
22
24
Context Options:
23
25
-m, --model <string> path to full model
@@ -40,6 +42,17 @@ Context Options:
40
42
--tensor-type-rules <string> weight type per tensor pattern (example: "^vae\.=f16,model\.=q8_0")
41
43
--photo-maker <string> path to PHOTOMAKER model
42
44
--upscale-model <string> path to esrgan model.
45
+
--main-backend-device <string> default device to use for all backends (defaults to main gpu device if hardware acceleration is available, otherwise
46
+
cpu)
47
+
--diffusion-backend-device <string> device to use for diffusion (defaults to main-backend-device)
48
+
--clip-backend-device <string> device to use for clip (defaults to main-backend-device). Can be a comma-separated list of devices for models with
49
+
multiple encoders
50
+
--vae-backend-device <string> device to use for vae (defaults to main-backend-device). Also applies to tae, unless tae-backend-device is specified
51
+
--tae-backend-device <string> device to use for tae (defaults to vae-backend-device)
52
+
--control-net-backend-device <string> device to use for control net (defaults to main-backend-device)
53
+
--upscaler-backend-device <string> device to use for upscaling models (defaults to main-backend-device)
54
+
--photomaker-backend-device <string> device to use for photomaker (defaults to main-backend-device)
55
+
--vision-backend-device <string> device to use for clip-vision model (defaults to main-backend-device)
43
56
-t, --threads <int> number of threads to use during computation (default: -1). If threads <= 0, then threads will be set to the number of
44
57
CPU physical cores
45
58
--chroma-t5-mask-pad <int> t5 mask pad size of chroma
@@ -49,16 +62,14 @@ Context Options:
49
62
--force-sdxl-vae-conv-scale force use of conv scale on sdxl vae
50
63
--offload-to-cpu place the weights in RAM to save VRAM, and automatically load them into VRAM when needed
51
64
--mmap whether to memory-map model
52
-
--control-net-cpu keep controlnet in cpu (for low vram)
53
-
--clip-on-cpu keep clip in cpu (for low vram)
54
-
--vae-on-cpu keep vae in cpu (for low vram)
55
65
--diffusion-fa use flash attention in the diffusion model
56
66
--diffusion-conv-direct use ggml_conv2d_direct in the diffusion model
57
67
--vae-conv-direct use ggml_conv2d_direct in the vae model
58
68
--circular enable circular padding for convolutions
59
69
--circularx enable circular RoPE wrapping on x-axis (width) only
60
70
--circulary enable circular RoPE wrapping on y-axis (height) only
61
71
--chroma-disable-dit-mask disable dit mask for chroma
72
+
--qwen-image-zero-cond-t enable zero_cond_t for qwen image
62
73
--chroma-enable-t5-mask enable t5 mask for chroma
63
74
--type weight type (examples: f32, f16, q4_0, q4_1, q5_0, q5_1, q8_0, q2_K, q3_K, q4_K). If not specified, the default is the
0 commit comments