Skip to content
Advertisement

Tensorflow use : codec can’t decode byte XX in position XX : invalid continuation byte

i’m trying to train a model, I’m used the code that can be found here : https://medium.com/@martin.lees/image-recognition-with-machine-learning-in-python-and-tensorflow-b893cd9014d2

The thing is, even when I just copy / paste the code, I got a problem that I really don’t understand why I have it. I searched a lot on the tensorflow Github but found nothing to settle my problem.

Here is the traceback :

JavaScript

And here is the code :

JavaScript

Advertisement

Answer

The error was really stupid, because I’m on windows, this line

JavaScript

was the cause of the error, so I changed it with this :

JavaScript

And now this is working.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement