yangwang825 commited on
Commit
09c9937
·
verified ·
1 Parent(s): 599088a

Update dcase2018-task3.py

Browse files
Files changed (1) hide show
  1. dcase2018-task3.py +2 -2
dcase2018-task3.py CHANGED
@@ -75,7 +75,7 @@ class DCASE2018Task3(datasets.GeneratorBasedBuilder):
75
  extensions = ['.wav']
76
 
77
  # Development sets
78
- audio_paths = []
79
  for _filename in ['ff1010bird_wav.zip', 'BirdVox-DCASE-20k.zip']:
80
  DEV_URL = f'https://huggingface.co/datasets/confit/dcase2018-task3/resolve/main/{_filename}'
81
  _dev_save_path = os.path.join(
@@ -89,7 +89,7 @@ class DCASE2018Task3(datasets.GeneratorBasedBuilder):
89
  )
90
  train_archive_path = os.path.join(_dev_save_path, 'extracted', _filename.split('.zip')[0])
91
  _, _walker = fast_scandir(train_archive_path, extensions, recursive=True)
92
- audio_paths.extend(_walker)
93
 
94
  # Evaluation set
95
  EVAL_URL = 'https://huggingface.co/datasets/confit/dcase2018-task3/resolve/main/warblrb10k_public_wav.zip'
 
75
  extensions = ['.wav']
76
 
77
  # Development sets
78
+ train_audio_paths = []
79
  for _filename in ['ff1010bird_wav.zip', 'BirdVox-DCASE-20k.zip']:
80
  DEV_URL = f'https://huggingface.co/datasets/confit/dcase2018-task3/resolve/main/{_filename}'
81
  _dev_save_path = os.path.join(
 
89
  )
90
  train_archive_path = os.path.join(_dev_save_path, 'extracted', _filename.split('.zip')[0])
91
  _, _walker = fast_scandir(train_archive_path, extensions, recursive=True)
92
+ train_audio_paths.extend(_walker)
93
 
94
  # Evaluation set
95
  EVAL_URL = 'https://huggingface.co/datasets/confit/dcase2018-task3/resolve/main/warblrb10k_public_wav.zip'