From cc0f6cac500990f776ae548da30776f371287597 Mon Sep 17 00:00:00 2001 From: "Ren, Jiwen" Date: Tue, 9 May 2017 09:14:43 -0400 Subject: [PATCH] fixed a minor pickle.dump error change from 'w' to 'wb'. --- lib/datasets/voc_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datasets/voc_eval.py b/lib/datasets/voc_eval.py index 0378c1ce..2bb9743a 100644 --- a/lib/datasets/voc_eval.py +++ b/lib/datasets/voc_eval.py @@ -117,7 +117,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