请访问官网(https://bringmeaspoon.org/)获取最近的更新和 Demo。
这是早期发布的开发代码,官方可能会做一些重大的改变,尤其是考虑与 ParlAI 和 OpenAI Gym 整合之后。
Matterport3DSimulator 和 Room-to-Room (R2R) 导航数据集在下述的论文中有详细描述:
https://arxiv.org/abs/1711.07280
如果你要使用模拟器或者数据集,请引用以下论文:
@article{mattersim,
title={{Vision-and-Language Navigation}: Interpreting visually-grounded navigation instructions in real environments},
author={Peter Anderson and Qi Wu and Damien Teney and Jake Bruce and Mark Johnson and Niko S{\"u}nderhauf and Ian Reid and Stephen Gould and Anton van den Hengel},
journal={arXiv preprint arXiv:1711.07280},
year={2017}
}
有 C++11 支持的 C++ 编译器是必要的,另外,Matterport3DSimulator 有以下的依赖关系:
sudo apt-get install libopencv-dev python-opencv freeglut3 freeglut3-dev libglm-dev libjsoncpp-dev doxygen libosmesa6-dev libosmesa6
Clone Repo
Clone Matterport3DSimulator 库:
# Make sure to clone with --recursive
git clone --recursive https://github.com/peteanderson80/Matterport3DSimulator.git
cd Matterport3DSimulator
git submodule update --init --recursive
下载数据集
要使用 Matterport3DSimulator,必须先下载 Matterport3D 数据集(https://niessner.github.io/Matterport/),或者下载预先计算的 ResNet 图像特征并使用离散化的视点。
编译
用 Cmake 来构建 OpenGL
mkdir build && cd build
cmake ..
make
cd ../
mkdir build && cd build
cmake -DOSMESA_RENDERING=ON ..
make
cd ../
要为doxygen目录中的 C ++ 类构建 html 文档,请运行以下命令并导航到 doxygen / html / index.html:
doxygen
Demo
这些是非常简单的 Demo 演示,旨在说明模拟器如何在 Python 和 C++ 中使用
Python demo:
python src/driver/driver.py
C++ demo:
build/mattersim_main
运行测试
build/tests
如果你没有安装 Matterport3D 数据集,则需要跳过渲染测试:
build/tests exclude:[Rendering]
其他的配置和用法,请参考 Catch 文档:https://github.com/philsquared/Catch
目前模拟器只支持一项任务:Room-to-Room (R2R) 导航任务
请参阅具体的指导来设置和运行此任务:
https://github.com/peteanderson80/Matterport3DSimulator/blob/master/tasks/R2R/README.md
详细信息请访问 Matterport3DSimulator 官方 Github 页面:
https://github.com/peteanderson80/Matterport3DSimulator。