Update audioset.py
Browse files- audioset.py +4 -1
audioset.py
CHANGED
@@ -192,8 +192,11 @@ class AudioSet(datasets.GeneratorBasedBuilder):
|
|
192 |
|
193 |
_, _walker = fast_scandir(archive_path, extensions, recursive=True)
|
194 |
|
|
|
|
|
|
|
195 |
for guid, audio_path in enumerate(_walker):
|
196 |
-
if Path(audio_path).name
|
197 |
continue
|
198 |
yield guid, {
|
199 |
"id": str(guid),
|
|
|
192 |
|
193 |
_, _walker = fast_scandir(archive_path, extensions, recursive=True)
|
194 |
|
195 |
+
bad_zip_files = [
|
196 |
+
'YZu5HOzXcX7k.wav', 'YmW3S0u8bj58.wav'
|
197 |
+
]
|
198 |
for guid, audio_path in enumerate(_walker):
|
199 |
+
if Path(audio_path).name in bad_zip_files:
|
200 |
continue
|
201 |
yield guid, {
|
202 |
"id": str(guid),
|