Skip to content

Commit 95ce1ad

Browse files
committed
Use bigger tiles for encode (to match compute buffer size)
1 parent 846924e commit 95ce1ad

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
@@ -1305,6 +1305,11 @@ class StableDiffusionGGML {
13051305
LOG_WARN("OOR");
13061306
}
13071307
}
1308+
if(!decode){
1309+
// TODO: also use and arg for this one?
1310+
// to keep the compute buffer size consistent
1311+
tile_size*=1.30539;
1312+
}
13081313
if (!use_tiny_autoencoder) {
13091314
process_vae_input_tensor(x);
13101315
if (vae_tiling && !decode_video) {

0 commit comments

Comments
 (0)