Tensorflow ValueError: Protocol message RewriterConfig has no "layout_optimizer" field

I changed models/research/object_detection/exporter.py line 71/72 from:

rewrite_options = rewriter_config_pb2.RewriterConfig(
          layout_optimizer=rewriter_config_pb2.RewriterConfig.ON)

to

rewrite_options = rewriter_config_pb2.RewriterConfig()

It worked ~~~ good luck!

原文地址:https://www.cnblogs.com/lion-zheng/p/9418271.html