From e9ca11b3deee09492b8a8ce48a34a978d3a24c2d Mon Sep 17 00:00:00 2001 From: = <=> Date: Sat, 8 Feb 2020 14:10:15 +0700 Subject: [PATCH] Change the anchor number --- yolo3/model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yolo3/model.py b/yolo3/model.py index 13b5c7693..d97492389 100644 --- a/yolo3/model.py +++ b/yolo3/model.py @@ -193,7 +193,7 @@ def yolo_eval(yolo_outputs, iou_threshold=.5): """Evaluate YOLO model on given input and return filtered boxes.""" num_layers = len(yolo_outputs) - anchor_mask = [[6,7,8], [3,4,5], [0,1,2]] if num_layers==3 else [[3,4,5], [1,2,3]] # default setting + anchor_mask = [[6,7,8], [3,4,5], [0,1,2]] if num_layers==3 else [[3,4,5], [0,1,2]] # change anchor number input_shape = K.shape(yolo_outputs[0])[1:3] * 32 boxes = [] box_scores = [] @@ -247,7 +247,7 @@ def preprocess_true_boxes(true_boxes, input_shape, anchors, num_classes): ''' assert (true_boxes[..., 4]