Spaces:
Runtime error
Runtime error
app
Browse files- 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 |
-
|
| 24 |
-
"demo/
|
| 25 |
-
"
|
|
|
|
| 26 |
"Use Background Video",
|
| 27 |
-
512,
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
"static_fg_sync_bg_visualization_fy/14_22_100fps.mp4",
|
| 31 |
],
|
| 32 |
[
|
| 33 |
-
|
| 34 |
-
"demo/
|
| 35 |
-
"
|
|
|
|
| 36 |
"Use Background Video",
|
| 37 |
-
512,
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
"static_fg_sync_bg_visualization_fy/14_55_100fps.mp4",
|
| 41 |
],
|
| 42 |
[
|
| 43 |
-
|
| 44 |
-
"demo/
|
| 45 |
-
"
|
|
|
|
| 46 |
"Use Background Video",
|
| 47 |
-
512,
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
"static_fg_sync_bg_visualization_fy/15_27_100fps.mp4",
|
| 51 |
],
|
| 52 |
[
|
| 53 |
-
|
| 54 |
-
"demo/
|
| 55 |
-
"
|
|
|
|
| 56 |
"Use Background Video",
|
| 57 |
-
512,
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
"static_fg_sync_bg_visualization_fy/18_23_100fps.mp4",
|
| 61 |
],
|
| 62 |
# [
|
| 63 |
-
# "demo/clean_fg_extracted/18/
|
| 64 |
-
# "demo/clean_bg_extracted/33/
|
| 65 |
# "beautiful woman, cinematic lighting",
|
| 66 |
# "Use Background Video",
|
| 67 |
# 512,
|
| 68 |
-
#
|
| 69 |
-
#
|
| 70 |
-
# "static_fg_sync_bg_visualization_fy/18_33_100fps.
|
| 71 |
# ],
|
| 72 |
[
|
| 73 |
-
|
| 74 |
-
"demo/
|
| 75 |
-
"
|
|
|
|
| 76 |
"Use Background Video",
|
| 77 |
-
512,
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
"static_fg_sync_bg_visualization_fy/22_39_100fps.mp4",
|
| 81 |
],
|
| 82 |
# [
|
| 83 |
-
# "demo/clean_fg_extracted/22/
|
| 84 |
-
# "demo/clean_bg_extracted/59/
|
| 85 |
# "beautiful woman, cinematic lighting",
|
| 86 |
# "Use Background Video",
|
| 87 |
# 512,
|
| 88 |
-
#
|
| 89 |
-
#
|
| 90 |
-
# "static_fg_sync_bg_visualization_fy/22_59_100fps.
|
| 91 |
# ],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
[
|
| 93 |
-
|
| 94 |
-
"demo/
|
| 95 |
-
"
|
|
|
|
| 96 |
"Use Background Video",
|
| 97 |
-
512,
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
"static_fg_sync_bg_visualization_fy/9_8_100fps.
|
| 101 |
],
|
| 102 |
[
|
| 103 |
-
|
| 104 |
-
"demo/
|
| 105 |
-
"
|
|
|
|
| 106 |
"Use Background Video",
|
| 107 |
-
512,
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
"static_fg_sync_bg_visualization_fy/9_9_100fps.mp4",
|
| 111 |
],
|
| 112 |
[
|
| 113 |
-
|
| 114 |
-
"demo/
|
| 115 |
-
"
|
|
|
|
| 116 |
"Use Background Video",
|
| 117 |
-
512,
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
"static_fg_sync_bg_visualization_fy/9_10_100fps.
|
| 121 |
],
|
|
|
|
| 122 |
# [
|
| 123 |
-
#
|
| 124 |
-
# "demo/
|
|
|
|
| 125 |
# "beautiful woman, cinematic lighting",
|
| 126 |
# "Use Background Video",
|
| 127 |
# 512,
|
| 128 |
-
#
|
| 129 |
-
|
| 130 |
-
# "static_fg_sync_bg_visualization_fy/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# ]
|