Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

fix: SplitImageToTileList and ImageMergeTileList to use tile_height for vertical stride minimum (#12882)

Alvin Tang8d7521130071
diff --git a/comfy_extras/nodes_images.py b/comfy_extras/nodes_images.py
index 68916ab75..1ac740d1d 100644
--- a/comfy_extras/nodes_images.py
+++ b/comfy_extras/nodes_images.py
@@ -716,7 +716,7 @@ class SplitImageToTileList(IO.ComfyNode):
def get_grid_coords(width, height, tile_width, tile_height, overlap):
coords = []
stride_x = round(max(tile_width * 0.25, tile_width - overlap))
- stride_y = round(max(tile_width * 0.25, tile_height - overlap))
+ stride_y = round(max(tile_height * 0.25, tile_height - overlap))
y = 0
while y < height: