Skip to content

Commit a0df2a5

Browse files
committed
Use bigger tiles for encode (to match compute buffer size)
1 parent 3a45184 commit a0df2a5

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
@@ -1068,6 +1068,11 @@ class StableDiffusionGGML {
10681068
LOG_WARN("OOR");
10691069
}
10701070
}
1071+
if(!decode){
1072+
// TODO: also use and arg for this one?
1073+
// to keep the compute buffer size consistent
1074+
tile_size*=1.30539;
1075+
}
10711076
if (!use_tiny_autoencoder) {
10721077
if (decode) {
10731078
ggml_tensor_scale(x, 1.0f / scale_factor);

0 commit comments

Comments
 (0)