From ad8ab17b0c2f3f21adbf8396d79628d9395ddbf6 Mon Sep 17 00:00:00 2001 From: Logan Date: Thu, 8 Aug 2024 15:36:27 +1000 Subject: [PATCH] Fix whitespace errors --- modules/upscaler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/upscaler.py b/modules/upscaler.py index df0cd25c8..7af8d301a 100644 --- a/modules/upscaler.py +++ b/modules/upscaler.py @@ -59,10 +59,8 @@ class Upscaler: # Attempt a cheap resize of the source image, if it falls below the fixed scaling size of the upscaling model. # We resize the image by the smallest amount necessary for the fixed scaling to meet the target dimensions. - prescale_threshold = modules.shared.opts.upscaler_fast_prescale_threshold if prescale_threshold > 1 and self.name and self.name not in ["Nearest", "Lanczos"]: - # Get the matching upscaler upscaler_data = next((x for x in self.scalers if x.data_path == selected_model), None)