updates
This commit is contained in:
parent
ba1b3d8fe5
commit
751e02de3e
4
test.py
4
test.py
|
@ -80,7 +80,9 @@ for batch_i, (imgs, targets) in enumerate(dataloader):
|
||||||
# If no annotations add number of detections as incorrect
|
# If no annotations add number of detections as incorrect
|
||||||
if annotations.size(0) == 0:
|
if annotations.size(0) == 0:
|
||||||
target_cls = []
|
target_cls = []
|
||||||
correct.extend([0 for _ in range(len(detections))])
|
#correct.extend([0 for _ in range(len(detections))])
|
||||||
|
mAPs.append(0)
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
target_cls = annotations[:, 0]
|
target_cls = annotations[:, 0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue