[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
744906098a
commit
920079230e
|
@ -162,9 +162,9 @@ def decode_video_frames_torchcodec(
|
||||||
log_loaded_timestamps: bool = False,
|
log_loaded_timestamps: bool = False,
|
||||||
) -> torch.Tensor:
|
) -> torch.Tensor:
|
||||||
"""Loads frames associated with the requested timestamps of a video using torchcodec.
|
"""Loads frames associated with the requested timestamps of a video using torchcodec.
|
||||||
|
|
||||||
Note: Setting device="cuda" outside the main process, e.g. in data loader workers, will lead to CUDA initialization errors.
|
Note: Setting device="cuda" outside the main process, e.g. in data loader workers, will lead to CUDA initialization errors.
|
||||||
|
|
||||||
Note: Video benefits from inter-frame compression. Instead of storing every frame individually,
|
Note: Video benefits from inter-frame compression. Instead of storing every frame individually,
|
||||||
the encoder stores a reference frame (or a key frame) and subsequent frames as differences relative to
|
the encoder stores a reference frame (or a key frame) and subsequent frames as differences relative to
|
||||||
that key frame. As a consequence, to access a requested frame, we need to load the preceding key frame,
|
that key frame. As a consequence, to access a requested frame, we need to load the preceding key frame,
|
||||||
|
|
Loading…
Reference in New Issue