-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun_render.py
More file actions
208 lines (191 loc) · 5.99 KB
/
Copy pathrun_render.py
File metadata and controls
208 lines (191 loc) · 5.99 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
import os
################################# Synthetic FToRF Scenes
# Sliding_cube
args = [
"-m", "output/pretrained_models/ftorf_synthetic_scenes/sliding_cube",
"--big_motion_quantile", "0.9",
"--z_distr_quantile", "0.45",
"--opacity_quantile", "0.9",
"--small_size_quantile", "0.1",
"--big_size_quantile", "0.9",
"--iteration", "60000",
"--scene_name", "sliding_cube",
"--baseline_start_fid", "8",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# occlusion
args = [
"-m", "output/pretrained_models/ftorf_synthetic_scenes/occlusion",
"--big_motion_quantile", "0.9",
"--z_distr_quantile", "0.45",
"--opacity_quantile", "0.8",
"--small_size_quantile", "0.2",
"--big_size_quantile", "1.0",
"--iteration", "30000",
"--scene_name", "occlusion",
"--baseline_start_fid", "8",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# z_motion_st
args = [
"-m", "output/pretrained_models/ftorf_synthetic_scenes/z_motion_speed_test",
"--big_motion_quantile", "0.25",
"--z_distr_quantile", "0.65",
"--opacity_quantile", "0.5",
"--small_size_quantile", "0.1",
"--big_size_quantile", "0.9",
"--iteration", "30000",
"--scene_name", "z_motion_speed_test",
"--baseline_start_fid", "8",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# st_texture
args = [
"-m", "output/pretrained_models/ftorf_synthetic_scenes/speed_test_texture",
"--big_motion_quantile", "0.2",
"--z_distr_quantile", "0.9",
"--opacity_quantile", "0.85",
"--small_size_quantile", "0.3",
"--big_size_quantile", "1.0",
"--iteration", "30000",
"--scene_name", "speed_test_texture",
"--baseline_start_fid", "8",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# st_chair
args = [
"-m", "output/pretrained_models/ftorf_synthetic_scenes/speed_test_chair",
"--big_motion_quantile", "0.1",
"--z_distr_quantile", "0.75",
"--opacity_quantile", "0.1",
"--small_size_quantile", "0.0",
"--big_size_quantile", "0.5",
"--iteration", "30000",
"--scene_name", "speed_test_chair",
"--baseline_start_fid", "8",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# arcing_cube
args = [
"-m", "output/pretrained_models/ftorf_synthetic_scenes/arcing_cube",
"--big_motion_quantile", "0.7",
"--z_distr_quantile", "0.99",
"--opacity_quantile", "0.01",
"--small_size_quantile", "0.01",
"--big_size_quantile", "0.99",
"--iteration", "30000",
"--scene_name", "arcing_cube",
"--baseline_start_fid", "8",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# acute_z_st
args = [
"-m", "output/pretrained_models/ftorf_synthetic_scenes/acute_z_speed_test",
"--big_motion_quantile", "0.6",
"--z_distr_quantile", "0.85",
"--opacity_quantile", "0.5",
"--small_size_quantile", "0.01",
"--big_size_quantile", "0.99",
"--iteration", "30000",
"--scene_name", "acute_z_speed_test",
"--baseline_start_fid", "8",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
################################# Real FToRF Scenes
# Baseball
args = [
"-m", "output/pretrained_models/ftorf_real_scenes/baseball",
"--big_motion_quantile", "0.9",
"--z_distr_quantile", "0.65",
"--opacity_quantile", "0.1",
"--small_size_quantile", "0.01",
"--big_size_quantile", "0.99",
"--iteration", "60000",
"--scene_name", "baseball",
"--baseline_start_fid", "0",
"--baseline_end_fid", "52",
"--baseline_duration", "2.0",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# Pillow
args = [
"-m", "output/pretrained_models/ftorf_real_scenes/pillow",
"--big_motion_quantile", "0.8", # sparse 0.9
"--z_distr_quantile", "0.45",
"--opacity_quantile", "0.6", # sparse 0.9
"--small_size_quantile", "0.1",
"--big_size_quantile", "0.9",
"--iteration", "60000",
"--scene_name", "pillow",
"--baseline_start_fid", "0",
"--baseline_end_fid", "52",
"--baseline_duration", "2.0",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# target1
args = [
"-m", "output/pretrained_models/ftorf_real_scenes/target1",
"--big_motion_quantile", "0.9",
"--z_distr_quantile", "0.45",
"--opacity_quantile", "0.6",
"--small_size_quantile", "0.1",
"--big_size_quantile", "0.9",
"--iteration", "20000",
"--scene_name", "target1",
"--baseline_start_fid", "0",
"--baseline_end_fid", "52",
"--baseline_duration", "2.0",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# jacks1
args = [
"-m", "output/pretrained_models/ftorf_real_scenes/jacks1",
"--big_motion_quantile", "0.9",
"--z_distr_quantile", "0.45",
"--opacity_quantile", "0.6",
"--small_size_quantile", "0.01",
"--big_size_quantile", "0.99",
"--iteration", "60000",
"--scene_name", "jacks1",
"--baseline_start_fid", "0",
"--baseline_end_fid", "52",
"--baseline_duration", "2.0",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
# fan
args = [
"-m", "output/pretrained_models/ftorf_real_scenes/fan",
"--big_motion_quantile", "0.75",
"--z_distr_quantile", "0.35",
"--opacity_quantile", "0.01",
"--small_size_quantile", "0.01",
"--big_size_quantile", "0.5",
"--iteration", "60000",
"--scene_name", "fan",
"--baseline_start_fid", "0",
"--baseline_end_fid", "52",
"--baseline_duration", "2.0",
]
args_str = ' '.join(args)
os.system(f"python render_ftorf_viz_traj.py {args_str}")
################################# ToRF Scenes
for scene in [
"copier",
"cupboard",
"deskbox",
"phonebooth",
"studybook",
]:
output_folder = "output/pretrained_models/torf_scenes/copier"
os.system(f'python render.py -m {output_folder} --iteration 30000')