mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 17:23:01 +00:00
model_mono: fix bottleneck
This commit is contained in:
parent
73acda6d9a
commit
0662d0854b
1 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@ def model_rainfallwater_mono(metadata, shape_water_out, model_arch_enc="convnext
|
||||||
arch_name = model_arch_enc
|
arch_name = model_arch_enc
|
||||||
)(layer_input)
|
)(layer_input)
|
||||||
|
|
||||||
print("DEBUG:model ENCODER output_shape", layer_next.output_shape)
|
print("DEBUG:model ENCODER output_shape", layer_next.shape)
|
||||||
|
|
||||||
# BOTTLENECK
|
# BOTTLENECK
|
||||||
layer_next = tf.keras.layers.Dense(name="cns.stage.bottleneck.dense2", units=feature_dim)(layer_input)
|
layer_next = tf.keras.layers.Dense(name="cns.stage.bottleneck.dense2", units=feature_dim)(layer_next)
|
||||||
layer_next = tf.keras.layers.Activation(name="cns.stage.bottleneck.gelu2", activation="gelu")(layer_next)
|
layer_next = tf.keras.layers.Activation(name="cns.stage.bottleneck.gelu2", activation="gelu")(layer_next)
|
||||||
layer_next = tf.keras.layers.LayerNormalization(name="cns.stage.bottleneck.norm2", epsilon=1e-6)(layer_next)
|
layer_next = tf.keras.layers.LayerNormalization(name="cns.stage.bottleneck.norm2", epsilon=1e-6)(layer_next)
|
||||||
layer_next = tf.keras.layers.Dropout(name="cns.stage.bottleneck.dropout", rate=0.1)(layer_next)
|
layer_next = tf.keras.layers.Dropout(name="cns.stage.bottleneck.dropout", rate=0.1)(layer_next)
|
||||||
|
@ -50,7 +50,7 @@ def model_rainfallwater_mono(metadata, shape_water_out, model_arch_enc="convnext
|
||||||
layer_next = LayerStack2Image(target_width=4, target_height=4)(layer_next)
|
layer_next = LayerStack2Image(target_width=4, target_height=4)(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.Reshape((4, 4, math.floor(feature_dim_in/(4*4))), name="cns.stable_begin.reshape")(layer_next)
|
||||||
|
|
||||||
print("DEBUG:model BOTTLENECK:stack2image output_shape", layer_next.output_shape)
|
print("DEBUG:model BOTTLENECK:stack2image output_shape", layer_next.shape)
|
||||||
|
|
||||||
layer_next = tf.keras.layers.Dense(name="cns.stage.begin.dense2", units=feature_dim)(layer_next)
|
layer_next = tf.keras.layers.Dense(name="cns.stage.begin.dense2", units=feature_dim)(layer_next)
|
||||||
layer_next = tf.keras.layers.Activation(name="cns.stage_begin.relu2", activation="gelu")(layer_next)
|
layer_next = tf.keras.layers.Activation(name="cns.stage_begin.relu2", activation="gelu")(layer_next)
|
||||||
|
|
Loading…
Reference in a new issue