From d56bfd94cfe8c4697ebca8829a2c18a637480a7d Mon Sep 17 00:00:00 2001 From: Xingyi Zhou Date: Mon, 22 Apr 2019 22:36:50 -0500 Subject: [PATCH] fix pascal data setup --- src/tools/voc_eval_lib/datasets/voc_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/voc_eval_lib/datasets/voc_eval.py b/src/tools/voc_eval_lib/datasets/voc_eval.py index 2fda402..5a49b43 100644 --- a/src/tools/voc_eval_lib/datasets/voc_eval.py +++ b/src/tools/voc_eval_lib/datasets/voc_eval.py @@ -119,7 +119,7 @@ def voc_eval(detpath, i + 1, len(imagenames))) # save print('Saving cached annotations to {:s}'.format(cachefile)) - with open(cachefile, 'w') as f: + with open(cachefile, 'wb') as f: pickle.dump(recs, f) else: # load