tanthinhdt commited on
Commit
abe14e1
·
1 Parent(s): 4a9fb2a

Update how2sign-clips.py

Browse files
Files changed (1) hide show
  1. how2sign-clips.py +8 -8
how2sign-clips.py CHANGED
@@ -118,14 +118,14 @@ class How2SignClips(datasets.GeneratorBasedBuilder):
118
  f"shard_{shard_idx:03d}_{num_shards:03d}",
119
  sample["id"] + ".mp4"
120
  )
121
- if os.path.exists(video_path):
122
- yield i, {
123
- "id": sample["id"],
124
- "type": sample["type"],
125
- "view": sample["view"],
126
- "text": sample["text"],
127
- "video": self.__get_binary_data(video_path),
128
- }
129
 
130
  def __get_binary_data(self, path):
131
  with open(path, "rb") as f:
 
118
  f"shard_{shard_idx:03d}_{num_shards:03d}",
119
  sample["id"] + ".mp4"
120
  )
121
+ # if os.path.exists(video_path):
122
+ yield i, {
123
+ "id": sample["id"],
124
+ "type": sample["type"],
125
+ "view": sample["view"],
126
+ "text": sample["text"],
127
+ "video": self.__get_binary_data(video_path),
128
+ }
129
 
130
  def __get_binary_data(self, path):
131
  with open(path, "rb") as f: