yangwang825 commited on
Commit
993f939
·
verified ·
1 Parent(s): 4379b84

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -6
README.md CHANGED
@@ -44,13 +44,15 @@ The dataset is available in two versions:
44
  - 2m: The complete unbalanced dataset with 1,912,024 clips.
45
  - test: The eval set with 18,886 clips.
46
 
47
- > **_NOTE:_** All versions of train sets share the same test set.
48
-
49
  ```bash
50
  # For the 20k version
51
  huggingface-cli download confit/audioset-16khz-wds --include 20k/train/*.tar --repo-type=dataset --local-dir /path/to/store
52
  huggingface-cli download confit/audioset-16khz-wds --include 20k/test/*.tar --repo-type=dataset --local-dir /path/to/store
53
 
 
 
 
 
54
  # For the 2m version
55
  huggingface-cli download confit/audioset-16khz-wds --include 2m/train/*.tar --repo-type=dataset --local-dir /path/to/store
56
  huggingface-cli download confit/audioset-16khz-wds --include 2m/test/*.tar --repo-type=dataset --local-dir /path/to/store
@@ -73,11 +75,11 @@ Each `.tar` archive contains audio files and corresponding metadata.
73
  To load the dataset in Python using webdataset:
74
 
75
  ```python
76
- train_base_url = '/path/to/20k/train/shard-{i:05d}.tar'
77
- train_urls = [train_base_url.format(i=i) for i in range(7)]
78
 
79
- test_base_url = '/path/to/20k/test/shard-{i:05d}.tar'
80
- test_urls = [test_base_url.format(i=i) for i in range(6)]
81
 
82
  raw_datasets = load_dataset(
83
  "webdataset",
 
44
  - 2m: The complete unbalanced dataset with 1,912,024 clips.
45
  - test: The eval set with 18,886 clips.
46
 
 
 
47
  ```bash
48
  # For the 20k version
49
  huggingface-cli download confit/audioset-16khz-wds --include 20k/train/*.tar --repo-type=dataset --local-dir /path/to/store
50
  huggingface-cli download confit/audioset-16khz-wds --include 20k/test/*.tar --repo-type=dataset --local-dir /path/to/store
51
 
52
+ # For the 500k version
53
+ huggingface-cli download confit/audioset-16khz-wds --include 500k/train/*.tar --repo-type=dataset --local-dir /path/to/store
54
+ huggingface-cli download confit/audioset-16khz-wds --include 500k/test/*.tar --repo-type=dataset --local-dir /path/to/store
55
+
56
  # For the 2m version
57
  huggingface-cli download confit/audioset-16khz-wds --include 2m/train/*.tar --repo-type=dataset --local-dir /path/to/store
58
  huggingface-cli download confit/audioset-16khz-wds --include 2m/test/*.tar --repo-type=dataset --local-dir /path/to/store
 
75
  To load the dataset in Python using webdataset:
76
 
77
  ```python
78
+ from glob import glob
79
+ from datasets import load_dataset
80
 
81
+ train_urls = glob('/path/to/20k/train/*.tar')
82
+ test_urls = glob('/path/to/20k/test/*.tar')
83
 
84
  raw_datasets = load_dataset(
85
  "webdataset",