下記のURLの方法を用いてYOLOv3のモデルを作成し、iosアプリに搭載させるためにMLmodelにする際にエラーが吐かれてしまいます。
環境
macOS Mojave 10.14.5
python 3.7.1
tensorflow 1.14.0
以下は変換コードになります。
convert
1 2 coreml_model = coremltools.converters.keras.convert(model) 3 coreml_model.save('my_model.mlmodel') 4
以下はエラー内容になります。
error
1ValueError: Invalid input shape for input1. 2Please provide a finite height (H), width (W) & channel value (C) using input_name_shape_dict arg with key = 'input1' and value = [None,H,W,C] 3Converted .mlmodel can be modified to have flexible input shape using coremltools.models.neural_network.flexible_shape_utils
原因わかる方ご教授頂けると助かります。
あなたの回答
tips
プレビュー