Comments (14)
Hi @Executer13,
We do not recommend to use configs for conversion object detection models. This is legacy approach. Also, please use ovc
that are replacing mo
(legacy) tool and mo
will be removed in 2025 release. See documentation about transitioning to new conversion API for more details: https://docs.openvino.ai/2024/documentation/legacy-features/transition-legacy-conversion-api.html.
Regarding your case, please execute out-of-the-box conversion by the following run:
ovc frozen_model.pb
Best regards,
Roman
from openvino.
Hi @Executer13, can you share your model frozen_model.pb
please?
Best regards,
Roman
from openvino.
Thank for the response. i am trying to run the command to convert the model using ovc:-
!ovc /content/gdrive/MyDrive/saved_model \
--output_model /content/gdrive/MyDrive//saved_model \
--compress_to_fp16=False
and i am getting the output:-
[ SUCCESS ] XML file: /content/gdrive/MyDrive//saved_model/saved_model.xml
[ SUCCESS ] BIN file: /content/gdrive/MyDrive//saved_model/saved_model.bin
However, the Bin file is still empty! Note:- i have tried via mo as well
from openvino.
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
from openvino.
frozen_graph.zip
detect.zip
saved_model.zip
Kindly find the attached Tflite, frozen_model.pb and the saved_model directory. i have tried several methods for conversion of these files using tflite conversion, conversion using mo and ovc.
from openvino.
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
from openvino.
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!
from openvino.
Hi @Executer13,
I noticed that frozen_graph.pb
is strange and contains Identity nodes and Placeholder without meaningful part:
However, you seem to have a correct model in SavedModel format. So my recommendation to work with it:
ovc saved_model
Pay attention that saved_model
is a directory with input model.
Best regards,
Roman
from openvino.
@rkazants are you able to convert the saved_model to IR. if yes, please share the IR thanks!
from openvino.
Hi @Executer13, I did reproduce the bug. Please give me some time to fix it.
Best regards,
Roman
from openvino.
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 Constant->Result
isolated sub-graphs because they are not meaningful from perspective. That is why the resulted model is empty. So there is no bug on OV side. It is specific to the input model.
Best regards,
Roman
from openvino.
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!
from openvino.
Hi @Executer13, please also consider using ovc
because tensorflow-object-detection-api pipeline with ssd-config is deprecated approach. Does ovc
work for you?
Best regards,
Roman
from openvino.
Hi @Executer13,
If no more question, I am closing this ticket. Please don't hesitate to ask in case of question.
Best regards,
Roman
from openvino.
Related Issues (20)
- [Bug]: Intel Myriad X, "current Interpolate supports 'nearest' and 'linear' modes only"
- [Bug]: Argument shapes are inconsistent HOT 1
- [Build]: How can i build openvino in x86 windows 10
- [Bug]: For NVIDIA Gefore RTX4070 issue with OpenCL versions
- Using"GPU", openvino also doesn't work HOT 4
- [Bug]: When `openvino.dll` absolution path contain East Asian character, OpenVINO would not found the device HOT 3
- [Bug]: Bug report from static analysis 2. HOT 2
- [Performance]: Static ViT model significantly slower than dynamic with same input shape HOT 3
- [Bug]: Inconsistent inference result from CPU plugins HOT 2
- [Bug]: Shape inference of Reshape node with name Reshape_315 failed | Corrupted tensor data HOT 4
- [Bug]: ov.convert_model(tf_quantized_model, share_weights=False) convert fail. HOT 2
- Yolo classes select HOT 1
- [Feature Request]: Tool / Webpage with all supported ops per plugin per frontend HOT 3
- [Bug]:The prediction results using PaddleOCR model are inconsistent between versions before 2024.0.0 and after 2024.1.0
- Inquiry About OpenVINO Conversion Best Practices HOT 5
- [Performance]: Model Compilation is slower with multi threads HOT 4
- [Bug]: aten::pad_sequence is not supported HOT 1
- [Bug]: hello_classification applicaiton fails at preprocessing. HOT 3
- TypeError: StableDiffusionPipeline.__init__() got an unexpected keyword argument 'tokenizer_2' HOT 6
- [Bug]: ScatterNDUpdate ops on GPU
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvino.