Provides correct script and command line to convert an EfficientDet_D0 model into IR.
- 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
-
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 --------------
- 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 - 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_channelsErrors:
[ 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 --------------
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
The information for the correct arguments can be obtained from these Efficientdet-do-tf model.yml script.