Skip to content
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

Convert TFlite buffer created using TF1 to TF2 TFlite buffer #66281

Open
mrtpk opened this issue Apr 23, 2024 · 2 comments
Open

Convert TFlite buffer created using TF1 to TF2 TFlite buffer #66281

mrtpk opened this issue Apr 23, 2024 · 2 comments
Assignees
Labels
comp:lite TF Lite related issues stat:awaiting response Status - Awaiting response from author TFLiteConverter For issues related to TFLite converter

Comments

@mrtpk
Copy link

mrtpk commented Apr 23, 2024

Hi Team,

Context:
I have a bunch of TFlite files that were created using schema.fbs before version was added into the schema. The latest tflite buffers generated using TF2 has version and other newly added fields.

Question:
Is there a way to convert tflite buffers to new tflite buffers that adhere to the new schema? Any pointer is very much appreciated. Thanks.

@TeachVoyager
Copy link

Did you try using, the Tflite converter tool to convert the old to the new format?

From what I've been seeing floating around google it's possible to convert Tflite files to adhere to the new scheme.

@sawantkumar
Copy link

sawantkumar commented Apr 29, 2024

Hi @mrtpk ,

Can you please try using the tflite converter tool and just use different names for the input and output model and let me know if it works for you ?

Alternatively if you still have the original tf1 model , you can convert it to a tf2 model using existing tools and then convert the tf2 model to tflite which will adhere to the new schema.

@sawantkumar sawantkumar added TFLiteConverter For issues related to TFLite converter comp:lite TF Lite related issues stat:awaiting response Status - Awaiting response from author labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues stat:awaiting response Status - Awaiting response from author TFLiteConverter For issues related to TFLite converter
Projects
None yet
Development

No branches or pull requests

4 participants