From d5331be0a03bdf14375030d496c10c2981eefb03 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 29 Nov 2018 11:43:19 +0100 Subject: [PATCH] updates --- models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models.py b/models.py index 7f746442..25f01250 100755 --- a/models.py +++ b/models.py @@ -184,9 +184,9 @@ class YOLOLayer(nn.Module): # plt.hist(self.x) # lconf = k * BCEWithLogitsLoss(pred_conf[mask], mask[mask].float()) - lconf = (k * 10) * BCEWithLogitsLoss(pred_conf, mask.float()) + lconf = (k * 32) * BCEWithLogitsLoss(pred_conf, mask.float()) - lcls = (k / 10) * CrossEntropyLoss(pred_cls[mask], torch.argmax(tcls, 1)) + lcls = (k / 4) * CrossEntropyLoss(pred_cls[mask], torch.argmax(tcls, 1)) # lcls = (k * 10) * BCEWithLogitsLoss(pred_cls[mask], tcls.float()) else: lx, ly, lw, lh, lcls, lconf = FT([0]), FT([0]), FT([0]), FT([0]), FT([0]), FT([0])