CoreML - 无法执行从 Keras 到 CoreML 的转换 - Windows 10

CoreML - Cannot perform conversion from Keras to CoreML - Windows 10

我最近将我的 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,但它给出了同样的错误。

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