Views
No views yet


1git clone https://github.com/zhangzef/COOPER.git
2cd COOPER
3conda create -n cooper python=3.10 -y
4conda activate cooper
5pip install -r requirements.txt
6pip install flash_attn==2.5.8 --no-build-isolation
7pip intall -e ./transformers-4.54.0
8pip install -e ./trl1cd models
2# Download the pretrained BAGEL and its config files.
3huggingface-cli download --resume-download --local-dir-use-symlinks False ByteDance-Seed/BAGEL-7B-MoT --local-dir BAGEL-7B-MoT
4
5# Not Necessary
6# Download the COOPER-AMG ckpt(training with Auxiliary Modality Generation).
7huggingface-cli download --resume-download --local-dir-use-symlinks False Starrrrrry/COOPER-AMG --local-dir COOPER-AMG
8
9# Not Necessary
10# Download the COOPER ckpt if you want to inference with COOPER.
11huggingface-cli download --resume-download --local-dir-use-symlinks False Starrrrrry/COOPER --local-dir COOPER
12
13# Download the training data(without Hypersim).
14# If you want to train the COOPER-AMG, you need to download the Hypersim dataset first(https://github.com/apple/ml-hypersim).
15cd ..
16huggingface-cli download --resume-download --repo-type dataset Starrrrrry/COOPER_Train_Set --local-dir datasets
17cd datasets
18# merge the dataset with multiple threads(if you have pigz)(recommended)
19cat COOPER_Train_Set.tar.gz.part.* | pigz -d | tar xf -
20# OR merge the dataset with single thread(if you don't have pigz)
21cat COOPER_Train_Set.tar.gz.part.* | gzip -dc | tar xf -1# Training for Auxiliary Modality Generation from BAGEL.
2# Or you can download the COOPER-AMG directly.
3sh ./scripts/train_mix.sh
4
5# Training for interleaved reasoning SFT.
6sh ./scripts/train_reason_interleave_sft.sh
7
8# Training for interleaved reasoning GRPO.
9sh ./scripts/train_reason_interleave_grpo.sh1# You can edit the eval config in /VLMEvalKit/eval_cfg/bagel_with_judge.json.
2# Set your openai api key in eval_bagel_with_judge.sh and /VLMEvalKit/.env first.
3cd VLMEvalKit
4sh eval_bagel_with_judge.sh
./assests folder.

1@article{zhang2025cooper,
2 title={COOPER: A Unified Model for Cooperative Perception and Reasoning in Spatial Intelligence},
3 author={Zhang, Zefeng and Hao, Xiangzhao and Tang, Hengzhu and Zhang, Zhenyu and Sheng, Jiawei and Li, Xiaodong and Li, Zhenyang and Gao, Li and Shi, Daiting and Yin, Dawei and others},
4 journal={arXiv preprint arXiv:2512.04563},
5 year={2025}
6}