Skip to content

Commit 3060053

Browse files
committed
Increase context memory when previewing with auto encoder instead
1 parent cc103ff commit 3060053

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
@@ -1676,7 +1676,7 @@ sd_image_t* txt2img(sd_ctx_t* sd_ctx,
16761676
if (sd_ctx->sd->stacked_id) {
16771677
params.mem_size += static_cast<size_t>(10 * 1024 * 1024); // 10 MB
16781678
}
1679-
if (sd_ctx->sd->first_stage_model != nullptr && sd_ctx->sd->tae_first_stage != nullptr) {
1679+
if (preview_mode!=SD_PREVIEW_NONE && preview_mode!=SD_PREVIEW_PROJ) {
16801680
params.mem_size *= 2;
16811681
}
16821682
params.mem_size += width * height * 3 * sizeof(float);

0 commit comments

Comments
 (0)