Article ID: 000088333 Content Type: Compatibility Last Reviewed: 05/20/2022

Unable to Convert TensorFlow* 2.4 Model Using OpenVINO™ Model Optimizer

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Correct configuration file to run with Tensorflow 2.4 model.

Description
  1. Downloaded ssd_mobilenet_v2_fpnlite_640x640_coco17_tpu-8 model.
  2. Converted the model into Intermediate Representation (IR) using ssd_support_api_v.2.4.json:

    python3 mo_tf.py --saved_model_dir <OPENVINO_DIR>/ssd_mobilenet_v2_fpnlite_640x640_coco17_tpu-8/saved_model \
    --transformations_config <OPENVINO_DIR>/model_optimizer/extensions/front/tf/ssd_support_api_v2.4.json \
    --tensorflow_object_detection_api_pipeline_config <OPENVINO_DIR>/ssd_mobilenet_v2_fpnlite_640x640_coco17_tpu-8/pipeline.config \
    --reverse_input_channels \
    --input_shape [1,640,640,3]

  3. Encountered error: [ ERROR ] Exception occurred during running replacer "ObjectDetectionAPIPreprocessor2Replacement (<class 'extensions.front.tf.ObjectDetectionAPI.ObjectDetectionAPIPreprocessor2Replacement'>):
Resolution

TensorFlow 2 Detection Model Zoo is trained using Tensorflow 2.2.
ssd_support_api_v.2.4.json is for SSD topologies are trained using the TensorFlow* Object Detection API version 2.4 or higher
Use ssd_support_api_v.2.0.json for SSD topologies trained using the TensorFlow* Object Detection API version 2.0 up to 2.3.X inclusively.

 

Additional information

For a particular TensorFlow version, refer to the respective configuration file.

Related Products

This article applies to 2 products