tanthinhdt commited on
Commit
7851027
·
1 Parent(s): e0ba264

update: builder

Browse files
Files changed (1) hide show
  1. how2sign-clips.py +2 -3
how2sign-clips.py CHANGED
@@ -40,7 +40,7 @@ class How2SignClips(datasets.GeneratorBasedBuilder):
40
  """How2Sign dataset."""
41
  BUILDER_CONFIGS = [
42
  How2SignClipsConfig(name="rgb"),
43
- How2SignClipsConfig(name="keypoints"),
44
  ]
45
  DEFAULT_CONFIG_NAME = "rgb"
46
 
@@ -116,7 +116,6 @@ class How2SignClips(datasets.GeneratorBasedBuilder):
116
  :param num_shards: Number of shards.
117
  :yield: Example.
118
  """
119
-
120
  dataset = datasets.load_dataset(
121
  "parquet",
122
  data_files=metadata_path,
@@ -128,7 +127,7 @@ class How2SignClips(datasets.GeneratorBasedBuilder):
128
  video_path = os.path.join(
129
  video_dir,
130
  f"shard_{shard_idx:03d}_{num_shards:03d}",
131
- sample["id"] + ".mp4"
132
  )
133
  if os.path.exists(video_path):
134
  yield i, {
 
40
  """How2Sign dataset."""
41
  BUILDER_CONFIGS = [
42
  How2SignClipsConfig(name="rgb"),
43
+ # How2SignClipsConfig(name="keypoints"),
44
  ]
45
  DEFAULT_CONFIG_NAME = "rgb"
46
 
 
116
  :param num_shards: Number of shards.
117
  :yield: Example.
118
  """
 
119
  dataset = datasets.load_dataset(
120
  "parquet",
121
  data_files=metadata_path,
 
127
  video_path = os.path.join(
128
  video_dir,
129
  f"shard_{shard_idx:03d}_{num_shards:03d}",
130
+ sample["id"] + ".mp4",
131
  )
132
  if os.path.exists(video_path):
133
  yield i, {