Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiteTrack

Strong Performance

We test on three challenging datasets, OTB99, TNL2K, and LASOT,

Install the environment

Use the Anaconda

conda create -n LiteTrack python=3.9
conda activate LiteTrack
cd LiteTrack
pip install -r requirements.txt

Data Preparation

Put the tracking datasets in ./data. It should look like:

${LiteTrack_ROOT}
 -- data
     -- lasot
         |-- airplane
         |-- basketball
         |-- bear
         ...
     -- lasotext
         |-- atv
         |-- badminton
         |-- cosplay
         ...
     -- got10k
         |-- test
         |-- train
         |-- val
     -- coco
         |-- annotations
         |-- train2017
     -- trackingnet
         |-- TRAIN_0
         |-- TRAIN_1
         ...
         |-- TRAIN_11
         |-- TEST
     -- otb99
         |-- OTB_query_test
         |-- OTB_query_train
         |-- OTB_videos
     -- refcocog
         |-- refcocog
         |-- split # download this folder from VLTVG (https://github.com/yangli18/VLTVG/blob/master/docs/get_started.md)
         |-- train2014 # coco 2014
         |-- val2014 # coco 2014
     -- tnl2k
         |-- test
         |-- train

Train LiteTrack

Download the pretrained MAE and BERT, put it under <PROJECT_ROOT>/pretrain.

Training with multiple GPUs using DDP.

# LiteTrack
python tracking/train.py  baseline_base

Evaluation

Put the downloaded weights on <PROJECT_ROOT>/checkpoints/train/LiteTrack/baseline_base.

Notably, the modality of target reference (NL, BBOX or NLBBOX) is specified in config TEST.MODE

# Testing
python tracking/test.py  baseline_base <dataset_name> <num_threads_per_gpu> <num_gpu>

# Evaluation
python tracking/analysis_results.py  --tracker_param baseline_base --dataset_name <dataset_name>_<reference_modality>_<EPOCH>

# Example
python tracking/test.py  baseline_base otb99 4 2
python tracking/analysis_results.py  --tracker_param baseline_base --dataset_name otb99_NL_300

Run LiteTrack on your own video

Specify the target by bounding box or natural language, which should keep consistent with TEST.MODE in config.

python demo.py baseline_base \
                   <input video path> \
                   <output video path> \
                   <language description of target> \
                   <initial bbox of target: x y w h>

Contact

For questions about our paper or code, please contact [Lingling Yang(yanglingling1214@163.com)

Acknowledgments

  • Thanks for JointNLT and UVLTrack Library, which helps us to quickly implement our ideas.

  • We use the implementation of the ViT from the Timm repo and BERT from the pytorch_pretrained_bert.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages