【问题标题】:How do I change the ouput's name in a CoreML model from Identity to something else?如何将 CoreML 模型中的输出名称从 Identity 更改为其他名称?
【发布时间】:2020-10-30 18:38:17
【问题描述】:

tensorflow 模型中的输出层名称已自定义,但当我尝试使用 CoreML 对其进行转换时,它无法识别该层,除非我在尝试分配 output_description 时使用“Identity”。

【问题讨论】:

    标签: tensorflow keras coreml


    【解决方案1】:

    您可以在 Python 脚本中使用 coremltools 加载 mlmodel 文件,然后使用 rename_feature 函数重命名输出。

    请参阅https://coremltools.readme.io/docs/mlmodel-utilities 的文档

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-13
      • 1970-01-01
      • 2021-02-25
      • 1970-01-01
      • 2021-12-05
      • 2013-10-21
      • 2021-08-27
      相关资源
      最近更新 更多