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

TypeError: load() got an unexpected keyword argument 'encoding' #42

Open
wddwzwhhxx opened this issue Apr 29, 2019 · 0 comments
Open

TypeError: load() got an unexpected keyword argument 'encoding' #42

wddwzwhhxx opened this issue Apr 29, 2019 · 0 comments

Comments

@wddwzwhhxx
Copy link

Traceback (most recent call last):
File "test_net.py", line 329, in
imdb.evaluate_detections(all_boxes, output_dir)
File "/home/wangzhaowei/pycharm/fpn.pytorch-master/lib/datasets/pascal_voc.py", line 349, in evaluate_detections
self._do_python_eval(output_dir)
File "/home/wangzhaowei/pycharm/fpn.pytorch-master/lib/datasets/pascal_voc.py", line 312, in _do_python_eval
use_07_metric=use_07_metric)
File "/home/wangzhaowei/pycharm/fpn.pytorch-master/lib/datasets/voc_eval.py", line 126, in voc_eval
recs = pickle.load(f, encoding='bytes')
TypeError: load() got an unexpected keyword argument 'encoding'

why it happen?
I use python2\torch0.4.0

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

No branches or pull requests

1 participant