From 68db0dda84afb36a8ed423e8a0a25bfaf38f9566 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Tue, 21 Jul 2026 22:20:48 +0800 Subject: [PATCH] fixed a qwen image edit regression from https://github.com/LostRuins/koboldcpp/pull/2251 --- otherarch/sdcpp/sdtype_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 06cd15191..6ca87a14c 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -1246,7 +1246,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs) params.negative_prompt = sd_params->negative_prompt.c_str(); params.clip_skip = sd_params->clip_skip; params.sample_params.guidance.txt_cfg = sd_params->cfg_scale; - params.sample_params.guidance.img_cfg = sd_params->cfg_scale; + // params.sample_params.guidance.img_cfg = sd_params->cfg_scale; //removed, breaks qwen img edit and more if (sd_params->distilled_guidance >= 0.f) { params.sample_params.guidance.distilled_guidance = sd_params->distilled_guidance; }