Skip to content

Commit 2467fd6

Browse files
committed
add sdxl vae warning
1 parent 9566f59 commit 2467fd6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stable-diffusion.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ class StableDiffusionGGML {
172172

173173
if (version == VERSION_XL) {
174174
scale_factor = 0.13025f;
175+
if (vae_path.size() == 0 && taesd_path.size() == 0) {
176+
LOG_WARN("!!!It looks like you are using SDXL model. "
177+
"If you find that the generated images are completely black, "
178+
"try specifying SDXL VAE FP16 Fix with the --vae parameter. "
179+
"You can find it here: https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/blob/main/sdxl_vae.safetensors");
180+
}
175181
}
176182

177183
if (version == VERSION_SVD) {

0 commit comments

Comments
 (0)