From a64ced7b29cdeb6f81f4d48b3ca5d323a19f7876 Mon Sep 17 00:00:00 2001 From: skunkworxdark Date: Tue, 12 Dec 2023 14:00:06 +0000 Subject: [PATCH] remove unneeded if else --- invokeai/backend/tiles/tiles.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/invokeai/backend/tiles/tiles.py b/invokeai/backend/tiles/tiles.py index cdc94bf760..9f5817a4ca 100644 --- a/invokeai/backend/tiles/tiles.py +++ b/invokeai/backend/tiles/tiles.py @@ -199,10 +199,8 @@ def calc_tiles_min_overlap( if image_height < tile_height: tile_height = image_height - num_tiles_x = math.ceil((image_width - min_overlap) / (tile_width - min_overlap)) if tile_width < image_width else 1 - num_tiles_y = ( - math.ceil((image_height - min_overlap) / (tile_height - min_overlap)) if tile_height < image_height else 1 - ) + num_tiles_x = math.ceil((image_width - min_overlap) / (tile_width - min_overlap)) + num_tiles_y = math.ceil((image_height - min_overlap) / (tile_height - min_overlap)) # tiles[y * num_tiles_x + x] is the tile for the y'th row, x'th column. tiles: list[Tile] = []