minji-o-j / YOLOv2

💻 YOLOv2 pytorch
MIT License
0 stars 0 forks source link

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

Closed minji-o-j closed 4 years ago

minji-o-j commented 4 years ago

File "test.py", line 164, in test() File "test.py", line 161, in test val_imdb.evaluate_detections(all_boxes, output_dir=args.output_dir) File "/home/minji/pt2/yolov2.pytorch/dataset/pascal_voc.py", line 233, in evaluate_detections self._do_python_eval(output_dir) File "/home/minji/pt2/yolov2.pytorch/dataset/pascal_voc.py", line 211, in _do_python_eval use_07_metric=use_07_metric) File "/home/minji/pt2/yolov2.pytorch/dataset/voc_eval.py", line 129, in voc_eval recs = pickle.load(f, encoding='bytes') TypeError: load() got an unexpected keyword argument 'encoding'

minji-o-j commented 4 years ago

!python test.py --cuda true

change to> !python3 test.py --cuda true