diff --git a/src/processing/upscaler.py b/src/processing/upscaler.py index 2ea4a87..6231f1f 100644 --- a/src/processing/upscaler.py +++ b/src/processing/upscaler.py @@ -214,7 +214,10 @@ def upscale_image( # Determine output scale if scale is None: scale = model_info.scale - outscale = scale / model_info.netscale if scale != model_info.netscale else None + + # Always pass outscale explicitly to ensure correct output size + # The outscale parameter directly controls the final output scale factor + outscale = scale # Process if progress_callback: