Load keras model h5 unknown metrics

后端 未结 3 952
陌清茗
陌清茗 2021-01-26 02:59

I have trained a keras CNN monitoring the metrics as follow:

METRICS = [
  TruePositives(name=\'tp\'),
  FalsePositives(name=\'fp\'),
  TrueNegatives(name=\'tn\'         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-26 03:37

    custom_objects['METRICS'] = METRICS
    model = load_model('model.h5', custom_objects=custom_objects)
    

提交回复
热议问题