Fehler UnicodeDecodeError: 'utf-8' Codec kann das Byte 0xff in Position 0 nicht dekodieren: ungültiges Startbyte

https://github.com/affinelayer/pix2pix-tensorflow/tree/master/tools

Fehler beim kompilieren "process.py" auf der oben genannten Website.

 python tools/process.py --input_dir data --            operation resize --outp
ut_dir data2/resize
data/0.jpg -> data2/resize/0.png

Traceback (most recent call last):

File "tools/process.py", line 235, in <module>
  main()
File "tools/process.py", line 167, in main
  src = load(src_path)
File "tools/process.py", line 113, in load
  contents = open(path).read()
      File"/home/user/anaconda3/envs/tensorflow_2/lib/python3.5/codecs.py", line 321, in decode
  (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode     byte 0xff in position 0: invalid start byte

Was ist die Ursache des Fehlers?
- Python-version ist 3.5.2.

InformationsquelleAutor der Frage pie | 2017-02-20

Schreibe einen Kommentar