Commit
·
11de45a
1
Parent(s):
fca8efa
Update test.py
Browse files
test.py
CHANGED
@@ -314,7 +314,10 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
314 |
|
315 |
#raise Exception(os.is_symlink(path))
|
316 |
#raise Exception(os.listdir(path))
|
317 |
-
|
|
|
|
|
|
|
318 |
speaker_info = meta.loc[speaker]
|
319 |
clip_index = int(Path(clip_index).stem)
|
320 |
info = {
|
|
|
314 |
|
315 |
#raise Exception(os.is_symlink(path))
|
316 |
#raise Exception(os.listdir(path))
|
317 |
+
try:
|
318 |
+
dataset_format,speaker,video_id,clip_index= file.split("::")[0].split("/")[2:]
|
319 |
+
except Exception:
|
320 |
+
raise Exception(file.split("::")[0].split("/")[2:])
|
321 |
speaker_info = meta.loc[speaker]
|
322 |
clip_index = int(Path(clip_index).stem)
|
323 |
info = {
|