I made tensorflow frozen model using google colab based on following nodebook.
And, I tried to convert pb file to uff file using uff.from_tensorflow_frozen_model.
uff.from_tensorflow_frozen_model(‘frozen_inference_graph.pb’, output_filename=‘model.uff’, debug_mode=False)
But, the following errors occurred. How can I make uff file?
Thank you for your help.
Converting FeatureExtractor/MobilenetV1/MobilenetV1/Conv2d_13_depthwise/act_quant/FakeQuantWithMinMaxVars as custom op: FakeQuantWithMinMaxVars
Traceback (most recent call last):
File "convert.py", line 4, in <module>
uff.from_tensorflow_frozen_model('frozen_inference_graph.pb', output_filename='model.uff', debug_mode=False)
File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/conversion_helpers.py", line 276, in from_tensorflow_frozen_model
return from_tensorflow(graphdef, output_nodes, preprocessor, **kwargs)
File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/conversion_helpers.py", line 225, in from_tensorflow
debug_mode=debug_mode)
File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 141, in convert_tf2uff_graph
uff_graph, input_replacements, debug_mode=debug_mode)
File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 126, in convert_tf2uff_node
op, name, tf_node, inputs, uff_graph, tf_nodes=tf_nodes, debug_mode=debug_mode)
File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 94, in convert_layer
return cls.registry_[op](name, tf_node, inputs, uff_graph, **kwargs)
File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter_functions.py", line 455, in convert_depthwise_conv2d_native
return _conv2d_helper(name, tf_node, inputs, uff_graph, func="depthwise", **kwargs)
File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter_functions.py", line 480, in _conv2d_helper
number_groups = int(wt.attr['value'].tensor.tensor_shape.dim[2].size)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/internal/containers.py", line 209, in __getitem__
return self._values[key]
IndexError: list index out of range