Skip to content

Commit e73bc3a

Browse files
committed
Use bigger tiles for encode (to match compute buffer size)
1 parent 112ac3a commit e73bc3a

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
@@ -1440,6 +1440,11 @@ class StableDiffusionGGML {
14401440
LOG_WARN("OOR");
14411441
}
14421442
}
1443+
if(!decode){
1444+
// TODO: also use and arg for this one?
1445+
// to keep the compute buffer size consistent
1446+
tile_size*=1.30539;
1447+
}
14431448
if (!use_tiny_autoencoder) {
14441449
if (decode) {
14451450
ggml_tensor_scale(x, 1.0f / scale_factor);

0 commit comments

Comments
 (0)