fail to convert pb to uff

when I use convert-to-uff command to convert my frozen tensorflow graph, it showed that, any suggestions?

Loading ./lanenet_model.pb
Traceback (most recent call last):
  File "/usr/local/bin/convert-to-uff", line 11, in <module>
  File "/usr/local/lib/python2.7/dist-packages/uff/bin/", line 89, in main
  File "/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/", line 186, in from_tensorflow_frozen_model
  File "/home/nvidia/.local/lib/python2.7/site-packages/google/protobuf/", line 185, in ParseFromString
  File "/home/nvidia/.local/lib/python2.7/site-packages/google/protobuf/internal/", line 1083, in MergeFromString
    if self._InternalParse(serialized, 0, length) != length:
  File "/home/nvidia/.local/lib/python2.7/site-packages/google/protobuf/internal/", line 1109, in InternalParse
    new_pos = local_SkipField(buffer, new_pos, end, tag_bytes)
  File "/home/nvidia/.local/lib/python2.7/site-packages/google/protobuf/internal/", line 850, in SkipField
    return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)
  File "/home/nvidia/.local/lib/python2.7/site-packages/google/protobuf/internal/", line 820, in _RaiseInvalidWireType
    raise _DecodeError('Tag had invalid wire type.')
google.protobuf.message.DecodeError: Tag had invalid wire type.

by the way, the complete command I use is “convert-to-uff ./lanenet_model.pb -l”


Based on the error, convert-to-uff failed to parse the .pb file.

google.protobuf.message.DecodeError: Tag had invalid wire type.

A common issue is cased by the incompatible protobuf library.

Could you share the protobuf library version which is used for serializing the .pb file?
Also, please share the version used by the TensorRT.