| 69 | return pix_coords |
| 70 | |
| 71 | def 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 | |
| 89 | def main(): |
| 90 | args = parse_args() |