@@ -170,11 +170,11 @@ def plot(frames: torch.Tensor, title : Optional[str] = None):
170170#
171171# Sometimes, we may not want to sample clips from an entire video. We may only
172172# be interested in clips that start within a smaller interval. In samplers, the
173- # ``sampling_range_start`` and ``sampling_range_end`` parmeter allow to control
174- # the sampling range: they define where we allow clips to *start*. There are two
173+ # ``sampling_range_start`` and ``sampling_range_end`` parmeters control the
174+ # sampling range: they define where we allow clips to *start*. There are two
175175# important things to keep in mind:
176176#
177- # - ``sampling_range_end`` is an open upper-bound: clips may only start within
177+ # - ``sampling_range_end`` is an * open* upper-bound: clips may only start within
178178# [sampling_range_start, sampling_range_end).
179179# - Because these parameter define where a clip can start, clips may contain
180180# frames *after* ``sampling_range_end``!
@@ -238,4 +238,10 @@ def plot(frames: torch.Tensor, title : Optional[str] = None):
238238 policy = "wrap" ,
239239)
240240clips .pts_seconds
241+
241242# %%
243+ # By default, the value of ``sampling_range_end`` is automatically set such that
244+ # the sampler *doesn't* try to sample frames beyond the end of the video: the
245+ # default value ensures that clips start early enough before the end. This means
246+ # that by default, the policy parameter rarely comes into action, and most users
247+ # probably don't need to worry too much about it.
0 commit comments