Skip to content

Commit b4dcbe4

Browse files
committed
Fix tile count issue (not sure how it slipped up in here)
1 parent e30e86d commit b4dcbe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml_extend.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ __STATIC_INLINE__ void sd_tiling(ggml_tensor* input, ggml_tensor* output, const
687687
ggml_tensor* input_tile = ggml_new_tensor_4d(tiles_ctx, GGML_TYPE_F32, input_tile_size, input_tile_size, input->ne[2], 1);
688688
ggml_tensor* output_tile = ggml_new_tensor_4d(tiles_ctx, GGML_TYPE_F32, output_tile_size, output_tile_size, output->ne[2], 1);
689689
on_processing(input_tile, NULL, true);
690-
int num_tiles = ceil((float)input_width / non_tile_overlap) * ceil((float)input_height / non_tile_overlap);
691-
LOG_DEBUG("processing %i tiles", num_tiles);
690+
int num_tiles = num_tiles_x * num_tiles_y;
691+
LOG_INFO("processing %i tiles", num_tiles);
692692
pretty_progress(1, num_tiles, 0.0f);
693693
int tile_count = 1;
694694
bool last_y = false, last_x = false;

0 commit comments

Comments
 (0)