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

snapshot...

parent bdf1391b
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ class ESPCN: ...@@ -199,7 +199,7 @@ class ESPCN:
label_s.append(nda) label_s.append(nda)
data = np.concatenate(label_s) data = np.concatenate(label_s)
label = np.concatenate(label_s) label = data.copy()
data = data[:, data_idx, :, :] data = data[:, data_idx, :, :]
data = resample(x_70, y_70, data, x_70_2, y_70_2) data = resample(x_70, y_70, data, x_70_2, y_70_2)
...@@ -732,7 +732,7 @@ class ESPCN: ...@@ -732,7 +732,7 @@ class ESPCN:
def prepare(param_idx=1, filename='/Users/tomrink/data_valid_40.npy'): def prepare(param_idx=1, filename='/Users/tomrink/data_valid_40.npy'):
nda = np.load(filename) nda = np.load(filename)
#nda = nda[:, param_idx, :, :] #nda = nda[:, param_idx, :, :]
nda_lr = nda[:, param_idx, 3:67:2, 3:67:2] nda_lr = nda[:, param_idx, 2:69:2, 2:69:2]
# nda_lr = resample(x_70, y_70, nda, x_70_2, y_70_2) # nda_lr = resample(x_70, y_70, nda, x_70_2, y_70_2)
nda_lr = np.expand_dims(nda_lr, axis=3) nda_lr = np.expand_dims(nda_lr, axis=3)
return nda_lr return nda_lr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment