【问题标题】:CoreML - Cannot perform conversion from Keras to CoreML - Windows 10CoreML - 无法执行从 Keras 到 CoreML 的转换 - Windows 10
【发布时间】:2017-11-30 23:52:16
【问题描述】:

我最近将我的keras 从版本1.1.0 升级到1.2.2,并运行了一个CNN 进行手势分类(代码是使用keras 1.1.0 开发的)。我保存了经过训练的模型,并尝试使用coremltools 将其转换为CoreML 模型。代码如下:

import coremltools
import theano
from keras import backend as K
K.set_image_dim_ordering('th')

coreml_model = coremltools.converters.keras.convert('hgm_2.h5')
coreml_model.save('hgm.mlmodel') 

但它给了我以下错误:

RuntimeError: keras not found or unsupported version or backend found. keras conversion API is disabled.

我该如何解决这个问题?我尝试升级theano,但它给出了同样的错误。

【问题讨论】:

    标签: keras theano coreml


    【解决方案1】:

    我收到了回复here。目前theano后端不支持转换。

    【讨论】:

      猜你喜欢
      • 2020-01-24
      • 2019-03-23
      • 2017-12-10
      • 2017-12-10
      • 2019-12-20
      • 2020-05-08
      • 2017-11-12
      • 2019-07-22
      • 2020-12-21
      相关资源
      最近更新 更多