MCPcopy Create free account
hub / github.com/AutonomousVehicleLaboratory/SemVecNet / parse_args

Function parse_args

SemVecNet/mmdetection3d/tools/test.py:20–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def parse_args():
21 parser = argparse.ArgumentParser(
22 description='MMDet test (and eval) a model')
23 parser.add_argument('config', help='test config file path')
24 parser.add_argument('checkpoint', help='checkpoint file')
25 parser.add_argument('--out', help='output result file in pickle format')
26 parser.add_argument(
27 '--fuse-conv-bn',
28 action='store_true',
29 help='Whether to fuse conv and bn, this will slightly increase'
30 'the inference speed')
31 parser.add_argument(
32 '--format-only',
33 action='store_true',
34 help='Format the output results without perform evaluation. It is'
35 'useful when you want to format the result to a specific format and '
36 'submit it to the test server')
37 parser.add_argument(
38 '--eval',
39 type=str,
40 nargs='+',
41 help='evaluation metrics, which depends on the dataset, e.g., "bbox",'
42 ' "segm", "proposal" for COCO, and "mAP", "recall" for PASCAL VOC')
43 parser.add_argument('--show', action='store_true', help='show results')
44 parser.add_argument(
45 '--show-dir', help='directory where results will be saved')
46 parser.add_argument(
47 '--gpu-collect',
48 action='store_true',
49 help='whether to use gpu to collect results.')
50 parser.add_argument(
51 '--tmpdir',
52 help='tmp directory used for collecting results from multiple '
53 'workers, available when gpu-collect is not specified')
54 parser.add_argument('--seed', type=int, default=0, help='random seed')
55 parser.add_argument(
56 '--deterministic',
57 action='store_true',
58 help='whether to set deterministic options for CUDNN backend.')
59 parser.add_argument(
60 '--cfg-options',
61 nargs='+',
62 action=DictAction,
63 help='override some settings in the used config, the key-value pair '
64 'in xxx=yyy format will be merged into config file. If the value to '
65 'be overwritten is a list, it should be like key="[a,b]" or key=a,b '
66 'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" '
67 'Note that the quotation marks are necessary and that no white space '
68 'is allowed.')
69 parser.add_argument(
70 '--options',
71 nargs='+',
72 action=DictAction,
73 help='custom options for evaluation, the key-value pair in xxx=yyy '
74 'format will be kwargs for dataset.evaluate() function (deprecate), '
75 'change to --eval-options instead.')
76 parser.add_argument(
77 '--eval-options',

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected