fix(api): load Real ESRGAN PTH from cache
This commit is contained in:
parent
8dc1ea7f1f
commit
51d53597c0
|
@ -71,7 +71,7 @@ def load_resrgan(
|
||||||
logger.debug("loading Real ESRGAN upscale model from %s", model_path)
|
logger.debug("loading Real ESRGAN upscale model from %s", model_path)
|
||||||
|
|
||||||
# TODO: shouldn't need the PTH file
|
# 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(
|
upsampler = RealESRGANer(
|
||||||
scale=params.scale,
|
scale=params.scale,
|
||||||
model_path=model_path_pth,
|
model_path=model_path_pth,
|
||||||
|
|
Loading…
Reference in New Issue