'Graph' object has no attribute 'node'

Erestu 2019-10-21 PM 2010℃ 0条

问题描述

在openvino的模型转换的过程:caffemodel->IR模型,遇到了这个问题。

python mo.py --input_model F:/openvino_download/2019_download/object_detection/common/mtcnn/o/caffe/mtcnn-o.caffemodel --input_proto F:/openvino_download/2019_download/object_detection/common/mtcnn/o/caffe/mtcnn-o.prototxt --data_type FP16
[ ERROR ]  -------------------------------------------------
[ ERROR ]  ----------------- INTERNAL ERROR ----------------
[ ERROR ]  Unexpected exception happened.
[ ERROR ]  Please contact Model Optimizer developers and forward the following information:
[ ERROR ]  'Graph' object has no attribute 'node'
[ ERROR ]  Traceback (most recent call last):
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\model_optimizer\mo\main.py", line 312, in main
    return driver(argv)
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\model_optimizer\mo\main.py", line 272, in driver
    custom_layers_mapping_path=custom_layers_mapping_path)
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\model_optimizer\mo\pipeline\caffe.py", line 59, in driver
    graph, original_shapes = loader.caffe_pb_to_nx(proto, model)
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\model_optimizer\mo\front\caffe\loader.py", line 242, in caffe_pb_to_nx
    kind='op')
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\model_optimizer\mo\graph\graph.py", line 494, in add_node
    node.update_node()
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\model_optimizer\mo\graph\graph.py", line 459, in update_node
    in_ports_count = self.in_ports_count if self.has_valid('in_ports_count') else None
  File "C:\Program Files (x86)\IntelSWTools\openvino_2019.1.148\deployment_tools\model_optimizer\mo\graph\graph.py", line 162, in has_valid
    print('self.graph.node:',self.graph.node)
AttributeError: 'Graph' object has no attribute 'node'

解决方法

没有搜到相关解决方法,于是抱着试一试的心态,在https://github.com/opencv/dldt/issues/294提了issue,到了晚上20:07收到邮件,解决了

  • pip install networkx==2.3

教训:勤用giuhub

标签: openvino

非特殊说明,本博所有文章均为博主原创。

评论啦~