when I ran:
python pred.py --img_dir test --model face_model.pkl
got error:
Traceback (most recent call last):
File "pred.py", line 103, in
main()
File "pred.py", line 81, in main
clf, labels = pickle.load(f)
TypeError: a bytes-like object is required, not 'str'
I tried pickle loading using other encoding option and also tried open file with "rb", but no good result.
Could you please tell me how to solve it? is it a version problem?
OS: ubuntu 16.04
python: 3.5
when I ran:
python pred.py --img_dir test --model face_model.pkl
got error:
Traceback (most recent call last):
File "pred.py", line 103, in
main()
File "pred.py", line 81, in main
clf, labels = pickle.load(f)
TypeError: a bytes-like object is required, not 'str'
I tried pickle loading using other encoding option and also tried open file with "rb", but no good result.
Could you please tell me how to solve it? is it a version problem?
OS: ubuntu 16.04
python: 3.5