Skip to content

Commit 88a0634

Browse files
committed
Support control strength for builtin control models
1 parent f9ba12c commit 88a0634

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ggml

Submodule ggml updated from 9e4bee1 to b6d2ebd

stable-diffusion.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,6 +1734,7 @@ sd_image_t* generate_image_internal(sd_ctx_t* sd_ctx,
17341734
} else {
17351735
control_latent = sd_ctx->sd->encode_first_stage(work_ctx, image_hint);
17361736
}
1737+
ggml_tensor_scale(control_latent, control_strength);
17371738
}
17381739

17391740
if (sd_version_is_inpaint(sd_ctx->sd->version)) {

0 commit comments

Comments
 (0)