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

snapshot...

parent 659c950c
No related branches found
No related tags found
No related merge requests found
...@@ -235,7 +235,7 @@ class CNN: ...@@ -235,7 +235,7 @@ class CNN:
self.test_data_nda = None self.test_data_nda = None
self.test_label_nda = None self.test_label_nda = None
self.n_chans = len(data_params) + 2 self.n_chans = len(data_params) + 1
self.X_img = tf.keras.Input(shape=(None, None, self.n_chans)) self.X_img = tf.keras.Input(shape=(None, None, self.n_chans))
# self.X_img = tf.keras.Input(shape=(36, 36, self.n_chans)) # self.X_img = tf.keras.Input(shape=(36, 36, self.n_chans))
...@@ -282,7 +282,7 @@ class CNN: ...@@ -282,7 +282,7 @@ class CNN:
# -------- # --------
tmp = input_data[:, label_idx, y_128, x_128] tmp = input_data[:, label_idx, y_128, x_128]
tmp = np.where(np.isnan(tmp), 0, tmp) # shouldn't need this tmp = np.where(np.isnan(tmp), 0, tmp) # shouldn't need this
data_norm.append(tmp) # data_norm.append(tmp)
# --------- # ---------
data = np.stack(data_norm, axis=3) data = np.stack(data_norm, axis=3)
data = data.astype(np.float32) data = data.astype(np.float32)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment