Skip to content

Commit 47665bd

Browse files
committed
Support control strength for builtin control models
1 parent 757b91d commit 47665bd

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
@@ -1524,6 +1524,7 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx,
15241524
} else {
15251525
control_latent = sd_ctx->sd->encode_first_stage(work_ctx, image_hint);
15261526
}
1527+
ggml_tensor_scale(control_latent, control_strength);
15271528
}
15281529

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

0 commit comments

Comments
 (0)