faicaiwawa / PromptVT

Deployment of the tracking model PromptVT.
MIT License
4 stars 0 forks source link

PromptVT

This project is the implementation of paper PromptVT, including models, raw results, and testing codes(the training code will be uploaded after organizing).

:exclamation: Ubuntu(Linux) is highly recommended, Windows has some weird installation problems and model inference problems.

:exclamation: This is the CPU edition, no CUDA or GPU required.

Performance

PromptVT achieves SOTA performance on 8 benchmarks in lightweight trackers. 图片1

图片2 图片2

图片1

图片2 图片2

图片2

Usage

Installation

Create and activate a conda environment:

conda create -n PromptVT python=3.7
conda activate PromptVT

Install the required packages:

bash install_PromptVT.sh

Data Preparation

${PromptVT_ROOT}
 -- data
     -- lasot
         |-- airplane
         |-- basketball
         |-- bear
         ...
     -- got10k
         |-- test
         |-- train
         |-- val
     -- OTB100
         |-- Basketball
         |-- Biker
         ...
     -- trackingnet
         |-- TRAIN_0
         |-- TRAIN_1
         ...
         |-- TRAIN_11
         |-- TEST
     -- uav123
         |-- anno
              |-- UAV123
         |-- data_seq
              |-- UAV123
     -- Anti-UAV
         |-- Test
              |-- 20190925_111757_1_1
              ...
     -- Anti-UAV-410
         |-- Test
              |-- 02_6319_1500-2999
              ...

Path Setting

Run the following command to set paths:

cd < PATH_of_PromptVT >
python tracking/create_default_local_file.py --workspace_dir . --data_dir ./data --save_dir .

You can also modify paths by these two files:

./lib/train/admin/local.py  # paths for training
./lib/test/evaluation/local.py  # paths for testing

Test and evaluate PromptVT on benchmarks

If you want to use ONNX model, set ' use_onnx = True ' in ./lib/test/tracker/PromptVT.py.

Test FLOPs, Params, and FPS

FLOPs and Params:

modify the ' yaml_fname ' in ./tracking/profile_model.py.

  python tracking/profile_model.py

FPS:

place the tracking/Calculate_FPS.py in the tracking results folder and run it.

Model Zoo & Raw Results

The trained models and the raw tracking results are provided in the model zoo.
put PyTorch model and ONNX model in ./checkpoints/PromptVT/baseline/.
We also provide model conversion scripts./tracking/****_onnx.py.

Acknowledgments

Thanks for the PyTracking and STARK for helping us quickly implement our ideas.

Contact

If you have any question, feel free to email qiuyangzhang2022@163.com. ^_^