Skip to content

Commit b9a14e4

Browse files
committed
Use bigger tiles for encode (to match compute buffer size)
1 parent a212e04 commit b9a14e4

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
@@ -1297,6 +1297,11 @@ class StableDiffusionGGML {
12971297
LOG_WARN("OOR");
12981298
}
12991299
}
1300+
if(!decode){
1301+
// TODO: also use and arg for this one?
1302+
// to keep the compute buffer size consistent
1303+
tile_size*=1.30539;
1304+
}
13001305
if (!use_tiny_autoencoder) {
13011306
process_vae_input_tensor(x);
13021307
if (vae_tiling && !decode_video) {

0 commit comments

Comments
 (0)