From 923e4b184ddb3fa4cdba0384d9f05285919f59e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20du=20Hamel?= Date: Sat, 24 Aug 2024 22:30:12 +0200 Subject: [PATCH 1/3] main: Add missing args to usage --- examples/cli/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/cli/main.cpp b/examples/cli/main.cpp index 1756a976b..d8b4472b6 100644 --- a/examples/cli/main.cpp +++ b/examples/cli/main.cpp @@ -169,7 +169,11 @@ void print_usage(int argc, const char* argv[]) { printf(" -M, --mode [MODEL] run mode (txt2img or img2img or convert, default: txt2img)\n"); printf(" -t, --threads N number of threads to use during computation (default: -1).\n"); printf(" If threads <= 0, then threads will be set to the number of CPU physical cores\n"); - printf(" -m, --model [MODEL] path to model\n"); + printf(" -m, --model [MODEL] path to full model\n"); + printf(" --diffusion-model path to the standalone diffusion model\n"); + printf(" --clip_l path to the clip-l text encoder\n"); + printf(" --t5xxl path to the the t5xxl text encoder.\n"); + printf(" --vae [VAE] path to vae\n"); printf(" --taesd [TAESD_PATH] path to taesd. Using Tiny AutoEncoder for fast decoding (low quality)\n"); printf(" --control-net [CONTROL_PATH] path to control net model\n"); @@ -204,6 +208,8 @@ void print_usage(int argc, const char* argv[]) { printf(" --clip-skip N ignore last layers of CLIP network; 1 ignores none, 2 ignores one layer (default: -1)\n"); printf(" <= 0 represents unspecified, will be 1 for SD1.x, 2 for SD2.x\n"); printf(" --vae-tiling process vae in tiles to reduce memory usage\n"); + printf(" --vae-on-cpu keep vae in cpu (for low vram)\n"); + printf(" --clip-on-cpu keep clip in cpu (for low vram).\n"); printf(" --control-net-cpu keep controlnet in cpu (for low vram)\n"); printf(" --canny apply canny preprocessor (edge detection)\n"); printf(" --color Colors the logging tags according to level\n"); From e83b23be3d20a269a2015396bfc9161da2b81a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20du=20Hamel?= Date: Sun, 25 Aug 2024 15:12:10 +0200 Subject: [PATCH 2/3] main: remove unnecessary newline --- examples/cli/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/cli/main.cpp b/examples/cli/main.cpp index d8b4472b6..b09792212 100644 --- a/examples/cli/main.cpp +++ b/examples/cli/main.cpp @@ -173,7 +173,6 @@ void print_usage(int argc, const char* argv[]) { printf(" --diffusion-model path to the standalone diffusion model\n"); printf(" --clip_l path to the clip-l text encoder\n"); printf(" --t5xxl path to the the t5xxl text encoder.\n"); - printf(" --vae [VAE] path to vae\n"); printf(" --taesd [TAESD_PATH] path to taesd. Using Tiny AutoEncoder for fast decoding (low quality)\n"); printf(" --control-net [CONTROL_PATH] path to control net model\n"); From 19fb8894986df0ec665a456352c6caac4c2887bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20du=20Hamel?= Date: Mon, 26 Aug 2024 16:31:23 +0200 Subject: [PATCH 3/3] update readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 478b9631b..817103341 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,10 @@ arguments: -M, --mode [MODEL] run mode (txt2img or img2img or convert, default: txt2img) -t, --threads N number of threads to use during computation (default: -1). If threads <= 0, then threads will be set to the number of CPU physical cores - -m, --model [MODEL] path to model + -m, --model [MODEL] path to full model + --diffusion-model path to the standalone diffusion model + --clip_l path to the clip-l text encoder + --t5xxl path to the the t5xxl text encoder. --vae [VAE] path to vae --taesd [TAESD_PATH] path to taesd. Using Tiny AutoEncoder for fast decoding (low quality) --control-net [CONTROL_PATH] path to control net model @@ -227,6 +230,8 @@ arguments: --clip-skip N ignore last layers of CLIP network; 1 ignores none, 2 ignores one layer (default: -1) <= 0 represents unspecified, will be 1 for SD1.x, 2 for SD2.x --vae-tiling process vae in tiles to reduce memory usage + --vae-on-cpu keep vae in cpu (for low vram) + --clip-on-cpu keep clip in cpu (for low vram). --control-net-cpu keep controlnet in cpu (for low vram) --canny apply canny preprocessor (edge detection) --color Colors the logging tags according to level