-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtrain_nbp.py
More file actions
34 lines (24 loc) · 957 Bytes
/
train_nbp.py
File metadata and controls
34 lines (24 loc) · 957 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
25
26
27
28
29
30
31
32
33
34
import argparse
import os
from macarons.utility.macarons_utils import load_params
from next_best_path.trainers.train_nbp_model import run_training_nbp
dir_path = os.path.abspath(os.path.dirname(__file__))
data_path = os.path.join(dir_path, "./data/")
weights_dir = os.path.join(dir_path, "./weights/nbp")
configs_dir = os.path.join(dir_path, "./configs/nbp")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Script to train the nbp model in large 3D scenes')
parser.add_argument('-c', '--config', type=str, help='name of the cofigh file.')
args = parser.parse_args()
if args.config:
json_name = args.config
else:
json_name = "nbp_default_training_config.json"
json_path = os.path.join(configs_dir, json_name)
params = load_params(json_path)
if params.ddp:
pass
elif params.jz:
pass
else:
run_training_nbp(params=params)