Skip to content
SubmissionsInPublic

About

Open-Vocabulary 3D Object Detection with Co-Distillation Discovery and Dual Guidance Robust Training

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Co-3DGT

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

Installation

The code is implemented as a plugin for MMDetection3D v1.0.0rc5.

  1. Create an environment compatible with MMDetection3D v1.0.0rc5 by following its installation guide.

  2. 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}"
  3. Install the extra dependencies required by the Co-Distillation utilities:

    pip install scipy scikit-learn

    filter_cutr_sunrgbd.py automatically uses cuML/CuPy instead of scikit-learn when they are available.

Data Preparation

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

Co-Distillation Discovery

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 1000

Run 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.1

Training

Set the configuration path:

CONFIG=projects/configs/co_3dgt/co_3dgt_sunrgbd.py

Single-GPU training:

python extra_tools/train.py "${CONFIG}" \
  --work-dir work_dirs/co_3dgt_sunrgbd \
  --cfg-options runner.max_epochs=YOUR_EPOCH_COUNT

Distributed training:

bash extra_tools/dist_train.sh "${CONFIG}" 4 \
  --work-dir work_dirs/co_3dgt_sunrgbd \
  --cfg-options runner.max_epochs=YOUR_EPOCH_COUNT

Evaluation

Verify 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}"

Citation

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}
}

Acknowledgments

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.

License

This repository is released under the Apache License 2.0.

About

Open-Vocabulary 3D Object Detection with Co-Distillation Discovery and Dual Guidance Robust Training

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages