【发布时间】:2021-11-09 18:26:58
【问题描述】:
我正在尝试构建一个使用 iris 来估计到相机距离的应用程序。我发现 Mediapipe 有它(https://github.com/google/mediapipe/tree/master/mediapipe/modules/iris_landmark),但它在 tflite 中。我希望我可以将它转换为 tf/keras 模型作为预处理器层(不可训练图)(在 Python/GoogleColab 中)。 我在 SO(如 (1) )中发现了许多问题,它们试图将其转换为 h5/pb,这不完全是我的情况,因为我不需要优化器、损失函数等。我只需要恢复层和权重。
(1)Is there any way to convert a tensorflow lite (.tflite) file back to a keras file (.h5)?
(2) Mediapipe Iris 也在 tfjs 中,也没有解决我的问题...https://github.com/tensorflow/tfjs-models/tree/master/face-landmarks-detection("shouldLoadIrisModel")
【问题讨论】:
标签: python tensorflow keras tensorflow.js mediapipe