Skip to content

Commit

Permalink
fix(api): restore denoise code path for Real ESRGAN v3 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 7, 2023
1 parent ad10806 commit ae5cf1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/chain/upscale_resrgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def load_resrgan(
raise Exception("unknown platform %s" % params.format)

dni_weight = None
if params.upscale_model == "realesr-general-x4v3" and params.denoise != 1:
if params.upscale_model == "real-esrgan-x4-v3" and params.denoise != 1:
wdn_model_path = model_path.replace(
"realesr-general-x4v3", "realesr-general-wdn-x4v3"
"real-esrgan-x4-v3", "real-esrgan-x4-v3-wdn"
)
model_path = [model_path, wdn_model_path]
dni_weight = [params.denoise, 1 - params.denoise]
Expand Down

0 comments on commit ae5cf1f

Please sign in to comment.