-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.py
More file actions
24 lines (18 loc) · 767 Bytes
/
run.py
File metadata and controls
24 lines (18 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import argparse
from src import config
from src.MUTE_SLAM import MUTE_SLAM
def main():
parser = argparse.ArgumentParser(
description='Arguments for running MUTE-SLAM.'
)
parser.add_argument('config', type=str, help='Path to config file.')
parser.add_argument('--input_folder', type=str,
help='input folder, this have higher priority, can overwrite the one in config file')
parser.add_argument('--output', type=str,
help='output folder, this have higher priority, can overwrite the one in config file')
args = parser.parse_args()
cfg = config.load_config(args.config, 'configs/SLAM.yaml')
slam = MUTE_SLAM(cfg, args)
slam.run()
if __name__ == '__main__':
main()