{"id":18915136,"url":"https://github.com/zllrunning/siamesex.pytorch","last_synced_at":"2025-04-06T13:11:00.529Z","repository":{"id":43612531,"uuid":"182418365","full_name":"zllrunning/SiameseX.PyTorch","owner":"zllrunning","description":"A simplified PyTorch implementation of Siamese networks for tracking: SiamFC, SiamRPN, SiamRPN++, SiamVGG, SiamDW, SiamRPN-VGG.","archived":false,"fork":false,"pushed_at":"2019-08-05T08:21:12.000Z","size":54132,"stargazers_count":441,"open_issues_count":13,"forks_count":95,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-30T11:11:17.951Z","etag":null,"topics":["siamese-fc","siamese-network","siamrpn","siamvgg","tracking"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zllrunning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-20T14:50:36.000Z","updated_at":"2025-01-16T11:48:34.000Z","dependencies_parsed_at":"2022-07-10T17:47:25.602Z","dependency_job_id":null,"html_url":"https://github.com/zllrunning/SiameseX.PyTorch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2FSiameseX.PyTorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2FSiameseX.PyTorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2FSiameseX.PyTorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2FSiameseX.PyTorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zllrunning","download_url":"https://codeload.github.com/zllrunning/SiameseX.PyTorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485287,"owners_count":20946398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["siamese-fc","siamese-network","siamrpn","siamvgg","tracking"],"created_at":"2024-11-08T10:14:14.521Z","updated_at":"2025-04-06T13:11:00.512Z","avatar_url":"https://github.com/zllrunning.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SiameseX.PyTorch\nA simplified PyTorch implementation of Siamese networks for tracking: **SiamFC**, SiamVGG, SiamDW, **SiamRPN**, **SiamRPN++**. \n\n**Warning:  It is still in development, some files are just for the integrity of the project.**\n\n## Dependencies\n- python2.7\n- pytorch == 0.4.0\n- opencv\n- mmcv\n\n## Currently supported models\n- [**SiamFC**](https://arxiv.org/abs/1606.09549)\n  - [SiamVGG](https://arxiv.org/abs/1902.02804)\n  - [SiamFCRes22](https://arxiv.org/abs/1901.01660)\n  - [SiamFCIncep22](https://arxiv.org/abs/1901.01660)\n  - [SiamFCNext22](https://arxiv.org/abs/1901.01660)\n- [**SiamRPN**](http://openaccess.thecvf.com/content_cvpr_2018/papers/Li_High_Performance_Visual_CVPR_2018_paper.pdf)\n  - [SiamRPNVGG](https://github.com/leeyeehoo/SiamRPN-VGG)\n  - [SiamRPNRes22](https://arxiv.org/abs/1901.01660)\n  - [SiamRPNIncep22](https://arxiv.org/abs/1901.01660)\n  - [SiamRPNResNeXt22](https://arxiv.org/abs/1901.01660)\n- [**SiamRPN++**](https://arxiv.org/abs/1812.11703)\n\n\n## Backbones\n- AlexNet\n- VGG\n- ResNet22\n- Incep22\n- ResNeXt22\n- ResNet50\n\n## Demo \n- **Try SiamFC:**\n\nClone this repo and run\n```\npython demo.py --model SiamFC\n```\n\nYou can change `--mdoel` to other models like\n```\npython demo.py --model SiamFCNext22\n```\n\n- **Try SiamRPN:**\n\nDownload [the pretrained model](https://drive.google.com/open?id=1nQUcmg8SmLq9J_cXqMW5OtxgFQjtPBDc) and put it in **./cp** folder.\n```\npython demo_rpn.py --model SiamRPNResNeXt22\n```\n\n- **Try SiamRPN++:**\n\nDownload [the pretrained model](https://drive.google.com/open?id=1BV86AAjYMn50T1RfE8BkKkThlNZI1a-m) and put it in **./cp** folder.\n```\npython demo_rpn.py --model SiamRPNPPRes50\n```\n\n- You'll see the following:\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"data/bag.gif\" width=\"400px\" /\u003e\n\u003c/div\u003e\n\n## Training\n\n- download [VID dataset](http://bvisionweb1.cs.unc.edu/ilsvrc2015/download-videos-3j16.php) (I did not use Youtube-bb because of limited resources).\n- download label files from [here](https://drive.google.com/open?id=13aC_2stCEU0VoiIpp6wgudenUSVye74b) and run `label_preprocess.py --file --output_file --path` to replace my file path by yours,  *these three arguments should be treated carefully*.\n- train SiamFCNext22 tracker\n```\npython train.py --gpu 0 --config configs/SiamFC.py\n```\n- just replace `--config` argument and you can train other models\n```\npython train.py --gpu 0 --config configs/SiamRPN.py\n```\n\n## TODO\nWe have accumulated the following to-do list, which we hope to complete in the near future\n- Still to come:\n  - [ ] Add testing code on common datasets\n  - [x] Add SiamRPN(AlexNet as backbone)\n  - [x] Add SiamRPN(VGG as backbone)\n  - [x] Add SiamRPN(ResNet, ResNext, Inception as backbone)\n\n### Citation \n\n```\n@inproceedings{bertinetto2016fully,\n  title={Fully-convolutional siamese networks for object tracking},\n  author={Bertinetto, Luca and Valmadre, Jack and Henriques, Joao F and Vedaldi, Andrea and Torr, Philip HS},\n  booktitle={European conference on computer vision},\n  pages={850--865},\n  year={2016},\n  organization={Springer}\n}\n\n@inproceedings{Li2019SiamVGGVT,\n  title={SiamVGG: Visual Tracking using Deeper Siamese Networks},\n  author={Yuhong Li and Xiaofan Zhang},\n  year={2019}\n}\n\n@inproceedings{SiamDW_2019_CVPR,\n    author={Zhang, Zhipeng and Peng, Houwen},\n    title={Deeper and Wider Siamese Networks for Real-Time Visual Tracking},\n    booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},\n    year = {2019}\n\n@article{li2018siamrpn++,\n  title={SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks},\n  author={Li, Bo and Wu, Wei and Wang, Qiang and Zhang, Fangyi and Xing, Junliang and Yan, Junjie},\n  journal={arXiv preprint arXiv:1812.11703},\n  year={2018}\n}\n}\n```\n## References\n- [SiamVGG](https://github.com/leeyeehoo/SiamVGG)\n- [siamfc-pytorch](https://github.com/huanglianghua/siamfc-pytorch)\n- [SiamDW](https://github.com/researchmm/SiamDW)\n- [pysot](https://github.com/STVIR/pysot)\n- [DaSiamRPN](https://github.com/foolwood/DaSiamRPN)\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzllrunning%2Fsiamesex.pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzllrunning%2Fsiamesex.pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzllrunning%2Fsiamesex.pytorch/lists"}