Skip to content

Commit

Permalink
fix(api): only run one form of outpaint tiling
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 6, 2023
1 parent d6c1244 commit 811b664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/chain/upscale_outpaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def outpaint(image: Image.Image, dims: Tuple[int, int, int]):
if overlap == 0:
logger.debug("outpainting with 0 margin, using grid tiling")
output = process_tile_grid(source_image, SizeChart.auto, 1, [outpaint])
if border.left == border.right and border.top == border.bottom:
elif border.left == border.right and border.top == border.bottom:
logger.debug("outpainting with an even border, using spiral tiling")
output = process_tile_spiral(
source_image, SizeChart.auto, 1, [outpaint], overlap=overlap
Expand Down

0 comments on commit 811b664

Please sign in to comment.