AlexBlck commited on
Commit
cf4fb4b
1 Parent(s): 58eb4ae
Files changed (1) hide show
  1. ANAKIN.py +3 -1
ANAKIN.py CHANGED
@@ -162,7 +162,7 @@ class Anakin(datasets.GeneratorBasedBuilder):
162
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
163
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
164
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
165
- metadata_dir = dl_manager.download_and_extract(_METADATA_URL)
166
  folders = _FOLDERS[self.config.name]
167
 
168
  random.seed(47)
@@ -228,6 +228,8 @@ class Anakin(datasets.GeneratorBasedBuilder):
228
  def _generate_examples(self, files, masks, df, return_time):
229
  for key, sample in enumerate(files):
230
  idx = sample["trimmed"].split("/")[-1].split(".")[0]
 
 
231
  entry = df[df["video-id"] == idx]
232
  print(entry)
233
  if entry["has-masks"].values[0]:
 
162
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
163
  # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
164
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
165
+ metadata_dir = dl_manager.download(_METADATA_URL)
166
  folders = _FOLDERS[self.config.name]
167
 
168
  random.seed(47)
 
228
  def _generate_examples(self, files, masks, df, return_time):
229
  for key, sample in enumerate(files):
230
  idx = sample["trimmed"].split("/")[-1].split(".")[0]
231
+ print(df)
232
+ print(idx)
233
  entry = df[df["video-id"] == idx]
234
  print(entry)
235
  if entry["has-masks"].values[0]: