video_whole_body_pose_estimation_mapper#
Input a video containing people, and use the DWPose model to extract the body, hand, feet, and face keypoints of the human subjects in the video, i.e., 2D Whole-body Pose Estimation.
输入包含人物的视频,并使用 DWPose 模型提取视频中人体的躯干、手部、足部和面部关键点,即 2D 全身姿态估计。
Type 算子类型: mapper
Tags 标签: gpu, video
🔧 Parameter Configuration 参数配置#
name 参数名 |
type 类型 |
default 默认值 |
desc 说明 |
|---|---|---|---|
|
<class ‘str’> |
|
The path to ‘yolox_l.onnx’. |
|
<class ‘str’> |
|
The path to ‘dw-ll_ucoco_384.onnx’. |
|
typing.Annotated[int, Gt(gt=0)] |
|
The number of frames to be extracted uniformly from the video. If it’s 1, only the middle frame will be extracted. If it’s 2, only the first and the last frames will be extracted. If it’s larger than 2, in addition to the first and the last frames, other frames will be extracted uniformly within the video duration. If “duration” > 0, frame_num is the number of frames per segment. |
|
<class ‘float’> |
|
The duration of each segment in seconds. If 0, frames are extracted from the entire video. If duration > 0, the video is segmented into multiple segments based on duration, and frames are extracted from each segment. |
|
<class ‘str’> |
|
The field name to store the tags. It’s “pose_estimation_tags” in default. |
|
<class ‘str’> |
|
Output directory to save extracted frames. |
|
<class ‘bool’> |
|
Whether to save visualization results. |
|
<class ‘str’> |
|
The path for saving visualization results. |
|
|
extra args |
|
|
|
extra args |
📊 Effect demonstration 效果演示#
test#
VideoWholeBodyPoseEstimationMapper(onnx_det_model='yolox_l.onnx', onnx_pose_model='dw-ll_ucoco_384.onnx', frame_num=1, duration=1, tag_field_name=MetaKeys.pose_estimation_tags, frame_dir=DATA_JUICER_ASSETS_CACHE, if_save_visualization=True, save_visualization_dir=DATA_JUICER_ASSETS_CACHE)
📥 input data 输入数据#
📤 output data 输出数据#
test_mul_proc#
VideoWholeBodyPoseEstimationMapper(onnx_det_model='yolox_l.onnx', onnx_pose_model='dw-ll_ucoco_384.onnx', frame_num=1, duration=1, tag_field_name=MetaKeys.pose_estimation_tags, frame_dir=DATA_JUICER_ASSETS_CACHE, if_save_visualization=True, save_visualization_dir=DATA_JUICER_ASSETS_CACHE)