-
Notifications
You must be signed in to change notification settings - Fork 104
/
run_vot.py
executable file
·34 lines (22 loc) · 899 Bytes
/
run_vot.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
32
33
34
import os
import sys
import argparse
env_path = os.path.join(os.path.dirname(__file__), '..')
if env_path not in sys.path:
sys.path.append(env_path)
from pytracking.evaluation import Tracker
def run_vot2020(tracker_name, tracker_param, run_id=None, debug=0, visdom_info=None):
tracker = Tracker(tracker_name, tracker_param, run_id)
tracker.run_vot2020(debug, visdom_info)
def run_vot(tracker_name, tracker_param, run_id=None):
tracker = Tracker(tracker_name, tracker_param, run_id)
tracker.run_vot()
def main():
parser = argparse.ArgumentParser(description='Run VOT.')
parser.add_argument('tracker_name', type=str)
parser.add_argument('tracker_param', type=str)
parser.add_argument('--run_id', type=int, default=None)
args = parser.parse_args()
run_vot(args.tracker_name, args.tracker_param, args.run_id)
if __name__ == '__main__':
main()