Traceback (most recent call last):


 "/home/timberners/anaconda3/envs/tensorflow/lib/python3.5/threading.py", line 914, in _bootstrap_inner

self.run()


 "/home/timberners/anaconda3/envs/tensorflow/lib/python3.5/threading.py", line 862, in run

self._target(*self._args, **self._kwargs)


 "/media/timberners/magicae/models/im2txt/bazel-bin/im2txt/download_and_preprocess_mscoco.runfiles/im2txt/im2txt/data/build_mscoco_data.py", line 281, in _process_image_files

sequence_example = _to_sequence_example(image, decoder, vocab)


 "/media/timberners/magicae/models/im2txt/bazel-bin/im2txt/download_and_preprocess_mscoco.runfiles/im2txt/im2txt/data/build_mscoco_data.py", line 227, in _to_sequence_example

"image/data": _bytes_feature(encoded_image),


 "/media/timberners/magicae/models/im2txt/bazel-bin/im2txt/download_and_preprocess_mscoco.runfiles/im2txt/im2txt/data/build_mscoco_data.py", line 192, in _bytes_feature

return tf.train.Feature(bytes_list=tf.train.BytesList(value=[str(value)]))
TypeError: 'b\'\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF\\x00\\x01\\x01\\x01\\x00H\\x00H\\x00\\x00\\xff\\xe2\\x0cTICC_ has type str, but expected one of: bytes

Traceback (most recent call last):


 "train.py", line 477, in <module>

train(hyp, opt, device, tb_writer)


 "train.py", line 217, in train

plot_labels(labels, save_dir=log_dir)


 "/media/lzs/de2ef254-eaa4-4486-b00b-ab367ed2a6d8/home/yolov5/utils/general.py", line 1161, in plot_labels

plt.savefig(Path(save_dir) / 'labels.png', dpi=200)


 "/home/lzs/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 697, in savefig

res = fig.savefig(*args, **kwargs)


 "/home/lzs/anaconda3/lib/python3.6/site-packages/matplotlib/figure.py", line 1814, in savefig

self.canvas.print_figure(fname, **kwargs)


 "/home/lzs/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 172, in print_figure

super(FigureCanvasQTAggBase, self).print_figure(*args, **kwargs)


 "/home/lzs/anaconda3/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2259, in print_figure

**kwargs)


 "/home/lzs/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_agg.py", line 526, in print_png

self.figure.dpi, metadata=metadata)
TypeError: Object does not appear to be a 8-bit string path or a Python file-like object
