edit in comments (#1417)
Co-authored-by: Priteshkumar Bharatbhai Gohil <pgohil@assystemtechnologies.com>
This commit is contained in:
parent
8de13f114d
commit
e0a5a6b411
4
test.py
4
test.py
@ -145,8 +145,8 @@ def test(cfg,
|
|||||||
|
|
||||||
# Per target class
|
# Per target class
|
||||||
for cls in torch.unique(tcls_tensor):
|
for cls in torch.unique(tcls_tensor):
|
||||||
ti = (cls == tcls_tensor).nonzero().view(-1) # prediction indices
|
ti = (cls == tcls_tensor).nonzero().view(-1) # target indices
|
||||||
pi = (cls == pred[:, 5]).nonzero().view(-1) # target indices
|
pi = (cls == pred[:, 5]).nonzero().view(-1) # prediction indices
|
||||||
|
|
||||||
# Search for detections
|
# Search for detections
|
||||||
if pi.shape[0]:
|
if pi.shape[0]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user