Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8937ae3

Browse files
committed
Bugfix: error with evaluation path
1 parent 8fff178 commit 8937ae3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utils/external/ssd_tensorflow/voc_eval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def do_python_eval(dataset_path, pred_path, use_07=True):
6464
continue
6565
cls_id = cls_pair[0]
6666
filename = os.path.join(pred_path, 'results_%d.txt' % cls_id)
67-
rec, prec, ap = voc_eval(filename, os.path.join(dataset_path, anno_files),
68-
os.path.join(dataset_path, all_images_file), cls_name, cache_path,
67+
rec, prec, ap = voc_eval(filename, anno_files,
68+
all_images_file, cls_name, cache_path,
6969
ovthresh=0.5, use_07_metric=use_07_metric)
7070
aps += [ap]
7171
print('AP for {} = {:.4f}'.format(cls_name, ap))

0 commit comments

Comments
 (0)