From 448a8f0f4bffdc6f80bbf1645d90fb6422c5f47c Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 1 Dec 2018 12:09:40 +0100 Subject: [PATCH] updates --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index d2c263f2..d842b436 100755 --- a/models.py +++ b/models.py @@ -184,7 +184,7 @@ class YOLOLayer(nn.Module): # plt.hist(self.x) # lconf = k * BCEWithLogitsLoss(pred_conf[mask], mask[mask].float()) - lconf = (k * 64) * BCEWithLogitsLoss(pred_conf, mask.float()) + lconf = (k * 16) * BCEWithLogitsLoss(pred_conf, mask.float()) lcls = (k / 4) * CrossEntropyLoss(pred_cls[mask], torch.argmax(tcls, 1)) # lcls = (k * 10) * BCEWithLogitsLoss(pred_cls[mask], tcls.float())