ilyakam commited on
Commit
a5bb3ef
·
1 Parent(s): 9d21390

fix(*): decrease the row group size for audio datasets

Browse files

By default, the row group size is set to 100 rows, which is too large
for the Hugging Face Dataset Viewer. This change reduces that number
to 20 rows. See this issue for more details:

https://github.com/google-deepmind/librispeech-long/issues/1

README.md CHANGED
@@ -17,19 +17,19 @@ dataset_info:
17
  dtype: float64
18
  splits:
19
  - name: dev_clean
20
- num_bytes: 1809240192.0
21
  num_examples: 295
22
  - name: dev_other
23
- num_bytes: 1070584721.0
24
  num_examples: 188
25
  - name: test_clean
26
- num_bytes: 1677792644.0
27
  num_examples: 270
28
  - name: test_other
29
- num_bytes: 1195252663.0
30
  num_examples: 207
31
- download_size: 5752870220
32
- dataset_size: 5752870220
33
  configs:
34
  - config_name: librispeech_long
35
  data_files:
 
17
  dtype: float64
18
  splits:
19
  - name: dev_clean
20
+ num_bytes: 1809224578.0
21
  num_examples: 295
22
  - name: dev_other
23
+ num_bytes: 1070577217.0
24
  num_examples: 188
25
  - name: test_clean
26
+ num_bytes: 1677717130.0
27
  num_examples: 270
28
  - name: test_other
29
+ num_bytes: 1195726954.0
30
  num_examples: 207
31
+ download_size: 5753245879
32
+ dataset_size: 5753245879
33
  configs:
34
  - config_name: librispeech_long
35
  data_files:
librispeech_long/dev_clean-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bca0ad12dd47d7f64eea2f365d39180217a14bcf9515cca16ad5bbc5d865b900
3
- size 1809240192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a41961898641a1fde675bd71f0e30accc17ec43c5d77120323f0554867c63681
3
+ size 1809224578
librispeech_long/dev_other-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1228721e30b2d72a8016a2d7ebe50cd525f2fc87d5ee29c94ee6c34ecfc65efd
3
- size 1070584721
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce5c1aa12e33ace577e7ca8456d4aafa37dd3b6ff8b9098e676cf59caa49fe36
3
+ size 1070577217
librispeech_long/test_clean-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2852d1108dff48cf05401327ae7dd49f11cc2f86678b02617e078c647514e09b
3
- size 1677792644
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f16e89e3a3b69d644ee4844b8a66df4edffd119fd565a2629d3466d6f3d0348
3
+ size 1677717130
librispeech_long/test_other-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6fe9ecfafcebfb8c06af6764ec393f470a228dde4af19ec4d8f8768cb7199732
3
- size 1195252663
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f11c0e2fc9945de274c81303bbd253c592f33680a60bfe875fc3509ce78b2fd1
3
+ size 1195726954
process.py CHANGED
@@ -28,11 +28,14 @@ from dataclasses import dataclass
28
  from pathlib import Path
29
  from typing import Dict, List, Optional, Tuple
30
 
 
31
  from datasets import Audio, Dataset, Features, Value
32
  from tqdm import tqdm
33
 
34
  # --- Configuration ---
35
 
 
 
36
  # Config name on the Hub.
37
  CONFIG_NAME = "librispeech_long"
38
 
@@ -217,6 +220,7 @@ def build_parquet_dataset(rows: List[Row]) -> Dataset:
217
  }
218
  for r in rows
219
  ]
 
220
  return Dataset.from_list(data_list, features=features)
221
 
222
 
 
28
  from pathlib import Path
29
  from typing import Dict, List, Optional, Tuple
30
 
31
+ import datasets
32
  from datasets import Audio, Dataset, Features, Value
33
  from tqdm import tqdm
34
 
35
  # --- Configuration ---
36
 
37
+ datasets.config.PARQUET_ROW_GROUP_SIZE_FOR_AUDIO_DATASETS = 20
38
+
39
  # Config name on the Hub.
40
  CONFIG_NAME = "librispeech_long"
41
 
 
220
  }
221
  for r in rows
222
  ]
223
+
224
  return Dataset.from_list(data_list, features=features)
225
 
226