mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +00:00
model_segmentation: don't softmax twice
This commit is contained in:
parent
f2e2ca1484
commit
bb0679a509
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ def model_rainfallwater_segmentation(metadata, shape_water_out, model_arch="conv
|
|||
# TODO: An attention layer here instead of a dense layer, with a skip connection perhaps?
|
||||
logger.warning("Warning: TODO implement attention from https://ieeexplore.ieee.org/document/9076883")
|
||||
layer_next = tf.keras.layers.Dense(32)(layer_next)
|
||||
layer_next = tf.keras.layers.Conv2D(water_bins, kernel_size=1, activation="softmax", padding="same")(layer_next)
|
||||
layer_next = tf.keras.layers.Conv2D(water_bins, kernel_size=1, padding="same")(layer_next)
|
||||
layer_next = tf.keras.layers.Softmax(axis=-1)(layer_next)
|
||||
|
||||
model = tf.keras.Model(
|
||||
|
|
Loading…
Reference in a new issue