albumentations.augmentations.other.temporal_functional


Frame selection for temporal image and mask sequences.

uniform_temporal_subsamplefunction

uniform_temporal_subsample(
    frames: ArrayType,
    frame_indices: Sequence[int] | np.ndarray
)

Select frames along the leading axis without changing their spatial layout.

Parameters

NameTypeDefaultDescription
framesArrayType--
frame_indices
One of:
  • Sequence[int]
  • np.ndarray
--

select_annotation_rowsfunction

select_annotation_rows(
    frame_ids: np.ndarray,
    frame_indices: Sequence[int] | np.ndarray,
    instance_ids: np.ndarray | None,
    instance_frame_ids: np.ndarray | None
)

Parameters

NameTypeDefaultDescription
frame_idsnp.ndarray--
frame_indices
One of:
  • Sequence[int]
  • np.ndarray
--
instance_ids
One of:
  • np.ndarray
  • None
--
instance_frame_ids
One of:
  • np.ndarray
  • None
--