Skip to content

Commit

Permalink
fix(pre_commit): 🎨 auto format pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Mar 30, 2024
1 parent c038029 commit 2428e6b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/tracker/test_bytetrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def test_update_with_tensors(

assert_strack_lists_equal(stracks, target_stracks)


TARGET_STRACKS = [
STrack(
tlwh=[det[0], det[1], det[2] - det[0], det[3] - det[1]],
Expand All @@ -276,9 +277,9 @@ def test_update_with_tensors(
track.frame_id = 1
track.track_id = i + 1


@pytest.mark.parametrize(
"tensors, target_stracks,"
" exception",
"tensors, target_stracks," " exception",
[
(
PREDICTIONS,
Expand All @@ -288,10 +289,8 @@ def test_update_with_tensors(
],
)
def test_tracker_reset(
tensors: np.ndarray,
target_stracks: List[STrack],
exception: Exception
):
tensors: np.ndarray, target_stracks: List[STrack], exception: Exception
):
byte_tracker = ByteTrack()
with exception:
for i in range(3):
Expand Down

0 comments on commit 2428e6b

Please sign in to comment.