Procházet zdrojové kódy

Comment fix (#3058)

Co-authored-by: kepler62f <>
modifyDataloader
kepler62f GitHub před 3 roky
rodič
revize
f2de1ad2aa
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      test.py

+ 2
- 2
test.py Zobrazit soubor

@@ -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]:

Načítá se…
Zrušit
Uložit