Showing results for 
Search instead for 
Did you mean: 

trying to run ./ and this happened

Convert a model with Model Optimizer

Run python3 /opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/ --input_model /home/ai/openvino_models/models/FP16/public/squeezenet1.1/squeezenet1.1.caffemodel /home/ai/openvino_models/ir/FP16//public/squeezenet1.1 --data_type FP16

Model Optimizer arguments:
Common parameters:
    - Path to the Input Model:     /home/ai/openvino_models/models/FP16/public/squeezenet1.1/squeezenet1.1.caffemodel
    - Path for generated IR:     /home/ai/openvino_models/ir/FP16//public/squeezenet1.1
    - IR output name:     squeezenet1.1
    - Log level:     ERROR
    - Batch:     Not specified, inherited from the model
    - Input layers:     Not specified, inherited from the model
    - Output layers:     Not specified, inherited from the model
    - Input shapes:     Not specified, inherited from the model
    - Mean values:     Not specified
    - Scale values:     Not specified
    - Scale factor:     Not specified
    - Precision of IR:     FP16
    - Enable fusing:     True
    - Enable grouped convolutions fusing:     True
    - Move mean values to preprocess section:     False
    - Reverse input channels:     False
Caffe specific parameters:
    - Path to Python Caffe* parser generated from caffe.proto:     /opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/front/caffe/proto
    - Enable resnet optimization:     True
    - Path to the Input prototxt:     /home/ai/openvino_models/models/FP16/public/squeezenet1.1/squeezenet1.1.prototxt
    - Path to CustomLayersMapping.xml:     Default
    - Path to a mean file:     Not specified
    - Offsets for a mean file:     Not specified
Model Optimizer version:     2019.3.0-375-g332562022
[ 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 "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/", line 302, in main
    return driver(argv)
  File "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/", line 261, in driver
  File "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/pipeline/", line 65, in driver
    graph, original_shapes = loader.caffe_pb_to_nx(proto, model)
  File "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/front/caffe/", line 294, in caffe_pb_to_nx
    graph.add_node(, pb=layer, model_pb=model_layer, kind='op', type='Parameter')
  File "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/graph/", line 505, in add_node
  File "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/graph/", line 470, in update_node
    in_ports_count = self.in_ports_count if self.has_valid('in_ports_count') else None
  File "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/graph/", line 161, in has_valid
    return self.has(k) and not self.graph.node[self.node] is None
  File "/opt/intel/openvino_2019.3.334/deployment_tools/model_optimizer/mo/graph/", line 158, in has
    return k in self.graph.node[self.node]
AttributeError: 'Graph' object has no attribute 'node'

[ ERROR ]  ---------------- END OF BUG REPORT --------------
[ ERROR ]  -------------------------------------------------
Error on or near line 199; exiting with status 1


Any ideas why?

0 Kudos
0 Replies