video_clip_reassembly_mapper¶
Reassemble hand-action results from overlapping video clips.
When long videos are chopped into overlapping clips (e.g. 5 s with 2 s
overlap via VideoSplitByDurationMapper), each clip is processed
independently through the 3-D motion labelling pipeline. This operator
merges the per-clip results back into one unified result per original
video, including:
hand_action_tags— states, actions, valid_frame_ids, jointsvideo_camera_pose_tags—cam_c2warrayhand_reconstruction_hawor_tags— frame_ids converted to globalvideo_frames— per-clip frame path lists merged into one global listcamera_calibration_moge_tags— per-clip depth/intrinsics mergedclips— replaced with the original video path
Clip global offsets are determined automatically by pixel-matching
overlapping frames between consecutive clips, rather than assuming an
ideal step size. This handles ffmpeg keyframe-alignment drift that
causes actual clip boundaries to differ from the nominal
(split_duration - overlap_duration) * fps calculation.
Reference (paper §3.1): "To enhance efficiency, we chop long videos into overlapping 20-second clips in this stage and recompose their results."
从重叠的视频片段中重组手部动作结果。
当长视频被切分为重叠的片段时(例如通过 VideoSplitByDurationMapper 切分为 5 秒片段,重叠 2 秒),每个片段会通过 3D 动作标注管线进行独立处理。此算子将各片段的结果合并回原始视频的单一统一结果中,包括:
hand_action_tags— states、actions、valid_frame_ids、jointsvideo_camera_pose_tags—cam_c2w数组hand_reconstruction_hawor_tags— 转换为全局的 frame_idsvideo_frames— 各片段的帧路径列表合并为一个全局列表camera_calibration_moge_tags— 各片段的深度/内参合并clips— 替换为原始视频路径
片段的全局偏移量通过像素匹配连续片段之间的重叠帧来自动确定,而不是假设理想的步长。这可以处理 ffmpeg 关键帧对齐漂移问题,该问题会导致实际片段边界与标称的 (split_duration - overlap_duration) * fps 计算结果存在差异。
参考文献(论文 §3.1): “为提高效率,我们在此阶段将长视频切分为重叠的 20 秒片段,并重组其结果。”
Type 算子类型: mapper
Tags 标签: cpu, video
🔧 Parameter Configuration 参数配置¶
name 参数名 |
type 类型 |
default 默认值 |
desc 说明 |
|---|---|---|---|
|
<class 'str'> |
|
|
|
<class 'str'> |
|
|
|
<class 'str'> |
|
|
|
<class 'str'> |
|
|
|
<class 'str'> |
|
|
|
<class 'str'> |
|
|
|
<class 'str'> |
|
|
|
<class 'float'> |
|
|
|
<class 'float'> |
|
|
|
<class 'float'> |
|
|
|
`` |
||
|
`` |