Skip to content

Commit b06ecf0

Browse files
committed
Use bigger tiles for encode (to match compute buffer size)
1 parent 925e7a0 commit b06ecf0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stable-diffusion.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,11 @@ class StableDiffusionGGML {
11071107
LOG_WARN("OOR");
11081108
}
11091109
}
1110+
if(!decode){
1111+
// TODO: also use and arg for this one?
1112+
// to keep the compute buffer size consistent
1113+
tile_size*=1.30539;
1114+
}
11101115
if (!use_tiny_autoencoder) {
11111116
if (decode) {
11121117
ggml_tensor_scale(x, 1.0f / scale_factor);

0 commit comments

Comments
 (0)