Code Monkey home page Code Monkey logo

hqtrack's Introduction

Tracking Anything in High Quality

Technical Report:

Tracking Anything in High Quality (HQTrack) is a framework for high performance video object tracking and segmentation. It mainly consists of a Video Multi-Object Segmenter (VMOS) and a Mask Refiner (MR), can track multiple target objects at the same time and output accurate object masks.

🍺 HQTrack obtains runner-up in the Visual Object Tracking and Segmentaion (VOTS2023) challenge.

📢News

  • [2023/7/30] We provide a demo code that can be run locally.
  • [2023/7/22] We author a technical report for HQTrack.
  • [2023/7/3] HQTrack ranks the 2nd place in the VOTS2023 challenge.

🔥Demo

We also provide a demo script, which supports box and point prompts as inputs. This is a pure python script that allows the user to test arbitrary videos.

🐍Pipeline

image

📑Intallation

  • Install the conda environment
conda create -n hqtrack python=3.8
conda activate hqtrack
  • Install Pytorch
conda install pytorch==1.9 torchvision cudatoolkit=10.2 -c pytorch
  • Install HQ-SAM
cd segment_anything_hq
pip install -e .
pip install opencv-python pycocotools matplotlib onnxruntime onnx
  • Install Pytorch-Correlation-extension package
cd packages/Pytorch-Correlation-extension/
python setup.py install
  • Install ops_dcnv3
cd HQTrack/networks/encoders/ops_dcnv3
./make.sh
  • Install vots toolkit
pip install vot-toolkit
  • Install other packages
pip install easydict
pip install lmdb
pip install einops
pip install jpeg4py
pip install 'protobuf~=3.19.0'
conda install setuptools==58.0.4
pip install timm
pip install tb-nightly
pip install tensorboardx
pip install scikit-image
pip install rsa
pip install six
pip install pillow

🚗Run HQTrack

  • Model Preparation

Download VMOS model from Google Driver or Baidu Driver and put it under

/path/to/HQTrack/result/default_InternT_MSDeAOTL_V2/YTB_DAV_VIP/ckpt/

Download HQ-SAM_h and put it under

/path/to/HQTrack/segment_anything_hq/pretrained_model/
  • Initialize the vots workspace
cd /path/to/VOTS23_workspace
vot initialize tests/multiobject
  • Copy our trackers.ini to your vot workspace
cp /path/to/our/trackers.ini /path/to/VOTS23_workspace/trackers.ini
  • Modify your path in trackers.ini
  • test the tracker and pack the results
bash run.sh

📖 Citation

If you find HQTrack useful for you, please consider citing 📣

@misc{hqtrack,
      title={Tracking Anything in High Quality}, 
      Author = {Jiawen Zhu and Zhenyu Chen and Zeqi Hao and Shijie Chang and Lu Zhang and Dong Wang and Huchuan Lu and Bin Luo and Jun-Yan He and Jin-Peng Lan and Hanyuan Chen and Chenyang Li},
      Title = {Tracking Anything in High Quality},
      Year = {2023},
      Eprint = {arXiv:2307.13974},
      PrimaryClass={cs.CV}
}

♥️ Acknowledgment

This project is based on DeAOT, HQ-SAM, and SAM. Thanks for these excellent works.

📧Contact

If you have any question, feel free to email [email protected]. ^_^

hqtrack's People

Contributors

jiawen-zhu avatar eltociear avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.