Skip to content

Commit cea2711

Browse files
committed
cleanup: do not force VAE type to f32 on SDXL
This seems to be a leftover from the initial SDXL support: it's not enough to avoid NaN issues, and it's not not needed for the fixed sdxl-vae-fp16-fix .
1 parent eed97a5 commit cea2711

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

stable-diffusion.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ class StableDiffusionGGML {
269269
model_loader.set_wtype_override(wtype);
270270
}
271271

272-
if (sd_version_is_sdxl(version)) {
273-
vae_wtype = GGML_TYPE_F32;
274-
model_loader.set_wtype_override(GGML_TYPE_F32, "vae.");
275-
}
276-
277272
LOG_INFO("Weight type: %s", model_wtype != GGML_TYPE_COUNT ? ggml_type_name(model_wtype) : "??");
278273
LOG_INFO("Conditioner weight type: %s", conditioner_wtype != GGML_TYPE_COUNT ? ggml_type_name(conditioner_wtype) : "??");
279274
LOG_INFO("Diffusion model weight type: %s", diffusion_model_wtype != GGML_TYPE_COUNT ? ggml_type_name(diffusion_model_wtype) : "??");

0 commit comments

Comments
 (0)