Skip to content

Commit 508b623

Browse files
committed
update help message
1 parent 7fb67bc commit 508b623

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,11 @@ arguments:
306306
-i, --init-img [IMAGE] path to the input image, required by img2img
307307
--mask [MASK] path to the mask image, required by img2img with mask
308308
--control-image [IMAGE] path to image condition, control net
309-
-r, --ref-image [PATH] reference image for Flux Kontext models (can be used multiple times)
309+
-r, --ref-image [PATH] or [PATH,N] reference image for Flux Kontext models (can be used multiple times).
310+
PATH is the path to the reference image.
311+
Optionally, you can specify an integer identifier N (default = 1) after a comma to set the index of reference image.
312+
Reference indices are only supported by some fine-tunes of Flux Kontext with proper multi-reference support.
313+
Reference images with the same index will be stitched together and seen as one image.
310314
-o, --output OUTPUT path to write result image to (default: ./output.png)
311315
-p, --prompt [PROMPT] the prompt to render
312316
-n, --negative-prompt PROMPT the negative prompt (default: "")
@@ -332,7 +336,8 @@ arguments:
332336
--rng {std_default, cuda} RNG (default: cuda)
333337
-s SEED, --seed SEED RNG seed (default: 42, use random seed for < 0)
334338
-b, --batch-count COUNT number of images to generate
335-
--schedule {discrete, karras, exponential, ays, gits} Denoiser sigma schedule (default: discrete)
339+
--schedule {discrete, karras, exponential, ays, gits}
340+
Denoiser sigma schedule (default: discrete)
336341
--clip-skip N ignore last layers of CLIP network; 1 ignores none, 2 ignores one layer (default: -1)
337342
<= 0 represents unspecified, will be 1 for SD1.x, 2 for SD2.x
338343
--vae-tiling process vae in tiles to reduce memory usage

examples/cli/main.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ void print_usage(int argc, const char* argv[]) {
199199
printf(" -i, --init-img [IMAGE] path to the input image, required by img2img\n");
200200
printf(" --mask [MASK] path to the mask image, required by img2img with mask\n");
201201
printf(" --control-image [IMAGE] path to image condition, control net\n");
202-
printf(" -r, --ref-image [PATH] reference image for Flux Kontext models (can be used multiple times) \n");
202+
printf(" -r, --ref-image [PATH] or [PATH,N] reference image for Flux Kontext models (can be used multiple times).\n"
203+
" PATH is the path to the reference image.\n"
204+
" Optionally, you can specify an integer identifier N (default = 1) after a comma to set the index of reference image.\n"
205+
" Reference indices are only supported by some fine-tunes of Flux Kontext with proper multi-reference support.\n"
206+
" Reference images with the same index will be stitched together and seen as one image.\n");
203207
printf(" -o, --output OUTPUT path to write result image to (default: ./output.png)\n");
204208
printf(" -p, --prompt [PROMPT] the prompt to render\n");
205209
printf(" -n, --negative-prompt PROMPT the negative prompt (default: \"\")\n");
@@ -225,7 +229,8 @@ void print_usage(int argc, const char* argv[]) {
225229
printf(" --rng {std_default, cuda} RNG (default: cuda)\n");
226230
printf(" -s SEED, --seed SEED RNG seed (default: 42, use random seed for < 0)\n");
227231
printf(" -b, --batch-count COUNT number of images to generate\n");
228-
printf(" --schedule {discrete, karras, exponential, ays, gits} Denoiser sigma schedule (default: discrete)\n");
232+
printf(" --schedule {discrete, karras, exponential, ays, gits}\n"
233+
" Denoiser sigma schedule (default: discrete)\n");
229234
printf(" --clip-skip N ignore last layers of CLIP network; 1 ignores none, 2 ignores one layer (default: -1)\n");
230235
printf(" <= 0 represents unspecified, will be 1 for SD1.x, 2 for SD2.x\n");
231236
printf(" --vae-tiling process vae in tiles to reduce memory usage\n");

0 commit comments

Comments
 (0)