aleafy commited on
Commit
1f5cfab
·
1 Parent(s): 35a91e2
Files changed (1) hide show
  1. db_examples.py +254 -71
db_examples.py CHANGED
@@ -17,117 +17,300 @@ bg_samples = [
17
  'demo/clean_bg_extracted/62/frames/0000.png'
18
  ] # 准备大概 15 个 background视频
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  background_conditioned_examples = [
22
  [
23
- "demo/clean_fg_extracted/14/cropped_video.mp4",
24
- "demo/clean_bg_extracted/22/cropped_video.mp4",
25
- "beautiful woman, cinematic lighting",
 
26
  "Use Background Video",
27
- 512,
28
- 768,
29
- 12345,
30
- "static_fg_sync_bg_visualization_fy/14_22_100fps.mp4",
31
  ],
32
  [
33
- "demo/clean_fg_extracted/14/cropped_video.mp4",
34
- "demo/clean_bg_extracted/55/cropped_video.mp4",
35
- "beautiful woman, cinematic lighting",
 
36
  "Use Background Video",
37
- 512,
38
- 768,
39
- 12345,
40
- "static_fg_sync_bg_visualization_fy/14_55_100fps.mp4",
41
  ],
42
  [
43
- "demo/clean_fg_extracted/15/cropped_video.mp4",
44
- "demo/clean_bg_extracted/27/cropped_video.mp4",
45
- "beautiful woman, cinematic lighting",
 
46
  "Use Background Video",
47
- 512,
48
- 768,
49
- 12345,
50
- "static_fg_sync_bg_visualization_fy/15_27_100fps.mp4",
51
  ],
52
  [
53
- "demo/clean_fg_extracted/18/cropped_video.mp4",
54
- "demo/clean_bg_extracted/23/cropped_video.mp4",
55
- "beautiful woman, cinematic lighting",
 
56
  "Use Background Video",
57
- 512,
58
- 768,
59
- 12345,
60
- "static_fg_sync_bg_visualization_fy/18_23_100fps.mp4",
61
  ],
62
  # [
63
- # "demo/clean_fg_extracted/18/cropped_video.mp4",
64
- # "demo/clean_bg_extracted/33/cropped_video.mp4",
65
  # "beautiful woman, cinematic lighting",
66
  # "Use Background Video",
67
  # 512,
68
- # 768,
69
- # 12345,
70
- # "static_fg_sync_bg_visualization_fy/18_33_100fps.mp4",
71
  # ],
72
  [
73
- "demo/clean_fg_extracted/22/cropped_video.mp4",
74
- "demo/clean_bg_extracted/39/cropped_video.mp4",
75
- "beautiful woman, cinematic lighting",
 
76
  "Use Background Video",
77
- 512,
78
- 768,
79
- 12345,
80
- "static_fg_sync_bg_visualization_fy/22_39_100fps.mp4",
81
  ],
82
  # [
83
- # "demo/clean_fg_extracted/22/cropped_video.mp4",
84
- # "demo/clean_bg_extracted/59/cropped_video.mp4",
85
  # "beautiful woman, cinematic lighting",
86
  # "Use Background Video",
87
  # 512,
88
- # 768,
89
- # 12345,
90
- # "static_fg_sync_bg_visualization_fy/22_59_100fps.mp4",
91
  # ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  [
93
- "demo/clean_fg_extracted/9/cropped_video.mp4",
94
- "demo/clean_bg_extracted/8/cropped_video.mp4",
95
- "beautiful woman, cinematic lighting",
 
96
  "Use Background Video",
97
- 512,
98
- 768,
99
- 12345,
100
- "static_fg_sync_bg_visualization_fy/9_8_100fps.mp4",
101
  ],
102
  [
103
- "demo/clean_fg_extracted/9/cropped_video.mp4",
104
- "demo/clean_bg_extracted/9/cropped_video.mp4",
105
- "beautiful woman, cinematic lighting",
 
106
  "Use Background Video",
107
- 512,
108
- 768,
109
- 12345,
110
- "static_fg_sync_bg_visualization_fy/9_9_100fps.mp4",
111
  ],
112
  [
113
- "demo/clean_fg_extracted/9/cropped_video.mp4",
114
- "demo/clean_bg_extracted/10/cropped_video.mp4",
115
- "beautiful woman, cinematic lighting",
 
116
  "Use Background Video",
117
- 512,
118
- 768,
119
- 12345,
120
- "static_fg_sync_bg_visualization_fy/9_10_100fps.mp4",
121
  ],
 
122
  # [
123
- # "demo/clean_fg_extracted/9/cropped_video.mp4",
124
- # "demo/clean_bg_extracted/14/cropped_video.mp4",
 
125
  # "beautiful woman, cinematic lighting",
126
  # "Use Background Video",
127
  # 512,
128
- # 768,
129
- # 12345,
130
- # "static_fg_sync_bg_visualization_fy/9_14_100fps.mp4",
 
 
 
 
 
 
 
 
 
 
131
  # ],
132
 
133
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  'demo/clean_bg_extracted/62/frames/0000.png'
18
  ] # 准备大概 15 个 background视频
19
 
20
+ fg_samples = [
21
+ 'demo/clean_fg_extracted/14/frames/0000.png',
22
+ 'demo/clean_fg_extracted/15/frames/0000.png',
23
+ 'demo/clean_fg_extracted/18/frames/0000.png',
24
+ 'demo/clean_fg_extracted/8/frames/0000.png',
25
+ 'demo/clean_fg_extracted/1/frames/0000.png',
26
+ # 'demo/clean_fg_extracted/22/frames/0000.png',
27
+ # 'demo/clean_fg_extracted/1/frames/0000.png',
28
+ # 'demo/clean_fg_extracted/2/frames/0000.png',
29
+ # 'demo/clean_fg_extracted/3/frames/0000.png',
30
+ # 'demo/clean_fg_extracted/4/frames/0000.png',
31
+ # 'demo/clean_fg_extracted/5/frames/0000.png',
32
+ # 'demo/clean_fg_extracted/6/frames/0000.png',
33
+ # 'demo/clean_fg_extracted/7/frames/0000.png',
34
+ # 'demo/clean_fg_extracted/8/frames/0000.png',
35
+ # 'demo/clean_fg_extracted/9/frames/0000.png',
36
+ # 'demo/clean_fg_extracted/10/frames/0000.png',
37
+ # 'demo/clean_fg_extracted/11/frames/0000.png',
38
+ # 'demo/clean_fg_extracted/12/frames/0000.png',
39
+ # 'demo/clean_fg_extracted/13/frames/0000.png',
40
+ # 'demo/clean_fg_extracted/16/frames/0000.png',
41
+ # 'demo/clean_fg_extracted/17/frames/0000.png',
42
+ # 'demo/clean_fg_extracted/9/frames/0000.png',
43
+ # 'demo/clean_bg_extracted/39/frames/0000.png',
44
+ # 'demo/clean_bg_extracted/59/frames/0000.png',
45
+ # 'demo/clean_bg_extracted/55/frames/0000.png',
46
+ # 'demo/clean_bg_extracted/58/frames/0000.png',
47
+ # 'demo/clean_bg_extracted/57/frames/0000.png', #42
48
+ # 'demo/clean_bg_extracted/8/frames/0000.png',
49
+ # 'demo/clean_bg_extracted/9/frames/0000.png',
50
+ # 'demo/clean_bg_extracted/10/frames/0000.png',
51
+ # 'demo/clean_bg_extracted/14/frames/0000.png',
52
+ # 'demo/clean_bg_extracted/62/frames/0000.png'
53
+ ] # 准备大概 15 个 background视频
54
+
55
 
56
  background_conditioned_examples = [
57
  [
58
+ 1,
59
+ "demo/clean_fg_extracted/14/frames/0000.png",
60
+ "demo/clean_bg_extracted/22/frames/0000.png",
61
+ "beautiful woman, natural lighting",
62
  "Use Background Video",
63
+ # 512,
64
+ # 512,
65
+ "static_fg_sync_bg_visualization_fy/14_22_100fps.png",
 
66
  ],
67
  [
68
+ 2,
69
+ "demo/clean_fg_extracted/14/frames/0000.png",
70
+ "demo/clean_bg_extracted/55/frames/0000.png",
71
+ "beautiful woman, neon dynamic lighting",
72
  "Use Background Video",
73
+ # 512,
74
+ # 512,
75
+ "static_fg_sync_bg_visualization_fy/14_55_100fps.png",
 
76
  ],
77
  [
78
+ 3,
79
+ "demo/clean_fg_extracted/15/frames/0000.png",
80
+ "demo/clean_bg_extracted/27/frames/0000.png",
81
+ "man in suit, tunel lighting",
82
  "Use Background Video",
83
+ # 512,
84
+ # 512,
85
+ "static_fg_sync_bg_visualization_fy/15_27_100fps.png",
 
86
  ],
87
  [
88
+ 4,
89
+ "demo/clean_fg_extracted/18/frames/0000.png",
90
+ "demo/clean_bg_extracted/33/frames/0000.png", # 23->33
91
+ "animated mouse, aesthetic lighting",
92
  "Use Background Video",
93
+ # 512,
94
+ # 512,
95
+ "static_fg_sync_bg_visualization_fy/18_33_100fps.png",
 
96
  ],
97
  # [
98
+ # "demo/clean_fg_extracted/18/frames/0000.png",
99
+ # "demo/clean_bg_extracted/33/frames/0000.png",
100
  # "beautiful woman, cinematic lighting",
101
  # "Use Background Video",
102
  # 512,
103
+ # 512,
104
+ #
105
+ # "static_fg_sync_bg_visualization_fy/18_33_100fps.png",
106
  # ],
107
  [
108
+ 5,
109
+ "demo/clean_fg_extracted/22/frames/0000.png",
110
+ "demo/clean_bg_extracted/59/frames/0000.png", # 39 -> 59
111
+ "robot warrior, a sunset background",
112
  "Use Background Video",
113
+ # 512,
114
+ # 512,
115
+ "static_fg_sync_bg_visualization_fy/22_59_100fps.png",
 
116
  ],
117
  # [
118
+ # "demo/clean_fg_extracted/22/frames/0000.png",
119
+ # "demo/clean_bg_extracted/59/frames/0000.png",
120
  # "beautiful woman, cinematic lighting",
121
  # "Use Background Video",
122
  # 512,
123
+ # 512,
124
+ #
125
+ # "static_fg_sync_bg_visualization_fy/22_59_100fps.png",
126
  # ],
127
+
128
+ [
129
+ 6,
130
+ "demo/clean_fg_extracted/17/frames/0000.png",
131
+ "demo/clean_bg_extracted/0/frames/0000.png",
132
+ "yellow cat, reflective wet beach",
133
+ "Use Background Video",
134
+ # 512,
135
+ # 512,
136
+
137
+ "static_fg_sync_bg_visualization_fy/17_0_100fps.png",
138
+ ],
139
+ [
140
+ 7,
141
+ "demo/clean_fg_extracted/16/frames/0000.png",
142
+ "demo/clean_bg_extracted/1/frames/0000.png",
143
+ "camera, dock, calm sunset",
144
+ "Use Background Video",
145
+ # 512,
146
+ # 512,
147
+
148
+ "static_fg_sync_bg_visualization_fy/16_1_100fps.png",
149
+ ],
150
  [
151
+ 8,
152
+ "demo/clean_fg_extracted/9/frames/0000.png",
153
+ "demo/clean_bg_extracted/8/frames/0000.png",
154
+ "astronaut, dim lighting",
155
  "Use Background Video",
156
+ # 512,
157
+ # 512,
158
+
159
+ "static_fg_sync_bg_visualization_fy/9_8_100fps.png",
160
  ],
161
  [
162
+ 9,
163
+ "demo/clean_fg_extracted/9/frames/0000.png",
164
+ "demo/clean_bg_extracted/9/frames/0000.png",
165
+ "astronaut, colorful balloons",
166
  "Use Background Video",
167
+ # 512,
168
+ # 512,
169
+ "static_fg_sync_bg_visualization_fy/9_9_100fps.png",
 
170
  ],
171
  [
172
+ 10,
173
+ "demo/clean_fg_extracted/9/frames/0000.png",
174
+ "demo/clean_bg_extracted/10/frames/0000.png",
175
+ "astronaut, desert landscape",
176
  "Use Background Video",
177
+ # 512,
178
+ # 512,
179
+
180
+ "static_fg_sync_bg_visualization_fy/9_10_100fps.png",
181
  ],
182
+
183
  # [
184
+ # 11,
185
+ # "demo/clean_fg_extracted/7/frames/0000.png",
186
+ # "demo/clean_bg_extracted/2/frames/0000.png",
187
  # "beautiful woman, cinematic lighting",
188
  # "Use Background Video",
189
  # 512,
190
+ # 512,
191
+
192
+ # "static_fg_sync_bg_visualization_fy/16_1_100fps.png",
193
+ # ],
194
+ # [
195
+ # "demo/clean_fg_extracted/9/frames/0000.png",
196
+ # "demo/clean_bg_extracted/14/frames/0000.png",
197
+ # "beautiful woman, cinematic lighting",
198
+ # "Use Background Video",
199
+ # 512,
200
+ # 512,
201
+ #
202
+ # "static_fg_sync_bg_visualization_fy/9_14_100fps.png",
203
  # ],
204
 
205
  ]
206
+ # background_conditioned_examples = [
207
+ # [
208
+ # "demo/clean_fg_extracted/14/frames/0000.png",
209
+ # "demo/clean_bg_extracted/22/frames/0000.png",
210
+ # "beautiful woman, cinematic lighting",
211
+ # "Use Background Video",
212
+ # 512,
213
+ # 512,
214
+ # "static_fg_sync_bg_visualization_fy/14_22_100fps.png",
215
+ # ],
216
+ # [
217
+ # "demo/clean_fg_extracted/14/frames/0000.png",
218
+ # "demo/clean_bg_extracted/55/frames/0000.png",
219
+ # "beautiful woman, cinematic lighting",
220
+ # "Use Background Video",
221
+ # 512,
222
+ # 512,
223
+ # "static_fg_sync_bg_visualization_fy/14_55_100fps.png",
224
+ # ],
225
+ # [
226
+ # "demo/clean_fg_extracted/15/frames/0000.png",
227
+ # "demo/clean_bg_extracted/27/frames/0000.png",
228
+ # "beautiful woman, cinematic lighting",
229
+ # "Use Background Video",
230
+ # 512,
231
+ # 512,
232
+
233
+ # "static_fg_sync_bg_visualization_fy/15_27_100fps.png",
234
+ # ],
235
+ # [
236
+ # "demo/clean_fg_extracted/18/frames/0000.png",
237
+ # "demo/clean_bg_extracted/23/frames/0000.png",
238
+ # "beautiful woman, cinematic lighting",
239
+ # "Use Background Video",
240
+ # 512,
241
+ # 512,
242
+
243
+ # "static_fg_sync_bg_visualization_fy/18_23_100fps.png",
244
+ # ],
245
+ # # [
246
+ # # "demo/clean_fg_extracted/18/frames/0000.png",
247
+ # # "demo/clean_bg_extracted/33/frames/0000.png",
248
+ # # "beautiful woman, cinematic lighting",
249
+ # # "Use Background Video",
250
+ # # 512,
251
+ # # 512,
252
+ # #
253
+ # # "static_fg_sync_bg_visualization_fy/18_33_100fps.png",
254
+ # # ],
255
+ # [
256
+ # "demo/clean_fg_extracted/22/frames/0000.png",
257
+ # "demo/clean_bg_extracted/39/frames/0000.png",
258
+ # "beautiful woman, cinematic lighting",
259
+ # "Use Background Video",
260
+ # 512,
261
+ # 512,
262
+
263
+ # "static_fg_sync_bg_visualization_fy/22_39_100fps.png",
264
+ # ],
265
+ # # [
266
+ # # "demo/clean_fg_extracted/22/frames/0000.png",
267
+ # # "demo/clean_bg_extracted/59/frames/0000.png",
268
+ # # "beautiful woman, cinematic lighting",
269
+ # # "Use Background Video",
270
+ # # 512,
271
+ # # 512,
272
+ # #
273
+ # # "static_fg_sync_bg_visualization_fy/22_59_100fps.png",
274
+ # # ],
275
+ # [
276
+ # "demo/clean_fg_extracted/9/frames/0000.png",
277
+ # "demo/clean_bg_extracted/8/frames/0000.png",
278
+ # "beautiful woman, cinematic lighting",
279
+ # "Use Background Video",
280
+ # 512,
281
+ # 512,
282
+
283
+ # "static_fg_sync_bg_visualization_fy/9_8_100fps.png",
284
+ # ],
285
+ # [
286
+ # "demo/clean_fg_extracted/9/frames/0000.png",
287
+ # "demo/clean_bg_extracted/9/frames/0000.png",
288
+ # "beautiful woman, cinematic lighting",
289
+ # "Use Background Video",
290
+ # 512,
291
+ # 512,
292
+
293
+ # "static_fg_sync_bg_visualization_fy/9_9_100fps.png",
294
+ # ],
295
+ # [
296
+ # "demo/clean_fg_extracted/9/frames/0000.png",
297
+ # "demo/clean_bg_extracted/10/frames/0000.png",
298
+ # "beautiful woman, cinematic lighting",
299
+ # "Use Background Video",
300
+ # 512,
301
+ # 512,
302
+
303
+ # "static_fg_sync_bg_visualization_fy/9_10_100fps.png",
304
+ # ],
305
+ # # [
306
+ # # "demo/clean_fg_extracted/9/frames/0000.png",
307
+ # # "demo/clean_bg_extracted/14/frames/0000.png",
308
+ # # "beautiful woman, cinematic lighting",
309
+ # # "Use Background Video",
310
+ # # 512,
311
+ # # 512,
312
+ # #
313
+ # # "static_fg_sync_bg_visualization_fy/9_14_100fps.png",
314
+ # # ],
315
+
316
+ # ]