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(