Giter Club home page Giter Club logo

Comments (14)

rkazants avatar rkazants commented on September 23, 2024 2

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.

rkazants avatar rkazants commented on September 23, 2024 1

Hi @Executer13, can you share your model frozen_model.pb please?

Best regards,
Roman

from openvino.

Executer13 avatar Executer13 commented on September 23, 2024 1

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.

Executer13 avatar Executer13 commented on September 23, 2024

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.

Executer13 avatar Executer13 commented on September 23, 2024

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.

Executer13 avatar Executer13 commented on September 23, 2024

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.

Executer13 avatar Executer13 commented on September 23, 2024

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.

rkazants avatar rkazants commented on September 23, 2024

Hi @Executer13,

I noticed that frozen_graph.pb is strange and contains Identity nodes and Placeholder without meaningful part:

image

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.

Executer13 avatar Executer13 commented on September 23, 2024

@rkazants are you able to convert the saved_model to IR. if yes, please share the IR thanks!

from openvino.

rkazants avatar rkazants commented on September 23, 2024

Hi @Executer13, I did reproduce the bug. Please give me some time to fix it.

Best regards,
Roman

from openvino.

rkazants avatar rkazants commented on September 23, 2024

Hi @Executer13,

The model is strange because it always outputs four zero scalars. Please check.

image

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.

Executer13 avatar Executer13 commented on September 23, 2024

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.

rkazants avatar rkazants commented on September 23, 2024

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.

rkazants avatar rkazants commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.