Конвертировать модель с помощью OpenVINO? - PullRequest
0 голосов
/ 03 июня 2019

Я пытаюсь преобразовать модель Posenet (с архитектурой MobileNetV1), используя оптимизатор модели OpenVINO.Но выдает ошибку, как показано ниже.
Я использую следующую команду для преобразования.

python3 mo_tf.py --input_model /vino/models/posenet/_models/model-mobilenet_v1_101.pb --input_meta_graph /vino/models/posenet/_models/checkpoints/model-mobilenet_v1_101.ckpt.meta  --output_dir /vino/models/posenet/

Я получаю сообщение об ошибке:

Model Optimizer arguments:
Common parameters:
    - Path to the Input Model:  /vino/models/posenet/_models/model-mobilenet_v1_101.pb
    - Path for generated IR:    /vino/models/posenet/
    - IR output name:   model-mobilenet_v1_101
    - Log level:    ERROR
    - Batch:    Not specified, inherited from the model
    - Input layers:     Not specified, inherited from the model
    - Output layers:    Not specified, inherited from the model
    - Input shapes:     Not specified, inherited from the model
    - Mean values:  Not specified
    - Scale values:     Not specified
    - Scale factor:     Not specified
    - Precision of IR:  FP32
    - Enable fusing:    True
    - Enable grouped convolutions fusing:   True
    - Move mean values to preprocess section:   False
    - Reverse input channels:   False
TensorFlow specific parameters:
    - Input model in text protobuf format:  False
    - Path to model dump for TensorBoard:   None
    - List of shared libraries with TensorFlow custom layers implementation:    None
    - Update the configuration file with input/output node names:   None
    - Use configuration file used to generate the model with Object Detection API:  None
    - Operations to offload:    None
    - Patterns to offload:  None
    - Use the config file:  None
Model Optimizer version:    2019.1.0-341-gc9b66a2
[ ERROR ]  Unknown configuration of input model parameters

Я подозреваю, что я использую неправильную команду altogher, но не могу понять это даже после просмотра документации.Любая информация о том, что я делаю неправильно, будет очень полезна.

1 Ответ

0 голосов
/ 05 июня 2019

Попробуйте предоставить только input_meta_graph, без input_model.

https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html

...