Hi, I have trained and saved my own TF2 Mask RCNN model. I am trying to optimize the saved_model.pb for faster inference. I first try to convert the model into a frozen graph as states here https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Mode... but i get this error tensorflow.python.framework.errors_impl.InternalError: Tensorflow type 21 not convertible to numpy dtype. Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.middle.PartialInfer.PartialInfer'>): Stopped shape/value propagation at "StatefulPartitionedCall/map/TensorArrayV2_2" node. What can i do?
I had tested your model and I get the same output.
I believe this is because you didn't freeze your model.
Please help to freeze your model before converting it.
1. The model is not frozen indeed.
2. This is the problem we already talking about https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Mode... . The commnad to freeze the model according to this link is python3 mo_tf.py --saved_model_dir <SAVED_MODEL_DIRECTORY> --output_dir <OUTPUT_MODEL_DIR> .
3. The point is that following the exact steps in the guides provided you run from error to error and eventually can't convert the TF2 saved models.
4. What can we do to have this working as expected? I am happy to work together for a solution.
In addition to that, your model might have some unsupported operation which this issue had been captured before.
For OpenVINO toolkit, this issue is potentially fixed in the 2022.1 version soon.
If you are willing to build the OpenVINO package from source, you could try to use your model with it, which the latest github release might already fix this issue.
This is the link to the official OpenVINO github: https://github.com/openvinotoolkit/openvino
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.