From d0067e886d4b9e6f7337d30198eebdc123ca4b60 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 18 Apr 2019 10:13:10 +0200 Subject: [PATCH] Undefined name: opt.K --> self.opt.K --- src/lib/detectors/exdet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/detectors/exdet.py b/src/lib/detectors/exdet.py index 0bedac9..bcfae42 100755 --- a/src/lib/detectors/exdet.py +++ b/src/lib/detectors/exdet.py @@ -46,7 +46,7 @@ class ExdetDetector(BaseDetector): center_thresh=self.opt.center_thresh, aggr_weight=self.opt.aggr_weight) else: - dets = self.decode(t_heat, l_heat, b_heat, r_heat, c_heat, K=opt.K, + dets = self.decode(t_heat, l_heat, b_heat, r_heat, c_heat, K=self.opt.K, scores_thresh=self.opt.scores_thresh, center_thresh=self.opt.center_thresh, aggr_weight=self.opt.aggr_weight) @@ -129,4 +129,4 @@ class ExdetDetector(BaseDetector): for bbox in results[j]: if bbox[4] > self.opt.vis_thresh: debugger.add_coco_bbox(bbox[:4], j - 1, bbox[4], img_id='exdet') - debugger.show_all_imgs(pause=self.pause) \ No newline at end of file + debugger.show_all_imgs(pause=self.pause)