|
7 | 7 | Diffusion model(SD,Flux,Wan,...) inference in pure C/C++ |
8 | 8 |
|
9 | 9 | ***Note that this project is under active development. \ |
10 | | -API and command-line parameters may change frequently.*** |
| 10 | +API and command-line option may change frequently.*** |
11 | 11 |
|
12 | 12 | ## Features |
13 | 13 |
|
@@ -290,9 +290,10 @@ usage: ./bin/sd [arguments] |
290 | 290 |
|
291 | 291 | arguments: |
292 | 292 | -h, --help show this help message and exit |
293 | | - -M, --mode [MODE] run mode, one of: [img_gen, convert], default: img_gen |
| 293 | + -M, --mode [MODE] run mode, one of: [img_gen, vid_gen, convert], default: img_gen |
294 | 294 | -t, --threads N number of threads to use during computation (default: -1) |
295 | 295 | If threads <= 0, then threads will be set to the number of CPU physical cores |
| 296 | + --offload-to-cpu place the weights in RAM to save VRAM, and automatically load them into VRAM when needed |
296 | 297 | -m, --model [MODEL] path to full model |
297 | 298 | --diffusion-model path to the standalone diffusion model |
298 | 299 | --high-noise-diffusion-model path to the standalone high noise diffusion model |
@@ -346,7 +347,7 @@ arguments: |
346 | 347 | --high-noise-scheduler {discrete, karras, exponential, ays, gits} Denoiser sigma scheduler (default: discrete) |
347 | 348 | --high-noise-sampling-method {euler, euler_a, heun, dpm2, dpm++2s_a, dpm++2m, dpm++2mv2, ipndm, ipndm_v, lcm, ddim_trailing, tcd} |
348 | 349 | (high noise) sampling method (default: "euler_a") |
349 | | - --high-noise-steps STEPS (high noise) number of sample steps (default: 20) |
| 350 | + --high-noise-steps STEPS (high noise) number of sample steps (default: -1 = auto) |
350 | 351 | SLG will be enabled at step int([STEPS]*[START]) and disabled at int([STEPS]*[END]) |
351 | 352 | --strength STRENGTH strength for noising/unnoising (default: 0.75) |
352 | 353 | --style-ratio STYLE-RATIO strength for keeping input identity (default: 20) |
@@ -377,6 +378,9 @@ arguments: |
377 | 378 | --chroma-t5-mask-pad PAD_SIZE t5 mask pad size of chroma |
378 | 379 | --video-frames video frames (default: 1) |
379 | 380 | --fps fps (default: 24) |
| 381 | + --moe-boundary BOUNDARY timestep boundary for Wan2.2 MoE model. (default: 0.875) |
| 382 | + only enabled if `--high-noise-steps` is set to -1 |
| 383 | + --flow-shift SHIFT shift value for Flow models like SD3.x or WAN (default: auto) |
380 | 384 | -v, --verbose print extra info |
381 | 385 | ``` |
382 | 386 |
|
|
0 commit comments