jwyang / fpn.pytorch

Pytorch implementation of Feature Pyramid Network (FPN) for Object Detection
MIT License
955 stars 224 forks source link

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

Open wddwzwhhxx opened 5 years ago

wddwzwhhxx commented 5 years ago

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