forked from quangminhdinh/TrafficVLM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargs.py
39 lines (29 loc) · 719 Bytes
/
args.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
35
36
37
38
39
import argparse
def get_args_parser():
parser = argparse.ArgumentParser(add_help=False)
# experiment yaml file name
parser.add_argument(
"experiment",
type=str,
help="experiment name",
)
return parser
def get_test_args_parser():
parser = argparse.ArgumentParser(add_help=False)
# experiment yaml file name
parser.add_argument(
"experiment",
type=str,
help="experiment name",
)
parser.add_argument(
"-d", "--device",
type=str, default="cuda",
help="device to be used (i.e. cuda:0 for single gpu)",
)
parser.add_argument(
"-b", "--batch",
type=int, default=8, #15,
help="batch size to be used for testing",
)
return parser