Skip to content

Commit 13a8570

Browse files
committed
Support control strength for builtin control models
1 parent bb30633 commit 13a8570

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stable-diffusion.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,7 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx,
14871487
} else {
14881488
control_latent = sd_ctx->sd->encode_first_stage(work_ctx, image_hint);
14891489
}
1490+
ggml_tensor_scale(control_latent, control_strength);
14901491
}
14911492

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

0 commit comments

Comments
 (0)