Skip to content

Commit f3349d0

Browse files
committed
Use bigger tiles for encode (to match compute buffer size)
1 parent 2af9294 commit f3349d0

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
@@ -1317,6 +1317,11 @@ class StableDiffusionGGML {
13171317
LOG_WARN("OOR");
13181318
}
13191319
}
1320+
if(!decode){
1321+
// TODO: also use and arg for this one?
1322+
// to keep the compute buffer size consistent
1323+
tile_size*=1.30539;
1324+
}
13201325
if (!use_tiny_autoencoder) {
13211326
process_vae_input_tensor(x);
13221327
if (vae_tiling && !decode_video) {

0 commit comments

Comments
 (0)