From 07f15b68d3250bfca7a2e1e21381e1286de7ad85 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 17 Nov 2018 00:32:28 +0100 Subject: [PATCH] updates --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 418a53db..2712c943 100755 --- a/models.py +++ b/models.py @@ -174,7 +174,7 @@ class YOLOLayer(nn.Module): # lconf = k * BCEWithLogitsLoss(pred_conf[mask], mask[mask].float()) lconf = (k * 5) * BCEWithLogitsLoss(pred_conf, mask.float()) - lcls = (k / 5) * CrossEntropyLoss(pred_cls[mask], torch.argmax(tcls, 1)) + lcls = (k / 20) * CrossEntropyLoss(pred_cls[mask], torch.argmax(tcls, 1)) # lcls = k * 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])