tanthinhdt commited on
Commit
8d4e85f
·
verified ·
1 Parent(s): b1f388a

fix(wlasl): correct path

Browse files
Files changed (1) hide show
  1. wlasl.py +7 -3
wlasl.py CHANGED
@@ -26,8 +26,12 @@ class WLASLConfig(datasets.BuilderConfig):
26
 
27
  def __init__(self, name, **kwargs):
28
  """
29
- :param name: Name of subset.
30
- :param kwargs: Arguments.
 
 
 
 
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["name"] + ".mp4")
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"],