From 297285fb6fecd677ba3143add7bd366b8df2ad78 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 2 Jan 2024 21:34:11 -0600 Subject: [PATCH] fix(api): upscale during highres regardless of upscale checkbox --- api/onnx_web/chain/highres.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/onnx_web/chain/highres.py b/api/onnx_web/chain/highres.py index 2a43e051..ce31463f 100644 --- a/api/onnx_web/chain/highres.py +++ b/api/onnx_web/chain/highres.py @@ -41,6 +41,7 @@ def stage_highres( faces=False, scale=highres.scale, outscale=highres.scale, + upscale=True, ), chain=chain, overlap=params.vae_overlap, @@ -52,7 +53,7 @@ def stage_highres( stage, method=highres.method, overlap=params.vae_overlap, - upscale=upscale.with_args(scale=highres.scale, outscale=highres.scale), + upscale=upscale.with_args(scale=highres.scale, outscale=highres.scale, upscale=True), ) chain.stage(