Skip to content

Commit

Permalink
fix(api): include face correction outscale in final image size
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 6, 2023
1 parent 651acf6 commit 7db5472
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/onnx_web/params.py
Expand Up @@ -177,7 +177,10 @@ def rescale(self, scale: int):
)

def resize(self, size: Size) -> Size:
return Size(size.width * self.outscale, size.height * self.outscale)
return Size(
size.width * self.outscale * self.face_outscale,
size.height * self.outscale * self.face_outscale,
)

def tojson(self):
return {
Expand Down

0 comments on commit 7db5472

Please sign in to comment.