From 200cb6f2ca07e40fa83b610a4e595f4da06ec709 Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Mon, 15 Dec 2025 12:51:40 -0300 Subject: [PATCH] fix: avoid crash with VAE tiling and certain image sizes (#1090) --- ggml_extend.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ggml_extend.hpp b/ggml_extend.hpp index 28fd018..fcaa92c 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;