AutoAnchor bug fix #72

This commit is contained in:
Glenn Jocher committed 2020-06-16 00:53:34 -07:00
1 parent 8fa3724072
commit 8b26e89006
2 files changed
+7 -6

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@ import torch.distributed as dist
import torch.nn.functional as F
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
import yaml
from torch.utils.tensorboard import SummaryWriter
import test # import test.py to get mAP after each epoch
@@ -200,7 +199,7 @@ def train(hyp):
tb_writer.add_histogram('classes', c, 0)
# Check anchors
check_best_possible_recall(dataset, anchors=model.model[-1].anchor_grid, thr=hyp['anchor_t'])
check_best_possible_recall(dataset, anchors=model.model[-1].anchor_grid, thr=hyp['anchor_t'], imgsz=imgsz)
# Exponential moving average
ema = torch_utils.ModelEMA(model)