Skip to content

Commit 261b430

Browse files
committed
Use bigger tiles for encode (to match compute buffer size)
1 parent 5011832 commit 261b430

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
@@ -1311,6 +1311,11 @@ class StableDiffusionGGML {
13111311
LOG_WARN("OOR");
13121312
}
13131313
}
1314+
if(!decode){
1315+
// TODO: also use and arg for this one?
1316+
// to keep the compute buffer size consistent
1317+
tile_size*=1.30539;
1318+
}
13141319
if (!use_tiny_autoencoder) {
13151320
process_vae_input_tensor(x);
13161321
if (vae_tiling && !decode_video) {

0 commit comments

Comments
 (0)