innat commited on
Commit
d2b5ae1
·
1 Parent(s): f9052ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -11,17 +11,6 @@ from utils import IMAGENET_MEAN, IMAGENET_STD, num_frames, patch_size, input_siz
11
  from labels import K400_label_map, SSv2_label_map, UCF_label_map
12
 
13
 
14
- def available_models():
15
- ALL_MODELS = [
16
- 'TFVideoMAE_S_K400_16x224',
17
- 'TFVideoMAE_B_K400_16x224',
18
- 'TFVideoMAE_L_K400_16x224',
19
- 'TFVideoMAE_S_SSv2_16x224',
20
- 'TFVideoMAE_B_SSv2_16x224',
21
- 'TFVideoMAE_B_UCF_16x224',
22
- ]
23
- return ALL_MODELS
24
-
25
  MODELS = {
26
  'K400': [
27
  './TFVideoMAE_S_K400_16x224_FT',
@@ -131,8 +120,8 @@ def main():
131
 
132
  sample_example = [
133
  ["examples/k400.mp4", ALL_MODELS[0], 0.9],
134
- ["examples/k400.mp4", ALL_MODELS[2], 0.8]
135
- ["examples/ucf.mp4", ALL_MODELS[1], 0.7],
136
  ]
137
 
138
  iface = gr.Interface(
 
11
  from labels import K400_label_map, SSv2_label_map, UCF_label_map
12
 
13
 
 
 
 
 
 
 
 
 
 
 
 
14
  MODELS = {
15
  'K400': [
16
  './TFVideoMAE_S_K400_16x224_FT',
 
120
 
121
  sample_example = [
122
  ["examples/k400.mp4", ALL_MODELS[0], 0.9],
123
+ ["examples/k400.mp4", ALL_MODELS[1], 0.8],
124
+ ["examples/ucf.mp4", ALL_MODELS[2], 0.7],
125
  ]
126
 
127
  iface = gr.Interface(