kepler62f
kepler62f
commited on
Commit
•
f2de1ad
1
Parent(s):
3ef3a95
Comment fix (#3058)
Browse filesCo-authored-by: kepler62f <>
test.py
CHANGED
@@ -188,8 +188,8 @@ def test(data,
|
|
188 |
|
189 |
# Per target class
|
190 |
for cls in torch.unique(tcls_tensor):
|
191 |
-
ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) #
|
192 |
-
pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) #
|
193 |
|
194 |
# Search for detections
|
195 |
if pi.shape[0]:
|
|
|
188 |
|
189 |
# Per target class
|
190 |
for cls in torch.unique(tcls_tensor):
|
191 |
+
ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) # target indices
|
192 |
+
pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) # prediction indices
|
193 |
|
194 |
# Search for detections
|
195 |
if pi.shape[0]:
|