()
| 4 | |
| 5 | |
| 6 | def test_time_sampling_basic(): |
| 7 | ts = TimeSampler(max_frames=4, frame_sample_mode="uniform_last_frame") |
| 8 | assert np.allclose(ts(2)[1], [0, 2/3, 4/3, 2]) |
| 9 | assert np.allclose(ts(2.1)[1], [0, 2.1/3, 2*2.1/3, 2.1]) |
| 10 | |
| 11 | |
| 12 | def test_time_sampling_max_1fps(): |
nothing calls this directly
no test coverage detected