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

snapshot...

parent 5193fbfe
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ class CNN: ...@@ -219,7 +219,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))
...@@ -269,7 +269,7 @@ class CNN: ...@@ -269,7 +269,7 @@ class CNN:
tmp = input_data[:, label_idx, slc_y_2, slc_x_2] tmp = input_data[:, label_idx, slc_y_2, slc_x_2]
tmp = tmp[:, slc_y, slc_x] tmp = tmp[:, slc_y, slc_x]
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 register or to comment