updates
This commit is contained in:
parent
bd649f241f
commit
35e445c5da
|
@ -184,7 +184,7 @@ class YOLOLayer(nn.Module):
|
||||||
# plt.hist(self.x)
|
# plt.hist(self.x)
|
||||||
|
|
||||||
# lconf = k * BCEWithLogitsLoss(pred_conf[mask], mask[mask].float())
|
# lconf = k * BCEWithLogitsLoss(pred_conf[mask], mask[mask].float())
|
||||||
lconf = (k * 32) * 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 / 4) * CrossEntropyLoss(pred_cls[mask], torch.argmax(tcls, 1))
|
||||||
# lcls = (k * 10) * BCEWithLogitsLoss(pred_cls[mask], tcls.float())
|
# lcls = (k * 10) * BCEWithLogitsLoss(pred_cls[mask], tcls.float())
|
||||||
|
|
Loading…
Reference in New Issue