UnicodeDecodeError: 'ascii' codec can't decode byte 0x9b in position 1: ordinal not in range(128)
See original GitHub issueHello @KaiyangZhou , thank you for make this project. I try to running test on prid 2011 dataset using ResNet50m pretrained model you give, but got error
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0x9b in position 1: ordinal not in range(128)
I think this error appear because pretrained model resnet50m_xent_prid.pth.tar which can only open using Microsoft Windows OS (I don’t know is true or not), but when I type file resnet50m_xent_prid.pth.tar
got this message
resnet50m_xent_prid.pth.tar: 8086 relocatable (Microsoft)
How can I use that pretrained model on linux meanwhile pytorch can’t install on windows?
Thank you 😃
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to fix: "UnicodeDecodeError: 'ascii' codec can't decode ...
py", line 281, in convert source = unicode(source) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 1: ordinal not in range(128). --...
Read more >UnicodeDecodeError: 'ascii' codec can't decode byte
UnicodeDecodeError : 'ascii' codec can't decode byte 0xf0 in position 0: ordinal not in range(128) with open('example.txt', 'r', encoding='ascii') as f: ...
Read more >UnicodeDecodeError: 'ascii' codec can't decode byte - Intellipaat
py", line 281, in convert source = unicode(source) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 1: ordinal not in range( ...
Read more >'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in ...
UnicodeDecodeError : 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)" in the Duo Authentication Proxy logs during Active...
Read more >Converting Python 2 Pickles to Python 3 - Capsicum
... line 2, in <module> UnicodeDecodeError: 'ascii' codec can't decode byte 0x95 in position 0: ordinal not in range(128).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For Python 3, you have to edit torch/serialization.py file. Add this to line 469.
Now should be line 539 for pytorch 0.4.1.