【发布时间】:2018-04-23 15:45:38
【问题描述】:
以下是我的代码的一部分。我正在运行一个已经开发的代码并在 tensorflow 框架上遇到一些错误
with detection_graph.as_default():
od_graph_def = tf.GraphDef()
with tf.gfile.GFile(PATH_TO_CKPT, 'rb') as fid:
serialized_graph = fid.read()
od_graph_def.ParseFromString(serialized_graph)
tf.import_graph_def(od_graph_def, name='')
还有错误
Traceback (most recent call last):
File "main.py", line 55, in <module>
tf.import_graph_def(od_graph_def, name='')
File "/usr/local/lib/python3.5/dist-
packages/tensorflow/python/framework/importer.py", line 258, in
import_graph_def
op_def = op_dict[node.op]
KeyError: 'TensorArrayV3'
【问题讨论】:
标签: python-3.x opencv tensorflow object-detection object-detection-api