Skip to content

Repositoray provides the PhysPT demo code for estimating human dynamics from a monocular video.

License

Notifications You must be signed in to change notification settings

zhangy76/PhysPT

Repository files navigation

PhysPT: Physics-aware Pretrained Transformer for Estimating Human Dynamics from Monocular Videos

Yufei Zhang, Jeffrey O. Kephart, Zijun Cui, Qiang Ji
CVPR2024, arXiv

This repositoray provides the PhysPT demo code for estimating human dynamics from a monocular video.

Environment Setup

conda create -n physpt python=3.7
conda activate physpt
pip install -r requirements.txt

Model and Data Download

Please download the required data and trained model assets and directly overwrite the ./assets folder in the current directory. (please also download the checkpoint CLIFF and put it under ./models/cliff_hr48 used for generating kinematics-based motion estimates)

Evaluation on a Video

1. Estimate per-frame 3D Body Pose and Shape (CLIFF)

python video_preprocessing.py --vid_path './demo/jumpingjacks'

2. Generate Improved 3D Motion Estimates and Infer Forces

python video_inference.py --vid_processed_path './demo/jumpingjacks_CLIFF.json'

3. Visualize the Motion and Forces

python vis_motion_force_withvideo.py --vid_output_path './demo/jumpingjacks_output.npz'

Citation

If you find our work useful, please consider citing the paper:

@InProceedings{Zhang_2024_CVPR,
    author    = {Zhang, Yufei and Kephart, Jeffrey O. and Cui, Zijun and Ji, Qiang},
    title     = {PhysPT: Physics-aware Pretrained Transformer for Estimating Human Dynamics from Monocular Videos},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2024},
    pages     = {2305-2317}
}

If you have questions or encouter any issues when running the code, feel free to open an issue or directly contact me via: [email protected].

References

The SMPL model data is downloaded from SMPL-X model. The adaptation of the CLIFF model is based on CLIFF. We thank them for generously sharing their outstanding work.

About

Repositoray provides the PhysPT demo code for estimating human dynamics from a monocular video.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages