Update audioset.py
Browse files- audioset.py +1 -2
audioset.py
CHANGED
@@ -114,10 +114,9 @@ class AudioSet(datasets.GeneratorBasedBuilder):
|
|
114 |
]
|
115 |
return ids
|
116 |
|
117 |
-
_walker = fast_scandir(archive_path, extensions, recursive=True)
|
118 |
|
119 |
for guid, audio_path in enumerate(_walker):
|
120 |
-
assert isinstance(audio_path, str), f'{_walker}'
|
121 |
yield guid, {
|
122 |
"id": str(guid),
|
123 |
"file": audio_path,
|
|
|
114 |
]
|
115 |
return ids
|
116 |
|
117 |
+
_, _walker = fast_scandir(archive_path, extensions, recursive=True)
|
118 |
|
119 |
for guid, audio_path in enumerate(_walker):
|
|
|
120 |
yield guid, {
|
121 |
"id": str(guid),
|
122 |
"file": audio_path,
|