简体   繁体   English

将tensorflow lite模型直接导入tensorflow/keras

[英]Directly import tensorflow lite models into tensorflow/keras

I am aware of converting tensorflow models to tflite, but is there a reverse procedure.我知道将 tensorflow 模型转换为 tflite,但是否有相反的过程。 I have been trying to dig the google documentation and this is not very clear to me.我一直在尝试挖掘 google 文档,这对我来说不是很清楚。

I am trying to get this done for the models in here --> https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet/lite我正在尝试为这里的模型完成这项工作 --> https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet/lite

Maybe I am missing something.也许我错过了一些东西。 I am quite new to tensorflow.我对张量流很陌生。

So I am asking the question similar to the following question which has been answered.所以我问的问题类似于以下已回答的问题。 Leaving this for anyone who searches with my keywords when beginning tensorflow:将此留给任何在开始 tensorflow 时使用我的关键字进行搜索的人:

Is there any way to convert a tensorflow lite (.tflite) file back to a keras file (.h5)? 有什么方法可以将 tensorflow lite (.tflite) 文件转换回 keras 文件 (.h5)?

Note that the answer above is valid for tensorflow 2.0请注意,上面的答案对 tensorflow 2.0 有效

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM