forked from felipecode/coiltraine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanipulate_experiments.py
47 lines (35 loc) · 1.42 KB
/
manipulate_experiments.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
import argparse
from coilutils.general import get_validation_datasets, get_driving_environments
from coilutils.exporter import export_status, export_csv_separate
# You could send the module to be executed and they could have the same interface.
if __name__ == '__main__':
argparser = argparse.ArgumentParser(description=__doc__)
argparser.add_argument(
'--export-status',
action='store_true',
dest='export_status',
)
argparser.add_argument(
'--export-results',
action='store_true',
dest='export_results',
)
argparser.add_argument(
'--folder',
default='eccv',
type=str
)
args = argparser.parse_args()
# Obs this is like a fixed parameter, how much a validation and a train and drives ocupies
if args.export_status:
validation_datasets = get_validation_datasets(args.folder)
drive_environments = get_driving_environments(args.folder)
export_status(args.folder, validation_datasets, drive_environments)
if args.export_results:
variables_to_export = ['episodes_fully_completed', 'end_pedestrian_collision',
'end_vehicle_collision',
'end_other_collision', 'driven_kilometers']
export_csv_separate(args.folder, variables_to_export,
['empty', 'cluttered'])
if args.erase_experiments:
pass