Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retinanet convert doc #6342

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Converting RetinaNet Model from TensorFlow* to the Intermediate Representation {#openvino_docs_MO_DG_prepare_model_convert_model_tf_specific_Convert_RetinaNet_From_Tensorflow}

This tutorial explains how to convert RetinaNet model to Intermediate Representation (IR).
iimironov marked this conversation as resolved.
Show resolved Hide resolved

[Public RetinaNet model](https://github.com/fizyr/keras-retinanet) does not contain pre-trained TensorFlow* weights. To convert this model to the IR you can use [ Reproduce Keras* to TensorFlow* Conversion tutorial](https://docs.openvinotoolkit.org/latest/omz_models_model_retinanet_tf.html)
iimironov marked this conversation as resolved.
Show resolved Hide resolved
iimironov marked this conversation as resolved.
Show resolved Hide resolved

iimironov marked this conversation as resolved.
Show resolved Hide resolved
After you convert model to TensorFlow* you can run the Model-Optimizer command below:
iimironov marked this conversation as resolved.
Show resolved Hide resolved
```sh
python mo.py --input input_1 --input_model retinanet_resnet50_coco_best_v2.1.0.pb --output_dir C:\projects\pycharm\models\IRs --data_type FP32 --input_shape [1,1333,1333,3] --output filtered_detections/map/TensorArrayStack/TensorArrayGatherV3,filtered_detections/map/TensorArrayStack_1/TensorArrayGatherV3,iltered_detections/map/TensorArrayStack_2/TensorArrayGatherV3 --transformations_config ./extensions/front/tf/retinanet.json
iimironov marked this conversation as resolved.
Show resolved Hide resolved
iimironov marked this conversation as resolved.
Show resolved Hide resolved
```
iimironov marked this conversation as resolved.
Show resolved Hide resolved