Skip to content

Commit c6206fb

Browse files
committed
fix: set VAE conv scale for all SDXL variants
1 parent 639091f commit c6206fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stable-diffusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ class StableDiffusionGGML {
624624
LOG_INFO("Using Conv2d direct in the vae model");
625625
first_stage_model->set_conv2d_direct_enabled(true);
626626
}
627-
if (version == VERSION_SDXL &&
627+
if (sd_version_is_sdxl(version) &&
628628
(strlen(SAFE_STR(sd_ctx_params->vae_path)) == 0 || sd_ctx_params->force_sdxl_vae_conv_scale)) {
629629
float vae_conv_2d_scale = 1.f / 32.f;
630630
LOG_WARN(

0 commit comments

Comments
 (0)