updates
This commit is contained in:
parent
bec94be01a
commit
959c67b4ed
|
@ -273,9 +273,9 @@ class Darknet(nn.Module):
|
||||||
self.losses['TP'] = metrics[0].sum()
|
self.losses['TP'] = metrics[0].sum()
|
||||||
self.losses['FP'] = metrics[1].sum()
|
self.losses['FP'] = metrics[1].sum()
|
||||||
self.losses['FN'] = metrics[2].sum()
|
self.losses['FN'] = metrics[2].sum()
|
||||||
self.losses['TC'] = 0
|
|
||||||
self.losses['metrics'] = metrics
|
self.losses['metrics'] = metrics
|
||||||
|
|
||||||
|
self.losses['TC'] = 0
|
||||||
return sum(output) if is_training else torch.cat(output, 1)
|
return sum(output) if is_training else torch.cat(output, 1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue