This repository evaluates RoboSpatialBrain on the RoboSpatial-Home benchmark.
Contributors:
- Yuxiang Xie, Harbin Institute of Technology, Shenzhen
- Qi Lv, Harbin Institute of Technology, Shenzhen
- Jianming Xing, Harbin Institute of Technology, Shenzhen
- Zijian Hong, Harbin Institute of Technology, Shenzhen
- Xiang Deng, Harbin Institute of Technology, Shenzhen; Ruoyu Technology
- Weili Guan, Harbin Institute of Technology, Shenzhen
- Liqiang Nie, Harbin Institute of Technology, Shenzhen
Create and activate a dedicated environment:
conda create -n robospatial python=3.10 -y
conda activate robospatialInstall all dependencies:
pip install -r requirements.txtNote:
requirements.txtincludes--extra-index-url https://download.pytorch.org/whl/cu128so that PyTorch and torchvision are pulled from the CUDA 12.8 wheel index automatically. If your CUDA driver version differs, replacecu128with the appropriate suffix (e.g.cu118,cu121) inrequirements.txtbefore running the command above.
Flash Attention cannot be installed via requirements.txt because it must be compiled against your local CUDA toolkit. Install it separately after the steps above:
pip install flash-attn --no-build-isolationDownload the checkpoint from HuggingFace: https://huggingface.co/lbx511/RoboSpatialBrain
The weights consist of three sub-models plus an inference scripts directory. After cloning this repo, manually create a model/ directory and place the four downloaded directories inside it:
mkdir -p model
# then move/copy LM, VL-B, VL-F, scripts into model/The final layout should look like this:
RoboSpatial-Eval-Submit/
├── config.yaml
├── main.py
├── models.py
├── evaluation.py
├── download_benchmark.py
├── upload.py
├── requirements.txt
├── README.md
├── ADDING_MODELS.md
├── model/ ← create this directory manually
│ ├── LM/
│ ├── VL-B/
│ └── scripts/
└── results/
CUDA_VISIBLE_DEVICES=0 PYTHONUNBUFFERED=1 \
python -u main.py \
robospatialBrain_$(date +%Y%m%d_%H%M%S) \
--config config.yaml \
2>&1 | tee /tmp/eval_robospatialBrain.logResults are written to ./results/.
Each run produces the following files under results/:
results/
├── context_<tag>_results.json
├── compatibility_<tag>_results.json
├── configuration_<tag>_results.json
└── aggregate_robospatial_home_<tag>.json