From 84b0684d64e466864e7db280a295c6a04b667d6f Mon Sep 17 00:00:00 2001 From: K4YT3X Date: Mon, 26 Oct 2020 21:53:03 +0000 Subject: [PATCH] apply the smallest scaling ratio available instead of 1 --- src/upscaler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/upscaler.py b/src/upscaler.py index cbb1bbb..5d5e22e 100755 --- a/src/upscaler.py +++ b/src/upscaler.py @@ -625,9 +625,10 @@ class Upscaler: remaining_scaling_ratio = math.ceil(output_scale) self.scaling_jobs = [] - # special case for 1.0 upscale ratio + # if the scaling ratio is 1.0 + # apply the smallest scaling ratio available if remaining_scaling_ratio == 1: - self.scaling_jobs.append(1) + self.scaling_jobs.append(supported_scaling_ratios[0]) else: while remaining_scaling_ratio > 1: for ratio in supported_scaling_ratios: @@ -637,7 +638,6 @@ class Upscaler: break else: - found = False for i in supported_scaling_ratios: for j in supported_scaling_ratios: