Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6572 讨论

Cannot convert faster rcnn inception resnet v2 tensorflow 2 model to IR.

simranS
初学者
4,151 次查看

Hi,

I tried converting a tensorflow 2 model Faster R-CNN Inception ResNet V2 1024x1024 from model zoo using command mentioned in 

https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html#Convert_From_TF2X :

Command: python3 mo_tf.py --saved_model_dir /home/ubuntu/Desktop/tensorflow_2_model/content/fine_tuned_model/saved_model/ --tensorflow_object_detection_api_pipeline_config /home/ubuntu/Desktop/tensorflow_2_model/content/fine_tuned_model/pipeline.config --tensorflow_use_custom_operations_config /opt/intel/openvino_2020.4.287/deployment_tools/model_optimizer/extensions/front/tf/faster_rcnn_support.json --reverse_input_channels --input_shape [1,800,1333,3] 

It gives the following error:

[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID"

------------------------------------------------------------------------------------------------------------

I was able to convert the mask_rcnn_inception_v2_coco_2018_01_28, which I downloaded from open model zoo.

Are faster rcnn tensorflow 2 models supported in Model Optimizer for IR conversion?

标签 (1)
0 项奖励
1 解答
Iffa_Intel
主持人
4,096 次查看

Greetings,


TF2 does supported in MO for IR convertion. You can refer here for further details: https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html#Convert_From_TF2X


Officially supported Topologies are also mentioned in above documentation.

I suggest you try with the Officially supported topologies: faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28.tar.gz OR faster_rcnn_inception_resnet_v2_atrous_lowproposals_coco_2018_01_28.tar.gz


Just to ensure that your toolkit is correctly setup and usable.


Sincerely,

Iffa


在原帖中查看解决方案

0 项奖励
6 回复数
AthiraM_Intel
主持人
4,133 次查看

Hi,


Thanks for reaching out to us.

Since your issue is related to OpenVINO, we are moving this query to OpenVINO forum for a faster response.



0 项奖励
simranS
初学者
4,118 次查看

Hi, 

Can you provide the link where this issue is oded. So that I can track it.

Thanks

0 项奖励
Iffa_Intel
主持人
4,097 次查看

Greetings,


TF2 does supported in MO for IR convertion. You can refer here for further details: https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html#Convert_From_TF2X


Officially supported Topologies are also mentioned in above documentation.

I suggest you try with the Officially supported topologies: faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28.tar.gz OR faster_rcnn_inception_resnet_v2_atrous_lowproposals_coco_2018_01_28.tar.gz


Just to ensure that your toolkit is correctly setup and usable.


Sincerely,

Iffa


0 项奖励
simranS
初学者
4,078 次查看

Yes I was able to convert the above mentioned models to IR . Does this mean I should be using the atrous version of faster rcnn to retrain model outside openvino as the IR conversion for these is supported?

0 项奖励
Iffa_Intel
主持人
4,073 次查看

You can use the readily available or you can train your own model, as long as it is supported by openvino as stated by the documentation that I gave to you previously.


Sincerely,

Iffa


0 项奖励
Iffa_Intel
主持人
4,054 次查看

Greetings,


Intel will no longer monitor this thread since this issue has been resolved. If you need any additional information from Intel, please submit a new question. 


Sincerely,

Iffa


0 项奖励
回复