Spaces:
Building
Building
Upload display_gloss.py
Browse files- src/display_gloss.py +2 -2
src/display_gloss.py
CHANGED
@@ -107,7 +107,7 @@ def generate_video(gloss_list, dataset, vocabulary_list):
|
|
107 |
# size of video of signer 11
|
108 |
# FIXED_WIDTH, FIXED_HEIGHT, = 288, 192,
|
109 |
FIXED_WIDTH, FIXED_HEIGHT = 576, 384
|
110 |
-
fps =
|
111 |
|
112 |
for gloss in gloss_list:
|
113 |
if not check_gloss_in_vocabulary(gloss, vocabulary_list):
|
@@ -176,7 +176,7 @@ def generate_video(gloss_list, dataset, vocabulary_list):
|
|
176 |
|
177 |
|
178 |
def load_data(dataset_path='local_dataset'):
|
179 |
-
filepath =
|
180 |
data_df = pd.read_csv(filepath, dtype={'video_id': str})
|
181 |
vocabulary_list = data_df['gloss'].tolist()
|
182 |
return data_df, vocabulary_list
|
|
|
107 |
# size of video of signer 11
|
108 |
# FIXED_WIDTH, FIXED_HEIGHT, = 288, 192,
|
109 |
FIXED_WIDTH, FIXED_HEIGHT = 576, 384
|
110 |
+
fps = 25
|
111 |
|
112 |
for gloss in gloss_list:
|
113 |
if not check_gloss_in_vocabulary(gloss, vocabulary_list):
|
|
|
176 |
|
177 |
|
178 |
def load_data(dataset_path='local_dataset'):
|
179 |
+
filepath = dataset_path
|
180 |
data_df = pd.read_csv(filepath, dtype={'video_id': str})
|
181 |
vocabulary_list = data_df['gloss'].tolist()
|
182 |
return data_df, vocabulary_list
|