Skip to content

Commit

Permalink
lint(api): fix interpolation in some log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 3, 2023
1 parent a1298f1 commit aff3a3f
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 @@ -81,13 +81,13 @@ def upscale_resrgan(
upscale: UpscaleParams,
**kwargs,
) -> Image.Image:
logger.info('upscaling image with Real ESRGAN', upscale.scale)
logger.info('upscaling image with Real ESRGAN: x%s', upscale.scale)

output = np.array(source_image)
upsampler = load_resrgan(ctx, upscale, tile=stage.tile_size)

output, _ = upsampler.enhance(output, outscale=upscale.outscale)

output = Image.fromarray(output, 'RGB')
logger.info('final output image size', output.size)
logger.info('final output image size: %sx%s', output.width, output.height)
return output

0 comments on commit aff3a3f

Please sign in to comment.