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
Exception occurred during running replacer "ObjectDetectionAPIOutputReplacement" [Build]: - empty IR #24375
Comments
Hi @Executer13, We do not recommend to use configs for conversion object detection models. This is legacy approach. Also, please use
Best regards, |
Hey @rkazants thanks for the response. i have tried the given solution. However, it keeps resulting in Empty .bin IR file. Please let me know if there is a way to convert the TENSORFLOW OBJECT DETECTION API MODEL to IR either via tflite, saved_model or frozen thanks |
Hi @Executer13, can you share your model Best regards, |
frozen_graph.zip |
Note:- tflite is a successful model working correctly when used for detection. If you could provide me a solution or converted IR that would be really grateful of you! THANKS |
is there any update? or any workaround of this. would be much appreciated if i could just get a way to convert the tflite either. Thanks! |
Hi @Executer13, I noticed that However, you seem to have a correct model in SavedModel format. So my recommendation to work with it:
Pay attention that Best regards, |
Thank for the response. i am trying to run the command to convert the model using ovc:-
and i am getting the output:- [ SUCCESS ] XML file: /content/gdrive/MyDrive//saved_model/saved_model.xml However, the Bin file is still empty! Note:- i have tried via mo as well |
@rkazants are you able to convert the saved_model to IR. if yes, please share the IR thanks! |
Hi @Executer13, I did reproduce the bug. Please give me some time to fix it. Best regards, |
Hi @Executer13, The model is strange because it always outputs four zero scalars. Please check. Also, we have internal transformation inside TF FE to remove Best regards, |
Hey @rkazants thanks for the insight the issue was actually resolved by considering freezing layers from the checkpoint and considering the conversion of the frozen_graph using the tensorflow-object-detection-api pipeline with ssd-config. THANKS! |
Hi @Executer13, please also consider using Best regards, |
Hi @Executer13, If no more question, I am closing this ticket. Please don't hesitate to ask in case of question. Best regards, |
OpenVINO Version
2024.1
Operating System
Other (Please specify in description)
Hardware Architecture
x86 (64 bits)
Target Platform
Google Colab
Tensorflow 2.8.0
Build issue description
i am trying to onver the tensorflow object detection API model after finetuning it. However, i am unable to do so as with saved_model and frozen, as i keep getting the error:-
[ ERROR ] Exception occurred during running replacer "ObjectDetectionAPIOutputReplacement" (<class 'openvino.tools.mo.front.tf.ObjectDetectionAPI.ObjectDetectionAPIOutputReplacement'>): Graph contains 1 node after executing <class 'openvino.tools.mo.front.tf.ObjectDetectionAPI.ObjectDetectionAPIOutputReplacement'>. It considered as error because resulting IR will be empty which is not usual
Build script or step-by-step to reproduce
!mo --input_model /content/gdrive/MyDrive/custom_model_lite/saved_model/frozen/frozen_model.pb
--tensorflow_object_detection_api_pipeline_config /content/gdrive/MyDrive/config/ssd_mobilenet_v2_fpnlite_320x320_coco17_tpu-8.config
--transformations_config=/content/gdrive/MyDrive/json/ssd_support_api_v2.4.json
--reverse_input_channels
--log_level DEBUG \
Relevant log output
Issue submission checklist
The text was updated successfully, but these errors were encountered: