【发布时间】:2019-08-13 15:35:03
【问题描述】:
我尝试按照本教程了解如何转换 Keras H5 Model zu ProtoBuff 并使用 Tensorflow Serve 提供服务: https://towardsdatascience.com/deploying-keras-models-using-tensorflow-serving-and-flask-508ba00f1037
该教程在网络上的许多其他资源中使用“tf.saved_model.simple_save”,现在(2019 年 3 月)已弃用和删除。 使用 freeze_session 将 h5 转换为 pb,如下所示: How to export Keras .h5 to tensorflow .pb?
好像错过了一个“服务”标签,因为 tensorflow_model_server 输出:
Loading servable: {name: ImageClassifier version: 1} failed: Not found: Could not find meta graph def matching supplied tags: { serve }. To inspect available tag-sets in the SavedModel, please use the SavedModel CLI: saved_model_cli
用saved_model_cli检查过,没有标签。
现在有什么方法可以让 h5 模型在 tensorflow_server 中可用?
【问题讨论】:
标签: tensorflow keras tensorflow-serving