Skip to content

Commit

Permalink
update test for strongsort
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel.brostrom committed Aug 7, 2023
1 parent c6bbf64 commit 12019c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_python.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Mikel Broström 🔥 Yolo Tracking 🧾 AGPL-3.0 license

# pytest tests/test_python.py

from pathlib import Path
Expand Down Expand Up @@ -192,15 +194,13 @@ def test_strongsort_output():
half=False,
per_class=False
)
tracker.n_init = 2
tracker.n_init = 1
rgb = np.random.randint(255, size=(640, 640, 3), dtype=np.uint8)
det = np.array([[144, 212, 578, 480, 0.82, 0],
[425, 281, 576, 472, 0.56, 65]])
output = tracker.update(det, rgb)
assert output.size == 0
output = tracker.update(det, rgb)
assert output.size == 0
output = tracker.update(det, rgb)
assert output.shape == (2, 7) # two inputs should give two outputs
output = tracker.update(det, rgb)
assert output.shape == (2, 7) # two inputs should give two outputs
Expand Down

0 comments on commit 12019c1

Please sign in to comment.