fix(wlasl): correct path
Browse files
wlasl.py
CHANGED
|
@@ -26,8 +26,12 @@ class WLASLConfig(datasets.BuilderConfig):
|
|
| 26 |
|
| 27 |
def __init__(self, name, **kwargs):
|
| 28 |
"""
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
"""
|
| 32 |
super(WLASLConfig, self).__init__(
|
| 33 |
name=name,
|
|
@@ -133,7 +137,7 @@ class WLASL(datasets.GeneratorBasedBuilder):
|
|
| 133 |
split = datasets.Dataset.from_pandas(split_df)
|
| 134 |
for i, sample in enumerate(split):
|
| 135 |
for video_dir in video_dirs:
|
| 136 |
-
video_path = os.path.join(video_dir, sample["
|
| 137 |
if os.path.exists(video_path):
|
| 138 |
yield i, {
|
| 139 |
"gloss": sample["name"],
|
|
|
|
| 26 |
|
| 27 |
def __init__(self, name, **kwargs):
|
| 28 |
"""
|
| 29 |
+
Parameters
|
| 30 |
+
----------
|
| 31 |
+
name : str
|
| 32 |
+
Name of subset.
|
| 33 |
+
kwargs : dict
|
| 34 |
+
Keyword arguments.
|
| 35 |
"""
|
| 36 |
super(WLASLConfig, self).__init__(
|
| 37 |
name=name,
|
|
|
|
| 137 |
split = datasets.Dataset.from_pandas(split_df)
|
| 138 |
for i, sample in enumerate(split):
|
| 139 |
for video_dir in video_dirs:
|
| 140 |
+
video_path = os.path.join(video_dir, sample["video_id"] + ".mp4")
|
| 141 |
if os.path.exists(video_path):
|
| 142 |
yield i, {
|
| 143 |
"gloss": sample["name"],
|