Datasets:
Update README.md
Browse files
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 |
-
|
77 |
-
|
78 |
|
79 |
-
|
80 |
-
test_urls =
|
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",
|