From 65c2129f652e312f5296e4433f4b008b917a40ae Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 12 Oct 2025 10:01:29 +0800 Subject: [PATCH] https://github.com/leejet/stable-diffusion.cpp/pull/877/commits/47c0f8e4bd6916442d04b0a4412554cf3a043e8d --- otherarch/sdcpp/conditioner.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/otherarch/sdcpp/conditioner.hpp b/otherarch/sdcpp/conditioner.hpp index 6fb58aff2..3dfae6e9f 100644 --- a/otherarch/sdcpp/conditioner.hpp +++ b/otherarch/sdcpp/conditioner.hpp @@ -1376,7 +1376,6 @@ struct T5CLIPEmbedder : public Conditioner { struct Qwen2_5_VLCLIPEmbedder : public Conditioner { Qwen::Qwen2Tokenizer tokenizer; std::shared_ptr qwenvl; - int prompt_template_encode_start_idx = 34; Qwen2_5_VLCLIPEmbedder(ggml_backend_t backend, bool offload_params_to_cpu, @@ -1459,7 +1458,7 @@ struct Qwen2_5_VLCLIPEmbedder : public Conditioner { std::string prompt; std::vector> image_embeds; size_t system_prompt_length = 0; - prompt_template_encode_start_idx = 34; + int prompt_template_encode_start_idx = 34; if (qwenvl->enable_vision && conditioner_params.ref_images.size() > 0) { LOG_INFO("QwenImageEditPlusPipeline"); prompt_template_encode_start_idx = 64;