“function”对象没有“called”属性

2024-04-28 12:48:35 发布

您现在位置:Python中文网/ 问答频道 /正文

当am试图使用colab上的%run export_inference_graph.py --input_type image_tensor --pipeline_config_path training/faster_rcnn_inception_v2_pets.config --trained_checkpoint_prefix training/model.ckpt-50000 --output_directory inference_graph通过微调模型的检查点导出pb文件时,它将显示一个错误,如“object has no attribute called”。请帮助

INFO:tensorflow:SavedModel written to: inference_graph/saved_model/saved_model.pb
INFO:tensorflow:Writing pipeline config file to inference_graph/pipeline.config
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-c4037740846b> in <module>()
----> 1 get_ipython().magic('run export_inference_graph.py --input_type image_tensor --pipeline_config_path training/faster_rcnn_inception_v2_pets.config --trained_checkpoint_prefix training/model.ckpt-50000 --output_directory inference_graph')

5 frames
</usr/local/lib/python3.6/dist-packages/decorator.py:decorator-gen-58> in run(self, parameter_s, runner, file_finder)

/usr/local/lib/python3.6/dist-packages/IPython/core/pylabtools.py in mpl_execfile(fname, *where, **kw)
    175         matplotlib.interactive(is_interactive)
    176         # make rendering call now, if the user tried to do it
--> 177         if plt.draw_if_interactive.called:
    178             plt.draw()
    179             plt.draw_if_interactive.called = False

AttributeError: 'function' object has no attribute 'called'

Tags: toruninpyconfiginputmodelif