- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已使用 SavedModel (Inception_resnet_v2) 导出 TensorFlow 模型文件并使用 TensorFlow Serving 加载文件。我已将官方 minst saved_model.pb 直接替换为我自己的 Inception_resnet_v2 saved_model.pb 文件。但我遇到了一个错误。
deep@ubuntu:~/serving$ bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --port=9000 --model_name=mnist --model_base_path=/home/deep/serving/tmp/mnist_model
我应该怎么办?谢谢!
2017-06-18 10:39:41.963490: I tensorflow_serving/model_servers/main.cc:146] 构建单个 TensorFlow 模型文件配置:model_name:mnist model_base_path:home/deep/serving/tmp/mnist_model model_version_policy:0
2017-06-18 10:39:41.963752:我 tensorflow_serving/model_servers/server_core.cc:375] 添加/更新模型。
2017-06-18 10:39:41.963762:我 tensorflow_serving/model_servers/server_core.cc:421](重新)添加模型:mnist
2017-06-18 10:39:42.065556:我 tensorflow_serving/core/basic_manager.cc:698] 成功保留资源以加载可服务{名称:mnist 版本:1}
2017-06-18 10:39:42.065610: I tensorflow_serving/core/loader_harness.cc:66] 批准可服务版本的负载{名称:mnist 版本:1}
2017-06-18 10:39:42.065648:我 tensorflow_serving/core/loader_harness.cc:74] 加载可服务版本 {名称:mnist 版本:1}
2017-06-18 10:39:42.065896: I external/org_tensorflow/tensorflow/contrib/session_bundle/bundle_shim.cc:360] 尝试在 bundle-shim 中加载 native SavedModelBundle:/home/deep/serving/tmp/mnist_model/1
2017-06-18 10:39:42.066130: I external/org_tensorflow/tensorflow/cc/saved_model/loader.cc:226] 从/home/deep/serving/tmp/mnist_model/1 加载 SavedModel
2017-06-18 10:39:42.080775:我 external/org_tensorflow/tensorflow/cc/saved_model/loader.cc:274] 加载 SavedModel:失败。耗时 14816 微秒。
2017-06-18 10:39:42.080822:E tensorflow_serving/util/retrier.cc:38] 加载可服务:{名称:mnist 版本:1} 失败:未找到:找不到与提供的标签匹配的元图 def。
最佳答案
我和 Serving 工程师聊了聊,以下是他们对此的一些想法:
Looks like they need to specify a tag either in the saved model, or on the command line. (log line of note: failed: Not found: Could not find meta graph def matching supplied tags. )
It looks like the SavedModel loader is unable to find a graph corresponding to the tags they have supplied. Here is some documentation: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python/saved_model#tags
Ah, to add: They could use the SavedModel CLI to inspect the model and see what tag-sets are available. Here is the documentation for that: https://www.tensorflow.org/versions/master/programmers_guide/saved_model_cli.
They can run
saved_model_cli show --dir <SavedModelDir>
to check what tag-sets are in the SavedModel if they have pip installed tensorflow.
关于tensorflow - 无法在 tensorflow 服务中加载 pb 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44611261/
我有一个经过训练的模型 (Faster R-CNN),我使用 export_inference_graph.py 将其导出以用于推理。我试图了解创建的 frozen_inference_graph.p
我正在开发一个使用Google Protocol Buffer (protobuf)和CMake的库。该项目具有以下目录树。 MyProject/ MyProject/include/myprojec
我有一个旧的训练有素的 tf1.x 模型(让它成为 Model1 ),用占位符、tf.contrib 等构建。我可以通过从 tf.Session(在 tf1.x 中)中的 .ckpt 检查点恢复图形来
我想预先执行查询并将结果存储在@query中: BEGIN DECLARE @query VARCHAR(50); SET @table = 'top20-img-link'; SET @query
有了这个玩具数据:: df = pd.DataFrame(pd.np.random.randint(2, 9, size=(8, 3))) df.index = pd.date_range(start
我使用的是 Twisted 16.1.1 和 python 3.4。在 twisted 的 16.1.1 版文档中,there is a tutorial上面写着“from twisted.sprea
最近尝试将模型(tf1.x)转换为saved_model,关注官方migrate document .但是在我的用例中,我手中的大部分模型或 tensorflow 模型动物园通常是 pb 文件,根据
有谁知道tensorflow_inception_graph.pb的原始源代码。 真不想知道示例项目中的操作 tensorflow/example/android - 读我。 Tensorflow A
完整的错误说: cv2.error:OpenCV(4.1.0)C:\ projects \ opencv-python \ opencv \ modules \ dnn \ src \ caffe \
我已将模型保存在图表(.pb 文件)中。但现在这个模型不准确,我想开发它。我有其他数据的图片需要学习,但我不知道是否可能或如何做到这一点?结果必须是新数据pb图的修改。 最佳答案 这是个好问题。实际上
假设我有模型(tf.keras.Model): class ContextExtractor(tf.keras.Model): def __init__(self): supe
我正在尝试加载取自 https://github.com/tensorflow/models/tree/master/official/resnet 的已训练模型,但是当我尝试加载 .pb 时,我在
我计划将 .aab 上传到 Play 商店进行发布,在发布之前,我正在尝试反编译以查看在逆向工程过程中哪些数据可能会暴露给用户。 在 .aab_FILES/base/中,我看到了 assets.pb
libphonenumber 中没有phonenumber.pb.h 和phonemetadata.pb.h (CPP) 库 那么有什么办法可以找出来吗? 谢谢! 最佳答案 这些是由 Google p
我需要在 CSV 甲酸盐文件中搜索超过 PB 的数据。使用 LUCENE 建立索引后,索引文件的大小是原始文件的两倍。是否可以减少索引文件的大小??? HADOOP中如何分发LUCENE索引文
我公司的产品每年将在我们的客户站点产生数 PB 的数据。我想填满一个多 PB 的 NAS 来模拟一个已经运行了很长时间(3 个月、6 个月、一年等)的系统。我们希望在我们的软件在负载下的存储系统上运行
我在 Windows 10 机器上创建了一个 tensorflow 模型并使用以下方法保存它: model.save('myfolder') 文件夹内myfolder我得到: - saved_mode
我使用 Pytorch 创建了一个对象检测模型然后从 .pth 转换而来至 .onnx然后 .pb , 但现在我需要将其转换为 .tflite对于安卓应用程序!怎么做?这是我的第一次。 input_a
在这种情况下,大文件会发生什么? 1)Spark从NameNode获取数据位置。 Spark是否会在同一时间停止,因为根据NameNode的信息,数据大小太长? 2)Spark根据数据节点块大小对数据
我在对象检测 API 中使用 ssd_mobilenets 来训练我自己的模型,并获取 .ckpt 文件。它在我的电脑上运行良好,但现在我想在我的手机上使用该模型。所以,我需要将它转换为 .pb 文件
我是一名优秀的程序员,十分优秀!