Skip to content

Commit e248568

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 7a8ff2e commit e248568

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

stable-diffusion.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,6 @@ class StableDiffusionGGML {
282282
model_loader.set_wtype_override(wtype);
283283
}
284284

285-
if (sd_version_is_sdxl(version)) {
286-
vae_wtype = GGML_TYPE_F32;
287-
model_loader.set_wtype_override(GGML_TYPE_F32, "vae.");
288-
}
289-
290285
LOG_INFO("Weight type: %s", model_wtype != GGML_TYPE_COUNT ? ggml_type_name(model_wtype) : "??");
291286
LOG_INFO("Conditioner weight type: %s", conditioner_wtype != GGML_TYPE_COUNT ? ggml_type_name(conditioner_wtype) : "??");
292287
LOG_INFO("Diffusion model weight type: %s", diffusion_model_wtype != GGML_TYPE_COUNT ? ggml_type_name(diffusion_model_wtype) : "??");
@@ -2110,4 +2105,4 @@ sd_image_t* edit(sd_ctx_t* sd_ctx,
21102105
LOG_INFO("edit completed in %.2fs", (t2 - t0) * 1.0f / 1000);
21112106

21122107
return result_images;
2113-
}
2108+
}

0 commit comments

Comments
 (0)