Skip to content

Commit 200cb6f

Browse files
authored
fix: avoid crash with VAE tiling and certain image sizes (#1090)
1 parent 43a70e8 commit 200cb6f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ggml_extend.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,6 @@ __STATIC_INLINE__ void sd_tiling_non_square(ggml_tensor* input,
848848
LOG_DEBUG("num tiles : %d, %d ", num_tiles_x, num_tiles_y);
849849
LOG_DEBUG("optimal overlap : %f, %f (targeting %f)", tile_overlap_factor_x, tile_overlap_factor_y, tile_overlap_factor);
850850

851-
GGML_ASSERT(input_width % 2 == 0 && input_height % 2 == 0 && output_width % 2 == 0 && output_height % 2 == 0); // should be multiple of 2
852-
853851
int tile_overlap_x = (int32_t)(p_tile_size_x * tile_overlap_factor_x);
854852
int non_tile_overlap_x = p_tile_size_x - tile_overlap_x;
855853

0 commit comments

Comments
 (0)