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

Function parse_args

SemVecNet/tools/maptr/vis_pred.py:71–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 return pix_coords
70
71def parse_args():
72 parser = argparse.ArgumentParser(description='vis hdmaptr map gt label')
73 parser.add_argument('config', help='test config file path')
74 parser.add_argument('checkpoint', help='checkpoint file')
75 parser.add_argument('--score-thresh', default=0.4, type=float, help='samples to visualize')
76 parser.add_argument(
77 '--show-dir', help='directory where visualizations will be saved')
78 parser.add_argument('--show-cam', action='store_true', help='show camera pic')
79 parser.add_argument(
80 '--gt-format',
81 type=str,
82 nargs='+',
83 default=['fixed_num_pts',],
84 help='vis format, default should be "points",'
85 'support ["se_pts","bbox","fixed_num_pts","polyline_pts"]')
86 args = parser.parse_args()
87 return args
88
89def main():
90 args = parse_args()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected