Harmony4D Dataset Preparation
November 19, 2025 ยท View on GitHub
Follow the steps below to prepare the Harmony4D Dataset for SAM-3D-Body Data.
-
Set the following environment variables to simplify directory references:
export HARMONY4D_DATA_DIR=/path/to/harmony4d/dataset export HARMONY4D_IMG_DIR=/path/to/harmony4d/undistorted/images -
Download ๐ Harmony4D Dataset and extract all the files to
$HARMONY4D_DATA_DIR, following the directory structure below.$HARMONY4D_DATA_DIR โโโ test โ โโโ 01_hugging โ โ โโโ 002_hugging โ โโโ 03_grappling2 โ โ โโโ 025_grappling2 โ โ โโโ ... โ โโโ ... โโโ train โโโ 01_hugging โ โโโ 001_hugging โโโ 02_grappling โ โโโ 001_grappling โ โโโ ... โโโ ... -
Run the following command to undistort the Harmony4D images and save the results to
$HARMONY4D_IMG_DIR.python scripts/harmony4d/undistort_harmony4d.py \ --src_dir $HARMONY4D_DATA_DIR \ --dst_dir $HARMONY4D_IMG_DIR -
$HARMONY4D_IMG_DIRshould the directory structure below.$HARMONY4D_IMG_DIR โโโ test โ โโโ 01_hugging โ โ โโโ 002_hugging โ โโโ 03_grappling2 โ โ โโโ 025_grappling2 โ โ โโโ ... โ โโโ ... โโโ train โโโ 01_hugging โ โโโ 001_hugging โโโ 02_grappling โ โโโ 001_grappling โ โโโ ... โโโ ...