项目作者: zllrunning

项目描述 :
A simplified PyTorch implementation of Siamese networks for tracking: SiamFC, SiamRPN, SiamRPN++, SiamVGG, SiamDW, SiamRPN-VGG.
高级语言: Python
项目地址: git://github.com/zllrunning/SiameseX.PyTorch.git
创建时间: 2019-04-20T14:50:36Z
项目社区:https://github.com/zllrunning/SiameseX.PyTorch

开源协议:

下载


SiameseX.PyTorch

A simplified PyTorch implementation of Siamese networks for tracking: SiamFC, SiamVGG, SiamDW, SiamRPN, SiamRPN++.

Warning: It is still in development, some files are just for the integrity of the project.

Dependencies

  • python2.7
  • pytorch == 0.4.0
  • opencv
  • mmcv

Currently supported models

Backbones

  • AlexNet
  • VGG
  • ResNet22
  • Incep22
  • ResNeXt22
  • ResNet50

Demo

  • Try SiamFC:

Clone this repo and run

  1. python demo.py --model SiamFC

You can change --mdoel to other models like

  1. python demo.py --model SiamFCNext22
  • Try SiamRPN:

Download the pretrained model and put it in ./cp folder.

  1. python demo_rpn.py --model SiamRPNResNeXt22
  • Try SiamRPN++:

Download the pretrained model and put it in ./cp folder.

  1. python demo_rpn.py --model SiamRPNPPRes50
  • You’ll see the following:


Training

  • download VID dataset (I did not use Youtube-bb because of limited resources).
  • download label files from here and run label_preprocess.py --file --output_file --path to replace my file path by yours, these three arguments should be treated carefully.
  • train SiamFCNext22 tracker
    1. python train.py --gpu 0 --config configs/SiamFC.py
  • just replace --config argument and you can train other models
    1. python train.py --gpu 0 --config configs/SiamRPN.py

TODO

We have accumulated the following to-do list, which we hope to complete in the near future

  • Still to come:
    • Add testing code on common datasets
    • Add SiamRPN(AlexNet as backbone)
    • Add SiamRPN(VGG as backbone)
    • Add SiamRPN(ResNet, ResNext, Inception as backbone)

Citation

  1. @inproceedings{bertinetto2016fully,
  2. title={Fully-convolutional siamese networks for object tracking},
  3. author={Bertinetto, Luca and Valmadre, Jack and Henriques, Joao F and Vedaldi, Andrea and Torr, Philip HS},
  4. booktitle={European conference on computer vision},
  5. pages={850--865},
  6. year={2016},
  7. organization={Springer}
  8. }
  9. @inproceedings{Li2019SiamVGGVT,
  10. title={SiamVGG: Visual Tracking using Deeper Siamese Networks},
  11. author={Yuhong Li and Xiaofan Zhang},
  12. year={2019}
  13. }
  14. @inproceedings{SiamDW_2019_CVPR,
  15. author={Zhang, Zhipeng and Peng, Houwen},
  16. title={Deeper and Wider Siamese Networks for Real-Time Visual Tracking},
  17. booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
  18. year = {2019}
  19. @article{li2018siamrpn++,
  20. title={SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks},
  21. author={Li, Bo and Wu, Wei and Wang, Qiang and Zhang, Fangyi and Xing, Junliang and Yan, Junjie},
  22. journal={arXiv preprint arXiv:1812.11703},
  23. year={2018}
  24. }
  25. }

References