Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -43,15 +43,10 @@ Code: https://github.com/line/lighthouse
|
|
43 |
|
44 |
## Using Webdataset
|
45 |
```python
|
46 |
-
import torch
|
47 |
import webdataset as wds
|
48 |
-
from huggingface_hub import get_token
|
49 |
-
from torch.utils.data import DataLoader
|
50 |
|
51 |
-
|
52 |
-
hf_token = get_token()
|
53 |
url = "https://huggingface.co/datasets/lighthouse-emnlp2024/Clotho-Moment/resolve/main/train/train-{{001..002}}.tar"
|
54 |
-
url = f"pipe:curl -s -L {url}
|
55 |
dataset = wds.WebDataset(url, shardshuffle=None).decode(wds.torch_audio)
|
56 |
|
57 |
for sample in dataset:
|
|
|
43 |
|
44 |
## Using Webdataset
|
45 |
```python
|
|
|
46 |
import webdataset as wds
|
|
|
|
|
47 |
|
|
|
|
|
48 |
url = "https://huggingface.co/datasets/lighthouse-emnlp2024/Clotho-Moment/resolve/main/train/train-{{001..002}}.tar"
|
49 |
+
url = f"pipe:curl -s -L {url}"
|
50 |
dataset = wds.WebDataset(url, shardshuffle=None).decode(wds.torch_audio)
|
51 |
|
52 |
for sample in dataset:
|