Download the HM3D dataset
mainTo use the HM3D dataset, you must first set your Matterport credentials and data directory as environment variables. Then, use habitat_sim utilities to download the 3D scans (scenes) and manually download/unzip the ObjectNav episodes into the correct directory structure under your DATA_DIR.
# Set environment variables
MATTERPORT_TOKEN_ID=<YOUR_ID>
MATTERPORT_TOKEN_SECRET=<YOUR_SECRET>
DATA_DIR=</path/to/vlfm/data>
HM3D_OBJECTNAV=https://dl.fbaipublicfiles.com/habitat/data/datasets/objectnav/hm3d/v1/objectnav_hm3d_v1.zip
# Download HM3D 3D scans
python -m habitat_sim.utils.datasets_download \
--username $MATTERPORT_TOKEN_ID --password $MATTERPORT_TOKEN_SECRET \
--uids hm3d_train_v0.2 \
--data-path $DATA_DIR &&
python -m habitat_sim.utils.datasets_download \
--username $MATTERPORT_TOKEN_ID --password $MATTERPORT_TOKEN_SECRET \
--uids hm3d_val_v0.2 \
--data-path $DATA_DIR &&
# Download and organize HM3D ObjectNav episodes
wget $HM3D_OBJECTNAV &&
unzip objectnav_hm3d_v1.zip &&
mkdir -p $DATA_DIR/datasets/objectnav/hm3d &&
mv objectnav_hm3d_v1 $DATA_DIR/datasets/objectnav/hm3d/v1 &&
rm objectnav_hm3d_v1.zip