diff --git a/modules/deeplearning/icing_fcn.py b/modules/deeplearning/icing_fcn.py index 0e37d3c0629a2d63793068591ed6319baf6726af..cb5fdaa963e02ce85f4b4ddac3919b26e4b143f9 100644 --- a/modules/deeplearning/icing_fcn.py +++ b/modules/deeplearning/icing_fcn.py @@ -221,7 +221,7 @@ class IcingIntensityFCN: self.X_img = tf.keras.Input(shape=(None, None, n_chans)) self.inputs.append(self.X_img) - self.inputs.append(tf.keras.Input(shape=(None, 5))) + self.inputs.append(tf.keras.Input(shape=(None, None, 5))) self.flight_level = 0 @@ -359,6 +359,8 @@ class IcingIntensityFCN: nda[np.logical_and(nda >= 8000, nda < 15000)] = 4 nda = tf.one_hot(nda, 5).numpy() + nda = np.expand_dims(nda, axis=1) + nda = np.expand_dims(nda, axis=1) return nda