-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_plots.py
50 lines (39 loc) · 1.31 KB
/
run_plots.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
48
49
50
"""
Run Prediction and Grad-CAM Visualization for several models and experiments.
Afterwards create videos from plots.
"""
import os
import time
start_time = time.time()
# Settings
####################################################################################################
ParallelNets_models = [
'ParallelNets-1'
]
UNet_models = [
'UNet-1',
'UNet-2'
]
experiments = [
('S_950_1.6', 'left'),
('S_950_1.6', 'right'),
('S_160_4.7', 'left'),
('S_160_4.7', 'right'),
('S_160_2.0', 'left'),
('S_160_2.0', 'right')
]
####################################################################################################
# Plots for ParallelNets models
for model in ParallelNets_models:
for experiment, side in experiments:
os.system(f"python ParallelNets_plot.py {model} {experiment} {side}")
os.system(f"python ParallelNets_visualize.py {model} {experiment} {side}")
# Plots for UNet models
for model in UNet_models:
for experiment, side in experiments:
os.system(f"python UNet_plot.py {model} {experiment} {side}")
os.system(f"python UNet_visualize.py {model} {experiment} {side}")
# Make videos
os.system('python make_video.py')
# Print time needed for script
print(f"\nThe hole script took {(time.time() - start_time) / 60. / 60.} hours.")