aboutsummaryrefslogtreecommitdiff
path: root/modules/ldsr_model_arch.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ldsr_model_arch.py')
-rw-r--r--modules/ldsr_model_arch.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/ldsr_model_arch.py b/modules/ldsr_model_arch.py
index 8fe87c6a..f8f3c3d3 100644
--- a/modules/ldsr_model_arch.py
+++ b/modules/ldsr_model_arch.py
@@ -101,8 +101,10 @@ class LDSR:
print("Foo")
down_sample_rate = target_scale / 4
print(f"Downsample rate is {down_sample_rate}")
- width_downsampled_pre = width_og * down_sample_rate
- height_downsampled_pre = height_og * down_sample_method
+ wd = width_og * down_sample_rate
+ hd = height_og * down_sample_rate
+ width_downsampled_pre = int(wd)
+ height_downsampled_pre = int(hd)
if down_sample_rate != 1:
print(