問題タブ [coremltools]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
tensorflow - CoreMLTools Keras の単純な逐次線形回帰モデルのエクスポート エラー (「モジュール」オブジェクトには属性「mobilenet」がありません)
Keras 2.0.4 (TensorFlow 1.1.0 バックエンド) を使用して非常に単純な逐次線形回帰モデルを作成しましたが、coremltools (0.6.3) エクスポートが次のエラー メッセージで失敗しています。
-------------------------------------------------- ------------------------- AttributeError トレースバック (最新の呼び出しが最後) in () ----> 1 coreml_model = coremltools.converters.keras. convert(model, input_names="input", output_names="output") /Users/Jacopo/anaconda/envs/KerasTensorFlowCoreML/lib/python2.7/site-packages/coremltools/converters/keras/_keras_converter.pyc in convert(model 、input_names、output_names、image_input_names、is_bgr、red_bias、green_bias、blue_bias、gray_bias、image_scale、class_labels、predicted_feature_name、predicted_probabilities_output) 489 predict_probabilities_output = predict_probabilities_output) 490 elif _HAS_KERAS2_TF: --> から 491。import _keras2_converter 492 return _keras2_converter._convert(モデル = モデル、493 input_names = input_names、
macOSでPython 2.7を使用しています
前述のように、これは非常に単純な線形回帰であり、モジュールには画像入力がまったくありません。
ヒントはありますか?
ありがとう、ヤコポ