Scale factor fix

This commit is contained in:
Антон Антонов
2023-01-02 17:37:12 +03:00
parent f68e797623
commit dc7f92fab8

View File

@@ -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)