Skip to content

Commit

Permalink
fix(api): load Real ESRGAN PTH from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 14, 2023
1 parent 8dc1ea7 commit 51d5359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/chain/upscale_resrgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def load_resrgan(
logger.debug("loading Real ESRGAN upscale model from %s", model_path)

# TODO: shouldn't need the PTH file
model_path_pth = path.join(server.model_path, "%s.pth" % params.upscale_model)
model_path_pth = path.join(server.model_path, ".cache", ("%s.pth" % params.upscale_model))
upsampler = RealESRGANer(
scale=params.scale,
model_path=model_path_pth,
Expand Down

0 comments on commit 51d5359

Please sign in to comment.