From 1316d370fef71efda915673ec77d4e584ce1e4a5 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 21 Apr 2019 08:10:15 +0200 Subject: [PATCH] Add comments to explain why nms = None Explicit is better than implicit. --- src/tools/voc_eval_lib/model/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/voc_eval_lib/model/test.py b/src/tools/voc_eval_lib/model/test.py index 90a3d4b..4d4bf15 100644 --- a/src/tools/voc_eval_lib/model/test.py +++ b/src/tools/voc_eval_lib/model/test.py @@ -21,7 +21,8 @@ from utils.blob import im_list_to_blob from model.config import cfg, get_output_dir from model.bbox_transform import clip_boxes, bbox_transform_inv -# from model.nms_wrapper import nms +# from model.nms_wrapper import nms # need to compile cython nms before import nms +nms = None # not needed in pascal evaluation def _get_image_blob(im): """Converts an image into a network input. @@ -190,4 +191,3 @@ def test_net(sess, net, imdb, weights_filename, max_per_image=100, thresh=0.): print('Evaluating detections') imdb.evaluate_detections(all_boxes, output_dir) -