Skip to content

Commit e673fb5

Browse files
committed
Increase context memory when previewing with auto encoder instead
1 parent 2a23987 commit e673fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stable-diffusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ sd_image_t* txt2img(sd_ctx_t* sd_ctx,
16111611
if (sd_ctx->sd->stacked_id) {
16121612
params.mem_size += static_cast<size_t>(10 * 1024 * 1024); // 10 MB
16131613
}
1614-
if (sd_ctx->sd->first_stage_model != nullptr && sd_ctx->sd->tae_first_stage != nullptr) {
1614+
if (preview_mode!=SD_PREVIEW_NONE && preview_mode!=SD_PREVIEW_PROJ) {
16151615
params.mem_size *= 2;
16161616
}
16171617
params.mem_size += width * height * 3 * sizeof(float);

0 commit comments

Comments
 (0)