Skip to content

Commit

Permalink
fix(api): report accurate image size when upscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 20, 2023
1 parent c7bcc62 commit 9a2e7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/upscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(
self.half = half

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


def make_resrgan(ctx: ServerContext, params: UpscaleParams, tile=0):
Expand Down

0 comments on commit 9a2e7ad

Please sign in to comment.