video_hand_reconstruction_mapper#
Use the WiLoR model for hand localization and reconstruction.
使用 WiLoR 模型进行手部定位与重建。
Type 算子类型: mapper
Tags 标签: gpu, video
🔧 Parameter Configuration 参数配置#
name 参数名 |
type 类型 |
default 默认值 |
desc 说明 |
|---|---|---|---|
|
<class ‘str’> |
|
The path to ‘wilor_final.ckpt’. |
|
<class ‘str’> |
|
The path to ‘model_config.yaml’ for the WiLOR model. |
|
<class ‘str’> |
|
The path to ‘detector.pt’ for the WiLOR model. |
|
<class ‘str’> |
|
The path to ‘MANO_RIGHT.pkl’. Users need to download this file from https://mano.is.tue.mpg.de/ and comply with the MANO license. |
|
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 ‘int’> |
|
Batch size for simultaneous hand inference. |
|
<class ‘str’> |
|
The field name to store the tags. It’s “hand_reconstruction_tags” in default. |
|
<class ‘str’> |
|
Output directory to save extracted frames. |
|
<class ‘bool’> |
|
Whether to save overlay images. |
|
<class ‘str’> |
|
The path for saving overlay images. |
|
<class ‘bool’> |
|
Whether to save images of the hand mesh. |
|
<class ‘str’> |
|
The path for saving images of the hand mesh. |
|
|
extra args |
|
|
|
extra args |
📊 Effect demonstration 效果演示#
test#
VideoHandReconstructionMapper(wilor_model_path='wilor_final.ckpt', wilor_model_config='model_config.yaml', detector_model_path='detector.pt', mano_right_path='path_to_mano_right_pkl', frame_num=1, duration=1, frame_dir=DATA_JUICER_ASSETS_CACHE, if_save_visualization=True, save_visualization_dir=DATA_JUICER_ASSETS_CACHE, if_save_mesh=True, save_mesh_dir=DATA_JUICER_ASSETS_CACHE)
📥 input data 输入数据#
📤 output data 输出数据#
test_mul_proc#
VideoHandReconstructionMapper(wilor_model_path='wilor_final.ckpt', wilor_model_config='model_config.yaml', detector_model_path='detector.pt', mano_right_path='path_to_mano_right_pkl', frame_num=1, duration=1, frame_dir=DATA_JUICER_ASSETS_CACHE, if_save_visualization=True, save_visualization_dir=DATA_JUICER_ASSETS_CACHE, if_save_mesh=True, save_mesh_dir=DATA_JUICER_ASSETS_CACHE)