mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-26 02:43:02 +00:00
strip channels layer at end
This commit is contained in:
parent
0129c35a35
commit
719d8e9819
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ def model_rainfallwater_mono(metadata, model_arch_enc="convnext_xtiny", model_ar
|
||||||
# layer_next = tf.keras.layers.Softmax(axis=-1)(layer_next)
|
# layer_next = tf.keras.layers.Softmax(axis=-1)(layer_next)
|
||||||
# LOSS dice
|
# LOSS dice
|
||||||
layer_next = tf.keras.layers.Conv2D(1, activation="gelu", kernel_size=1, padding="same")(layer_next)
|
layer_next = tf.keras.layers.Conv2D(1, activation="gelu", kernel_size=1, padding="same")(layer_next)
|
||||||
|
layer_input = tf.keras.layers.Reshape(layer_next.shape[:-1]) # Strip the channels
|
||||||
|
|
||||||
model = tf.keras.Model(
|
model = tf.keras.Model(
|
||||||
inputs = layer_input,
|
inputs = layer_input,
|
||||||
|
|
Loading…
Reference in a new issue