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'
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