Skip to content

Commit

Permalink
fix(api): pass outscale factor to CodeFormer (fixes #100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 5, 2023
1 parent 85b2895 commit ca2f0a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/chain/correct_codeformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def correct_codeformer(
job: JobContext,
_server: ServerContext,
_stage: StageParams,
stage: StageParams,
_params: ImageParams,
source: Image.Image,
*,
Expand All @@ -26,5 +26,5 @@ def correct_codeformer(
# TODO: terrible names, fix
image = source or source_image

pipe = CodeFormer().to(device.torch_device())
pipe = CodeFormer(upscale=stage.outscale).to(device.torch_device())
return pipe(image)

0 comments on commit ca2f0a6

Please sign in to comment.