updates
This commit is contained in:
parent
966bc16d1a
commit
e04bb75ff1
|
@ -139,8 +139,8 @@ class YOLOLayer(nn.Module):
|
||||||
|
|
||||||
# Training
|
# Training
|
||||||
if targets is not None:
|
if targets is not None:
|
||||||
MSELoss = nn.MSELoss(size_average=True)
|
MSELoss = nn.MSELoss()
|
||||||
BCEWithLogitsLoss = nn.BCEWithLogitsLoss(size_average=True)
|
BCEWithLogitsLoss = nn.BCEWithLogitsLoss()
|
||||||
CrossEntropyLoss = nn.CrossEntropyLoss()
|
CrossEntropyLoss = nn.CrossEntropyLoss()
|
||||||
|
|
||||||
if requestPrecision:
|
if requestPrecision:
|
||||||
|
|
Loading…
Reference in New Issue