@@ -94,6 +94,8 @@ git submodule update
94
94
# ### Build from scratch
95
95
96
96
` ` ` shell
97
+ git submodule init
98
+ git submodule update
97
99
mkdir build
98
100
cd build
99
101
cmake ..
@@ -148,7 +150,7 @@ cmake --build . --config Release
148
150
### Run
149
151
150
152
```
151
- usage: ./bin/sd [ arguments]
153
+ usage: ./build/ bin/sd [ arguments]
152
154
153
155
arguments:
154
156
-h, --help show this help message and exit
@@ -161,6 +163,7 @@ arguments:
161
163
--control-net [ CONTROL_PATH] path to control net model
162
164
--embd-dir [ EMBEDDING_PATH] path to embeddings.
163
165
--upscale-model [ ESRGAN_PATH] path to esrgan model. Upscale images after generate, just RealESRGAN_x4plus_anime_6B supported by now.
166
+ --upscale-repeats Run the ESRGAN upscaler this many times (default 1)
164
167
--type [ TYPE] weight type (f32, f16, q4_0, q4_1, q5_0, q5_1, q8_0)
165
168
If not specified, the default is the type of the weight file.
166
169
--lora-model-dir [ DIR] lora model directory
@@ -186,6 +189,7 @@ arguments:
186
189
<= 0 represents unspecified, will be 1 for SD1.x, 2 for SD2.x
187
190
--vae-tiling process vae in tiles to reduce memory usage
188
191
--control-net-cpu keep controlnet in cpu (for low vram)
192
+ --canny apply canny preprocessor (edge detection)
189
193
-v, --verbose print extra info
190
194
```
191
195
0 commit comments