Skip to content
Snippets Groups Projects
Commit a7e1fff7 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent b1d21a0b
No related branches found
No related tags found
No related merge requests found
...@@ -859,7 +859,7 @@ class SRCNN: ...@@ -859,7 +859,7 @@ class SRCNN:
cldy_frac_opd = self.run_inference_(bt, refl, refl_lo, refl_hi, refl_std, cp, opd) cldy_frac_opd = self.run_inference_(bt, refl, refl_lo, refl_hi, refl_std, cp, opd)
cldy_frac_opd_out = np.zeros((y_len, x_len), dtype=np.float32) cldy_frac_opd_out = np.full((y_len, x_len), -1.0, dtype=np.float32)
border = int((KERNEL_SIZE - 1) / 2) border = int((KERNEL_SIZE - 1) / 2)
cldy_frac_opd_out[border:y_len - border, border:x_len - border] = cldy_frac_opd[0, :, :, 0] cldy_frac_opd_out[border:y_len - border, border:x_len - border] = cldy_frac_opd[0, :, :, 0]
...@@ -928,7 +928,7 @@ class SRCNN: ...@@ -928,7 +928,7 @@ class SRCNN:
t1 = time.time() t1 = time.time()
print(' inference time: ', (t1-t0)) print(' inference time: ', (t1-t0))
cldy_frac_opd_out = np.zeros((y_len, x_len), dtype=np.float32) cldy_frac_opd_out = np.full((y_len, x_len), -1.0, dtype=np.float32)
border = int((KERNEL_SIZE - 1) / 2) border = int((KERNEL_SIZE - 1) / 2)
cldy_frac_opd_out[border:h_y_len, border:x_len - border] = cldy_frac_opd_nh[0, :, :, 0] cldy_frac_opd_out[border:h_y_len, border:x_len - border] = cldy_frac_opd_nh[0, :, :, 0]
cldy_frac_opd_out[h_y_len:y_len - border, border:x_len - border] = cldy_frac_opd_sh[0, :, :, 0] cldy_frac_opd_out[h_y_len:y_len - border, border:x_len - border] = cldy_frac_opd_sh[0, :, :, 0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment