Tool process_smc¶
Overview
Argument: estimator_config
Argument: output_dir
Argument: disable_log_file
Argument: visualize
Example
Overview¶
This tool takes calibrated camera parameters and RGB frames from a SenseMoCap file as input, generate multi-view keypoints2d, keypoints3d and SMPLData.
Argument: estimator_config¶
estimator_config
is the path to a MultiViewSinglePersonSMPLEstimator
config file. For more details, see docs for MultiViewSinglePersonSMPLEstimator
and the docstring in code.
Also, you can find our prepared config files at config/estimation/mview_sperson_smpl_estimator.py
.
Argument: output_dir¶
output_dir
is the path to the directory saving all possible output files, including multi-view keypoints2d, keypoints3d and SMPLData, log and visualization videos.
Argument: disable_log_file¶
By default, disable_log_file is False and a log file named {smc_file_name}_{time_str}.txt
will be written. Add --disable_log_file
makes it True and the tool will only print log to console.
Argument: frame_file¶
By default, frame_file is 'none'
frames in SMC will not be saved in file system, the tool fetches frames of one view
each time, loads them into memory and runs human perception. If the SMC is too long or your have a poor RAM,
frame_file='temp'
will help you save the frames as image files in output_dir, and remove the temporary files at the
end of this tool. If you need the frames for further usage, set frame_file='keep'
and the files won’t be removed.
Argument: visualize¶
By default, visualize is False. Add --visualize
makes it True and the tool will visualize keypoints3d with an orbit camera, overlay projected keypoints3d on some views, and overlay SMPL meshes on one view.
Example¶
Run the tool with visualization.
python tools/process_smc.py \
--estimator_config configs/humman_mocap/mview_sperson_smpl_estimator.py \
--smc_path xrmocap_data/humman/raw_smc/p000455_a000986.smc \
--output_dir xrmocap_data/humman/p000455_a000986_output \
--visualize