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

snapshot...

parent ba5e1c26
No related branches found
No related tags found
No related merge requests found
...@@ -652,6 +652,11 @@ class SRCNN: ...@@ -652,6 +652,11 @@ class SRCNN:
return self.do_evaluate(data, ckpt_dir) return self.do_evaluate(data, ckpt_dir)
def run_restore_static(directory, ckpt_dir):
nn = SRCNN()
nn.run_restore(directory, ckpt_dir)
def run_evaluate_static(in_file, out_file, ckpt_dir): def run_evaluate_static(in_file, out_file, ckpt_dir):
h5f = h5py.File(in_file, 'r') h5f = h5py.File(in_file, 'r')
grd_a = get_grid_values_all(h5f, data_params[0]) grd_a = get_grid_values_all(h5f, data_params[0])
...@@ -700,7 +705,7 @@ def analyze(): ...@@ -700,7 +705,7 @@ def analyze():
h5f.close() h5f.close()
return grd, grd_hr return grd, grd_lr, grd_hr
if __name__ == "__main__": if __name__ == "__main__":
......
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