From a5ae116033d9f84ae12e8c6fb27a0d38e0c377ce Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 1 Feb 2026 22:02:20 +0800 Subject: [PATCH] increase z-image default clamp to 4.0, to tolerate z-image base requirement for higher cfg --- otherarch/sdcpp/sdtype_adapter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 29c948e05..114ff288b 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -809,12 +809,12 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs) if(!remove_limits && loadedsdver == SDVersion::VERSION_Z_IMAGE) { - if(sd_params->cfg_scale > 3.0f) + if(sd_params->cfg_scale > 4.0f) { if (!sd_is_quiet && sddebugmode) { - printf("Z-Image: clamping CFG Scale to 3.0 to preserve quality\n"); + printf("Z-Image: clamping CFG Scale to 4.0 to preserve quality\n"); } - sd_params->cfg_scale = 3.0f; + sd_params->cfg_scale = 4.0f; } }