Fix whitespace errors

This commit is contained in:
Logan 2024-08-08 15:36:27 +10:00
parent 57aaa068bb
commit ad8ab17b0c

View File

@ -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. # 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. # 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 prescale_threshold = modules.shared.opts.upscaler_fast_prescale_threshold
if prescale_threshold > 1 and self.name and self.name not in ["Nearest", "Lanczos"]: if prescale_threshold > 1 and self.name and self.name not in ["Nearest", "Lanczos"]:
# Get the matching upscaler # Get the matching upscaler
upscaler_data = next((x for x in self.scalers if x.data_path == selected_model), None) upscaler_data = next((x for x in self.scalers if x.data_path == selected_model), None)