From c6206fb351fe63e06525fb4eede51292d82476f4 Mon Sep 17 00:00:00 2001 From: leejet Date: Mon, 19 Jan 2026 23:21:48 +0800 Subject: [PATCH] fix: set VAE conv scale for all SDXL variants --- stable-diffusion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable-diffusion.cpp b/stable-diffusion.cpp index 3fc9a26..b181f99 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -624,7 +624,7 @@ public: LOG_INFO("Using Conv2d direct in the vae model"); first_stage_model->set_conv2d_direct_enabled(true); } - if (version == VERSION_SDXL && + if (sd_version_is_sdxl(version) && (strlen(SAFE_STR(sd_ctx_params->vae_path)) == 0 || sd_ctx_params->force_sdxl_vae_conv_scale)) { float vae_conv_2d_scale = 1.f / 32.f; LOG_WARN(