Commit
·
12eb211
1
Parent(s):
f654347
Update test2.py
Browse files
test2.py
CHANGED
@@ -270,7 +270,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
270 |
)
|
271 |
)
|
272 |
|
273 |
-
|
274 |
return [
|
275 |
datasets.SplitGenerator(
|
276 |
name="train",
|
@@ -301,12 +301,12 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
301 |
|
302 |
for path in paths[conf]:
|
303 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
304 |
-
def find_mount_point(path):
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
raise Exception(find_mount_point(path))
|
310 |
subdirs = [x[0] for x in os.walk(path)]
|
311 |
#raise Exception(subdirs)
|
312 |
|
|
|
270 |
)
|
271 |
)
|
272 |
|
273 |
+
raise Exception(dl_manager.iter_files(files))
|
274 |
return [
|
275 |
datasets.SplitGenerator(
|
276 |
name="train",
|
|
|
301 |
|
302 |
for path in paths[conf]:
|
303 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
304 |
+
# def find_mount_point(path):
|
305 |
+
# path = os.path.realpath(path)
|
306 |
+
# while not os.path.ismount(path):
|
307 |
+
# path = os.path.dirname(path)
|
308 |
+
# return path
|
309 |
+
# raise Exception(find_mount_point(path))
|
310 |
subdirs = [x[0] for x in os.walk(path)]
|
311 |
#raise Exception(subdirs)
|
312 |
|