Skip to content

Commit

Permalink
fix(api): include bottom margin when calculating output size
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 10, 2023
1 parent 171b9b0 commit da3d95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __str__(self) -> str:
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]:
Expand Down

0 comments on commit da3d95f

Please sign in to comment.