2017-06-27 40 views
0

我最近升级我的keras1.1.0版本1.2.2和我跑了CNN的手势分类(代码使用keras 1.1.0开发)。我保存了训练好的模型,我尝试使用coremltools将其转换为CoreML模型。是如下面的代码:CoreML - 无法从Keras到CoreML执行转换 - 视窗10

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

回答

0

我已经收到了回信here。目前该转换不支持theano后端。

相关问题