Update BirdSet.py
Browse files- 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
|
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
|
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():
|