【问题标题】:Can I convert all the tensorflow slim models to tflite?我可以将所有 tensorflow slim 模型转换为 tflite 吗?
【发布时间】:2018-10-10 14:26:14
【问题描述】:

我正在为自定义数据集上的图像分类训练基于 tensorflow slim 的模型。在投入大量时间训练如此庞大的数据集之前,我想知道是否可以将 slim model zoo 中可用的所有模型转换为 tflite 格式。

另外,我知道我可以将自定义苗条模型转换为冻结图。这是我担心的后续步骤,即从我的自定义训练的 .pb 模型转换为 .tflite。

支持吗?或者是否有人面临尚未解决的转换问题?

谢谢。

【问题讨论】:

    标签: python tensorflow machine-learning computer-vision tensorflow-lite


    【解决方案1】:

    许多 Slim 模型可以转换为 TFLite,但这不是保证,因为某些模型可能具有 TFLite 不支持的操作。

    您可以做的就是在训练之前尝试在 Python 中使用 TFLiteConverter 将您的模型转换为 TensorFlow Lite。如果转换成功,那么您可以训练您的 TF 模型并再次转换。

    【讨论】:

      猜你喜欢
      • 2018-09-03
      • 1970-01-01
      • 2019-05-06
      • 2020-12-03
      • 1970-01-01
      • 2020-09-10
      • 1970-01-01
      • 2018-08-17
      • 1970-01-01
      相关资源
      最近更新 更多