https://github.com/affinelayer/pix2pix-tensorflow/tree/ master/tools
Beim Kompilieren von "process.py" auf der obigen Seite ist ein Fehler aufgetreten.
python tools/process.py --input_dir data - - operation resize --outp ut_dir data2/resize data/0.jpg -> data2/resize/0.png
Traceback (letzter Aufruf zuletzt):
Datei "tools/process.py", Zeile 235, in < ;modul> main() Datei "tools/process.py", Zeile 167, in main src = load(src_path) Datei "tools/process.py", Zeile 113, in load content = open(path).read() File"/ home/user/anaconda3/envs/tensorflow_2/lib/python3.5/codecs.py“, Zeile 321, in decode (Ergebnis, verbraucht) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: „utf-8 "Codec kann Byte 0xff an Position 0 nicht decodieren: ungültiges Startbyte
Was ist die Ursache des Fehlers? Pythons Version ist 3.5.2.