Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /