Skip to content

Commit 2f89e72

Browse files
committed
fix: move tiling cacl and debug print into the tiling code branch
1 parent 0ebe6fe commit 2f89e72

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stable-diffusion.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,15 +1323,15 @@ class StableDiffusionGGML {
13231323
}
13241324

13251325
if (!use_tiny_autoencoder) {
1326-
float tile_overlap;
1327-
int tile_size_x, tile_size_y;
1328-
// multiply tile size for encode to keep the compute buffer size consistent
1329-
get_tile_sizes(tile_size_x, tile_size_y, tile_overlap, vae_tiling_params, W, H, 1.30539f);
1330-
1331-
LOG_DEBUG("VAE Tile size: %dx%d", tile_size_x, tile_size_y);
1332-
13331326
process_vae_input_tensor(x);
13341327
if (vae_tiling_params.enabled && !encode_video) {
1328+
float tile_overlap;
1329+
int tile_size_x, tile_size_y;
1330+
// multiply tile size for encode to keep the compute buffer size consistent
1331+
get_tile_sizes(tile_size_x, tile_size_y, tile_overlap, vae_tiling_params, W, H, 1.30539f);
1332+
1333+
LOG_DEBUG("VAE Tile size: %dx%d", tile_size_x, tile_size_y);
1334+
13351335
auto on_tiling = [&](ggml_tensor* in, ggml_tensor* out, bool init) {
13361336
first_stage_model->compute(n_threads, in, false, &out, work_ctx);
13371337
};

0 commit comments

Comments
 (0)