This commit is contained in:
Starbeamrainbowlabs 2022-10-03 17:33:06 +01:00
parent 058e3b6248
commit d544553800
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -16,12 +16,12 @@ def model_rainfallwater_segmentation(metadata, feature_dim_in, shape_water_out,
# BEGIN
layer_next = tf.keras.layers.Dense(name="cns.stage.begin.dense1", units=feature_dim_in)(layer_input)
layer_next = tf.keras.layers.ReLU(name="cns.stage_begin.relu1")(layer_next)
layer_next = tf.keras.layers.LayerNormalization(name="cns.stage_begin.norm", epsilon=1e-6)(layer_next)
layer_next = tf.keras.layers.LayerNormalization(name="cns.stage_begin.norm1", epsilon=1e-6)(layer_next)
layer_next = tf.keras.layers.Reshape((4, 4, math.floor(feature_dim_in/(4*4))), name="cns.stable_begin.reshape")(layer_next)
layer_next = tf.keras.layers.Dense(name="cns.stage.begin.dense2", units=feature_dim_in)(layer_next)
layer_next = tf.keras.layers.ReLU(name="cns.stage_begin.relu2")(layer_next)
layer_next = tf.keras.layers.LayerNormalization(name="cns.stage_begin.norm", epsilon=1e-6)(layer_next)
layer_next = tf.keras.layers.LayerNormalization(name="cns.stage_begin.norm2", epsilon=1e-6)(layer_next)
# layer_next = tf.keras.layers.Reshape((1, 1, feature_dim_in), name="cns.stable_begin.reshape")(layer_next)