Python 为旧版本的tensorflow生成冻结推理图
根据Tensorflow模型文档,应该可以冻结Tensorflow 1.4的模型 可以使用当前版本的Tensorflow重新运行导出器,将导出器指向模型目录以及samples/configs中的相应配置文件,从而重新生成每个冻结的推理图。 尝试冻结模型时,我遇到一个错误:Python 为旧版本的tensorflow生成冻结推理图,python,tensorflow,Python,Tensorflow,根据Tensorflow模型文档,应该可以冻结Tensorflow 1.4的模型 可以使用当前版本的Tensorflow重新运行导出器,将导出器指向模型目录以及samples/configs中的相应配置文件,从而重新生成每个冻结的推理图。 尝试冻结模型时,我遇到一个错误: Traceback (most recent call last): File "export_inference_graph.py", line 96, in <module> from objec
Traceback (most recent call last):
File "export_inference_graph.py", line 96, in <module>
from object_detection import exporter
File "C:\detection\object_detection\exporter.py", line 20, in <module>
from tensorflow.contrib.quantize.python import graph_matcher
ImportError: cannot import name 'graph_matcher'
回溯(最近一次呼叫最后一次):
文件“export\u expression\u graph.py”,第96行,在
从对象检测导入导出器
文件“C:\detection\object\u detection\exporter.py”,第20行,在
从tensorflow.contrib.quantize.python导入图形匹配器
ImportError:无法导入名称“graph\u matcher”
那么文档是否有误