Skip to content

Commit f80ce5e

Browse files
committed
update usage
1 parent fbf6563 commit f80ce5e

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

examples/cli/main.cpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,23 +184,26 @@ void print_params(SDParams params) {
184184
printf(" batch_count: %d\n", params.batch_count);
185185
printf(" vae_tiling: %s\n", params.vae_tiling ? "true" : "false");
186186
printf(" upscale_repeats: %d\n", params.upscale_repeats);
187+
printf(" preview_mode: %d\n", previews_str[params.preview_method]);
188+
printf(" preview_interval: %d\n", params.preview_interval);
187189
}
188190

189191
void print_usage(int argc, const char* argv[]) {
190192
printf("usage: %s [arguments]\n", argv[0]);
191193
printf("\n");
192194
printf("arguments:\n");
193195
printf(" -h, --help show this help message and exit\n");
194-
printf(" -M, --mode [MODEL] run mode (txt2img or img2img or convert, default: txt2img)\n");
196+
printf(" -M, --mode [MODE] run mode (txt2img or img2img or convert, default: txt2img)\n");
195197
printf(" -t, --threads N number of threads to use during computation (default: -1)\n");
196198
printf(" If threads <= 0, then threads will be set to the number of CPU physical cores\n");
197199
printf(" -m, --model [MODEL] path to full model\n");
198-
printf(" --diffusion-model path to the standalone diffusion model\n");
199-
printf(" --clip_l path to the clip-l text encoder\n");
200-
printf(" --clip_g path to the clip-g text encoder\n");
201-
printf(" --t5xxl path to the the t5xxl text encoder\n");
200+
printf(" --diffusion-model [MODEL] path to the standalone diffusion model\n");
201+
printf(" --clip_l [ENCODER] path to the clip-l text encoder\n");
202+
printf(" --clip_g [ENCODER] path to the clip-g text encoder\n");
203+
printf(" --t5xxl [ENCODER] path to the the t5xxl text encoder\n");
202204
printf(" --vae [VAE] path to vae\n");
203-
printf(" --taesd [TAESD_PATH] path to taesd. Using Tiny AutoEncoder for fast decoding (low quality)\n");
205+
printf(" --taesd [TAESD] path to taesd. Using Tiny AutoEncoder for fast decoding (low quality)\n");
206+
printf(" --taesd-preview-only prevents usage of taesd for decoding the final image. (for use with --preview %s)\n", previews_str[SD_PREVIEW_TAE]);
204207
printf(" --control-net [CONTROL_PATH] path to control net model\n");
205208
printf(" --embd-dir [EMBEDDING_PATH] path to embeddings\n");
206209
printf(" --stacked-id-embd-dir [DIR] path to PHOTOMAKER stacked id embeddings\n");
@@ -246,6 +249,10 @@ void print_usage(int argc, const char* argv[]) {
246249
printf(" This might crash if it is not supported by the backend.\n");
247250
printf(" --control-net-cpu keep controlnet in cpu (for low vram)\n");
248251
printf(" --canny apply canny preprocessor (edge detection)\n");
252+
printf(" --preview {%s,%s,%s,%s} preview method. (default is %s(disabled))\n", previews_str[0], previews_str[1], previews_str[2], previews_str[3], previews_str[SD_PREVIEW_NONE]);
253+
printf(" %s is the fastest\n", previews_str[SD_PREVIEW_PROJ]);
254+
printf(" --preview-interval [N] How often to save the image preview");
255+
printf(" --preview-path [PATH} path to write preview image to (default: ./preview.png)\n");
249256
printf(" --color Colors the logging tags according to level\n");
250257
printf(" -v, --verbose print extra info\n");
251258
}

0 commit comments

Comments
 (0)