From c4aa262ed7b3d5de91dc3507ab5947812e8b5c30 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 19 Nov 2023 23:40:34 -0600 Subject: [PATCH] try a different hack --- api/onnx_web/chain/tile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/onnx_web/chain/tile.py b/api/onnx_web/chain/tile.py index f8fe5e8d..f600d06b 100644 --- a/api/onnx_web/chain/tile.py +++ b/api/onnx_web/chain/tile.py @@ -317,12 +317,12 @@ def process_tile_stack( if mask: tile_mask = mask.crop((left, top, right, bottom)) - if isinstance(tile_stack, list): - tile_stack = StageResult.from_images(tile_stack) - for image_filter in filters: tile_stack = image_filter(tile_stack, tile_mask, (left, top, tile)) + if isinstance(tile_stack, list): + tile_stack = StageResult.from_images(tile_stack) + tiles.append((left, top, tile_stack.as_image())) lefts, tops, stacks = list(zip(*tiles))