소스 검색

Comment fix (#3058)

Co-authored-by: kepler62f <>
modifyDataloader
kepler62f GitHub 3 년 전
부모
커밋
f2de1ad2aa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      test.py

+ 2
- 2
test.py 파일 보기

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

Loading…
취소
저장