Commit
·
3a5599f
1
Parent(s):
a6d70c1
path split
Browse files
test.py
CHANGED
@@ -312,10 +312,11 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
312 |
|
313 |
#raise Exception(os.is_symlink(path))
|
314 |
#raise Exception(os.listdir(path))
|
315 |
-
dataset_format,
|
|
|
316 |
clip_index = int(Path(clip_index).stem)
|
317 |
info = {
|
318 |
-
"file": str(
|
319 |
"file_format": dataset_format,
|
320 |
"dataset_id": dataset_id,
|
321 |
"speaker_id": speaker,
|
|
|
312 |
|
313 |
#raise Exception(os.is_symlink(path))
|
314 |
#raise Exception(os.listdir(path))
|
315 |
+
dataset_format,speaker,video_id,clip_index= path.split("::")[0].split("/")[2:]
|
316 |
+
speaker_info = meta.loc[speaker]
|
317 |
clip_index = int(Path(clip_index).stem)
|
318 |
info = {
|
319 |
+
"file": str(path),
|
320 |
"file_format": dataset_format,
|
321 |
"dataset_id": dataset_id,
|
322 |
"speaker_id": speaker,
|