add lcmlora instructions
Browse files
README.md
CHANGED
|
@@ -117,4 +117,22 @@ python3 -m pip install --pre --upgrade --extra-index-url https://pypi.nvidia.com
|
|
| 117 |
--guidance-scale 0.0 \
|
| 118 |
--seed 42
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
```
|
|
|
|
| 117 |
--guidance-scale 0.0 \
|
| 118 |
--seed 42
|
| 119 |
|
| 120 |
+
```
|
| 121 |
+
- **SDXL-LCMLORA**
|
| 122 |
+
|
| 123 |
+
The first invocation produces plan files in --engine-dir specific to the accelerator being run on and are reused for later invocations.
|
| 124 |
+
|
| 125 |
+
```
|
| 126 |
+
python3 demo_txt2img_xl.py \
|
| 127 |
+
""Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"" \
|
| 128 |
+
--version=xl-1.0 \
|
| 129 |
+
--onnx-dir /workspace/stable-diffusion-xl-1.0-tensorrt/lcmlora \
|
| 130 |
+
--engine-dir /workspace/stable-diffusion-xl-1.0-tensorrt/lcm/engine-sdxl-lcmlora-nocfg \
|
| 131 |
+
--scheduler LCM \
|
| 132 |
+
--lora-path latent-consistency/lcm-lora-sdxl \
|
| 133 |
+
--lora-scale 1.0 \
|
| 134 |
+
--denoising-steps 4 \
|
| 135 |
+
--guidance-scale 0.0 \
|
| 136 |
+
--seed 42
|
| 137 |
+
|
| 138 |
```
|