check_anchors bug fix

This commit is contained in:
Glenn Jocher committed 2020-06-16 10:36:35 -07:00
1 parent 05b8ee5ca4
commit 5a50491fa1
1 file changed
+1 -1
+1 -1
View File
@@ -199,7 +199,7 @@ def train(hyp):
tb_writer.add_histogram('classes', c, 0)
# Check anchors
check_anchors(dataset, model=model.model[-1].anchor_grid, thr=hyp['anchor_t'], imgsz=imgsz)
check_anchors(dataset, model=model, thr=hyp['anchor_t'], imgsz=imgsz)
# Exponential moving average
ema = torch_utils.ModelEMA(model)