Skip to content

Commit b139434

Browse files
committedDec 31, 2023
docs: update README.md
1 parent 14da17a commit b139434

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎README.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Inference of [Stable Diffusion](https://github.com/CompVis/stable-diffusion) in
1111
- Plain C/C++ implementation based on [ggml](https://github.com/ggerganov/ggml), working in the same way as [llama.cpp](https://github.com/ggerganov/llama.cpp)
1212
- Super lightweight and without external dependencies
1313
- SD1.x, SD2.x and SDXL support
14+
- !!!The VAE in SDXL encounters NaN issues under FP16, but unfortunately, the ggml_conv_2d only operates under FP16. Hence, a parameter is needed to specify the VAE that has fixed the FP16 NaN issue. You can find it here: [SDXL VAE FP16 Fix](https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/blob/main/sdxl_vae.safetensors).
15+
1416
- [SD-Turbo](https://huggingface.co/stabilityai/sd-turbo) and [SDXL-Turbo](https://huggingface.co/stabilityai/sdxl-turbo) support
1517
- 16-bit, 32-bit float support
1618
- 4-bit, 5-bit and 8-bit integer quantization support
@@ -186,6 +188,7 @@ You can specify the model weight type using the `--type` parameter. The weights
186188
```sh
187189
./bin/sd -m ../models/sd-v1-4.ckpt -p "a lovely cat"
188190
# ./bin/sd -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat"
191+
# ./bin/sd -m ../models/sd_xl_base_1.0.safetensors --vae ../models/sdxl_vae-fp16-fix.safetensors -H 1024 -W 1024 -p "a lovely cat" -v
189192
```
190193

191194
Using formats of different precisions will yield results of varying quality.

0 commit comments

Comments
 (0)
Please sign in to comment.