Closed Sledge- closed 5 years ago
Hey there,
I had the same issue, it is issue in Keras on Windows 10. Here is the solution:
I hope this solves your problem. :-)
Thanks for the advice. I'm going to try it. Just a few things:
My file contains this line instead: code = marshal.dumps(func.__code__).decode('raw_unicode_escape')
Also, doesn't the backslash escape the terminating quote? I would have to use this instead: code = marshal.dumps(func.__code__).replace(b'\\',b'/').decode('raw_unicode_escape')
I didn't realize that github used _ and \ for formatting. What you typed is correct but the way it renders in the comment makes it look wrong.
When I took that into account and changed the file, it worked. Good find!
Nice! I am glad that I was able to help you.
This is really great work first of all.
I do see a bug when I get to train_model(...) step.
I'm using Windows 10, my Keras version is 2.0.5, and Tensorflow version is 1.2.1.
The stack trace is as follows:
It's possible that this is a bug in Keras as per this issue:
https://stackoverflow.com/questions/41847376/keras-model-to-json-error-rawunicodeescape-codec-cant-decode-bytes-in-posi https://github.com/keras-team/keras/pull/8572
I'm not sure what to try next. Anyone else seeing this issue?