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

snapshot...

parent aed23473
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import glob
import tensorflow as tf
from util.setup import logdir, modeldir, now, ancillary_path
from util.util import EarlyStop, normalize, denormalize, scale, descale, get_grid_values_all, resample_2d_linear
from util.util import EarlyStop, normalize, denormalize, scale, descale, get_grid_values_all, resample_2d_linear, smooth_2d
import os, datetime
import numpy as np
import pickle
......@@ -255,6 +255,7 @@ class SRCNN:
tmp = np.where(np.isnan(tmp), 0, tmp)
tmp = tmp[:, self.slc_y_m, self.slc_x_m]
tmp = self.upsample(tmp)
tmp = smooth_2d(tmp)
# ---------------
# tmp = upsample_nearest(tmp)
# tmp = tmp[:, self.slc_y, self.slc_x]
......@@ -286,6 +287,7 @@ class SRCNN:
tmp = np.where(np.isnan(tmp), 0, tmp)
tmp = tmp[:, self.slc_y_2, self.slc_x_2]
tmp = self.upsample(tmp)
tmp = smooth_2d(tmp)
# ----------------
# tmp = upsample_nearest(tmp)
# tmp = tmp[:, self.slc_y, self.slc_x]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment