1 parent 8d37707 commit b8bf676Copy full SHA for b8bf676
1 file changed
src/stable-diffusion.cpp
@@ -5071,8 +5071,8 @@ static std::optional<ImageGenerationEmbeds> prepare_image_generation_embeds(sd_c
5071
}
5072
condition_params.text = request->negative_prompt;
5073
condition_params.zero_out_masked = zero_out_masked;
5074
+ std::vector<sd::Tensor<float>> empty_ref_images;
5075
if (use_ref_latent_img_cfg) {
- std::vector<sd::Tensor<float>> empty_ref_images;
5076
condition_params.ref_images = &empty_ref_images;
5077
5078
img_uncond = sd_ctx->sd->cond_stage_model->get_learned_condition(sd_ctx->sd->n_threads,
0 commit comments