-
Notifications
You must be signed in to change notification settings - Fork 34
/
run_tracking.py
31 lines (25 loc) · 971 Bytes
/
run_tracking.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from __future__ import absolute_import
from got10k.experiments import *
from siamrpn import TrackerSiamRPN
if __name__ == '__main__':
# setup tracker
net_path = 'pretrained/siamrpn/model.pth'
tracker = TrackerSiamRPN(net_path=net_path)
# setup experiments
# 7 datasets with different versions
experiments = [
ExperimentGOT10k('data/GOT-10k', subset='test'),
ExperimentOTB('data/OTB', version=2015),
ExperimentOTB('data/OTB', version=2013),
ExperimentVOT('data/vot2018', version=2018),
ExperimentUAV123('data/UAV123', version='UAV123'),
ExperimentUAV123('data/UAV123', version='UAV20L'),
ExperimentDTB70('data/DTB70'),
ExperimentTColor128('data/Temple-color-128'),
ExperimentNfS('data/nfs', fps=30),
ExperimentNfS('data/nfs', fps=240),
]
# run experiments
for e in experiments:
e.run(tracker, visualize=True)
e.report([tracker.name])