Giter Club home page Giter Club logo

siamapn's Introduction

[APNTracking]

Environment setup

This code has been tested on Ubuntu 18.04, Python 3.8.3, Pytorch 0.7.0/1.6.0, CUDA 10.2. Please install related libraries before running this code:

pip install -r requirements.txt

Test

Download pretrained model and put it into tools/snapshot directory.

Download testing datasets and put them into test_dataset directory. If you want to test the tracker on a new dataset, please refer to pysot-toolkit to set test_dataset.

python test.py 	                          \
	--trackername SiamAPN           \ # tracker_name
	--dataset UAV10fps                  \ # dataset_name
	--snapshot snapshot/general_model.pth   # model_path

The testing result will be saved in the results/dataset_name/tracker_name directory.

Train

Prepare training datasets

Download the datasets:

Note: train_dataset/dataset_name/readme.md has listed detailed operations about how to generate training datasets.

Train a model

To train the SiamAPN model, run train.py with the desired configs:

cd tools
python train_apn.py 

Trackers

[SiamAPN]

The pre-trained model can be found at (epoch=37) : general_model(code:w3u5)

We provide the tracking results_v1 (code: s3p1) of UAV123@10fps, UAV20L, and VisDrone2018-SOT-test. Besides, the tracking results_v2 (code: j4t5) of UAV123@10fps, UAV20L, VisDrone2018-SOT-test and UAVTrack112 are also provided.

[SiamAPN++]

The pre-trained model can be found at (epoch=25): general_model(code:j29k)

We provide the tracking results (code: xb41) of UAV123@10fps, UAV20L.

**Note:**The pre-trained model of SiamAPN and SiamAPN++ can also be found at googledriver

Evaluation

If you want to evaluate the tracker mentioned above, please put those results into results directory.

python eval.py 	                          \
	--tracker_path ./results          \ # result path
	--dataset UAV10fps                  \ # dataset_name
	--tracker_prefix 'general_model'   # tracker_name

UAVTrack112 benchmark

UAVTrack112 benchmark is created from images captured during the real-world tests. It can be downloaded at UAVTrack112 (code: xb41). If you want to use this UAVTracking benchmark, please cite the paper below. More detail of the benchmark are available in here.

References

@INPROCEEDINGS{fu2021siamese,       
	author={Fu, Changhong and Cao, Ziang and Li, Yiming and Ye, Junjie and Feng, Chen},   
	booktitle={Proceedings of the IEEE International Conference on Robotics and Automation (ICRA)}, 
	title={{Siamese Anchor Proposal Network for High-Speed Aerial Tracking}},
	year={2021},
	volume={},
	number={},
	pages={1-7}
}

@INPROCEEDINGS{fu2021tgrs,       
	author={Fu, Changhong and Cao, Ziang and Li, Yiming and Ye, Junjie and Feng, Chen},   
	journal={IEEE Transactions on Geoscience and Remote Sensing}, 
	title={{Onboard Real-Time Aerial Tracking with Efficient Siamese Anchor Proposal Network}},
	year={2021},
	volume={},
	number={},
	pages={1-13}
}

Contact

If you have any questions, please contact me.

Ziang Cao

Email: [email protected]

Acknowledgement

The code is implemented based on pysot. We would like to express our sincere thanks to the contributors.

siamapn's People

Contributors

vision4robotics avatar ziangcao0312 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

siamapn's Issues

测试结果

您好,我想问一下,您最后话的与其他跟踪器的对比实验图需要其他跟踪算法的测试结果的,txt文件,请问您能分享一下么,不然是不是还得每个算法都要自己训练和测试呢,期待您的回复

UAVTrack112

Hi Dr. Fu,
Thanks for your great work! We want to use the newly built benchmark UAVTrack112. Could you provide the details about the benchmark, such as attributes and citation format?
Sorry for disturbing you and hope you can help me with it.
Thanks!

关于test

我看到代码里toolkit/datasets/uav10fps.py这里面的25行左右,img和txt实际运行的话,会遇到No such file or directory: '../test_dataset/UAV123_10fps/anno/bird1.txt这个报错,我发现这是因为数据集中有data_seq/bird1这个文件夹,但是标注文件夹里是没有anno/bird.txt这个文件的,只有bird1_1.txt、bird1_2.txt、bird1_3.txt三个文件,那请问你们在这里是怎么处理的呢

test date

Hello, I did not find the test data set of UAV123-10pfs, the website is missing. Can you send one please?

训练问题请教

[符老师,您好,非常感谢您的团队共享代码,我在运行训练代码时,遇到下面问题,您能帮忙看看是哪里处问题了吗?非常感谢
[2021-03-22 21:35:48,552-rk0-train_apn++.py#214] init done
Traceback (most recent call last):
File "train_apn++.py", line 279, in
main()
File "train_apn++.py", line 217, in main
cfg.merge_from_file(args.cfg)
File "/home/wanghaijun/anaconda3/envs/pysot/lib/python3.7/site-packages/yacs/config.py", line 213, in merge_from_file
self.merge_from_other_cfg(cfg)
File "/home/wanghaijun/anaconda3/envs/pysot/lib/python3.7/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
_merge_a_into_b(cfg_other, self, self, [])
File "/home/wanghaijun/anaconda3/envs/pysot/lib/python3.7/site-packages/yacs/config.py", line 460, in _merge_a_into_b
_merge_a_into_b(v, b[k], root, key_list + [k])
File "/home/wanghaijun/anaconda3/envs/pysot/lib/python3.7/site-packages/yacs/config.py", line 456, in _merge_a_into_b
v = _check_and_coerce_cfg_value_type(v, b[k], k, full_key)
File "/home/wanghaijun/anaconda3/envs/pysot/lib/python3.7/site-packages/yacs/config.py", line 513, in _check_and_coerce_cfg_value_type
original_type, replacement_type, original, replacement, full_key
ValueError: Type mismatch (<class 'str'> vs. <class 'int'>) with values ( vs. 0) for config key: TRAIN.PRETRAINED

demo siamapn++

i try run demo and i have this problem>>> or if someone give some tutorial to use siamapn in my project
python3 demo_apn++.py
Traceback (most recent call last):
File "demo_apn++.py", line 99, in
main()
File "demo_apn++.py", line 68, in main
model = load_pretrain(model, args.snapshot).eval().to(device)
File "../pysot/utils/model_load.py", line 51, in load_pretrain
map_location=lambda storage, loc: storage.cuda(device))
File "/home/ai/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 356, in load
f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: './snapshot/general_model.pth'

New datasets

感谢作者的杰出贡献:
请问一下,如果我想在UAVDTDTB70上测试该模型,.json文件应该怎么生成?Pysot没有相关的代码,不知道作者能不能分享一下?

gamma值

您好,请问在pointbranch 中的gamma 参数一不更新吗?调了几次一直为0

ann

where is ANN part?0.0

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.