Coder Social home page Coder Social logo

udt_pytorch's Introduction

UDT_pytorch

This repository contains a Python reimplementation of the Unsupervised Deep Tracking

Ning Wang, Yibing Song, Chao Ma, Wengang Zhou, Wei Liu, and Houqiang Li

to appear in CVPR 2019

Acknowledges

The results of this implementation may be slightly different from the original UDT. The results in our paper are obtained using the MatconvNet implementation.

Our baseline method is DCFNet and many parts of the code are from DCFNet_pytorch. For more details, you can refer to DCFNet_pytorch. The main differences are (1) unsupervised data preprocessing (please check the train/dataset/ folder); (2) our training code utilizes forward tracking and backward verification to train the model (please check the train/train_UDT.py file). (3) This implementation is a simplified version, and I will update it later.

Requirements

Requirements for PyTorch 0.4.0 and opencv-python

conda install pytorch torchvision -c pytorch
conda install -c menpo opencv

Training data (VID) and Test dataset (OTB).

Test

cd UDT_pytorch/track 
ln -s /path/to/your/OTB2015 ./dataset/OTB2015
ln -s ./dataset/OTB2015 ./dataset/OTB2013
cd dataset & python gen_otb2013.py
python UDT.py --model ../train/work/checkpoint.pth.tar

Train

  1. Download training data. (ILSVRC2015 VID)

  2. Prepare training data for dataloader.

    cd UDT_pytorch/train/dataset
    python parse_vid.py <VID_path>  # save all vid info in a single json
    python crop_image.py  # crop and generate a json for dataloader
  3. Training. (on multiple GPUs ⚡ ⚡ ⚡ ⚡)

    cd UDT_pytorch/train/
    CUDA_VISIBLE_DEVICES=0,1,2,3 python train_UDT.py
    

Fine-tune hyper-parameter

  1. After training, you can simple test the model with default parameter.

    cd UDT_pytorch/track/
    python UDT.py --model ../train/work/crop_125_2.0/checkpoint.pth.tar
  2. Search a better hyper-parameter.

    CUDA_VISIBLE_DEVICES=0 python tune_otb.py  # run on parallel to speed up searching
    python eval_otb.py OTB2013 * 0 10000

License

Licensed under an MIT license.

Citation

If you find this work useful for your research, please consider citing our work and DCFNet:

@inproceedings{Wang_2019_Unsupervised,
    title={Unsupervised Deep Tracking},
    author={Wang, Ning and Song, Yibing and Ma, Chao and Zhou, Wengang and Liu, Wei and Li, Houqiang},
    booktitle={The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    year={2019}
}

@article{wang17dcfnet,
    Author = {Qiang Wang, Jin Gao, Junliang Xing, Mengdan Zhang, Weiming Hu},
    Title = {DCFNet: Discriminant Correlation Filters Network for Visual Tracking},
    Journal = {arXiv preprint arXiv:1704.04057},
    Year = {2017}
}

Contact

If you have any questions, please feel free to contact [email protected]

udt_pytorch's People

Contributors

594422814 avatar

Watchers

James Cloos 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.