From 94558347c006b5595217c987edf8041315418816 Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Sun, 14 Dec 2025 10:41:09 -0300 Subject: [PATCH] fix: avoid crash with VAE tiling and certain image sizes --- ggml_extend.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ggml_extend.hpp b/ggml_extend.hpp index 28fd0184f..fcaa92c9e 100644 --- a/ggml_extend.hpp +++ b/ggml_extend.hpp @@ -848,8 +848,6 @@ __STATIC_INLINE__ void sd_tiling_non_square(ggml_tensor* input, LOG_DEBUG("num tiles : %d, %d ", num_tiles_x, num_tiles_y); LOG_DEBUG("optimal overlap : %f, %f (targeting %f)", tile_overlap_factor_x, tile_overlap_factor_y, tile_overlap_factor); - GGML_ASSERT(input_width % 2 == 0 && input_height % 2 == 0 && output_width % 2 == 0 && output_height % 2 == 0); // should be multiple of 2 - int tile_overlap_x = (int32_t)(p_tile_size_x * tile_overlap_factor_x); int non_tile_overlap_x = p_tile_size_x - tile_overlap_x;