mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 19:36:33 +00:00
free pmid model params when required
This commit is contained in:
1 parent
b556d4411c
commit
4ac3df145e
1 file changed
+3
-3
@@ -1701,9 +1701,9 @@ sd_image_t* txt2img(sd_ctx_t* sd_ctx,
|
|||||||
|
|
||||||
prompts_embeds = sd_ctx->sd->id_encoder(work_ctx, init_img, prompts_embeds, class_tokens_mask);
|
prompts_embeds = sd_ctx->sd->id_encoder(work_ctx, init_img, prompts_embeds, class_tokens_mask);
|
||||||
LOG_INFO("id_encoder");
|
LOG_INFO("id_encoder");
|
||||||
// if (sd_ctx->sd->free_params_immediately) {
|
if (sd_ctx->sd->free_params_immediately) {
|
||||||
// sd_ctx->sd->pmid_model.free_params_buffer();
|
sd_ctx->sd->pmid_model->free_params_buffer();
|
||||||
// }
|
}
|
||||||
// Encode input prompt without the trigger word for delayed conditioning
|
// Encode input prompt without the trigger word for delayed conditioning
|
||||||
prompt_text_only = sd_ctx->sd->remove_trigger_from_prompt(work_ctx, prompt);
|
prompt_text_only = sd_ctx->sd->remove_trigger_from_prompt(work_ctx, prompt);
|
||||||
// printf("%s || %s \n", prompt.c_str(), prompt_text_only.c_str());
|
// printf("%s || %s \n", prompt.c_str(), prompt_text_only.c_str());
|
||||||
|
|||||||
Reference in new issue
Block a user