Skip to content

Commit

Permalink
fix(api): handle unlimited size stages correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 2, 2023
1 parent d8ec93a commit 3edf5e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/onnx_web/chain/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ def __call__(
size=kwargs.get("size", None),
source=image,
):
tile = min(stage_pipe.max_tile, stage_params.tile_size)
tile = stage_params.tile_size
if stage_pipe.max_tile > 0:
tile = min(stage_pipe.max_tile, stage_params.tile_size)

logger.info(
"image larger than tile size of %s, tiling stage",
tile,
Expand Down

0 comments on commit 3edf5e6

Please sign in to comment.