MCPcopy Index your code
hub / github.com/FrankZxShen/MCoCoNav

github.com/FrankZxShen/MCoCoNav @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,255 symbols 3,343 edges 103 files 372 documented · 30%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MCoCoNav

📝 TODO List

  • [ ] Release demo video
  • [ ] Improve repository information

Installation

The code has been tested with Python 3.10.8, CUDA 12.1.

1. Installing Dependencies

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
  • Install habitat-lab:
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.

2. Download HM3D_v0.2 and MP3D datasets

Habitat Matterport

Download HM3D_v0.2 and MP3D datasets using the download utility and instructions.

3. Download segmentation model

Download the segmentation model in RedNet/model path.

4. Install YOLOv10

Follow the README to install YOLOv10.

5. Install VLM

We recommend recreating an environment to install VLM.

  • Install CogVLM2:
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/

Setup

Install other requirements:

cd MCoCoNav/
pip install -r requirements.txt

Setting up datasets

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/

Evaluation

Start the VLM server:

python glm4_openai_api_demo_1gpu.py

Eval 2-robot on HM3D_v0.2:

python main.py -d ./VLM_EXP/multi_hm3d_2-robot/  --num_agents 2 --task_config tasks/multi_objectnav_hm3d.yaml

Core symbols most depended-on inside this repo

exists
called by 25
multi-robot-setting/habitat/tasks/rearrange/utils.py
get
called by 24
multi-robot-setting/habitat/core/simulator.py
get
called by 20
main.py
get_agent_state
called by 18
multi-robot-setting/habitat/core/simulator.py
update
called by 15
multi-robot-setting/habitat/tasks/rearrange/marker_info.py
get_observations
called by 14
multi-robot-setting/habitat/core/simulator.py
d240
called by 11
main.py
get_metric
called by 11
multi-robot-setting/habitat/core/embodied_task.py

Shape

Method 844
Class 227
Function 182
Route 2

Languages

Python100%

Modules by API surface

multi-robot-setting/habitat/tasks/nav/nav.py115 symbols
multi-robot-setting/habitat/tasks/rearrange/rearrange_sensors.py102 symbols
multi-robot-setting/habitat/core/simulator.py63 symbols
multi-robot-setting/habitat/sims/habitat_simulator/habitat_simulator.py47 symbols
multi-robot-setting/habitat/core/env.py40 symbols
multi-robot-setting/habitat/core/embodied_task.py37 symbols
multi-robot-setting/habitat/tasks/rearrange/actions.py35 symbols
multi-robot-setting/habitat/core/vector_env.py35 symbols
multi-robot-setting/habitat/tasks/rearrange/utils.py31 symbols
multi-robot-setting/habitat/core/dataset.py31 symbols
multi-robot-setting/habitat/tasks/eqa/eqa.py30 symbols
multi-robot-setting/habitat/datasets/rearrange/samplers.py29 symbols

For agents

$ claude mcp add MCoCoNav \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page