Article ID: 000059245 Content Type: Error Messages Last Reviewed: 05/20/2022

Unable to Convert EfficientDet_D0 Model into Intermediate Representation (IR) of OpenVINO™ Toolkit

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Provides correct script and command line to convert an EfficientDet_D0 model into IR.

Description
  1. Converted the EfficientDet_D0 model using converter.py script.

    python3 /opt/intel/openvino_2021.3.394/deployment_tools/open_model_zoo/tools/downloader/downloader.py --name efficientdet-d0-tf
    python3 /opt/intel/openvino_2021.3.394/deployment_tools/open_model_zoo/tools/downloader/converter.py \
    --name efficientdet-d0-tf --mo /opt/intel/openvino_2021.3.394/deployment_tools/model_optimizer


    Error:
    FAILED:
    efficientdet-d0-tf

     

  2. Convert the EfficientDet_D0 model using Model Optimizer script:

    python3 $MO_ROOT/mo.py \
    --input_model savedmodeldir/efficientdet-d0_frozen.pb \
    --transformations_config $MO_ROOT/extensions/front/tf/automl_efficientdet.json \
    --input_shape [1,$IMAGE_SIZE,$IMAGE_SIZE,3] \
    --reverse_input_channels


     Errors:
    [ ERROR ] ----------------- INTERNAL ERROR ----------------
    [ ERROR ] Unexpected exception happened.
    [ ERROR ] Please contact Model Optimizer developers and forward the following information:
    [ ERROR ] Exception occurred during running replacer "AutomlEfficientDet (<class 'extensions.front.tf.AutomlEfficientDet.EfficientDet'>)": The node with name "convert_image" is not found in the graph. This node should provide scaled image output and is specified in the json file...
    [ ERROR ] ---------------- END OF BUG REPORT --------------

 

 

 


  1. Converted the EfficientDet_D0 model using converter.py script.

    python3 /opt/intel/openvino_2021.3.394/deployment_tools/open_model_zoo/tools/downloader/downloader.py --name efficientdet-d0-tf

    python3 /opt/intel/openvino_2021.3.394/deployment_tools/open_model_zoo/tools/downloader/converter.py \
    --name efficientdet-d0-tf --mo /opt/intel/openvino_2021.3.394/deployment_tools/model_optimizer


    Error:
    FAILED:
    efficientdet-d0-tf

     

  2. Convert the EfficientDet_D0 model using Model Optimizer script:

    python3 $MO_ROOT/mo.py \
    --input_model savedmodeldir/efficientdet-d0_frozen.pb \
    --transformations_config $MO_ROOT/extensions/front/tf/automl_efficientdet.json \
    --input_shape [1,$IMAGE_SIZE,$IMAGE_SIZE,3] \
    --reverse_input_channels

    Errors:

    [ ERROR ] ----------------- INTERNAL ERROR ----------------
    [ ERROR ] Unexpected exception happened.
    [ ERROR ] Please contact Model Optimizer developers and forward the following information:
    [ ERROR ] Exception occurred during running replacer "AutomlEfficientDet (<class 'extensions.front.tf.AutomlEfficientDet.EfficientDet'>)": The node with name "convert_image" is not found in the graph. This node should provide scaled image output and is specified in the json file...
    [ ERROR ] ---------------- END OF BUG REPORT --------------

Resolution

Convert the EfficientDet model using this command with the correct arguments:

python3 $MO_ROOT/mo.py \
--input_shape=[1,512,512,3] \
--input=image_arrays \
--reverse_input_channels \
--input_model savedmodeldir/efficientdet-d0_frozen.pb \
--transformations_config $MO_ROOT/extensions/front/tf/automl_efficientdet.json

Additional information

The information for the correct arguments can be obtained from these Efficientdet-do-tf model.yml script.

Related Products

This article applies to 2 products