models icon indicating copy to clipboard operation
models copied to clipboard

I can't train,and many errors occurs when I test the tf_example_decoder_test.py and dataset_builder_test.py

Open wanghuite opened this issue 8 years ago • 2 comments

PS D:\models\research\object_detection\builders> python dataset_builder_test.py C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters 2018-03-06 08:30:53.477280: I C:\tf_jenkins\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 EEEE..

ERROR: test_build_tf_record_input_reader (main.DatasetBuilderTest)

Traceback (most recent call last): File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1269, in _ConsumeSingleByteString result = text_encoding.CUnescape(text[1:-1]) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_encoding.py", line 105, in CUnescape .decode('unicode_escape') UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dataset_builder_test.py", line 92, in test_build_tf_record_input_reader text_format.Merge(input_reader_text_proto, input_reader_proto) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 525, in Merge descriptor_pool=descriptor_pool) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 579, in MergeLines return parser.MergeLines(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 612, in MergeLines self._ParseOrMerge(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 627, in _ParseOrMerge self._MergeField(tokenizer, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 815, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 866, in _MergeScalarField value = tokenizer.ConsumeString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1229, in ConsumeString the_bytes = self.ConsumeByteString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1244, in ConsumeByteString the_list = [self._ConsumeSingleByteString()] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1271, in _ConsumeSingleByteString raise self.ParseError(str(e)) google.protobuf.text_format.ParseError: 5:21 : 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

====================================================================== ERROR: test_build_tf_record_input_reader_and_load_instance_masks (main.DatasetBuilderTest)

Traceback (most recent call last): File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1269, in _ConsumeSingleByteString result = text_encoding.CUnescape(text[1:-1]) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_encoding.py", line 105, in CUnescape .decode('unicode_escape') UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dataset_builder_test.py", line 125, in test_build_tf_record_input_reader_and_load_instance_masks text_format.Merge(input_reader_text_proto, input_reader_proto) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 525, in Merge descriptor_pool=descriptor_pool) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 579, in MergeLines return parser.MergeLines(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 612, in MergeLines self._ParseOrMerge(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 627, in _ParseOrMerge self._MergeField(tokenizer, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 815, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 866, in _MergeScalarField value = tokenizer.ConsumeString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1229, in ConsumeString the_bytes = self.ConsumeByteString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1244, in ConsumeByteString the_list = [self._ConsumeSingleByteString()] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1271, in _ConsumeSingleByteString raise self.ParseError(str(e)) google.protobuf.text_format.ParseError: 6:21 : 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

====================================================================== ERROR: test_build_tf_record_input_reader_with_batch_size_two (main.DatasetBuilderTest)

Traceback (most recent call last): File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1269, in _ConsumeSingleByteString result = text_encoding.CUnescape(text[1:-1]) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_encoding.py", line 105, in CUnescape .decode('unicode_escape') UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dataset_builder_test.py", line 148, in test_build_tf_record_input_reader_with_batch_size_two text_format.Merge(input_reader_text_proto, input_reader_proto) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 525, in Merge descriptor_pool=descriptor_pool) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 579, in MergeLines return parser.MergeLines(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 612, in MergeLines self._ParseOrMerge(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 627, in _ParseOrMerge self._MergeField(tokenizer, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 815, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 866, in _MergeScalarField value = tokenizer.ConsumeString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1229, in ConsumeString the_bytes = self.ConsumeByteString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1244, in ConsumeByteString the_list = [self._ConsumeSingleByteString()] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1271, in _ConsumeSingleByteString raise self.ParseError(str(e)) google.protobuf.text_format.ParseError: 5:21 : 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

====================================================================== ERROR: test_build_tf_record_input_reader_with_batch_size_two_and_masks (main.DatasetBuilderTest)

Traceback (most recent call last): File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1269, in _ConsumeSingleByteString result = text_encoding.CUnescape(text[1:-1]) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_encoding.py", line 105, in CUnescape .decode('unicode_escape') UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dataset_builder_test.py", line 196, in test_build_tf_record_input_reader_with_batch_size_two_and_masks text_format.Merge(input_reader_text_proto, input_reader_proto) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 525, in Merge descriptor_pool=descriptor_pool) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 579, in MergeLines return parser.MergeLines(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 612, in MergeLines self._ParseOrMerge(lines, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 627, in _ParseOrMerge self._MergeField(tokenizer, message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 815, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField merger(tokenizer, message, field) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 866, in _MergeScalarField value = tokenizer.ConsumeString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1229, in ConsumeString the_bytes = self.ConsumeByteString() File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1244, in ConsumeByteString the_list = [self._ConsumeSingleByteString()] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_format.py", line 1271, in _ConsumeSingleByteString raise self.ParseError(str(e)) google.protobuf.text_format.ParseError: 6:21 : 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape


Ran 6 tests in 0.380s

FAILED (errors=4)

PS D:\models\research\object_detection\data_decoders> python tf_example_decoder_test.py C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters 2018-03-05 23:32:53.845870: I C:\tf_jenkins\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 EEEEEEEEEEEEEEEEEE.

ERROR: testDecodeBoundingBox (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 183, in testDecodeBoundingBox 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeDefaultGroundtruthWeights (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 214, in testDecodeDefaultGroundtruthWeights 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeEmptyPngInstanceMasks (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 158, in testDecodeEmptyPngInstanceMasks 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeImageKeyAndFilename (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 86, in testDecodeImageKeyAndFilename 'image/key/sha256': self._BytesFeature('abc'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'abc' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeInstanceSegmentation (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 518, in testDecodeInstanceSegmentation 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeJpegImage (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 66, in testDecodeJpegImage 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectArea (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 385, in testDecodeObjectArea 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectDifficult (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 429, in testDecodeObjectDifficult 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectGroupOf (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 453, in testDecodeObjectGroupOf 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectIsCrowd (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 406, in testDecodeObjectIsCrowd 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectLabel (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 239, in testDecodeObjectLabel 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectLabelNoText (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 262, in testDecodeObjectLabelNoText 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectLabelUnrecognizedName (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 305, in testDecodeObjectLabelUnrecognizedName self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectLabelWithMapping (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 347, in testDecodeObjectLabelWithMapping self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodeObjectWeight (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 477, in testDecodeObjectWeight 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodePngImage (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 105, in testDecodePngImage 'image/format': self._BytesFeature('png'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'png' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testDecodePngInstanceMasks (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 135, in testDecodePngInstanceMasks 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)

====================================================================== ERROR: testInstancesNotAvailableByDefault (main.TfExampleDecoderTest)

Traceback (most recent call last): File "tf_example_decoder_test.py", line 569, in testInstancesNotAvailableByDefault 'image/format': self._BytesFeature('jpeg'), File "tf_example_decoder_test.py", line 58, in _BytesFeature return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\python_message.py", line 510, in init copy.extend(field_value) File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in extend new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\containers.py", line 275, in new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter] File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\internal\type_checkers.py", line 109, in CheckValue raise TypeError(message) TypeError: 'jpeg' has type <class 'str'>, but expected one of: ((<class 'bytes'>,),)


Ran 19 tests in 0.113s

FAILED (errors=18)

wanghuite avatar Mar 06 '18 00:03 wanghuite

File "C:\Users\42911\AppData\Local\Continuum\anaconda3\lib\site-packages\google\protobuf\text_encoding.py", line 105, in CUnescape .decode('unicode_escape') UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

Escape characters, i think. usually when this guy pops up i double the backslash

aldrin233 avatar Mar 06 '18 03:03 aldrin233

Hi There, We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

tensorflowbutler avatar Jan 29 '20 23:01 tensorflowbutler