mwirth7 commited on
Commit
7a3ed6f
1 Parent(s): 399875a

Update BirdSet.py

Browse files
Files changed (1) hide show
  1. BirdSet.py +2 -2
BirdSet.py CHANGED
@@ -334,9 +334,9 @@ class BirdSet(datasets.GeneratorBasedBuilder):
334
  elif self.config.name.startswith("XC"):
335
  dl_dir = dl_manager.download({
336
  "train": [os.path.join(self.config.data_dir, f"{ds_name}_shard_{n:04d}.tar.gz") for n in range(1, train_files[ds_name] + 1)],
337
- "valid": [os.path.join(self.config.data_dir.replace("/XCM", "/POW"), f"POW_test5s_shard_{n:04d}.tar.gz") for n in range(1, test5s_files["POW"] + 1)],
338
  "metadata": os.path.join(self.config.data_dir, f"{ds_name}_metadata.parquet"),
339
- "meta_test_5s": os.path.join(self.config.data_dir.replace("/XCM", "/POW"), f"POW_metadata_test_5s.parquet"),
340
  })
341
 
342
  elif self.config.name in train_files.keys():
 
334
  elif self.config.name.startswith("XC"):
335
  dl_dir = dl_manager.download({
336
  "train": [os.path.join(self.config.data_dir, f"{ds_name}_shard_{n:04d}.tar.gz") for n in range(1, train_files[ds_name] + 1)],
337
+ "valid": [os.path.join(self.config.data_dir[:-3] + "POW", f"POW_test5s_shard_{n:04d}.tar.gz") for n in range(1, test5s_files["POW"] + 1)],
338
  "metadata": os.path.join(self.config.data_dir, f"{ds_name}_metadata.parquet"),
339
+ "meta_test_5s": os.path.join(self.config.data_dir[:-3] + "POW", f"POW_metadata_test_5s.parquet"),
340
  })
341
 
342
  elif self.config.name in train_files.keys():