yangwang825 commited on
Commit
c351777
·
verified ·
1 Parent(s): 2f805d7

Update voxceleb.py

Browse files
Files changed (1) hide show
  1. voxceleb.py +3 -13
voxceleb.py CHANGED
@@ -1,6 +1,6 @@
1
  # coding=utf-8
2
 
3
- """VoxCeleb sound event classification dataset."""
4
 
5
 
6
  import os
@@ -65,15 +65,6 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
65
  def manual_download_instructions(self):
66
  return (
67
  "To use VoxCeleb you have to download it manually. "
68
- "Please download the dataset from https://www.robots.ox.ac.uk/~vgg/data/voxceleb/vox1.html \n"
69
- "Then extract all files in one folder using the following command: \n"
70
- "```bash\n"
71
- "cat vox1_dev_wav* > vox1_dev_wav.zip\n"
72
- "unzip vox1_dev_wav.zip -d vox1/dev\n"
73
- "unzip vox1_test_wav.zip -d vox1/test\n"
74
- "```\n"
75
- "and load the dataset with: "
76
- "`datasets.load_dataset('confit/voxceleb', 'verification', data_dir='path/to/folder/dev/and/test')`\n"
77
  "The tree structure of the downloaded data looks like: \n"
78
  f"{DATA_DIR_STRUCTURE}"
79
  )
@@ -84,9 +75,8 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
84
 
85
  if not os.path.exists(data_dir):
86
  raise FileNotFoundError(
87
- f"{data_dir} does not exist. Make sure you insert a manual dir via "
88
- f"`datasets.load_dataset('confit/voxceleb', 'verification', data_dir=...)` that includes files unzipped from all the zip files. "
89
- f"Manual download instructions: {self.manual_download_instructions}"
90
  )
91
 
92
  dev_archive_path = os.path.join(data_dir, 'dev', 'wav')
 
1
  # coding=utf-8
2
 
3
+ """VoxCeleb dataset."""
4
 
5
 
6
  import os
 
65
  def manual_download_instructions(self):
66
  return (
67
  "To use VoxCeleb you have to download it manually. "
 
 
 
 
 
 
 
 
 
68
  "The tree structure of the downloaded data looks like: \n"
69
  f"{DATA_DIR_STRUCTURE}"
70
  )
 
75
 
76
  if not os.path.exists(data_dir):
77
  raise FileNotFoundError(
78
+ f"{data_dir} does not exist. "
79
+ f"Manual download instructions: \n{self.manual_download_instructions}"
 
80
  )
81
 
82
  dev_archive_path = os.path.join(data_dir, 'dev', 'wav')