-
Notifications
You must be signed in to change notification settings - Fork 3
/
track_algorithm.py
30 lines (23 loc) · 934 Bytes
/
track_algorithm.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
from track_dataset import run
from select_options import select_algorithms
def main(algorithm_name, experts, dataset_name, **kwargs):
algorithm = select_algorithms(algorithm_name, experts, **kwargs)
run(algorithm, dataset_name, experts=experts, debug=False)
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-a", "--algorithm", default="AAA", type=str)
parser.add_argument(
"-e", "--experts", default=["DaSiamRPN", "SiamDW", "SiamRPN", "SPM"], nargs="+"
)
parser.add_argument("-d", "--dataset", default="OTB2015", type=str)
parser.add_argument("-m", "--mode", default="SuperFast", type=str)
parser.add_argument("-t", "--threshold", default=0.8, type=float)
args = parser.parse_args()
main(
args.algorithm,
args.experts,
args.dataset,
mode=args.mode,
threshold=args.threshold,
)