From da3d95ff491fa2158e11f8f4f8116571b7641f5c Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Fri, 10 Mar 2023 17:59:16 -0600 Subject: [PATCH] fix(api): include bottom margin when calculating output size --- api/onnx_web/params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/onnx_web/params.py b/api/onnx_web/params.py index 244774e1..8d238046 100644 --- a/api/onnx_web/params.py +++ b/api/onnx_web/params.py @@ -74,7 +74,7 @@ class Size: def add_border(self, border: Border): return Size( border.left + self.width + border.right, - border.top + self.height + border.right, + border.top + self.height + border.bottom, ) def tojson(self) -> Dict[str, int]: