mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 01:12:59 +00:00
dlr: MeanIoU fixup
This commit is contained in:
parent
e9dcbe3863
commit
26cc824ace
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ def one_hot_mean_iou(y_true, y_pred, classes=2):
|
|||
y_pred = tf.cast(y_pred, dtype=tf.float32)
|
||||
|
||||
|
||||
iou = tf.keras.metrics.MeanIoU(classes=classes)
|
||||
iou = tf.keras.metrics.MeanIoU(num_classes=classes)
|
||||
iou.update_state(y_true, y_pred)
|
||||
return iou.result()
|
||||
|
|
Loading…
Reference in a new issue