mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-21 17:03:00 +00:00
dir: add missing functions to .load() custom objs
apparently metrics are also required to be included here...
This commit is contained in:
parent
ad52ae9241
commit
96eae636ea
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@ else:
|
|||
model = tf.keras.models.load_model(PATH_CHECKPOINT, custom_objects={
|
||||
# Tell Tensorflow about our custom layers so that it can deserialise models that use them
|
||||
"LossCrossEntropyDice": LossCrossEntropyDice,
|
||||
"metric_dice_coefficient": dice_coefficient,
|
||||
"make_sensitivity": sensitivity,
|
||||
"specificity": specificity,
|
||||
"make_one_hot_mean_iou": mean_iou
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue