Update audioset.py
Browse files- audioset.py +4 -4
audioset.py
CHANGED
|
@@ -136,16 +136,16 @@ class AudioSet(datasets.GeneratorBasedBuilder):
|
|
| 136 |
|
| 137 |
if split == 'train':
|
| 138 |
if self.config.name == '20k':
|
| 139 |
-
archive_path = os.path.join(data_dir, '
|
| 140 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-20k.jsonl'
|
| 141 |
elif self.config.name == '500k':
|
| 142 |
-
archive_path = os.path.join(data_dir, '
|
| 143 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-500k.jsonl'
|
| 144 |
elif self.config.name == '2m':
|
| 145 |
-
archive_path = os.path.join(data_dir, '
|
| 146 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-2m.jsonl'
|
| 147 |
elif split == 'test':
|
| 148 |
-
archive_path = os.path.join(data_dir, '
|
| 149 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-eval.jsonl'
|
| 150 |
|
| 151 |
response = requests.get(metadata_url)
|
|
|
|
| 136 |
|
| 137 |
if split == 'train':
|
| 138 |
if self.config.name == '20k':
|
| 139 |
+
archive_path = os.path.join(data_dir, 'balanced_train_segments')
|
| 140 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-20k.jsonl'
|
| 141 |
elif self.config.name == '500k':
|
| 142 |
+
archive_path = os.path.join(data_dir, 'unbalanced_train_segments')
|
| 143 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-500k.jsonl'
|
| 144 |
elif self.config.name == '2m':
|
| 145 |
+
archive_path = os.path.join(data_dir, 'unbalanced_train_segments')
|
| 146 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-2m.jsonl'
|
| 147 |
elif split == 'test':
|
| 148 |
+
archive_path = os.path.join(data_dir, 'eval_segments')
|
| 149 |
metadata_url = 'https://huggingface.co/datasets/confit/audioset/resolve/main/metadata/audioset-eval.jsonl'
|
| 150 |
|
| 151 |
response = requests.get(metadata_url)
|