Data Generation and Augmentation
February 6, 2025 ยท View on GitHub
This folder contains tools to generate diverse scene-aware or object-aware human motion data using existing datasets.
Locomotion in 3D-FRONT Scene
Data Sources
HumanML3D Dataset
- Follow instructions in HumanML3D
- Copy the dataset to our repository:
cp -r ../HumanML3D/HumanML3D ./dataset/HumanML3D - Set
$HUMANML_3D_ROOTto the HumanML3D dataset folder
AMASS Dataset
- Download from AMASS
- Set
$AMASS_DATAto the dataset folder
3D-FRONT Data
- Download from 3D-FRONT
- Set
$threeDFront_rootto the dataset folder. - Get the bird-view floor plan and object mask for each scene, you can refer to this scripts.
Fitting Scripts
- Fitting script:
data_generation/locomotion/align_motion_amass.py
Human-Object Interaction
Based on Summon, we predict contact areas for each motion frame and fit objects of corresponding categories.
Data Sources
- SAMP dataset: Download from SAMP and set
$DATA_ROOT/SAMP - 3D-FUTURE dataset:
- Download from 3D-FUTURE
- Set
$DATA_ROOT/3D-FUTURE-model - We use
raw_model.objfor each subject
Fitting Scripts
- Fit objects to predicted contact areas:
data_generation/interaction/summon/fit_best_obj.py - Calculate transform matrix and merge into
.pkl:data_generation/interaction/summon/sort_out_result.py - Visualization:
data_generation/interaction/summon/vis_fitting_results.py