We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e9772 commit 46a0b5bCopy full SHA for 46a0b5b
src/torchcodec/samplers/_time_based.py
@@ -204,10 +204,8 @@ def _generic_time_based_sampler(
204
clip_start_seconds = torch.arange(
205
sampling_range_start,
206
sampling_range_end, # excluded
207
- seconds_between_clip_starts,
+ seconds_between_clip_starts - 1e-6,
208
)
209
- if clip_start_seconds[-1] >= sampling_range_end:
210
- clip_start_seconds = clip_start_seconds[:-1]
211
num_clips = len(clip_start_seconds)
212
213
all_clips_timestamps = _build_all_clips_timestamps(
0 commit comments