Skip to content

Commit

Permalink
fix(api): run background ESRGAN on same device as GFPGAN
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 6, 2023
1 parent c7e0041 commit 1dfd9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/chain/correct_gfpgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def load_gfpgan(

if upsampler is None:
bg_upscale = upscale.rescale(upscale.outscale)
upsampler = load_resrgan(ctx, bg_upscale)
upsampler = load_resrgan(ctx, bg_upscale, device)

face_path = path.join(ctx.model_path, "%s.pth" % (upscale.correction_model))

Expand Down

0 comments on commit 1dfd9e7

Please sign in to comment.