Adaptiave Colour-Depth Aware Attention for RGB-D Object Tracking

October 9, 2023 ยท View on GitHub

The official PyTorch implementation of the CDAAT tracker:

Framework

The tracking pipeline is illustrated as:

The Colour-Depth Aware Attention Module is as:

Usage

Install the environment using Anaconda

conda create -n cdaat python=3.7
conda activate cdaat
sudo apt-get install libturbojpeg
bash install.sh

The training process contains two stages:

  • 1st stage: train an RGB-only model (4 GPUs)

    export PYTHONPATH=/path/to/CDAAT:$PYTHONPATH
    python -m torch.distributed.launch --nproc_per_node=4  ./lib/train/run_training.py  --config baseline --save_dir /path/to/save/checkpoints
    

    or in single GPU:

    python ./lib/train/run_training.py --config baseline --save_dir /path/to/save/checkpoints
    
  • 2st stage: train an RGB-D model (4 GPUs).

    You can download the 1st-stage pretrained model.

    Then, set the pretrained model path in ./experiments/cdaatrack/cdaatrack.yaml(MODEL.PRETRAINED).

    python -m torch.distributed.launch --nproc_per_node=4 ./lib/train/run_training.py  --config cdaatrack --save_dir /path/to/save/checkpoints
    
  • Evaluation

Make sure you have prepared the trained model. You can train it by yourself or download from Google Drive. Edit ./lib/test/evaluation/local.py and ./lib/test/parameter/cdaatrack.py to set the test set path and the pretrained model path, then run

python ./tracking/test.py

You can download the raw results from Google Drive, and evaluate the raw results using the VOT toolkit.

Acknowledgement

Our idea is implemented base on the following projects. We really appreciate their wonderful open-source work!

Contact

If you have any questions or concerns, please feel free to contact us.