pavelgonchar / colornet

Neural Network to colorize grayscale images
3.56k stars 324 forks source link

train.py fails: google.protobuf.message.DecodeError: Wrong wire type in tag. #18

Open yurivict opened 4 years ago

yurivict commented 4 years ago

W1209 14:04:14.659156 34370101248 deprecation_wrapper.py:119] From train.py:159: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.

Traceback (most recent call last):
  File "train.py", line 160, in <module>
    graph_def.ParseFromString(fileContent)
  File "/usr/local/lib/python3.6/site-packages/google/protobuf/message.py", line 187, in ParseFromString
    return self.MergeFromString(serialized)
  File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/python_message.py", line 1128, in MergeFromString
    if self._InternalParse(serialized, 0, length) != length:
  File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/python_message.py", line 1180, in InternalParse
    buffer, new_pos, wire_type)  # pylint: disable=protected-access
  File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/decoder.py", line 952, in _DecodeUnknownField
    raise _DecodeError('Wrong wire type in tag.')
google.protobuf.message.DecodeError: Wrong wire type in tag.

py36-tensorflow-1.14.0