Bläddra i källkod

Comment fix (#3058)

Co-authored-by: kepler62f <>
modifyDataloader
kepler62f GitHub 3 år sedan
förälder
incheckning
f2de1ad2aa
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      test.py

+ 2
- 2
test.py Visa fil

@@ -188,8 +188,8 @@ def test(data,

# Per target class
for cls in torch.unique(tcls_tensor):
ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) # prediction indices
pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) # target indices
ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) # target indices
pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) # prediction indices

# Search for detections
if pi.shape[0]:

Laddar…
Avbryt
Spara