Skip to content

unable to load model #3

@DLeeeeeee

Description

@DLeeeeeee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions