Official implementation of Open-Vocabulary 3D Object Detection with Co-Distillation Discovery and Dual Guidance Robust Training (ECCV 2026).
Shangbo Yuan, Jie Xu, Xiaofeng Zhu, Na Zhao
The code is implemented as a plugin for MMDetection3D v1.0.0rc5.
-
Create an environment compatible with MMDetection3D v1.0.0rc5 by following its installation guide.
-
Clone MMDetection3D and copy the Co-3DGT project files into it:
git clone --branch v1.0.0rc5 \ https://github.com/open-mmlab/mmdetection3d.git export MMDET3D_ROOT=/absolute/path/to/mmdetection3d cp -r projects "${MMDET3D_ROOT}/" cp -r extra_tools "${MMDET3D_ROOT}/" cd "${MMDET3D_ROOT}"
-
Install the extra dependencies required by the Co-Distillation utilities:
pip install scipy scikit-learn
filter_cutr_sunrgbd.pyautomatically uses cuML/CuPy instead of scikit-learn when they are available.
SUN RGB-D dataset: The directory structure after processing should be as follows:
sunrgbd
├── README.md
├── matlab
│ ├── ...
├── OFFICIAL_SUNRGBD
│ ├── ...
├── sunrgbd_trainval
│ ├── ...
├── points
├── sunrgbd_infos_train.pkl
├── sunrgbd_infos_val.pkl
ScanNet dataset:
After downloading datasets following mmDetection3D, run python scripts/scannet_globalallign.py to perform global alignment in advance. Please note that this operation will modify the data file. If you have any concerns, it is recommended to back up the file first.
The directory structure should be as below
scannet
├── meta_data
├── batch_load_scannet_data.py
├── load_scannet_data.py
├── scannet_utils.py
├── README.md
├── scans
├── scans_test
├── scannet_instance_data
├── points
│ ├── xxxxx.bin
├── instance_mask
│ ├── xxxxx.bin
├── semantic_mask
│ ├── xxxxx.bin
├── seg_info
│ ├── train_label_weight.npy
│ ├── train_resampled_scene_idxs.npy
│ ├── val_label_weight.npy
│ ├── val_resampled_scene_idxs.npy
├── posed_images
│ ├── scenexxxx_xx
│ │ ├── xxxxxx.txt
│ │ ├── xxxxxx.jpg
│ │ ├── intrinsic.txt
├── scannet_infos_train.pkl
├── scannet_infos_val.pkl
├── scannet_infos_test.pkl
Filter CuTR proposals using point-cloud DBSCAN:
python extra_tools/co_distillation/filter_cutr_sunrgbd.py \
--input-dir /path/to/cutr_proposals \
--points-dir data/sunrgbd_coda/points \
--output-dir work_dirs/co_distillation/cutr_filtered \
--eps 0.01 \
--min-samples 20 \
--min-cluster-size 1000Run the paper's Co-Distillation matching objective:
python extra_tools/co_distillation/match_sunrgbd.py \
--aabb-dir /path/to/backprojected_semantic_aabbs \
--cutr-dir work_dirs/co_distillation/cutr_filtered \
--output-dir work_dirs/co_distillation/matched \
--iou-threshold 0.1 \
--confidence-weight 0.1Set the configuration path:
CONFIG=projects/configs/co_3dgt/co_3dgt_sunrgbd.pySingle-GPU training:
python extra_tools/train.py "${CONFIG}" \
--work-dir work_dirs/co_3dgt_sunrgbd \
--cfg-options runner.max_epochs=YOUR_EPOCH_COUNTDistributed training:
bash extra_tools/dist_train.sh "${CONFIG}" 4 \
--work-dir work_dirs/co_3dgt_sunrgbd \
--cfg-options runner.max_epochs=YOUR_EPOCH_COUNTVerify that data.test.ann_file refers to the intended validation information
file, then run:
CONFIG=projects/configs/co_3dgt/co_3dgt_sunrgbd.py
CHECKPOINT=/path/to/checkpoint.pth
VAL_INFO=/absolute/path/to/sunrgbd_infos_val_withimg.pkl
bash extra_tools/dist_test.sh "${CONFIG}" "${CHECKPOINT}" 4 \
--eval mAP \
--cfg-options data.test.ann_file="${VAL_INFO}"For a single GPU:
python extra_tools/test.py "${CONFIG}" "${CHECKPOINT}" \
--eval mAP \
--cfg-options data.test.ann_file="${VAL_INFO}"The open-vocabulary indoor evaluator reports base-, novel-, and all-class
average precision and recall. The paper's primary metric is AP/AR at IoU
0.25; the evaluator also computes results at IoU 0.50.
To save predictions before evaluating them separately:
python extra_tools/test.py "${CONFIG}" "${CHECKPOINT}" \
--out work_dirs/co_3dgt_sunrgbd/results.pkl \
--cfg-options data.test.ann_file="${VAL_INFO}"
python extra_tools/eval_metric.py "${CONFIG}" \
work_dirs/co_3dgt_sunrgbd/results.pkl \
--eval mAP \
--cfg-options data.test.ann_file="${VAL_INFO}"If you find this work useful, please cite:
@inproceedings{yuan2026co3dgt,
title = {Open-Vocabulary 3D Object Detection with Co-Distillation
Discovery and Dual Guidance Robust Training},
author = {Yuan, Shangbo and Xu, Jie and Zhu, Xiaofeng and Zhao, Na},
booktitle = {European Conference on Computer Vision},
year = {2026}
}This project is built on MMDetection3D and draws on Uni3DETR, CLIP, Detic, and Cubify-Anything. We thank the authors of these projects for making their work available.
This repository is released under the Apache License 2.0.