Skip to content

Commit

Permalink
fix(api): use correct tile size for highres upscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jun 17, 2023
1 parent 5713957 commit 12e489b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/diffusers/run.py
Expand Up @@ -147,7 +147,7 @@ def run_highres(
)

def highres_tile(tile: Image.Image, dims):
scaled_size = (size.width * highres.scale, size.height * highres.scale)
scaled_size = (tile.width * highres.scale, tile.height * highres.scale)

if highres.method == "bilinear":
logger.debug("using bilinear interpolation for highres")
Expand Down

0 comments on commit 12e489b

Please sign in to comment.