Skip to content

Commit 4d04c94

Browse files
committed
augment ctx size
1 parent a90770f commit 4d04c94

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
@@ -1679,7 +1679,7 @@ sd_image_t* txt2img(sd_ctx_t* sd_ctx,
16791679
}
16801680

16811681
struct ggml_init_params params;
1682-
params.mem_size = static_cast<size_t>(10 * 1024 * 1024); // 10 MB
1682+
params.mem_size = static_cast<size_t>(20 * 1024 * 1024); // 20 MB
16831683
if (sd_version_is_sd3(sd_ctx->sd->version)) {
16841684
params.mem_size *= 3;
16851685
}

0 commit comments

Comments
 (0)