diff --git a/modules/deeplearning/srcnn_cld_frac.py b/modules/deeplearning/srcnn_cld_frac.py index 0d492afa3231d63317397f359cc89ab0680fd8f0..d1421dd04ffe7bfa2155a224075cf4a6652f65f5 100644 --- a/modules/deeplearning/srcnn_cld_frac.py +++ b/modules/deeplearning/srcnn_cld_frac.py @@ -142,8 +142,8 @@ def upsample_mean(grd): up = np.zeros((bsize, ylen, xlen)) up[:, ::2, ::2] = grd[:, :, :] - up[:, 1::2, ::1] = grd[:, :, :] - up[:, ::2, 1::1] = grd[:, :, :] + up[:, 1::2, ::2] = grd[:, :, :] + up[:, ::2, 1::2] = grd[:, :, :] up[:, 1::2, 1::2] = grd[:, :, :] return up