updates
This commit is contained in:
parent
3b134e3a84
commit
0bed0a9a0e
4
test.py
4
test.py
|
@ -113,8 +113,8 @@ def test(
|
||||||
|
|
||||||
# target boxes
|
# target boxes
|
||||||
tbox = xywh2xyxy(labels[:, 1:5])
|
tbox = xywh2xyxy(labels[:, 1:5])
|
||||||
tbox[[0, 2]] *= width
|
tbox[:, [0, 2]] *= width
|
||||||
tbox[[1, 3]] *= height
|
tbox[:, [1, 3]] *= height
|
||||||
|
|
||||||
# Search for correct predictions
|
# Search for correct predictions
|
||||||
for i, (*pbox, pconf, pcls_conf, pcls) in enumerate(pred):
|
for i, (*pbox, pconf, pcls_conf, pcls) in enumerate(pred):
|
||||||
|
|
Loading…
Reference in New Issue