diff --git a/modules/deeplearning/srcnn.py b/modules/deeplearning/srcnn.py index c34595e4e3d7dd758dfd8d3136d61528e7309136..55581937d25115ad7bef67a06896148792d1d262 100644 --- a/modules/deeplearning/srcnn.py +++ b/modules/deeplearning/srcnn.py @@ -642,15 +642,6 @@ class SRCNN: return self.do_evaluate(nda_lr, param, ckpt_dir) -def prepare(param_idx=1, filename='/Users/tomrink/data_valid_40.npy'): - nda = np.load(filename) - #nda = nda[:, param_idx, :, :] - nda_lr = nda[:, param_idx, x_134_2, y_134_2] - # nda_lr = resample(x_70, y_70, nda, x_70_2, y_70_2) - nda_lr = np.expand_dims(nda_lr, axis=3) - return nda_lr - - def run_evaluate_static(in_file, out_file, ckpt_dir): nda = np.load(in_file)