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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
K400_label_map = {
|
2 |
+
"abseiling": 0,
|
3 |
+
"air_drumming": 1,
|
4 |
+
"answering_questions": 2,
|
5 |
+
"applauding": 3,
|
6 |
+
"applying_cream": 4,
|
7 |
+
"archery": 5,
|
8 |
+
"arm_wrestling": 6,
|
9 |
+
"arranging_flowers": 7,
|
10 |
+
"assembling_computer": 8,
|
11 |
+
"auctioning": 9,
|
12 |
+
"baby_waking_up": 10,
|
13 |
+
"baking_cookies": 11,
|
14 |
+
"balloon_blowing": 12,
|
15 |
+
"bandaging": 13,
|
16 |
+
"barbequing": 14,
|
17 |
+
"bartending": 15,
|
18 |
+
"beatboxing": 16,
|
19 |
+
"bee_keeping": 17,
|
20 |
+
"belly_dancing": 18,
|
21 |
+
"bench_pressing": 19,
|
22 |
+
"bending_back": 20,
|
23 |
+
"bending_metal": 21,
|
24 |
+
"biking_through_snow": 22,
|
25 |
+
"blasting_sand": 23,
|
26 |
+
"blowing_glass": 24,
|
27 |
+
"blowing_leaves": 25,
|
28 |
+
"blowing_nose": 26,
|
29 |
+
"blowing_out_candles": 27,
|
30 |
+
"bobsledding": 28,
|
31 |
+
"bookbinding": 29,
|
32 |
+
"bouncing_on_trampoline": 30,
|
33 |
+
"bowling": 31,
|
34 |
+
"braiding_hair": 32,
|
35 |
+
"breading_or_breadcrumbing": 33,
|
36 |
+
"breakdancing": 34,
|
37 |
+
"brush_painting": 35,
|
38 |
+
"brushing_hair": 36,
|
39 |
+
"brushing_teeth": 37,
|
40 |
+
"building_cabinet": 38,
|
41 |
+
"building_shed": 39,
|
42 |
+
"bungee_jumping": 40,
|
43 |
+
"busking": 41,
|
44 |
+
"canoeing_or_kayaking": 42,
|
45 |
+
"capoeira": 43,
|
46 |
+
"carrying_baby": 44,
|
47 |
+
"cartwheeling": 45,
|
48 |
+
"carving_pumpkin": 46,
|
49 |
+
"catching_fish": 47,
|
50 |
+
"catching_or_throwing_baseball": 48,
|
51 |
+
"catching_or_throwing_frisbee": 49,
|
52 |
+
"catching_or_throwing_softball": 50,
|
53 |
+
"celebrating": 51,
|
54 |
+
"changing_oil": 52,
|
55 |
+
"changing_wheel": 53,
|
56 |
+
"checking_tires": 54,
|
57 |
+
"cheerleading": 55,
|
58 |
+
"chopping_wood": 56,
|
59 |
+
"clapping": 57,
|
60 |
+
"clay_pottery_making": 58,
|
61 |
+
"clean_and_jerk": 59,
|
62 |
+
"cleaning_floor": 60,
|
63 |
+
"cleaning_gutters": 61,
|
64 |
+
"cleaning_pool": 62,
|
65 |
+
"cleaning_shoes": 63,
|
66 |
+
"cleaning_toilet": 64,
|
67 |
+
"cleaning_windows": 65,
|
68 |
+
"climbing_a_rope": 66,
|
69 |
+
"climbing_ladder": 67,
|
70 |
+
"climbing_tree": 68,
|
71 |
+
"contact_juggling": 69,
|
72 |
+
"cooking_chicken": 70,
|
73 |
+
"cooking_egg": 71,
|
74 |
+
"cooking_on_campfire": 72,
|
75 |
+
"cooking_sausages": 73,
|
76 |
+
"counting_money": 74,
|
77 |
+
"country_line_dancing": 75,
|
78 |
+
"cracking_neck": 76,
|
79 |
+
"crawling_baby": 77,
|
80 |
+
"crossing_river": 78,
|
81 |
+
"crying": 79,
|
82 |
+
"curling_hair": 80,
|
83 |
+
"cutting_nails": 81,
|
84 |
+
"cutting_pineapple": 82,
|
85 |
+
"cutting_watermelon": 83,
|
86 |
+
"dancing_ballet": 84,
|
87 |
+
"dancing_charleston": 85,
|
88 |
+
"dancing_gangnam_style": 86,
|
89 |
+
"dancing_macarena": 87,
|
90 |
+
"deadlifting": 88,
|
91 |
+
"decorating_the_christmas_tree": 89,
|
92 |
+
"digging": 90,
|
93 |
+
"dining": 91,
|
94 |
+
"disc_golfing": 92,
|
95 |
+
"diving_cliff": 93,
|
96 |
+
"dodgeball": 94,
|
97 |
+
"doing_aerobics": 95,
|
98 |
+
"doing_laundry": 96,
|
99 |
+
"doing_nails": 97,
|
100 |
+
"drawing": 98,
|
101 |
+
"dribbling_basketball": 99,
|
102 |
+
"drinking": 100,
|
103 |
+
"drinking_beer": 101,
|
104 |
+
"drinking_shots": 102,
|
105 |
+
"driving_car": 103,
|
106 |
+
"driving_tractor": 104,
|
107 |
+
"drop_kicking": 105,
|
108 |
+
"drumming_fingers": 106,
|
109 |
+
"dunking_basketball": 107,
|
110 |
+
"dying_hair": 108,
|
111 |
+
"eating_burger": 109,
|
112 |
+
"eating_cake": 110,
|
113 |
+
"eating_carrots": 111,
|
114 |
+
"eating_chips": 112,
|
115 |
+
"eating_doughnuts": 113,
|
116 |
+
"eating_hotdog": 114,
|
117 |
+
"eating_ice_cream": 115,
|
118 |
+
"eating_spaghetti": 116,
|
119 |
+
"eating_watermelon": 117,
|
120 |
+
"egg_hunting": 118,
|
121 |
+
"exercising_arm": 119,
|
122 |
+
"exercising_with_an_exercise_ball": 120,
|
123 |
+
"extinguishing_fire": 121,
|
124 |
+
"faceplanting": 122,
|
125 |
+
"feeding_birds": 123,
|
126 |
+
"feeding_fish": 124,
|
127 |
+
"feeding_goats": 125,
|
128 |
+
"filling_eyebrows": 126,
|
129 |
+
"finger_snapping": 127,
|
130 |
+
"fixing_hair": 128,
|
131 |
+
"flipping_pancake": 129,
|
132 |
+
"flying_kite": 130,
|
133 |
+
"folding_clothes": 131,
|
134 |
+
"folding_napkins": 132,
|
135 |
+
"folding_paper": 133,
|
136 |
+
"front_raises": 134,
|
137 |
+
"frying_vegetables": 135,
|
138 |
+
"garbage_collecting": 136,
|
139 |
+
"gargling": 137,
|
140 |
+
"getting_a_haircut": 138,
|
141 |
+
"getting_a_tattoo": 139,
|
142 |
+
"giving_or_receiving_award": 140,
|
143 |
+
"golf_chipping": 141,
|
144 |
+
"golf_driving": 142,
|
145 |
+
"golf_putting": 143,
|
146 |
+
"grinding_meat": 144,
|
147 |
+
"grooming_dog": 145,
|
148 |
+
"grooming_horse": 146,
|
149 |
+
"gymnastics_tumbling": 147,
|
150 |
+
"hammer_throw": 148,
|
151 |
+
"headbanging": 149,
|
152 |
+
"headbutting": 150,
|
153 |
+
"high_jump": 151,
|
154 |
+
"high_kick": 152,
|
155 |
+
"hitting_baseball": 153,
|
156 |
+
"hockey_stop": 154,
|
157 |
+
"holding_snake": 155,
|
158 |
+
"hopscotch": 156,
|
159 |
+
"hoverboarding": 157,
|
160 |
+
"hugging": 158,
|
161 |
+
"hula_hooping": 159,
|
162 |
+
"hurdling": 160,
|
163 |
+
"hurling_(sport)": 161,
|
164 |
+
"ice_climbing": 162,
|
165 |
+
"ice_fishing": 163,
|
166 |
+
"ice_skating": 164,
|
167 |
+
"ironing": 165,
|
168 |
+
"javelin_throw": 166,
|
169 |
+
"jetskiing": 167,
|
170 |
+
"jogging": 168,
|
171 |
+
"juggling_balls": 169,
|
172 |
+
"juggling_fire": 170,
|
173 |
+
"juggling_soccer_ball": 171,
|
174 |
+
"jumping_into_pool": 172,
|
175 |
+
"jumpstyle_dancing": 173,
|
176 |
+
"kicking_field_goal": 174,
|
177 |
+
"kicking_soccer_ball": 175,
|
178 |
+
"kissing": 176,
|
179 |
+
"kitesurfing": 177,
|
180 |
+
"knitting": 178,
|
181 |
+
"krumping": 179,
|
182 |
+
"laughing": 180,
|
183 |
+
"laying_bricks": 181,
|
184 |
+
"long_jump": 182,
|
185 |
+
"lunge": 183,
|
186 |
+
"making_a_cake": 184,
|
187 |
+
"making_a_sandwich": 185,
|
188 |
+
"making_bed": 186,
|
189 |
+
"making_jewelry": 187,
|
190 |
+
"making_pizza": 188,
|
191 |
+
"making_snowman": 189,
|
192 |
+
"making_sushi": 190,
|
193 |
+
"making_tea": 191,
|
194 |
+
"marching": 192,
|
195 |
+
"massaging_back": 193,
|
196 |
+
"massaging_feet": 194,
|
197 |
+
"massaging_legs": 195,
|
198 |
+
"massaging_person's_head": 196,
|
199 |
+
"milking_cow": 197,
|
200 |
+
"mopping_floor": 198,
|
201 |
+
"motorcycling": 199,
|
202 |
+
"moving_furniture": 200,
|
203 |
+
"mowing_lawn": 201,
|
204 |
+
"news_anchoring": 202,
|
205 |
+
"opening_bottle": 203,
|
206 |
+
"opening_present": 204,
|
207 |
+
"paragliding": 205,
|
208 |
+
"parasailing": 206,
|
209 |
+
"parkour": 207,
|
210 |
+
"passing_American_football_(in_game)": 208,
|
211 |
+
"passing_American_football_(not_in_game)": 209,
|
212 |
+
"peeling_apples": 210,
|
213 |
+
"peeling_potatoes": 211,
|
214 |
+
"petting_animal_(not_cat)": 212,
|
215 |
+
"petting_cat": 213,
|
216 |
+
"picking_fruit": 214,
|
217 |
+
"planting_trees": 215,
|
218 |
+
"plastering": 216,
|
219 |
+
"playing_accordion": 217,
|
220 |
+
"playing_badminton": 218,
|
221 |
+
"playing_bagpipes": 219,
|
222 |
+
"playing_basketball": 220,
|
223 |
+
"playing_bass_guitar": 221,
|
224 |
+
"playing_cards": 222,
|
225 |
+
"playing_cello": 223,
|
226 |
+
"playing_chess": 224,
|
227 |
+
"playing_clarinet": 225,
|
228 |
+
"playing_controller": 226,
|
229 |
+
"playing_cricket": 227,
|
230 |
+
"playing_cymbals": 228,
|
231 |
+
"playing_didgeridoo": 229,
|
232 |
+
"playing_drums": 230,
|
233 |
+
"playing_flute": 231,
|
234 |
+
"playing_guitar": 232,
|
235 |
+
"playing_harmonica": 233,
|
236 |
+
"playing_harp": 234,
|
237 |
+
"playing_ice_hockey": 235,
|
238 |
+
"playing_keyboard": 236,
|
239 |
+
"playing_kickball": 237,
|
240 |
+
"playing_monopoly": 238,
|
241 |
+
"playing_organ": 239,
|
242 |
+
"playing_paintball": 240,
|
243 |
+
"playing_piano": 241,
|
244 |
+
"playing_poker": 242,
|
245 |
+
"playing_recorder": 243,
|
246 |
+
"playing_saxophone": 244,
|
247 |
+
"playing_squash_or_racquetball": 245,
|
248 |
+
"playing_tennis": 246,
|
249 |
+
"playing_trombone": 247,
|
250 |
+
"playing_trumpet": 248,
|
251 |
+
"playing_ukulele": 249,
|
252 |
+
"playing_violin": 250,
|
253 |
+
"playing_volleyball": 251,
|
254 |
+
"playing_xylophone": 252,
|
255 |
+
"pole_vault": 253,
|
256 |
+
"presenting_weather_forecast": 254,
|
257 |
+
"pull_ups": 255,
|
258 |
+
"pumping_fist": 256,
|
259 |
+
"pumping_gas": 257,
|
260 |
+
"punching_bag": 258,
|
261 |
+
"punching_person_(boxing)": 259,
|
262 |
+
"push_up": 260,
|
263 |
+
"pushing_car": 261,
|
264 |
+
"pushing_cart": 262,
|
265 |
+
"pushing_wheelchair": 263,
|
266 |
+
"reading_book": 264,
|
267 |
+
"reading_newspaper": 265,
|
268 |
+
"recording_music": 266,
|
269 |
+
"riding_a_bike": 267,
|
270 |
+
"riding_camel": 268,
|
271 |
+
"riding_elephant": 269,
|
272 |
+
"riding_mechanical_bull": 270,
|
273 |
+
"riding_mountain_bike": 271,
|
274 |
+
"riding_mule": 272,
|
275 |
+
"riding_or_walking_with_horse": 273,
|
276 |
+
"riding_scooter": 274,
|
277 |
+
"riding_unicycle": 275,
|
278 |
+
"ripping_paper": 276,
|
279 |
+
"robot_dancing": 277,
|
280 |
+
"rock_climbing": 278,
|
281 |
+
"rock_scissors_paper": 279,
|
282 |
+
"roller_skating": 280,
|
283 |
+
"running_on_treadmill": 281,
|
284 |
+
"sailing": 282,
|
285 |
+
"salsa_dancing": 283,
|
286 |
+
"sanding_floor": 284,
|
287 |
+
"scrambling_eggs": 285,
|
288 |
+
"scuba_diving": 286,
|
289 |
+
"setting_table": 287,
|
290 |
+
"shaking_hands": 288,
|
291 |
+
"shaking_head": 289,
|
292 |
+
"sharpening_knives": 290,
|
293 |
+
"sharpening_pencil": 291,
|
294 |
+
"shaving_head": 292,
|
295 |
+
"shaving_legs": 293,
|
296 |
+
"shearing_sheep": 294,
|
297 |
+
"shining_shoes": 295,
|
298 |
+
"shooting_basketball": 296,
|
299 |
+
"shooting_goal_(soccer)": 297,
|
300 |
+
"shot_put": 298,
|
301 |
+
"shoveling_snow": 299,
|
302 |
+
"shredding_paper": 300,
|
303 |
+
"shuffling_cards": 301,
|
304 |
+
"side_kick": 302,
|
305 |
+
"sign_language_interpreting": 303,
|
306 |
+
"singing": 304,
|
307 |
+
"situp": 305,
|
308 |
+
"skateboarding": 306,
|
309 |
+
"ski_jumping": 307,
|
310 |
+
"skiing_(not_slalom_or_crosscountry)": 308,
|
311 |
+
"skiing_crosscountry": 309,
|
312 |
+
"skiing_slalom": 310,
|
313 |
+
"skipping_rope": 311,
|
314 |
+
"skydiving": 312,
|
315 |
+
"slacklining": 313,
|
316 |
+
"slapping": 314,
|
317 |
+
"sled_dog_racing": 315,
|
318 |
+
"smoking": 316,
|
319 |
+
"smoking_hookah": 317,
|
320 |
+
"snatch_weight_lifting": 318,
|
321 |
+
"sneezing": 319,
|
322 |
+
"sniffing": 320,
|
323 |
+
"snorkeling": 321,
|
324 |
+
"snowboarding": 322,
|
325 |
+
"snowkiting": 323,
|
326 |
+
"snowmobiling": 324,
|
327 |
+
"somersaulting": 325,
|
328 |
+
"spinning_poi": 326,
|
329 |
+
"spray_painting": 327,
|
330 |
+
"spraying": 328,
|
331 |
+
"springboard_diving": 329,
|
332 |
+
"squat": 330,
|
333 |
+
"sticking_tongue_out": 331,
|
334 |
+
"stomping_grapes": 332,
|
335 |
+
"stretching_arm": 333,
|
336 |
+
"stretching_leg": 334,
|
337 |
+
"strumming_guitar": 335,
|
338 |
+
"surfing_crowd": 336,
|
339 |
+
"surfing_water": 337,
|
340 |
+
"sweeping_floor": 338,
|
341 |
+
"swimming_backstroke": 339,
|
342 |
+
"swimming_breast_stroke": 340,
|
343 |
+
"swimming_butterfly_stroke": 341,
|
344 |
+
"swing_dancing": 342,
|
345 |
+
"swinging_legs": 343,
|
346 |
+
"swinging_on_something": 344,
|
347 |
+
"sword_fighting": 345,
|
348 |
+
"tai_chi": 346,
|
349 |
+
"taking_a_shower": 347,
|
350 |
+
"tango_dancing": 348,
|
351 |
+
"tap_dancing": 349,
|
352 |
+
"tapping_guitar": 350,
|
353 |
+
"tapping_pen": 351,
|
354 |
+
"tasting_beer": 352,
|
355 |
+
"tasting_food": 353,
|
356 |
+
"testifying": 354,
|
357 |
+
"texting": 355,
|
358 |
+
"throwing_axe": 356,
|
359 |
+
"throwing_ball": 357,
|
360 |
+
"throwing_discus": 358,
|
361 |
+
"tickling": 359,
|
362 |
+
"tobogganing": 360,
|
363 |
+
"tossing_coin": 361,
|
364 |
+
"tossing_salad": 362,
|
365 |
+
"training_dog": 363,
|
366 |
+
"trapezing": 364,
|
367 |
+
"trimming_or_shaving_beard": 365,
|
368 |
+
"trimming_trees": 366,
|
369 |
+
"triple_jump": 367,
|
370 |
+
"tying_bow_tie": 368,
|
371 |
+
"tying_knot_(not_on_a_tie)": 369,
|
372 |
+
"tying_tie": 370,
|
373 |
+
"unboxing": 371,
|
374 |
+
"unloading_truck": 372,
|
375 |
+
"using_computer": 373,
|
376 |
+
"using_remote_controller_(not_gaming)": 374,
|
377 |
+
"using_segway": 375,
|
378 |
+
"vault": 376,
|
379 |
+
"waiting_in_line": 377,
|
380 |
+
"walking_the_dog": 378,
|
381 |
+
"washing_dishes": 379,
|
382 |
+
"washing_feet": 380,
|
383 |
+
"washing_hair": 381,
|
384 |
+
"washing_hands": 382,
|
385 |
+
"water_skiing": 383,
|
386 |
+
"water_sliding": 384,
|
387 |
+
"watering_plants": 385,
|
388 |
+
"waxing_back": 386,
|
389 |
+
"waxing_chest": 387,
|
390 |
+
"waxing_eyebrows": 388,
|
391 |
+
"waxing_legs": 389,
|
392 |
+
"weaving_basket": 390,
|
393 |
+
"welding": 391,
|
394 |
+
"whistling": 392,
|
395 |
+
"windsurfing": 393,
|
396 |
+
"wrapping_present": 394,
|
397 |
+
"wrestling": 395,
|
398 |
+
"writing": 396,
|
399 |
+
"yawning": 397,
|
400 |
+
"yoga": 398,
|
401 |
+
"zumba": 399,
|
402 |
+
}
|