Skip to content

Commit 34da916

Browse files
No-fps test is no longer required
1 parent 5cedd76 commit 34da916

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

tests/workflows/unit_tests/core_steps/transformations/test_byte_track_v2.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -92,36 +92,6 @@ def test_byte_tracker() -> None:
9292
), "Expected the same 3 first objects in third frame"
9393

9494

95-
def test_byte_tracker_no_fps() -> None:
96-
# given
97-
frame1_detections = sv.Detections(
98-
xyxy=np.array(
99-
[[10, 10, 20, 20], [21, 10, 31, 20], [31, 10, 41, 20], [100, 100, 110, 110]]
100-
),
101-
confidence=np.array([0.9, 0.9, 0.9, 0.9]),
102-
class_id=np.array([1, 1, 1, 1]),
103-
)
104-
frame1_metadata = VideoMetadata(
105-
video_identifier="vid_1",
106-
frame_number=10,
107-
frame_timestamp=datetime.datetime.fromtimestamp(1726570875).astimezone(
108-
tz=datetime.timezone.utc
109-
),
110-
comes_from_video_file=True,
111-
)
112-
byte_tracker_block = ByteTrackerBlockV2()
113-
114-
# when
115-
with pytest.raises(
116-
ValueError,
117-
match="Malformed fps in VideoMetadata, ByteTrackerBlockV2 requires fps in order to initialize ByteTrack",
118-
):
119-
_ = byte_tracker_block.run(
120-
image=_wrap_with_workflow_image(frame1_metadata),
121-
detections=frame1_detections,
122-
)
123-
124-
12595
def test_byte_tracker_not_video_file() -> None:
12696
# given
12797
frame1_detections = sv.Detections(

0 commit comments

Comments
 (0)