MPII Dataset Preparation

November 19, 2025 · View on GitHub

Follow the steps below to prepare the MPII Dataset for SAM-3D-Body Data.


  • Set the following environment variables to simplify directory references:

    export COCO_IMG_DIR=/path/to/coco/images
    
  • Download and extract the COCO2014 dataset.

    wget https://datasets.d2.mpi-inf.mpg.de/andriluka14cvpr/mpii_human_pose_v1.tar.gz
    tar zxvf mpii_human_pose_v1.tar.gz -C $MPII_IMG_DIR 
    rm mpii_human_pose_v1.tar.gz 
    
  • $COCO_IMG_DIR should follow the directory structure below.

    $MPII_IMG_DIR
    └── images