diff --git a/modules/deeplearning/cloud_opd_fcn_abi.py b/modules/deeplearning/cloud_opd_fcn_abi.py index 6f0e16480c449cbe128b908f22a70645ffe60d0e..ddf0c8eee93e3913cd418ce3675f7597fb8a4cc9 100644 --- a/modules/deeplearning/cloud_opd_fcn_abi.py +++ b/modules/deeplearning/cloud_opd_fcn_abi.py @@ -87,13 +87,13 @@ KERNEL_SIZE = 3 X_LEN = Y_LEN = 128 if KERNEL_SIZE == 3: - slc_x = slice(0, int(X_LEN/4) + 2) - slc_y = slice(0, int(Y_LEN/4) + 2) + slc_x = slice(0, X_LEN // 4 + 2) + slc_y = slice(0, Y_LEN // 4 + 2) x_64 = slice(4, X_LEN + 4) y_64 = slice(4, Y_LEN + 4) elif KERNEL_SIZE == 1: - slc_x = slice(4, X_LEN + 4) - slc_y = slice(4, Y_LEN + 4) + slc_x = slice(1, X_LEN // 4 + 1) + slc_y = slice(1, Y_LEN // 4 + 1) x_64 = slice(4, X_LEN + 4) y_64 = slice(4, Y_LEN + 4) # ----------------------------------------