switch from sparse to normal crossentropy

This commit is contained in:
Starbeamrainbowlabs 2022-11-10 20:50:56 +00:00
parent d8be26d476
commit b6676e7361
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -55,7 +55,7 @@ def model_rainfallwater_segmentation(metadata, shape_water_out, model_arch="conv
model.compile(
optimizer="Adam",
loss=tf.keras.losses.SparseCategoricalCrossentropy(),
loss=tf.keras.losses.CategoricalCrossentropy(),
metrics=[tf.keras.metrics.SparseCategoricalAccuracy()]
)