mirror of
https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git
synced 2026-04-28 02:01:37 +00:00
Scale factor fix
This commit is contained in:
@@ -38,6 +38,9 @@ def upscale(p, init_img, upscaler_index, tileSize, padding):
|
||||
current_scale_factor = scale_factor - i * 4
|
||||
else:
|
||||
current_scale_factor = 4
|
||||
|
||||
if current_scale_factor == 1:
|
||||
current_scale_factor = 2
|
||||
|
||||
print(f"Upscaling iteration {i} with scale factor {current_scale_factor}")
|
||||
upscaled_img = upscaler.scaler.upscale(upscaled_img, current_scale_factor, upscaler.data_path)
|
||||
|
||||
Reference in New Issue
Block a user