Habitat-Matterport 3D Dataset (HM3D)
The Habitat-Matterport 3D Research Dataset is the largest-ever dataset of 3D indoor spaces. It consists of 1,000 high-resolution 3D scans (or digital twins) of building-scale residential, commercial, and civic spaces generated from real-world environments.
HM3D is free and available here for academic, non-commercial research. Researchers can use it with FAIR’s Habitat simulator to train embodied agents, such as home robots and AI assistants, at scale.
This repository contains the code and instructions to reproduce experiments from our NeurIPS 2021 paper. If you use the HM3D dataset or the experimental code in your research, please cite the HM3D paper.
@inproceedings{ramakrishnan2021hm3d,
title={Habitat-Matterport 3D Dataset ({HM}3D): 1000 Large-scale 3D Environments for Embodied {AI}},
author={Santhosh Kumar Ramakrishnan and Aaron Gokaslan and Erik Wijmans and Oleksandr Maksymets and Alexander Clegg and John M Turner and Eric Undersander and Wojciech Galuba and Andrew Westbury and Angel X Chang and Manolis Savva and Yili Zhao and Dhruv Batra},
booktitle={Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2)},
year={2021},
url={https://openreview.net/forum?id=-v4OuqNs5P}
}
Please check out our website for details on downloading and visualizing the HM3D dataset.
Installation instructions
We provide a common set of instructions to setup the environment to run all our experiments.
-
Clone the HM3D github repository and add it to
PYTHONPATH
.git clone https://github.com/facebookresearch/habitat-matterport3d-dataset.git cd habitat-matterport3d-dataset export PYTHONPATH=$PYTHONPATH:$PWD
-
Create conda environment and activate it.
conda create -n hm3d python=3.8.3 conda activate hm3d
-
Install habitat-sim using conda.
conda install habitat-sim headless -c conda-forge -c aihabitat
See habitat-sim's installation instructions for more details.
-
Install trimesh with soft dependencies.
pip install "trimesh[easy]==3.9.1"
-
Install remaining requirements from pip.
pip install -r requirements.txt
Downloading datasets
In our paper, we benchmarked HM3D against prior indoor scene datasets such as Gibson, MP3D, RoboThor, Replica, and ScanNet.
-
Download each dataset based on these instructions from habitat-sim. In the case of RoboThor, convert the raw scan assets to GLB using assimp.
assimp export
-
Once the datasets are download and processed, create environment variables pointing to the corresponding scene paths.
export GIBSON_ROOT=
export MP3D_ROOT= export ROBOTHOR_ROOT= export HM3D_ROOT= export REPLICA_ROOT= export SCANNET_ROOT=
Running experiments
We provide the code for reproducing the results from our paper in different directories.
scale_comparison
contains the code for comparing the scale of HM3D with other datasets (Tab. 1 in the paper).quality_comparison
contains the code for comparing the reconstruction completeness and visual fidelity of HM3D with other datasets (Fig. 4 and Tab. 5 in the paper).pointnav_comparison
contains the configs and instructions to train and evaluate PointNav agents on HM3D and other datasets (Tab. 2 and Fig. 7 in the paper).
We further provide README files within each directory with instructions for running the corresponding experiments.
Acknowledgements
We thank all the volunteers who contributed to the dataset curation effort: Harsh Agrawal, Sashank Gondala, Rishabh Jain, Shawn Jiang, Yash Kant, Noah Maestre, Yongsen Mao, Abhinav Moudgil, Sonia Raychaudhuri, Ayush Shrivastava, Andrew Szot, Joanne Truong, Madhawa Vidanapathirana, Joel Ye. We thank our collaborators at Matterport for their contributions to the dataset: Conway Chen, Victor Schwartz, Nicole Rogers, Sachal Dhillon, Raghu Munaswamy, Mark Anderson.
License
The code in this repository is MIT licensed. See the LICENSE file for details. The trained models are considered data derived from the correspondent scene datasets.
- Matterport3D based trained models are distributed with Matterport3D Terms of Use and under CC BY-NC-SA 3.0 US license.
- Gibson based trained models are distributed with Gibson Terms of Use and under CC BY-NC-SA 3.0 US license.
- Habitat-Matterport 3D based trained models are distributed with Matterport Terms of Use.