add reshape layer

This commit is contained in:
Starbeamrainbowlabs 2022-09-28 18:22:48 +01:00
parent a336cdee90
commit e51087d0a9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -15,8 +15,10 @@ def model_rainfallwater_segmentation(metadata, feature_dim_in, shape_water_out,
# BEGIN
layer_next = tf.keras.layers.Dense(name="cns.stage.begin.dense", units=feature_dim_in)(layer_input)
layer_next = tf.keras.layers.LayerNormalization(name="stage_begin.norm", epsilon=1e-6)(layer_next)
layer_next = tf.keras.layers.ReLU(name="stage_begin.relu")(layer_next)
layer_next = tf.keras.layers.LayerNormalization(name="cns.stage_begin.norm", epsilon=1e-6)(layer_next)
layer_next = tf.keras.layers.ReLU(name="cns.stage_begin.relu")(layer_next)
layer_next = tf.keras.layers.Reshape((1, 1, feature_dim_in), name="cns.stable_begin.reshape")(layer_next)
layer_next = do_convnext_inverse(layer_next, arch_name="convnext_i_tiny")