Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to load from checkpoint gives unicode error. #67

Open
PAK90 opened this issue Dec 14, 2016 · 2 comments
Open

Attempting to load from checkpoint gives unicode error. #67

PAK90 opened this issue Dec 14, 2016 · 2 comments

Comments

@PAK90
Copy link

PAK90 commented Dec 14, 2016

Traceback (most recent call last):
  File "train.py", line 114, in <module>
    main()
  File "train.py", line 48, in main
    train(args)
  File "train.py", line 66, in train
    saved_model_args = cPickle.load(f)
  File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 25: character maps to <undefined>

I'd stopped a run with ctrl+c and I assumed the checkpoint would work to restart it. Instead I get the above error. Running TF 0.12 on Windows 10 with CUDA 8 and cuDNN, Python v3.5.2.

@codeman38
Copy link
Contributor

Python 3 incompatibility issue, due to binary files wrongly being opened in text mode. The pull request above should fix it.

@codeman38
Copy link
Contributor

(Closed the above pull request because pull request #43, from back in July (!), does the same thing.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants