The code has been tested with Python 3.10.8, CUDA 12.1.
We use adjusted versions of habitat-sim and habitat-lab as specified below.
Install habitat-sim:
git clone https://github.com/facebookresearch/habitat-sim.git
cd habitat-sim; git checkout tags/challenge-2022;
pip install -r requirements.txt;
python setup.py install --headless
git clone https://github.com/facebookresearch/habitat-lab.git
cd habitat-lab; git checkout tags/challenge-2022;
pip install -e .
Back to the current repo, and replace the habitat folder in habitat-lab repo for the multi-robot setting:
mv -r multi-robot-setting/habitat enter-your-path/habitat-lab
Install pytorch according to your system configuration. The code is tested on torch v2.0.1, torchvision 0.15.2.
Install detectron2 according to your system configuration.
Download HM3D_v0.2 and MP3D datasets using the download utility and instructions.
Download the segmentation model in RedNet/model path.
Follow the README to install YOLOv10.
We recommend recreating an environment to install VLM.
git clone https://github.com/THUDM/CogVLM2.git
cd basic_demo
pip install -r requirements.txt
cd enter-your-path-of-MCoCoNav
mv VLM/glm4_openai_api_demo_1gpu.py CogVLM2/basic_demo/
Install other requirements:
cd MCoCoNav/
pip install -r requirements.txt
The code requires the datasets in a data folder in the following format (same as habitat-lab):
MCoCoNav/
data/
scene_datasets/
hm3d_v0.2/
val/
hm3d_annotated_basis.scene_dataset_config.json
hm3d_annotated_val_basis.scene_dataset_config.json
mp3d/
matterport_category_mappings.tsv
object_norm_inv_perplexity.npy
versioned_data
objectgoal_hm3d_v2/
train/
val/
val_mini/
python glm4_openai_api_demo_1gpu.py
python main.py -d ./VLM_EXP/multi_hm3d_2-robot/ --num_agents 2 --task_config tasks/multi_objectnav_hm3d.yaml
$ claude mcp add MCoCoNav \
-- python -m otcore.mcp_server <graph>