Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,14 @@ MODELS = {
|
|
16 |
'innat/videomae/TFVideoMAE_S_K400_16x224_FT',
|
17 |
'innat/videomae/TFVideoMAE_S_K400_16x224_PT'
|
18 |
],
|
19 |
-
'SSv2': [
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
|
@@ -45,6 +51,9 @@ def video_to_gif(video_array, gif_filename):
|
|
45 |
|
46 |
|
47 |
def get_model(data_type):
|
|
|
|
|
|
|
48 |
ft_model = keras.models.load_model(MODELS[data_type][0])
|
49 |
pt_model = keras.models.load_model(MODELS[data_type][1])
|
50 |
label_map = {v: k for k, v in K400_label_map.items()}
|
|
|
16 |
'innat/videomae/TFVideoMAE_S_K400_16x224_FT',
|
17 |
'innat/videomae/TFVideoMAE_S_K400_16x224_PT'
|
18 |
],
|
19 |
+
'SSv2': [
|
20 |
+
'innat/videomae/TFVideoMAE_S_K400_16x224_FT',
|
21 |
+
'innat/videomae/TFVideoMAE_S_K400_16x224_PT'
|
22 |
+
],
|
23 |
+
'UCF' : [
|
24 |
+
'innat/videomae/TFVideoMAE_S_K400_16x224_FT',
|
25 |
+
'innat/videomae/TFVideoMAE_S_K400_16x224_PT'
|
26 |
+
]
|
27 |
}
|
28 |
|
29 |
|
|
|
51 |
|
52 |
|
53 |
def get_model(data_type):
|
54 |
+
print()
|
55 |
+
print('-------------------- ', data_type)
|
56 |
+
print()
|
57 |
ft_model = keras.models.load_model(MODELS[data_type][0])
|
58 |
pt_model = keras.models.load_model(MODELS[data_type][1])
|
59 |
label_map = {v: k for k, v in K400_label_map.items()}
|