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

`snapshot...`

parent 7bab6519
No related branches found
No related tags found
No related merge requests found
...@@ -268,6 +268,7 @@ class SRCNN: ...@@ -268,6 +268,7 @@ class SRCNN:
tmp = np.where(np.isnan(tmp), 0.0, tmp) tmp = np.where(np.isnan(tmp), 0.0, tmp)
tmp = tmp[:, self.slc_y_m, self.slc_x_m] tmp = tmp[:, self.slc_y_m, self.slc_x_m]
tmp = self.upsample(tmp) tmp = self.upsample(tmp)
if DO_SMOOTH:
tmp = smooth_2d(tmp) tmp = smooth_2d(tmp)
tmp = normalize(tmp, param, mean_std_dct) tmp = normalize(tmp, param, mean_std_dct)
data_norm.append(tmp) data_norm.append(tmp)
...@@ -286,6 +287,7 @@ class SRCNN: ...@@ -286,6 +287,7 @@ class SRCNN:
# tmp = np.where(np.isnan(tmp), 0.0, tmp) # tmp = np.where(np.isnan(tmp), 0.0, tmp)
# tmp = tmp[:, self.slc_y_2, self.slc_x_2] # tmp = tmp[:, self.slc_y_2, self.slc_x_2]
# tmp = self.upsample(tmp) # tmp = self.upsample(tmp)
# if DO_SMOOTH:
# tmp = smooth_2d(tmp) # tmp = smooth_2d(tmp)
# tmp = normalize(tmp, label_param, mean_std_dct) # tmp = normalize(tmp, label_param, mean_std_dct)
# data_norm.append(tmp) # data_norm.append(tmp)
...@@ -295,6 +297,7 @@ class SRCNN: ...@@ -295,6 +297,7 @@ class SRCNN:
tmp = np.where(np.isnan(tmp), 0.0, tmp) tmp = np.where(np.isnan(tmp), 0.0, tmp)
tmp = tmp[:, self.slc_y_2, self.slc_x_2] tmp = tmp[:, self.slc_y_2, self.slc_x_2]
tmp = self.upsample(tmp) tmp = self.upsample(tmp)
if DO_SMOOTH:
tmp = smooth_2d(tmp) tmp = smooth_2d(tmp)
tmp = normalize(tmp, label_param, mean_std_dct) tmp = normalize(tmp, label_param, mean_std_dct)
data_norm.append(tmp) data_norm.append(tmp)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment