-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Can not infere a model with OpenVINO 2019R1 #128
Comments
Dear @bsekachev, Did you follow the version rules in the mo tf object detection api doc ? It seems like you did follow the rules because otherwise probably MO would have failed to generate IR, but I would just like to make sure. Thanks, Shubha |
@shubha-ramani
It seems to me, my frozen graph have been got with TF API v 1.12.0 as described here UPD: |
Dear @bsekachev, if you use a diff tool to compare the different versions of faster_rcnn*.json within the C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\deployment_tools\model_optimizer\extensions\front directory you will see that they are different. If they weren't different there is no need to have separate versions. If you are using TF API v 1.12.0, the aforementioned online MO doc says this:
Which means you definitely should be using faster_rcnn_support_api_v1.10.json. Hope it helps, Thanks, Shubha |
Dear @bsekachev , Additionally, if a frozen graph is not readily available for download you can always make one yourself using Tensorflow code and tools (it's fairly easy to do). Thanks, Shubha |
@shubha-ramani What about |
@bsekachev Seems like you found a bug though. I will reproduce and file a bug - the IE should not throw an exception in this case. Please tell me which OpenVino sample you are using for inference, or you can also attach the script you use here. Thanks, Shubha |
Error occurs in this line. Thanks. |
Dear @bsekachev, I am still investigating this. I tried and faster_rcnn_support_api_v1.7.json and faster_rcnn_support_api_v1.10.json cause MO to fail anyway. The only one which generates IR is the one you used - just faster_rcnn_support.json . If you look at the date of the model, it's pretty old (about 1.5 years) so the fact that an older API was used is quite believable. |
Looks like model has 2 input, one for image with shape [1,3,600,600] and second one for image info with shape [1,3]. Instead of doing this: input_blob_name = next(iter(network.inputs)) you need to iterate thru network inputs and find one with 4 dimensions - this will be an image tensor, use it as input_blob_name. Second one will be image info tensor, fill it like this: info[0]=image_width; |
Dear @bsekachev, I did successfully generate IR using your command above for mask_rcnn_inception_resnet_v2_atrous_coco_2018_01_28 Thanks, Shubha |
Dear @bsekachev,
[ INFO ] Loading network files Average running time of one iteration: 18987.7 ms [ INFO ] Processing output blobs The output of this sample is the image with segmentation applied. Please compare your code to the mask_rcnn_demo code. Thanks, Shubha ` |
MO 2018R5 generates model IRs with these inputs/outputs (see the first post about used parameters of MO):
MO 2019R1 IRs:
Tested using Python code from IE 2019R1:
So, incompatible change is going from MO. Not sure if this can be changed via configuration files. Need to update inference code of application (this is not good from compatibility point of view). At least, we should fix error message: add name of the problem layer. |
@alalek |
* Added OVC and ov.convert_model() description. * Minor corrections. * Small correction. * Include page to toctree. * WIP: Model Preparation * Forked OVC/ov.convert_model documentation sub-directory; reworked model_introduction.md * Reverted ovc-related changes in old MO_DG documentation * State explicitly that MO is considered legacy API * Reduced ovc description in model preparation part; added TF Hub exampe (via file) * Grammar check; removed obsolexte parts not relevant to ovc; better wording * Removed a duplicate of mo-to-ovc transition * Fixed links and some other errors found in documentation build * Resolved XYZ placeholder to the transition guide * Fixed technical issues with links * Up-to-date link to PTQ chapter (instead of obsolete POT) * Fixed strong text ending * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Renamed Legacy conversion guides * Fixed links and styles for inlined code * Fixed style for code references * Fixing technical syntax errors in docs * Another attempt to fix docs * Removed all unreferenced images * Better content for Additional Resources in model preporation introduction * MO to OVC transition guide. (#127) * Examples code correction. * Change format of example. * Conflict fix. * Remove wrong change. * Added input_shapes example. * batch example. * Examples format changed. * List item removed. * Remove list for all examples. * Corrected batch example. * Transform example. * Text corrections. * Text correction. * Example correction. * Small correction. * Small correction. * Small correction. * Small correction. * Text corrections. * Links corrected. * Text corrections (#128) * Text corrections. * Example corrected. * Update docs/install_guides/pypi-openvino-dev.md Co-authored-by: Sergey Lyalin <[email protected]> --------- Co-authored-by: Sergey Lyalin <[email protected]> * Many technical fixes, description of recursive flattening of list and tuples * Reorganized structure of Model Conversion toc tree. Removed fp16 dedicated page, merged to Conversion Parameters. * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_TensorFlow.md Co-authored-by: Roman Kazantsev <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Maciej Smyk <[email protected]> * Fixed example from tf hub. Removed input_shape references * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Removed * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Fixed links * Removed TODO for model flow * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> * Restored lost code-blocks that leaded to wrong rendering of the code snippets in some places * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md * Fixed links to notebooks * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> --------- Co-authored-by: Anastasiia Pnevskaia <[email protected]> Co-authored-by: Karol Blaszczak <[email protected]> Co-authored-by: Roman Kazantsev <[email protected]> Co-authored-by: Maciej Smyk <[email protected]> Co-authored-by: Tatiana Savina <[email protected]>
* Added OVC and ov.convert_model() description. * Minor corrections. * Small correction. * Include page to toctree. * WIP: Model Preparation * Forked OVC/ov.convert_model documentation sub-directory; reworked model_introduction.md * Reverted ovc-related changes in old MO_DG documentation * State explicitly that MO is considered legacy API * Reduced ovc description in model preparation part; added TF Hub exampe (via file) * Grammar check; removed obsolexte parts not relevant to ovc; better wording * Removed a duplicate of mo-to-ovc transition * Fixed links and some other errors found in documentation build * Resolved XYZ placeholder to the transition guide * Fixed technical issues with links * Up-to-date link to PTQ chapter (instead of obsolete POT) * Fixed strong text ending * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Renamed Legacy conversion guides * Fixed links and styles for inlined code * Fixed style for code references * Fixing technical syntax errors in docs * Another attempt to fix docs * Removed all unreferenced images * Better content for Additional Resources in model preporation introduction * MO to OVC transition guide. (#127) * Examples code correction. * Change format of example. * Conflict fix. * Remove wrong change. * Added input_shapes example. * batch example. * Examples format changed. * List item removed. * Remove list for all examples. * Corrected batch example. * Transform example. * Text corrections. * Text correction. * Example correction. * Small correction. * Small correction. * Small correction. * Small correction. * Text corrections. * Links corrected. * Text corrections (#128) * Text corrections. * Example corrected. * Update docs/install_guides/pypi-openvino-dev.md Co-authored-by: Sergey Lyalin <[email protected]> --------- Co-authored-by: Sergey Lyalin <[email protected]> * Many technical fixes, description of recursive flattening of list and tuples * Reorganized structure of Model Conversion toc tree. Removed fp16 dedicated page, merged to Conversion Parameters. * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_TensorFlow.md Co-authored-by: Roman Kazantsev <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Maciej Smyk <[email protected]> * Fixed example from tf hub. Removed input_shape references * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Removed * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Fixed links * Removed TODO for model flow * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> * Restored lost code-blocks that leaded to wrong rendering of the code snippets in some places * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md * Fixed links to notebooks * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> --------- Co-authored-by: Anastasiia Pnevskaia <[email protected]> Co-authored-by: Karol Blaszczak <[email protected]> Co-authored-by: Roman Kazantsev <[email protected]> Co-authored-by: Maciej Smyk <[email protected]> Co-authored-by: Tatiana Savina <[email protected]>
* Added OVC and ov.convert_model() description. * Minor corrections. * Small correction. * Include page to toctree. * WIP: Model Preparation * Forked OVC/ov.convert_model documentation sub-directory; reworked model_introduction.md * Reverted ovc-related changes in old MO_DG documentation * State explicitly that MO is considered legacy API * Reduced ovc description in model preparation part; added TF Hub exampe (via file) * Grammar check; removed obsolexte parts not relevant to ovc; better wording * Removed a duplicate of mo-to-ovc transition * Fixed links and some other errors found in documentation build * Resolved XYZ placeholder to the transition guide * Fixed technical issues with links * Up-to-date link to PTQ chapter (instead of obsolete POT) * Fixed strong text ending * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/MO_OVC_transition.md Co-authored-by: Anastasiia Pnevskaia <[email protected]> * Renamed Legacy conversion guides * Fixed links and styles for inlined code * Fixed style for code references * Fixing technical syntax errors in docs * Another attempt to fix docs * Removed all unreferenced images * Better content for Additional Resources in model preporation introduction * MO to OVC transition guide. (openvinotoolkit#127) * Examples code correction. * Change format of example. * Conflict fix. * Remove wrong change. * Added input_shapes example. * batch example. * Examples format changed. * List item removed. * Remove list for all examples. * Corrected batch example. * Transform example. * Text corrections. * Text correction. * Example correction. * Small correction. * Small correction. * Small correction. * Small correction. * Text corrections. * Links corrected. * Text corrections (openvinotoolkit#128) * Text corrections. * Example corrected. * Update docs/install_guides/pypi-openvino-dev.md Co-authored-by: Sergey Lyalin <[email protected]> --------- Co-authored-by: Sergey Lyalin <[email protected]> * Many technical fixes, description of recursive flattening of list and tuples * Reorganized structure of Model Conversion toc tree. Removed fp16 dedicated page, merged to Conversion Parameters. * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_TensorFlow.md Co-authored-by: Roman Kazantsev <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Maciej Smyk <[email protected]> * Fixed example from tf hub. Removed input_shape references * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md Co-authored-by: Tatiana Savina <[email protected]> * Removed * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Update docs/OV_Converter_UG/prepare_model/convert_model/Convert_Model_From_ONNX.md Co-authored-by: Tatiana Savina <[email protected]> * Fixed links * Removed TODO for model flow * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> * Restored lost code-blocks that leaded to wrong rendering of the code snippets in some places * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> * Update docs/Documentation/model_introduction.md * Fixed links to notebooks * Apply suggestions from code review Co-authored-by: Tatiana Savina <[email protected]> --------- Co-authored-by: Anastasiia Pnevskaia <[email protected]> Co-authored-by: Karol Blaszczak <[email protected]> Co-authored-by: Roman Kazantsev <[email protected]> Co-authored-by: Maciej Smyk <[email protected]> Co-authored-by: Tatiana Savina <[email protected]>
Hi,
In OpenVINO 2018 R5 I use MO to convert some model from TF OD API.
Next I infer the converted model with 2018R5 IE:
To sum up pipeline works well in 2018R5 IE. But something wrong in 2019R1.
Conversion is ok, but inference failed with an error:
In addition, model converted with OpenVINO 2018R5 MO works well with OpenVINO 2019R1 IE.
The text was updated successfully, but these errors were encountered: