- Clone this repo.
- Install environments.
# install requirements
pip install -r requirements.txt
# install diff-gaussian-rasterization-depth-alpha
cd gaussians/diff_gaussian_rasterization_depth_alpha
python setup.py install
cd ../..
# install styleunet
cd network/styleunet
python setup.py install
cd ../..
# install pytorch3d
git clone https://github.com/facebookresearch/pytorch3d.git
cd pytorch3d && pip install -e .
- Download SMPL-X model, and place pkl files to
./smpl_files/smplx. - Download Lpips-weight and place pth files to
.network/lpips/weights/v0.1
We have experimented with 4D-Dress and ActorsHQ datasets Following GEN_DATA.md
Note for ActorsHQ dataset: 1. SMPL-X Registration. We used the smplx registration offered here by Animatable Gaussians
Take the subject 00134 from 4D-Dress as an example: 0. Prepare the training dataset using the instruction from the previous step
- Download its checkpoint or start from scratch
- Set the corresponding data_dir and net_ckpt_dir in the train section in ./configs/4d_dress/avatar.yaml
- Run:
python main_avatar.py -c configs/4d_dress/avatar.yaml --mode=train
Take the subject 00134 from 4D-Dress as an example: 0. Download the checkpoint for the subject
- Prepare the testing dataset according to GEN_DATA.md
- Set the corresponding data_dir and prev_ckpt in the test section in ./configs/4d_dress/avatar.yaml
- Run:
python main_avatar.py -c configs/4d_dress/avatar.yaml --mode=test
Some example test animation examples are provided under assets folder, e.g. 156_test.mp4 and 185_ours.mp4
Take the subject 00134 and 00140 from 4D-Dress as an example
We provided a script generate_pos_script.py for generating the exchange dataset for 4D-Dress subjects:
0. Update the macros in generate_pos_script.py
- Run
generate_pos_script.pyfor the target combination - Run:
python main_avatar.py -c configs/4d_dress/exchange.yaml --mode=exchange_cloth
Some example exchange examples are provided under assets folder, e.g. 185_134_full.mp4 and 127_134_outer.mp4
For other combinations please follow the format in the configs/4d_dress/exchange.yaml configuration files
We provide evaluation metrics in eval/eval_metrics.py.
- Generate the testing pose images
- Then update the data_dir macros in eval/eval_metrics.py.
- Run
python eval/eval_metrics.py
Our code is based on the following repos:
- 4D-Dress:
- 00140: https://drive.google.com/file/d/1jIrfcN5cp6uzLfVRsYdzSpTqbfeB4Ovj/view?usp=sharing
- 00134: https://drive.google.com/file/d/1jIrfcN5cp6uzLfVRsYdzSpTqbfeB4Ovj/view?usp=sharing
- 00154: https://drive.google.com/file/d/1jIrfcN5cp6uzLfVRsYdzSpTqbfeB4Ovj/view?usp=sharing
- 00163: https://drive.google.com/drive/folders/1B_KPSJhX6Q8XmD1gAxEq9m8UeSGCwXQD?usp=sharing
