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

minor...

parent 4b387cdc
No related branches found
No related tags found
No related merge requests found
...@@ -672,8 +672,10 @@ def prepare(param_idx=1, filename='/Users/tomrink/data_valid_40.npy'): ...@@ -672,8 +672,10 @@ def prepare(param_idx=1, filename='/Users/tomrink/data_valid_40.npy'):
def run_evaluate_static(in_file, out_file, param='temp_11_0um_nom', ckpt_dir='/Users/tomrink/tf_model_sres/run-20220805173619/'): def run_evaluate_static(in_file, out_file, param='temp_11_0um_nom', ckpt_dir='/Users/tomrink/tf_model_sres/run-20220805173619/'):
nda = np.load(in_file) nda = np.load(in_file)
print(nda.shape)
nda = nda[:, data_idx, 2:133:2, 2:133:2] nda = nda[:, data_idx, 2:133:2, 2:133:2]
nda = np.expand_dims(nda, axis=3) nda = np.expand_dims(nda, axis=3)
print(nda.shape)
nn = ESPCN() nn = ESPCN()
out_sr = nn.run_evaluate(nda, param, ckpt_dir) out_sr = nn.run_evaluate(nda, param, ckpt_dir)
......
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