mmcv.video.sparse_flow_from_bytes¶
- mmcv.video.sparse_flow_from_bytes(content: bytes) → Tuple[numpy.ndarray, numpy.ndarray][源代码]¶
Read the optical flow in KITTI datasets from bytes.
This function is modified from RAFT load the KITTI datasets.
- 参数
content (bytes) – Optical flow bytes got from files or other streams.
- 返回
Loaded optical flow with the shape (H, W, 2) and flow valid mask with the shape (H, W).
- 返回类型
Tuple(ndarray, ndarray)