MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / get_args

Function get_args

MACVO.py:47–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 pb.set_description(desc=f"{system.graph}, VRAM={allocated_memory}")
46
47def get_args():
48 parser = argparse.ArgumentParser()
49 parser.add_argument("--odom", type=str, default = "Config/Experiment/MACVO/MACVO.yaml")
50 parser.add_argument("--data", type=str, default = "Config/Sequence/TartanAir_abandonfac_001.yaml")
51 parser.add_argument(
52 "--seq_to",
53 type=int,
54 default=None,
55 help="Crop sequence to frame# when ran. Set to -1 (default) if wish to run whole sequence",
56 )
57 parser.add_argument(
58 "--seq_from",
59 type=int,
60 default=0,
61 help="Crop sequence from frame# when ran. Set to 0 (default) if wish to start from first frame",
62 )
63 parser.add_argument(
64 "--resultRoot",
65 type=str,
66 default="./Results",
67 help="Directory to store trajectory and files generated by the script."
68 )
69 parser.add_argument(
70 "--useRR",
71 action="store_true",
72 help="Activate RerunVisualizer to generate <config.Project>.rrd file for visualization.",
73 )
74 parser.add_argument(
75 "--saveplt",
76 action="store_true",
77 help="Activate PLTVisualizer to generate <frame_idx>.jpg file in space folder for covariance visualization.",
78 )
79 parser.add_argument(
80 "--preload",
81 action="store_true",
82 help="Preload entire trajectory into RAM to reduce data fetching overhead during runtime."
83 )
84 parser.add_argument(
85 "--autoremove",
86 action="store_true",
87 help="Cleanup result sandbox after script finishs / crashed. Helpful during testing & debugging."
88 )
89 parser.add_argument(
90 "--noeval",
91 action="store_true",
92 help="Evaluate sequence after running odometry."
93 )
94 parser.add_argument(
95 "--timing",
96 action="store_true",
97 help="Record timing for system (active Utility.Timer for global time recording)"
98 )
99 return parser.parse_args()
100
101
102if __name__ == "__main__":

Callers 4

MACVO.pyFile · 0.85
AssertLiteralTypeFunction · 0.85
is_valid_configMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected