From f05934f2ebdd64299de290e3f103fc8c671eb5ae Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 3 Dec 2018 01:36:03 +0100 Subject: [PATCH] updates --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index d842b436..d2c263f2 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 * 16) * BCEWithLogitsLoss(pred_conf, mask.float()) + lconf = (k * 64) * 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())