From 4e52584e4fd17add77f3157468de26bf1fce08df Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 13 Sep 2022 13:20:08 -0500 Subject: [PATCH] snaphot... --- modules/deeplearning/srcnn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/srcnn.py b/modules/deeplearning/srcnn.py index 7df149b0..b5f6e704 100644 --- a/modules/deeplearning/srcnn.py +++ b/modules/deeplearning/srcnn.py @@ -1,7 +1,7 @@ import glob import tensorflow as tf from util.setup import logdir, modeldir, cachepath, now, ancillary_path -from util.util import EarlyStop, normalize, denormalize, resample, get_grid_values_all +from util.util import EarlyStop, normalize, denormalize, resample, resample_one, get_grid_values_all import os, datetime import numpy as np import pickle @@ -677,7 +677,7 @@ def run_evaluate_static_new(in_file, out_file, ckpt_dir): x_up = np.arange(0, lenx, 0.5) y_up = np.arange(0, leny, 0.5) - grd = resample(x, y, grd, x_up, y_up) + grd = resample_one(y, x, grd, y_up, x_up) nn = SRCNN() out_sr = nn.run_evaluate(grd, data_param, ckpt_dir) -- GitLab