mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 02:45:05 +08:00
Fix whitespace errors
This commit is contained in:
parent
57aaa068bb
commit
ad8ab17b0c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user