We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f9211 commit f2cc8bbCopy full SHA for f2cc8bb
stable-diffusion.cpp
@@ -1621,6 +1621,7 @@ char* sd_ctx_params_to_str(const sd_ctx_params_t* sd_ctx_params) {
1621
}
1622
1623
void sd_sample_params_init(sd_sample_params_t* sample_params) {
1624
+ memset((void*)sample_params, 0, sizeof(sd_sample_params_t));
1625
sample_params->guidance.txt_cfg = 7.0f;
1626
sample_params->guidance.img_cfg = INFINITY;
1627
sample_params->guidance.distilled_guidance = 3.5f;
0 commit comments