html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
βŒ€
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequence
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
Hi @i-am-neo, The audio support is an extra feature of `datasets` and therefore it must be installed as an additional optional dependency: ```shell pip install datasets[audio] ``` Additionally, for specific MP3 support (which is not the case for AMI dataset, that contains WAV audio files), there is another third-party dependency on `torchaudio`. You have all the information in our docs: https://huggingface.co/docs/datasets/audio_process#installation
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
61
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 Hi @i-am-neo, The audio support is an extra feature of `datasets` and therefore it must be installed as an additional optional dependency: ```shell pip install datasets[audio] ``` Additionally, for specific MP3 support (which is not the case for AMI dataset, that contains WAV audio files), there is another third-party dependency on `torchaudio`. You have all the information in our docs: https://huggingface.co/docs/datasets/audio_process#installation
[ -0.1790904552, -0.2704021335, -0.0430675745, 0.2871549726, 0.1397019923, -0.1179440096, 0.3523590863, 0.0170880817, 0.0107310023, 0.38430655, -0.1333328933, 0.2134562433, 0.047165595, 0.4075194895, 0.0083271693, 0.1030785218, 0.0407495089, 0.2446232438, 0.3289997578, 0.0049698157, -0.1248542964, 0.3498246372, -0.3242542446, -0.0855612829, -0.2250002176, -0.0323688723, -0.0295675695, 0.2735975087, -0.2173347622, -0.4320850372, 0.3754369617, -0.0343438238, -0.0005727952, 0.3536964357, -0.0001102986, 0.0756440461, 0.4843730927, -0.0524124131, -0.2810944617, -0.3754798174, -0.2990475297, 0.1707935631, 0.0556402765, -0.1272977144, -0.089670524, -0.098798871, -0.0211462136, -0.3069238365, 0.3857118189, 0.4192144871, 0.2016517371, 0.471924156, 0.0024840734, -0.3136757016, 0.3918528855, 0.2235946357, -0.1430784017, -0.0157597121, 0.0243399777, -0.0155698862, 0.1711930335, 0.4005113244, -0.0210419763, 0.1813031584, 0.2981663346, 0.0199068356, -0.0473761149, -0.2547491789, 0.2032929063, 0.2257046402, 0.4580152631, -0.071590513, -0.3287923038, -0.0070415977, -0.0157971382, -0.2628720105, 0.1357518733, 0.001461045, -0.0957705081, -0.068233937, -0.1837204546, -0.0147009054, 0.0261229556, 0.2206098288, -0.2563199401, 0.0335392207, -0.272842288, 0.1122220382, 0.2719632983, 0.0540636927, 0.1083780825, 0.1800412536, 0.1520660818, 0.1512789279, -0.403142333, 0.1535101235, 0.3604500592, -0.3967066407, 0.2639093101, 0.1983274072, -0.1928649098, -0.0772232935, -0.3029692173, 0.2131035924, 0.0534477867, -0.3638849258, -0.1054845974, -0.0662849844, 0.2241830677, 0.554980576, 0.0879389048, -0.0654216409, -0.1985053271, -0.3651028275, 0.0472619794, 0.0609633327, 0.345897764, -0.5050410628, -0.2242197245, 0.0746107027, -0.202514261, 0.0240737498, -0.0595321022, 0.3887706399, 0.0275426749, 0.1846704781, 0.2382084578, 0.206120953, -0.2885975838, 0.040454261, -0.254373312, 0.1079118401, -0.2676790059, 0.0216235574, 0.4254853427, -0.2547462583, 0.3628551066, -0.1148061827, 0.122786507, -0.2697127759, 0.1615977883, -0.1530230492, 0.1014414728, 0.3675162494, 0.19298096, 0.1593685001, -0.0706942528, 0.0167920534, -0.1436112821, -0.0149780549, -0.2849145234, -0.0905564278, -0.1537298113, 0.2151496857, 0.1277481019, 0.0278525576, 0.0433637053, -0.2512168586, 0.372243017, -0.2643629909, -0.14173235, -0.2340993136, -0.5231898427, -0.2024494857, 0.4860139787, 0.4526612461, -0.1809465289, -0.1175098047, -0.0973210707, -0.1824046075, 0.0556544773, 0.3241597712, -0.179368183, -0.0307291485, -0.2963326573, 0.2753539383, 0.087516807, -0.4366910458, -0.4876015186, -0.1819707006, -0.0606246814, 0.0602043197, 0.118565768, 0.0384040885, -0.1004756168, 0.0219851248, 0.2539458275, 0.5031266212, -0.0107136797, -0.0328917168, -0.1454349458, -0.4263295829, -0.1736987233, 0.3224983215, 0.150613144, -0.1153757498, 0.2806706727, -0.087079376, 0.2624398172, -0.0973329321, 0.0630732775, 0.1909133941, 0.2295559347, -0.0801469907, 0.1184295118, -0.3240866363, -0.435700953, 0.2677153647, -0.0948989689, 0.0317004696, -0.2420865148, -0.2039837241, -0.352653414, -0.1650345922, -0.3321810067, -0.0065011168, 0.1142792702, 0.4985075295, 0.2177147716, 0.1449618787, -0.1897188872, 0.0638730302, 0.0289196223, -0.0646875873, -0.7150552869, 0.2665309012, -0.1898225099, -0.1071946621, 0.2395141721, 0.1517520845, 0.0549180917, 0.0787087604, -0.1184206903, 0.3453001082, 0.2022582144, 0.0583914854, -0.351824671, -0.0001871648, -0.0040539061, -0.3237383366, 0.0436071642, -0.1192732155, -0.0044155768, -0.0772206634, -0.3086918294, 0.1236222163, -0.1307583749, 0.0951453298, 0.1823177636, -0.1156912297, 0.3125925064, -0.073504895, 0.0531581677, -0.1273247004, -0.0099117309, -0.1205977052, 0.1204942167, -0.0725804269, -0.1821899861, -0.1892940402, 0.579274714, 0.2202687413, -0.0393408053, -0.0393128172, -0.1610344797, -0.0093440432, 0.0116307912, 0.4716457427, 0.4803253412, 0.1779791713, 0.0791164935, -0.0515477508, 0.0048682964, -0.2172181755, 0.1703790575, 0.1471010894, 0.4880066216, 0.3780516088, 0.1479272544, 0.1846890599, -0.3074477911, -0.3245011866, 0.0013328614, 0.0457043201, -0.4413444996, 0.0814483762, -0.2838465869, -0.3137007952, -0.0944914445, 0.0361600854, -0.1059169397, 0.0414539464, -0.093156144, 0.1386880577, 0.0960857421, 0.0465976894, 0.0090052988, 0.1665086001, 0.0141056199, -0.075373657, -0.0971484035, 0.2270568162, -0.2296049744, 0.0541197546, 0.3713403046, 0.1780454069, 0.3578682244, -0.2145284265, -0.2005600482, -0.1503771693, -0.0708332658, 0.0341410972, 0.1860965937, 0.1292472482, 0.3366940022, 0.1500484943, -0.0667337924, -0.0899746269, 0.279584527, -0.0481733568, -0.2850255668, 0.1136236936, 0.0650859401, -0.1385374963, -0.3585802913, -0.5579133034, -0.3380124569, -0.3663237989, -0.049869854, 0.0404046103, 0.1694331318, 0.4732453823, 0.088766627, 0.1524582207, 0.144516632, 0.2555793226, -0.2897176743, -0.0981437266, 0.1930554658, -0.3011599481, -0.3549561203, -0.0483235866, 0.1216570362, 0.4563895762, 0.2100287527, -0.4364906549, -0.1172404811, -0.0470240712, -0.0885037035, -0.2499402463, 0.2360156178, 0.4074498415, 0.1290813237, -0.1242928281, -0.1200071052, -0.2399530709, 0.0062454264, -0.1566556096, 0.3083716631, -0.1498816609, 0.3840339482, 0.0950716287, 0.5298096538, 0.2353642285, -0.3481455147, 0.552164197, -0.0683819279, 0.0210935343, -0.2291103005, -0.2141239792, 0.0781306177, -0.1270039678, 0.0188127141, 0.0257774778, -0.0133397346, -0.1851697266, -0.1848760992, -0.0613559149, -0.275307864, -0.0817706808, -0.1014536023, 0.2882516682, 0.3262504339, -0.0274664387, 0.0630108938, 0.2790856659, 0.1047116145, 0.2452649772, 0.2180065513, -0.0005832197, -0.0485989824, -0.3567247391, -0.0664363056, -0.166310057, 0.1761162579, -0.036845278, 0.2587999403, -0.0662170053, 0.0791430473, 0.1643024236, -0.3380361497, 0.8213409781, -0.2613056898, 0.2418704033, 0.3697153032, 0.2420530617, -0.2258996814, -0.1541520804, -0.3346180618, 0.1579958498, 0.0321327969, 0.4422741532, -0.1620720923, -0.1345662028, 0.3193741143, 0.2225746363, -0.0688897669, -0.0547737405, -0.3993507326, -0.3454326391, -0.5314347744, 0.1355778277, -0.0710414946, 0.3198798597, 0.0268678553, -0.2886477709, 0.0811934397, 0.0245287642, -0.0345289372, 0.2724259198, 0.3293778896, 0.3629221022, 0.3734197021, 0.1534742415, 0.2169042528, 0.5727989674, 0.6904036403, -0.0055705309, -0.3426516652, 0.0532504171, -0.0486376993, 0.2821165621, 0.2071949691, -0.027332034, 0.0476685688, 0.3138652742, 0.0925964192, 0.0154252043, 0.0600296594, 0.4105708003, -0.1176939979, -0.1394828707, -0.3072564602, 0.3418479264, 0.0342633314, 0.0702548027, 0.1426353306, 0.1649597138, -0.1044438556, 0.3420697153, 0.0719513968, 0.7941669226, -0.06136439, 0.0544958971, 0.3006099761, -0.2165735364, 0.5357986689, 0.0122666983, -0.0263530426, -0.3146302998, -0.0331078619, 0.081795685, -0.1689385623, -0.1216904521, -0.04357256, -0.2277178615, 0.0981285125, 0.0994217172, -0.6368501186, -0.0196981542, 0.4822021723, 0.269412756, -0.3180781901, 0.1898536682, 0.0903738886, -0.1135680452, 0.3425997198, 0.0033376229, -0.0613119714, -0.0299159139, -0.1697575152, -0.1712060422, 0.3080238104, -0.2501226962, 0.1981514692, 0.1826119721, -0.0362828448, 0.3760785758, -0.0424509086, 0.0703263506, 0.2589299381, -0.2436537296, 0.1512529254, 0.0191675872, 0.008591841, 0.0646049306, -0.1925952733, 0.3855213821, -0.1781772822, -0.3778918087, -0.0535506494, 0.0051438864, 0.0241541192, 0.2977985144, -0.0370538794, 0.3488346934, -0.1993159801, -0.3270693123, -0.0684842914, 0.0865809172, -0.2445610017, 0.1859183609, 0.103659898, -0.0919287354, 0.1581238359, -0.0964927673, -0.098988153, 0.0936480537, 0.5139009953, -0.0521473773, -0.2407251745, 0.3571927249, 0.376475364, -0.1675053239, -0.2569653392, -0.2915703058, -0.0567010082, -0.4139514863, 0.1468438059, 0.1565704197, 0.0060512032, -0.023061661, 0.1697079986, 0.0113721844, -0.0628127903, 0.0332417525, -0.426538974, -0.0209039841, 0.1503373981, -0.0237374548, 0.2881924808, 0.2251568437, -0.2516815662, 0.0911819637, 0.1103963777, -0.3268145025, 0.1120833233, -0.2939635217, 0.1811269969, -0.0480352268, -0.093469277, 0.0767808259, -0.2518734336, 0.1652527452, 0.0562194027, -0.2075743824, -0.2605429888, -0.194071874, 0.1158635244, -0.0125148408, -0.0428056493, 0.3127569258, -0.1428234875, -0.320920825, -0.0568052158, 0.0906094089, 0.1143380776, -0.1301572919, 0.2040451169, 0.0169669464, -0.057571318, -0.1385834664, 0.1575560868, -0.101148501, -0.2803792059, -0.0445990041, 0.2606082261, -0.0789657161, -0.1785390526, -0.2275822461, -0.0671848878, 0.0470046252, 0.0342256986, 0.078411296, -0.3220159411, -0.3887526095, 0.0694619194, 0.3194072545, 0.316732049, -0.3201495707, 0.1803245544, 0.1402519494, 0.2861287296, -0.3268761933, -0.1249859184, 0.0659750998, -0.0699153244, -0.0357394442, 0.1400689334, -0.0094578965, -0.2825185955, 0.0897420272, 0.1392482817, 0.1462795436, -0.1761916876, 0.0119849825, 0.0392109863, -0.0369507335, -0.0240638498, -0.0192267802, -0.2650319636, 0.1773090363, 0.5816265941, -0.169587478, 0.1439688802, 0.1006707028, 0.2517463863, 0.015415539, -0.3448449969, 0.0421243124, 0.0107894735, -0.1757239252, 0.0977824554, 0.0104753366, 0.2789308727, 0.0440600365, -0.2300876826, -0.2636857331, 0.2312724441, -0.106570527, -0.0616308711, -0.3555412889, -0.0266098883, -0.2263419479, 0.0938467607, 0.0063367854, -0.0007109817, 0.148396492, 0.2181360424, -0.2742419541, -0.1426496953, -0.1995288283, 0.1203338951, 0.1999753416, -0.3994294107, 0.3342705071, 0.2159489244, -0.1108796597, -0.0578106754, 0.2559784949, 0.4459255636, 0.280233264, 0.1858567297, 0.0712097213, 0.035455402, -0.0325710103, 0.0056480458, 0.0822462738, 0.0866929218, 0.3283846974, 0.2914205194, 0.1601272225, -0.2376896888, -0.2040584385, 0.0316263288, 0.0797251835, -0.375875622, 0.0987094715, -0.4445272982, -0.0935650915, -0.2680284083, 0.3457231224, -0.6255671382, 0.0497021042, 0.4953057468, 0.1604815274, 0.1792558879, -0.1126629412, 0.1016188636, -0.1663561612, 0.3923478723, 0.3734773695, 0.295383662, -0.2490821332, -0.1365754455, -0.878283143, 0.212462008, -0.0601487979, -0.1413335204, 0.0086399289, 0.4021164775, -0.1589827091, -0.0569621399, 0.0387319736, 0.1829791218, 0.2797543406, 0.3865868747, -0.3127536178, 0.0174849275, -0.2016778588, -0.2143093199, 0.0766962841, -0.5682261586, 0.0554121621, -0.3495188653, -0.0262516644, -0.1149184033, -0.1688761711, 0.0431207828, 0.1054019034, 0.7171449065, -0.1032491997, 0.3438675404, -0.3376058936, -0.2243967354, -0.3235493898, 0.1438735127, -0.1175723448, 0.4296815395, 0.1589424014, 0.7069991231, -0.0599791184, 0.2978619933, -0.2578024566, 0.2526991367, -0.1073827669, -0.0951680169, -0.1830518842, 0.1367328912, -0.0260308236, 0.3013844788, 0.1257272065, -0.0345724337, -0.1449997872, -0.1756369323, -0.5247728229, -0.5696107149, 0.504558742, -0.0877103731, -0.1027099788, -0.3237430751, 0.4879233837, -0.2086920142, -0.1216666922, -0.5901433229, 0.1706805378, 0.2419440001, 0.0776016414, -0.4300966561, 0.3080764711, 0.0288775433, -0.1248119771, -0.0624255016, 0.0906090662, 0.1726604402, -0.263661772, 0.1627914757, -0.3946767747 ]
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
Thanks @albertvillanova . Unfortunately the error persists after installing ```datasets[audio]```. Can you direct towards a solution? ``` pip3 install datasets[audio] ``` ### log Requirement already satisfied: datasets[audio] in ./.virtualenvs/hubert/lib/python3.7/site-packages (1.18.3) Requirement already satisfied: numpy>=1.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.21.5) Requirement already satisfied: xxhash in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.0.0) Requirement already satisfied: fsspec[http]>=2021.05.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2022.2.0) Requirement already satisfied: dill in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.3.4) Requirement already satisfied: pandas in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.3.5) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.4.0) Requirement already satisfied: packaging in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (21.3) Requirement already satisfied: multiprocess in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.70.12.2) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (7.0.0) Requirement already satisfied: tqdm>=4.62.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.63.1) Requirement already satisfied: aiohttp in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.8.1) Requirement already satisfied: importlib-metadata in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.11.3) Requirement already satisfied: requests>=2.19.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2.27.1) Requirement already satisfied: librosa in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.9.1) Requirement already satisfied: pyyaml in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (6.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (4.1.1) Requirement already satisfied: filelock in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (3.6.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from packaging->datasets[audio]) (3.0.7) Requirement already satisfied: idna<4,>=2.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (3.3) Requirement already satisfied: certifi>=2017.4.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2021.10.8) Requirement already satisfied: charset-normalizer~=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (1.26.9) Requirement already satisfied: attrs>=17.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (21.4.0) Requirement already satisfied: frozenlist>=1.1.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.3.0) Requirement already satisfied: aiosignal>=1.1.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.2.0) Requirement already satisfied: yarl<2.0,>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.7.2) Requirement already satisfied: asynctest==0.13.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (0.13.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (6.0.2) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (4.0.2) Requirement already satisfied: zipp>=0.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from importlib-metadata->datasets[audio]) (3.7.0) Requirement already satisfied: decorator>=4.0.10 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (5.1.1) Requirement already satisfied: soundfile>=0.10.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.55.1) Requirement already satisfied: pooch>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.6.0) Requirement already satisfied: resampy>=0.2.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.2.2) Requirement already satisfied: audioread>=2.1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (2.1.9) Requirement already satisfied: joblib>=0.14 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.1.0) Requirement already satisfied: scipy>=1.2.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.7.3) Requirement already satisfied: scikit-learn>=0.19.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.0.2) Requirement already satisfied: python-dateutil>=2.7.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2.8.2) Requirement already satisfied: pytz>=2017.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2022.1) Requirement already satisfied: setuptools in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (0.38.0) Requirement already satisfied: appdirs>=1.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa->datasets[audio]) (1.4.4) Requirement already satisfied: six>=1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets[audio]) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa->datasets[audio]) (3.1.0) Requirement already satisfied: cffi>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa->datasets[audio]) (1.15.0) Requirement already satisfied: pycparser in ./.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa->datasets[audio]) (2.21) ### reload ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### log Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 33542.59it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:06<00:00, 22.28it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 21558.39it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2996.41it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 23431.87it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ### just to double-check as per your docs ``` pip3 install librosa torchaudio ``` ### logs Requirement already satisfied: librosa in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.9.1) Requirement already satisfied: torchaudio in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.11.0+cu113) Requirement already satisfied: audioread>=2.1.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (2.1.9) Requirement already satisfied: joblib>=0.14 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.1.0) Requirement already satisfied: packaging>=20.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (21.3) Requirement already satisfied: scikit-learn>=0.19.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.0.2) Requirement already satisfied: scipy>=1.2.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.7.3) Requirement already satisfied: decorator>=4.0.10 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (5.1.1) Requirement already satisfied: resampy>=0.2.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.2.2) Requirement already satisfied: pooch>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.6.0) Requirement already satisfied: numpy>=1.17.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.21.5) Requirement already satisfied: soundfile>=0.10.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.55.1) Requirement already satisfied: torch==1.11.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torchaudio) (1.11.0+cu113) Requirement already satisfied: typing-extensions in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torch==1.11.0->torchaudio) (4.1.1) Requirement already satisfied: setuptools in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (0.38.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from packaging>=20.0->librosa) (3.0.7) Requirement already satisfied: requests>=2.19.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (2.27.1) Requirement already satisfied: appdirs>=1.3.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (1.4.4) Requirement already satisfied: six>=1.3 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from resampy>=0.2.2->librosa) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa) (3.1.0) Requirement already satisfied: cffi>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa) (1.15.0) Requirement already satisfied: pycparser in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa) (2.21) Requirement already satisfied: charset-normalizer~=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2.0.12) Requirement already satisfied: certifi>=2017.4.17 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2021.10.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (1.26.9) Requirement already satisfied: idna<4,>=2.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (3.3) ### try loading again ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### same error Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 33542.59it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:06<00:00, 22.28it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 21558.39it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2996.41it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 23431.87it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
969
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 Thanks @albertvillanova . Unfortunately the error persists after installing ```datasets[audio]```. Can you direct towards a solution? ``` pip3 install datasets[audio] ``` ### log Requirement already satisfied: datasets[audio] in ./.virtualenvs/hubert/lib/python3.7/site-packages (1.18.3) Requirement already satisfied: numpy>=1.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.21.5) Requirement already satisfied: xxhash in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.0.0) Requirement already satisfied: fsspec[http]>=2021.05.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2022.2.0) Requirement already satisfied: dill in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.3.4) Requirement already satisfied: pandas in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.3.5) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.4.0) Requirement already satisfied: packaging in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (21.3) Requirement already satisfied: multiprocess in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.70.12.2) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (7.0.0) Requirement already satisfied: tqdm>=4.62.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.63.1) Requirement already satisfied: aiohttp in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.8.1) Requirement already satisfied: importlib-metadata in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.11.3) Requirement already satisfied: requests>=2.19.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2.27.1) Requirement already satisfied: librosa in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.9.1) Requirement already satisfied: pyyaml in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (6.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (4.1.1) Requirement already satisfied: filelock in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (3.6.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from packaging->datasets[audio]) (3.0.7) Requirement already satisfied: idna<4,>=2.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (3.3) Requirement already satisfied: certifi>=2017.4.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2021.10.8) Requirement already satisfied: charset-normalizer~=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (1.26.9) Requirement already satisfied: attrs>=17.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (21.4.0) Requirement already satisfied: frozenlist>=1.1.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.3.0) Requirement already satisfied: aiosignal>=1.1.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.2.0) Requirement already satisfied: yarl<2.0,>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.7.2) Requirement already satisfied: asynctest==0.13.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (0.13.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (6.0.2) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (4.0.2) Requirement already satisfied: zipp>=0.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from importlib-metadata->datasets[audio]) (3.7.0) Requirement already satisfied: decorator>=4.0.10 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (5.1.1) Requirement already satisfied: soundfile>=0.10.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.55.1) Requirement already satisfied: pooch>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.6.0) Requirement already satisfied: resampy>=0.2.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.2.2) Requirement already satisfied: audioread>=2.1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (2.1.9) Requirement already satisfied: joblib>=0.14 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.1.0) Requirement already satisfied: scipy>=1.2.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.7.3) Requirement already satisfied: scikit-learn>=0.19.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.0.2) Requirement already satisfied: python-dateutil>=2.7.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2.8.2) Requirement already satisfied: pytz>=2017.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2022.1) Requirement already satisfied: setuptools in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (0.38.0) Requirement already satisfied: appdirs>=1.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa->datasets[audio]) (1.4.4) Requirement already satisfied: six>=1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets[audio]) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa->datasets[audio]) (3.1.0) Requirement already satisfied: cffi>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa->datasets[audio]) (1.15.0) Requirement already satisfied: pycparser in ./.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa->datasets[audio]) (2.21) ### reload ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### log Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 33542.59it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:06<00:00, 22.28it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 21558.39it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2996.41it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 23431.87it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ### just to double-check as per your docs ``` pip3 install librosa torchaudio ``` ### logs Requirement already satisfied: librosa in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.9.1) Requirement already satisfied: torchaudio in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.11.0+cu113) Requirement already satisfied: audioread>=2.1.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (2.1.9) Requirement already satisfied: joblib>=0.14 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.1.0) Requirement already satisfied: packaging>=20.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (21.3) Requirement already satisfied: scikit-learn>=0.19.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.0.2) Requirement already satisfied: scipy>=1.2.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.7.3) Requirement already satisfied: decorator>=4.0.10 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (5.1.1) Requirement already satisfied: resampy>=0.2.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.2.2) Requirement already satisfied: pooch>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.6.0) Requirement already satisfied: numpy>=1.17.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.21.5) Requirement already satisfied: soundfile>=0.10.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.55.1) Requirement already satisfied: torch==1.11.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torchaudio) (1.11.0+cu113) Requirement already satisfied: typing-extensions in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torch==1.11.0->torchaudio) (4.1.1) Requirement already satisfied: setuptools in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (0.38.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from packaging>=20.0->librosa) (3.0.7) Requirement already satisfied: requests>=2.19.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (2.27.1) Requirement already satisfied: appdirs>=1.3.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (1.4.4) Requirement already satisfied: six>=1.3 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from resampy>=0.2.2->librosa) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa) (3.1.0) Requirement already satisfied: cffi>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa) (1.15.0) Requirement already satisfied: pycparser in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa) (2.21) Requirement already satisfied: charset-normalizer~=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2.0.12) Requirement already satisfied: certifi>=2017.4.17 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2021.10.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (1.26.9) Requirement already satisfied: idna<4,>=2.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (3.3) ### try loading again ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### same error Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 33542.59it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:06<00:00, 22.28it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 21558.39it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2996.41it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 23431.87it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found
[ -0.1790904552, -0.2704021335, -0.0430675745, 0.2871549726, 0.1397019923, -0.1179440096, 0.3523590863, 0.0170880817, 0.0107310023, 0.38430655, -0.1333328933, 0.2134562433, 0.047165595, 0.4075194895, 0.0083271693, 0.1030785218, 0.0407495089, 0.2446232438, 0.3289997578, 0.0049698157, -0.1248542964, 0.3498246372, -0.3242542446, -0.0855612829, -0.2250002176, -0.0323688723, -0.0295675695, 0.2735975087, -0.2173347622, -0.4320850372, 0.3754369617, -0.0343438238, -0.0005727952, 0.3536964357, -0.0001102986, 0.0756440461, 0.4843730927, -0.0524124131, -0.2810944617, -0.3754798174, -0.2990475297, 0.1707935631, 0.0556402765, -0.1272977144, -0.089670524, -0.098798871, -0.0211462136, -0.3069238365, 0.3857118189, 0.4192144871, 0.2016517371, 0.471924156, 0.0024840734, -0.3136757016, 0.3918528855, 0.2235946357, -0.1430784017, -0.0157597121, 0.0243399777, -0.0155698862, 0.1711930335, 0.4005113244, -0.0210419763, 0.1813031584, 0.2981663346, 0.0199068356, -0.0473761149, -0.2547491789, 0.2032929063, 0.2257046402, 0.4580152631, -0.071590513, -0.3287923038, -0.0070415977, -0.0157971382, -0.2628720105, 0.1357518733, 0.001461045, -0.0957705081, -0.068233937, -0.1837204546, -0.0147009054, 0.0261229556, 0.2206098288, -0.2563199401, 0.0335392207, -0.272842288, 0.1122220382, 0.2719632983, 0.0540636927, 0.1083780825, 0.1800412536, 0.1520660818, 0.1512789279, -0.403142333, 0.1535101235, 0.3604500592, -0.3967066407, 0.2639093101, 0.1983274072, -0.1928649098, -0.0772232935, -0.3029692173, 0.2131035924, 0.0534477867, -0.3638849258, -0.1054845974, -0.0662849844, 0.2241830677, 0.554980576, 0.0879389048, -0.0654216409, -0.1985053271, -0.3651028275, 0.0472619794, 0.0609633327, 0.345897764, -0.5050410628, -0.2242197245, 0.0746107027, -0.202514261, 0.0240737498, -0.0595321022, 0.3887706399, 0.0275426749, 0.1846704781, 0.2382084578, 0.206120953, -0.2885975838, 0.040454261, -0.254373312, 0.1079118401, -0.2676790059, 0.0216235574, 0.4254853427, -0.2547462583, 0.3628551066, -0.1148061827, 0.122786507, -0.2697127759, 0.1615977883, -0.1530230492, 0.1014414728, 0.3675162494, 0.19298096, 0.1593685001, -0.0706942528, 0.0167920534, -0.1436112821, -0.0149780549, -0.2849145234, -0.0905564278, -0.1537298113, 0.2151496857, 0.1277481019, 0.0278525576, 0.0433637053, -0.2512168586, 0.372243017, -0.2643629909, -0.14173235, -0.2340993136, -0.5231898427, -0.2024494857, 0.4860139787, 0.4526612461, -0.1809465289, -0.1175098047, -0.0973210707, -0.1824046075, 0.0556544773, 0.3241597712, -0.179368183, -0.0307291485, -0.2963326573, 0.2753539383, 0.087516807, -0.4366910458, -0.4876015186, -0.1819707006, -0.0606246814, 0.0602043197, 0.118565768, 0.0384040885, -0.1004756168, 0.0219851248, 0.2539458275, 0.5031266212, -0.0107136797, -0.0328917168, -0.1454349458, -0.4263295829, -0.1736987233, 0.3224983215, 0.150613144, -0.1153757498, 0.2806706727, -0.087079376, 0.2624398172, -0.0973329321, 0.0630732775, 0.1909133941, 0.2295559347, -0.0801469907, 0.1184295118, -0.3240866363, -0.435700953, 0.2677153647, -0.0948989689, 0.0317004696, -0.2420865148, -0.2039837241, -0.352653414, -0.1650345922, -0.3321810067, -0.0065011168, 0.1142792702, 0.4985075295, 0.2177147716, 0.1449618787, -0.1897188872, 0.0638730302, 0.0289196223, -0.0646875873, -0.7150552869, 0.2665309012, -0.1898225099, -0.1071946621, 0.2395141721, 0.1517520845, 0.0549180917, 0.0787087604, -0.1184206903, 0.3453001082, 0.2022582144, 0.0583914854, -0.351824671, -0.0001871648, -0.0040539061, -0.3237383366, 0.0436071642, -0.1192732155, -0.0044155768, -0.0772206634, -0.3086918294, 0.1236222163, -0.1307583749, 0.0951453298, 0.1823177636, -0.1156912297, 0.3125925064, -0.073504895, 0.0531581677, -0.1273247004, -0.0099117309, -0.1205977052, 0.1204942167, -0.0725804269, -0.1821899861, -0.1892940402, 0.579274714, 0.2202687413, -0.0393408053, -0.0393128172, -0.1610344797, -0.0093440432, 0.0116307912, 0.4716457427, 0.4803253412, 0.1779791713, 0.0791164935, -0.0515477508, 0.0048682964, -0.2172181755, 0.1703790575, 0.1471010894, 0.4880066216, 0.3780516088, 0.1479272544, 0.1846890599, -0.3074477911, -0.3245011866, 0.0013328614, 0.0457043201, -0.4413444996, 0.0814483762, -0.2838465869, -0.3137007952, -0.0944914445, 0.0361600854, -0.1059169397, 0.0414539464, -0.093156144, 0.1386880577, 0.0960857421, 0.0465976894, 0.0090052988, 0.1665086001, 0.0141056199, -0.075373657, -0.0971484035, 0.2270568162, -0.2296049744, 0.0541197546, 0.3713403046, 0.1780454069, 0.3578682244, -0.2145284265, -0.2005600482, -0.1503771693, -0.0708332658, 0.0341410972, 0.1860965937, 0.1292472482, 0.3366940022, 0.1500484943, -0.0667337924, -0.0899746269, 0.279584527, -0.0481733568, -0.2850255668, 0.1136236936, 0.0650859401, -0.1385374963, -0.3585802913, -0.5579133034, -0.3380124569, -0.3663237989, -0.049869854, 0.0404046103, 0.1694331318, 0.4732453823, 0.088766627, 0.1524582207, 0.144516632, 0.2555793226, -0.2897176743, -0.0981437266, 0.1930554658, -0.3011599481, -0.3549561203, -0.0483235866, 0.1216570362, 0.4563895762, 0.2100287527, -0.4364906549, -0.1172404811, -0.0470240712, -0.0885037035, -0.2499402463, 0.2360156178, 0.4074498415, 0.1290813237, -0.1242928281, -0.1200071052, -0.2399530709, 0.0062454264, -0.1566556096, 0.3083716631, -0.1498816609, 0.3840339482, 0.0950716287, 0.5298096538, 0.2353642285, -0.3481455147, 0.552164197, -0.0683819279, 0.0210935343, -0.2291103005, -0.2141239792, 0.0781306177, -0.1270039678, 0.0188127141, 0.0257774778, -0.0133397346, -0.1851697266, -0.1848760992, -0.0613559149, -0.275307864, -0.0817706808, -0.1014536023, 0.2882516682, 0.3262504339, -0.0274664387, 0.0630108938, 0.2790856659, 0.1047116145, 0.2452649772, 0.2180065513, -0.0005832197, -0.0485989824, -0.3567247391, -0.0664363056, -0.166310057, 0.1761162579, -0.036845278, 0.2587999403, -0.0662170053, 0.0791430473, 0.1643024236, -0.3380361497, 0.8213409781, -0.2613056898, 0.2418704033, 0.3697153032, 0.2420530617, -0.2258996814, -0.1541520804, -0.3346180618, 0.1579958498, 0.0321327969, 0.4422741532, -0.1620720923, -0.1345662028, 0.3193741143, 0.2225746363, -0.0688897669, -0.0547737405, -0.3993507326, -0.3454326391, -0.5314347744, 0.1355778277, -0.0710414946, 0.3198798597, 0.0268678553, -0.2886477709, 0.0811934397, 0.0245287642, -0.0345289372, 0.2724259198, 0.3293778896, 0.3629221022, 0.3734197021, 0.1534742415, 0.2169042528, 0.5727989674, 0.6904036403, -0.0055705309, -0.3426516652, 0.0532504171, -0.0486376993, 0.2821165621, 0.2071949691, -0.027332034, 0.0476685688, 0.3138652742, 0.0925964192, 0.0154252043, 0.0600296594, 0.4105708003, -0.1176939979, -0.1394828707, -0.3072564602, 0.3418479264, 0.0342633314, 0.0702548027, 0.1426353306, 0.1649597138, -0.1044438556, 0.3420697153, 0.0719513968, 0.7941669226, -0.06136439, 0.0544958971, 0.3006099761, -0.2165735364, 0.5357986689, 0.0122666983, -0.0263530426, -0.3146302998, -0.0331078619, 0.081795685, -0.1689385623, -0.1216904521, -0.04357256, -0.2277178615, 0.0981285125, 0.0994217172, -0.6368501186, -0.0196981542, 0.4822021723, 0.269412756, -0.3180781901, 0.1898536682, 0.0903738886, -0.1135680452, 0.3425997198, 0.0033376229, -0.0613119714, -0.0299159139, -0.1697575152, -0.1712060422, 0.3080238104, -0.2501226962, 0.1981514692, 0.1826119721, -0.0362828448, 0.3760785758, -0.0424509086, 0.0703263506, 0.2589299381, -0.2436537296, 0.1512529254, 0.0191675872, 0.008591841, 0.0646049306, -0.1925952733, 0.3855213821, -0.1781772822, -0.3778918087, -0.0535506494, 0.0051438864, 0.0241541192, 0.2977985144, -0.0370538794, 0.3488346934, -0.1993159801, -0.3270693123, -0.0684842914, 0.0865809172, -0.2445610017, 0.1859183609, 0.103659898, -0.0919287354, 0.1581238359, -0.0964927673, -0.098988153, 0.0936480537, 0.5139009953, -0.0521473773, -0.2407251745, 0.3571927249, 0.376475364, -0.1675053239, -0.2569653392, -0.2915703058, -0.0567010082, -0.4139514863, 0.1468438059, 0.1565704197, 0.0060512032, -0.023061661, 0.1697079986, 0.0113721844, -0.0628127903, 0.0332417525, -0.426538974, -0.0209039841, 0.1503373981, -0.0237374548, 0.2881924808, 0.2251568437, -0.2516815662, 0.0911819637, 0.1103963777, -0.3268145025, 0.1120833233, -0.2939635217, 0.1811269969, -0.0480352268, -0.093469277, 0.0767808259, -0.2518734336, 0.1652527452, 0.0562194027, -0.2075743824, -0.2605429888, -0.194071874, 0.1158635244, -0.0125148408, -0.0428056493, 0.3127569258, -0.1428234875, -0.320920825, -0.0568052158, 0.0906094089, 0.1143380776, -0.1301572919, 0.2040451169, 0.0169669464, -0.057571318, -0.1385834664, 0.1575560868, -0.101148501, -0.2803792059, -0.0445990041, 0.2606082261, -0.0789657161, -0.1785390526, -0.2275822461, -0.0671848878, 0.0470046252, 0.0342256986, 0.078411296, -0.3220159411, -0.3887526095, 0.0694619194, 0.3194072545, 0.316732049, -0.3201495707, 0.1803245544, 0.1402519494, 0.2861287296, -0.3268761933, -0.1249859184, 0.0659750998, -0.0699153244, -0.0357394442, 0.1400689334, -0.0094578965, -0.2825185955, 0.0897420272, 0.1392482817, 0.1462795436, -0.1761916876, 0.0119849825, 0.0392109863, -0.0369507335, -0.0240638498, -0.0192267802, -0.2650319636, 0.1773090363, 0.5816265941, -0.169587478, 0.1439688802, 0.1006707028, 0.2517463863, 0.015415539, -0.3448449969, 0.0421243124, 0.0107894735, -0.1757239252, 0.0977824554, 0.0104753366, 0.2789308727, 0.0440600365, -0.2300876826, -0.2636857331, 0.2312724441, -0.106570527, -0.0616308711, -0.3555412889, -0.0266098883, -0.2263419479, 0.0938467607, 0.0063367854, -0.0007109817, 0.148396492, 0.2181360424, -0.2742419541, -0.1426496953, -0.1995288283, 0.1203338951, 0.1999753416, -0.3994294107, 0.3342705071, 0.2159489244, -0.1108796597, -0.0578106754, 0.2559784949, 0.4459255636, 0.280233264, 0.1858567297, 0.0712097213, 0.035455402, -0.0325710103, 0.0056480458, 0.0822462738, 0.0866929218, 0.3283846974, 0.2914205194, 0.1601272225, -0.2376896888, -0.2040584385, 0.0316263288, 0.0797251835, -0.375875622, 0.0987094715, -0.4445272982, -0.0935650915, -0.2680284083, 0.3457231224, -0.6255671382, 0.0497021042, 0.4953057468, 0.1604815274, 0.1792558879, -0.1126629412, 0.1016188636, -0.1663561612, 0.3923478723, 0.3734773695, 0.295383662, -0.2490821332, -0.1365754455, -0.878283143, 0.212462008, -0.0601487979, -0.1413335204, 0.0086399289, 0.4021164775, -0.1589827091, -0.0569621399, 0.0387319736, 0.1829791218, 0.2797543406, 0.3865868747, -0.3127536178, 0.0174849275, -0.2016778588, -0.2143093199, 0.0766962841, -0.5682261586, 0.0554121621, -0.3495188653, -0.0262516644, -0.1149184033, -0.1688761711, 0.0431207828, 0.1054019034, 0.7171449065, -0.1032491997, 0.3438675404, -0.3376058936, -0.2243967354, -0.3235493898, 0.1438735127, -0.1175723448, 0.4296815395, 0.1589424014, 0.7069991231, -0.0599791184, 0.2978619933, -0.2578024566, 0.2526991367, -0.1073827669, -0.0951680169, -0.1830518842, 0.1367328912, -0.0260308236, 0.3013844788, 0.1257272065, -0.0345724337, -0.1449997872, -0.1756369323, -0.5247728229, -0.5696107149, 0.504558742, -0.0877103731, -0.1027099788, -0.3237430751, 0.4879233837, -0.2086920142, -0.1216666922, -0.5901433229, 0.1706805378, 0.2419440001, 0.0776016414, -0.4300966561, 0.3080764711, 0.0288775433, -0.1248119771, -0.0624255016, 0.0906090662, 0.1726604402, -0.263661772, 0.1627914757, -0.3946767747 ]
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
Hi @i-am-neo, thanks again for your detailed report. Our `datasets` library support for audio relies on a third-party Python library called `librosa`, which is installed when you do: ```shell pip install datasets[audio] ``` However, the `librosa` library has a dependency on `soundfile`; and `soundfile` depends on a non-Python package called `sndfile`. On Linux (which is your case), this must be installed manually using your operating system package manager, for example: ```shell sudo apt-get install libsndfile1 ``` Please, let me know if this works and if so, I will update our docs with all this information.
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
95
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 Hi @i-am-neo, thanks again for your detailed report. Our `datasets` library support for audio relies on a third-party Python library called `librosa`, which is installed when you do: ```shell pip install datasets[audio] ``` However, the `librosa` library has a dependency on `soundfile`; and `soundfile` depends on a non-Python package called `sndfile`. On Linux (which is your case), this must be installed manually using your operating system package manager, for example: ```shell sudo apt-get install libsndfile1 ``` Please, let me know if this works and if so, I will update our docs with all this information.
[ -0.1790904552, -0.2704021335, -0.0430675745, 0.2871549726, 0.1397019923, -0.1179440096, 0.3523590863, 0.0170880817, 0.0107310023, 0.38430655, -0.1333328933, 0.2134562433, 0.047165595, 0.4075194895, 0.0083271693, 0.1030785218, 0.0407495089, 0.2446232438, 0.3289997578, 0.0049698157, -0.1248542964, 0.3498246372, -0.3242542446, -0.0855612829, -0.2250002176, -0.0323688723, -0.0295675695, 0.2735975087, -0.2173347622, -0.4320850372, 0.3754369617, -0.0343438238, -0.0005727952, 0.3536964357, -0.0001102986, 0.0756440461, 0.4843730927, -0.0524124131, -0.2810944617, -0.3754798174, -0.2990475297, 0.1707935631, 0.0556402765, -0.1272977144, -0.089670524, -0.098798871, -0.0211462136, -0.3069238365, 0.3857118189, 0.4192144871, 0.2016517371, 0.471924156, 0.0024840734, -0.3136757016, 0.3918528855, 0.2235946357, -0.1430784017, -0.0157597121, 0.0243399777, -0.0155698862, 0.1711930335, 0.4005113244, -0.0210419763, 0.1813031584, 0.2981663346, 0.0199068356, -0.0473761149, -0.2547491789, 0.2032929063, 0.2257046402, 0.4580152631, -0.071590513, -0.3287923038, -0.0070415977, -0.0157971382, -0.2628720105, 0.1357518733, 0.001461045, -0.0957705081, -0.068233937, -0.1837204546, -0.0147009054, 0.0261229556, 0.2206098288, -0.2563199401, 0.0335392207, -0.272842288, 0.1122220382, 0.2719632983, 0.0540636927, 0.1083780825, 0.1800412536, 0.1520660818, 0.1512789279, -0.403142333, 0.1535101235, 0.3604500592, -0.3967066407, 0.2639093101, 0.1983274072, -0.1928649098, -0.0772232935, -0.3029692173, 0.2131035924, 0.0534477867, -0.3638849258, -0.1054845974, -0.0662849844, 0.2241830677, 0.554980576, 0.0879389048, -0.0654216409, -0.1985053271, -0.3651028275, 0.0472619794, 0.0609633327, 0.345897764, -0.5050410628, -0.2242197245, 0.0746107027, -0.202514261, 0.0240737498, -0.0595321022, 0.3887706399, 0.0275426749, 0.1846704781, 0.2382084578, 0.206120953, -0.2885975838, 0.040454261, -0.254373312, 0.1079118401, -0.2676790059, 0.0216235574, 0.4254853427, -0.2547462583, 0.3628551066, -0.1148061827, 0.122786507, -0.2697127759, 0.1615977883, -0.1530230492, 0.1014414728, 0.3675162494, 0.19298096, 0.1593685001, -0.0706942528, 0.0167920534, -0.1436112821, -0.0149780549, -0.2849145234, -0.0905564278, -0.1537298113, 0.2151496857, 0.1277481019, 0.0278525576, 0.0433637053, -0.2512168586, 0.372243017, -0.2643629909, -0.14173235, -0.2340993136, -0.5231898427, -0.2024494857, 0.4860139787, 0.4526612461, -0.1809465289, -0.1175098047, -0.0973210707, -0.1824046075, 0.0556544773, 0.3241597712, -0.179368183, -0.0307291485, -0.2963326573, 0.2753539383, 0.087516807, -0.4366910458, -0.4876015186, -0.1819707006, -0.0606246814, 0.0602043197, 0.118565768, 0.0384040885, -0.1004756168, 0.0219851248, 0.2539458275, 0.5031266212, -0.0107136797, -0.0328917168, -0.1454349458, -0.4263295829, -0.1736987233, 0.3224983215, 0.150613144, -0.1153757498, 0.2806706727, -0.087079376, 0.2624398172, -0.0973329321, 0.0630732775, 0.1909133941, 0.2295559347, -0.0801469907, 0.1184295118, -0.3240866363, -0.435700953, 0.2677153647, -0.0948989689, 0.0317004696, -0.2420865148, -0.2039837241, -0.352653414, -0.1650345922, -0.3321810067, -0.0065011168, 0.1142792702, 0.4985075295, 0.2177147716, 0.1449618787, -0.1897188872, 0.0638730302, 0.0289196223, -0.0646875873, -0.7150552869, 0.2665309012, -0.1898225099, -0.1071946621, 0.2395141721, 0.1517520845, 0.0549180917, 0.0787087604, -0.1184206903, 0.3453001082, 0.2022582144, 0.0583914854, -0.351824671, -0.0001871648, -0.0040539061, -0.3237383366, 0.0436071642, -0.1192732155, -0.0044155768, -0.0772206634, -0.3086918294, 0.1236222163, -0.1307583749, 0.0951453298, 0.1823177636, -0.1156912297, 0.3125925064, -0.073504895, 0.0531581677, -0.1273247004, -0.0099117309, -0.1205977052, 0.1204942167, -0.0725804269, -0.1821899861, -0.1892940402, 0.579274714, 0.2202687413, -0.0393408053, -0.0393128172, -0.1610344797, -0.0093440432, 0.0116307912, 0.4716457427, 0.4803253412, 0.1779791713, 0.0791164935, -0.0515477508, 0.0048682964, -0.2172181755, 0.1703790575, 0.1471010894, 0.4880066216, 0.3780516088, 0.1479272544, 0.1846890599, -0.3074477911, -0.3245011866, 0.0013328614, 0.0457043201, -0.4413444996, 0.0814483762, -0.2838465869, -0.3137007952, -0.0944914445, 0.0361600854, -0.1059169397, 0.0414539464, -0.093156144, 0.1386880577, 0.0960857421, 0.0465976894, 0.0090052988, 0.1665086001, 0.0141056199, -0.075373657, -0.0971484035, 0.2270568162, -0.2296049744, 0.0541197546, 0.3713403046, 0.1780454069, 0.3578682244, -0.2145284265, -0.2005600482, -0.1503771693, -0.0708332658, 0.0341410972, 0.1860965937, 0.1292472482, 0.3366940022, 0.1500484943, -0.0667337924, -0.0899746269, 0.279584527, -0.0481733568, -0.2850255668, 0.1136236936, 0.0650859401, -0.1385374963, -0.3585802913, -0.5579133034, -0.3380124569, -0.3663237989, -0.049869854, 0.0404046103, 0.1694331318, 0.4732453823, 0.088766627, 0.1524582207, 0.144516632, 0.2555793226, -0.2897176743, -0.0981437266, 0.1930554658, -0.3011599481, -0.3549561203, -0.0483235866, 0.1216570362, 0.4563895762, 0.2100287527, -0.4364906549, -0.1172404811, -0.0470240712, -0.0885037035, -0.2499402463, 0.2360156178, 0.4074498415, 0.1290813237, -0.1242928281, -0.1200071052, -0.2399530709, 0.0062454264, -0.1566556096, 0.3083716631, -0.1498816609, 0.3840339482, 0.0950716287, 0.5298096538, 0.2353642285, -0.3481455147, 0.552164197, -0.0683819279, 0.0210935343, -0.2291103005, -0.2141239792, 0.0781306177, -0.1270039678, 0.0188127141, 0.0257774778, -0.0133397346, -0.1851697266, -0.1848760992, -0.0613559149, -0.275307864, -0.0817706808, -0.1014536023, 0.2882516682, 0.3262504339, -0.0274664387, 0.0630108938, 0.2790856659, 0.1047116145, 0.2452649772, 0.2180065513, -0.0005832197, -0.0485989824, -0.3567247391, -0.0664363056, -0.166310057, 0.1761162579, -0.036845278, 0.2587999403, -0.0662170053, 0.0791430473, 0.1643024236, -0.3380361497, 0.8213409781, -0.2613056898, 0.2418704033, 0.3697153032, 0.2420530617, -0.2258996814, -0.1541520804, -0.3346180618, 0.1579958498, 0.0321327969, 0.4422741532, -0.1620720923, -0.1345662028, 0.3193741143, 0.2225746363, -0.0688897669, -0.0547737405, -0.3993507326, -0.3454326391, -0.5314347744, 0.1355778277, -0.0710414946, 0.3198798597, 0.0268678553, -0.2886477709, 0.0811934397, 0.0245287642, -0.0345289372, 0.2724259198, 0.3293778896, 0.3629221022, 0.3734197021, 0.1534742415, 0.2169042528, 0.5727989674, 0.6904036403, -0.0055705309, -0.3426516652, 0.0532504171, -0.0486376993, 0.2821165621, 0.2071949691, -0.027332034, 0.0476685688, 0.3138652742, 0.0925964192, 0.0154252043, 0.0600296594, 0.4105708003, -0.1176939979, -0.1394828707, -0.3072564602, 0.3418479264, 0.0342633314, 0.0702548027, 0.1426353306, 0.1649597138, -0.1044438556, 0.3420697153, 0.0719513968, 0.7941669226, -0.06136439, 0.0544958971, 0.3006099761, -0.2165735364, 0.5357986689, 0.0122666983, -0.0263530426, -0.3146302998, -0.0331078619, 0.081795685, -0.1689385623, -0.1216904521, -0.04357256, -0.2277178615, 0.0981285125, 0.0994217172, -0.6368501186, -0.0196981542, 0.4822021723, 0.269412756, -0.3180781901, 0.1898536682, 0.0903738886, -0.1135680452, 0.3425997198, 0.0033376229, -0.0613119714, -0.0299159139, -0.1697575152, -0.1712060422, 0.3080238104, -0.2501226962, 0.1981514692, 0.1826119721, -0.0362828448, 0.3760785758, -0.0424509086, 0.0703263506, 0.2589299381, -0.2436537296, 0.1512529254, 0.0191675872, 0.008591841, 0.0646049306, -0.1925952733, 0.3855213821, -0.1781772822, -0.3778918087, -0.0535506494, 0.0051438864, 0.0241541192, 0.2977985144, -0.0370538794, 0.3488346934, -0.1993159801, -0.3270693123, -0.0684842914, 0.0865809172, -0.2445610017, 0.1859183609, 0.103659898, -0.0919287354, 0.1581238359, -0.0964927673, -0.098988153, 0.0936480537, 0.5139009953, -0.0521473773, -0.2407251745, 0.3571927249, 0.376475364, -0.1675053239, -0.2569653392, -0.2915703058, -0.0567010082, -0.4139514863, 0.1468438059, 0.1565704197, 0.0060512032, -0.023061661, 0.1697079986, 0.0113721844, -0.0628127903, 0.0332417525, -0.426538974, -0.0209039841, 0.1503373981, -0.0237374548, 0.2881924808, 0.2251568437, -0.2516815662, 0.0911819637, 0.1103963777, -0.3268145025, 0.1120833233, -0.2939635217, 0.1811269969, -0.0480352268, -0.093469277, 0.0767808259, -0.2518734336, 0.1652527452, 0.0562194027, -0.2075743824, -0.2605429888, -0.194071874, 0.1158635244, -0.0125148408, -0.0428056493, 0.3127569258, -0.1428234875, -0.320920825, -0.0568052158, 0.0906094089, 0.1143380776, -0.1301572919, 0.2040451169, 0.0169669464, -0.057571318, -0.1385834664, 0.1575560868, -0.101148501, -0.2803792059, -0.0445990041, 0.2606082261, -0.0789657161, -0.1785390526, -0.2275822461, -0.0671848878, 0.0470046252, 0.0342256986, 0.078411296, -0.3220159411, -0.3887526095, 0.0694619194, 0.3194072545, 0.316732049, -0.3201495707, 0.1803245544, 0.1402519494, 0.2861287296, -0.3268761933, -0.1249859184, 0.0659750998, -0.0699153244, -0.0357394442, 0.1400689334, -0.0094578965, -0.2825185955, 0.0897420272, 0.1392482817, 0.1462795436, -0.1761916876, 0.0119849825, 0.0392109863, -0.0369507335, -0.0240638498, -0.0192267802, -0.2650319636, 0.1773090363, 0.5816265941, -0.169587478, 0.1439688802, 0.1006707028, 0.2517463863, 0.015415539, -0.3448449969, 0.0421243124, 0.0107894735, -0.1757239252, 0.0977824554, 0.0104753366, 0.2789308727, 0.0440600365, -0.2300876826, -0.2636857331, 0.2312724441, -0.106570527, -0.0616308711, -0.3555412889, -0.0266098883, -0.2263419479, 0.0938467607, 0.0063367854, -0.0007109817, 0.148396492, 0.2181360424, -0.2742419541, -0.1426496953, -0.1995288283, 0.1203338951, 0.1999753416, -0.3994294107, 0.3342705071, 0.2159489244, -0.1108796597, -0.0578106754, 0.2559784949, 0.4459255636, 0.280233264, 0.1858567297, 0.0712097213, 0.035455402, -0.0325710103, 0.0056480458, 0.0822462738, 0.0866929218, 0.3283846974, 0.2914205194, 0.1601272225, -0.2376896888, -0.2040584385, 0.0316263288, 0.0797251835, -0.375875622, 0.0987094715, -0.4445272982, -0.0935650915, -0.2680284083, 0.3457231224, -0.6255671382, 0.0497021042, 0.4953057468, 0.1604815274, 0.1792558879, -0.1126629412, 0.1016188636, -0.1663561612, 0.3923478723, 0.3734773695, 0.295383662, -0.2490821332, -0.1365754455, -0.878283143, 0.212462008, -0.0601487979, -0.1413335204, 0.0086399289, 0.4021164775, -0.1589827091, -0.0569621399, 0.0387319736, 0.1829791218, 0.2797543406, 0.3865868747, -0.3127536178, 0.0174849275, -0.2016778588, -0.2143093199, 0.0766962841, -0.5682261586, 0.0554121621, -0.3495188653, -0.0262516644, -0.1149184033, -0.1688761711, 0.0431207828, 0.1054019034, 0.7171449065, -0.1032491997, 0.3438675404, -0.3376058936, -0.2243967354, -0.3235493898, 0.1438735127, -0.1175723448, 0.4296815395, 0.1589424014, 0.7069991231, -0.0599791184, 0.2978619933, -0.2578024566, 0.2526991367, -0.1073827669, -0.0951680169, -0.1830518842, 0.1367328912, -0.0260308236, 0.3013844788, 0.1257272065, -0.0345724337, -0.1449997872, -0.1756369323, -0.5247728229, -0.5696107149, 0.504558742, -0.0877103731, -0.1027099788, -0.3237430751, 0.4879233837, -0.2086920142, -0.1216666922, -0.5901433229, 0.1706805378, 0.2419440001, 0.0776016414, -0.4300966561, 0.3080764711, 0.0288775433, -0.1248119771, -0.0624255016, 0.0906090662, 0.1726604402, -0.263661772, 0.1627914757, -0.3946767747 ]
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
@albertvillanova thanks, all good. The key is ```libsndfile1``` - it may help others to note that in your docs. I had installed libsndfile previously.
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
24
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:00<00:00, 36004.88it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 136/136 [00:01<00:00, 79.10it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 25343.23it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 18/18 [00:00<00:00, 2874.78it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 27950.38it/s] 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 @albertvillanova thanks, all good. The key is ```libsndfile1``` - it may help others to note that in your docs. I had installed libsndfile previously.
[ -0.1790904552, -0.2704021335, -0.0430675745, 0.2871549726, 0.1397019923, -0.1179440096, 0.3523590863, 0.0170880817, 0.0107310023, 0.38430655, -0.1333328933, 0.2134562433, 0.047165595, 0.4075194895, 0.0083271693, 0.1030785218, 0.0407495089, 0.2446232438, 0.3289997578, 0.0049698157, -0.1248542964, 0.3498246372, -0.3242542446, -0.0855612829, -0.2250002176, -0.0323688723, -0.0295675695, 0.2735975087, -0.2173347622, -0.4320850372, 0.3754369617, -0.0343438238, -0.0005727952, 0.3536964357, -0.0001102986, 0.0756440461, 0.4843730927, -0.0524124131, -0.2810944617, -0.3754798174, -0.2990475297, 0.1707935631, 0.0556402765, -0.1272977144, -0.089670524, -0.098798871, -0.0211462136, -0.3069238365, 0.3857118189, 0.4192144871, 0.2016517371, 0.471924156, 0.0024840734, -0.3136757016, 0.3918528855, 0.2235946357, -0.1430784017, -0.0157597121, 0.0243399777, -0.0155698862, 0.1711930335, 0.4005113244, -0.0210419763, 0.1813031584, 0.2981663346, 0.0199068356, -0.0473761149, -0.2547491789, 0.2032929063, 0.2257046402, 0.4580152631, -0.071590513, -0.3287923038, -0.0070415977, -0.0157971382, -0.2628720105, 0.1357518733, 0.001461045, -0.0957705081, -0.068233937, -0.1837204546, -0.0147009054, 0.0261229556, 0.2206098288, -0.2563199401, 0.0335392207, -0.272842288, 0.1122220382, 0.2719632983, 0.0540636927, 0.1083780825, 0.1800412536, 0.1520660818, 0.1512789279, -0.403142333, 0.1535101235, 0.3604500592, -0.3967066407, 0.2639093101, 0.1983274072, -0.1928649098, -0.0772232935, -0.3029692173, 0.2131035924, 0.0534477867, -0.3638849258, -0.1054845974, -0.0662849844, 0.2241830677, 0.554980576, 0.0879389048, -0.0654216409, -0.1985053271, -0.3651028275, 0.0472619794, 0.0609633327, 0.345897764, -0.5050410628, -0.2242197245, 0.0746107027, -0.202514261, 0.0240737498, -0.0595321022, 0.3887706399, 0.0275426749, 0.1846704781, 0.2382084578, 0.206120953, -0.2885975838, 0.040454261, -0.254373312, 0.1079118401, -0.2676790059, 0.0216235574, 0.4254853427, -0.2547462583, 0.3628551066, -0.1148061827, 0.122786507, -0.2697127759, 0.1615977883, -0.1530230492, 0.1014414728, 0.3675162494, 0.19298096, 0.1593685001, -0.0706942528, 0.0167920534, -0.1436112821, -0.0149780549, -0.2849145234, -0.0905564278, -0.1537298113, 0.2151496857, 0.1277481019, 0.0278525576, 0.0433637053, -0.2512168586, 0.372243017, -0.2643629909, -0.14173235, -0.2340993136, -0.5231898427, -0.2024494857, 0.4860139787, 0.4526612461, -0.1809465289, -0.1175098047, -0.0973210707, -0.1824046075, 0.0556544773, 0.3241597712, -0.179368183, -0.0307291485, -0.2963326573, 0.2753539383, 0.087516807, -0.4366910458, -0.4876015186, -0.1819707006, -0.0606246814, 0.0602043197, 0.118565768, 0.0384040885, -0.1004756168, 0.0219851248, 0.2539458275, 0.5031266212, -0.0107136797, -0.0328917168, -0.1454349458, -0.4263295829, -0.1736987233, 0.3224983215, 0.150613144, -0.1153757498, 0.2806706727, -0.087079376, 0.2624398172, -0.0973329321, 0.0630732775, 0.1909133941, 0.2295559347, -0.0801469907, 0.1184295118, -0.3240866363, -0.435700953, 0.2677153647, -0.0948989689, 0.0317004696, -0.2420865148, -0.2039837241, -0.352653414, -0.1650345922, -0.3321810067, -0.0065011168, 0.1142792702, 0.4985075295, 0.2177147716, 0.1449618787, -0.1897188872, 0.0638730302, 0.0289196223, -0.0646875873, -0.7150552869, 0.2665309012, -0.1898225099, -0.1071946621, 0.2395141721, 0.1517520845, 0.0549180917, 0.0787087604, -0.1184206903, 0.3453001082, 0.2022582144, 0.0583914854, -0.351824671, -0.0001871648, -0.0040539061, -0.3237383366, 0.0436071642, -0.1192732155, -0.0044155768, -0.0772206634, -0.3086918294, 0.1236222163, -0.1307583749, 0.0951453298, 0.1823177636, -0.1156912297, 0.3125925064, -0.073504895, 0.0531581677, -0.1273247004, -0.0099117309, -0.1205977052, 0.1204942167, -0.0725804269, -0.1821899861, -0.1892940402, 0.579274714, 0.2202687413, -0.0393408053, -0.0393128172, -0.1610344797, -0.0093440432, 0.0116307912, 0.4716457427, 0.4803253412, 0.1779791713, 0.0791164935, -0.0515477508, 0.0048682964, -0.2172181755, 0.1703790575, 0.1471010894, 0.4880066216, 0.3780516088, 0.1479272544, 0.1846890599, -0.3074477911, -0.3245011866, 0.0013328614, 0.0457043201, -0.4413444996, 0.0814483762, -0.2838465869, -0.3137007952, -0.0944914445, 0.0361600854, -0.1059169397, 0.0414539464, -0.093156144, 0.1386880577, 0.0960857421, 0.0465976894, 0.0090052988, 0.1665086001, 0.0141056199, -0.075373657, -0.0971484035, 0.2270568162, -0.2296049744, 0.0541197546, 0.3713403046, 0.1780454069, 0.3578682244, -0.2145284265, -0.2005600482, -0.1503771693, -0.0708332658, 0.0341410972, 0.1860965937, 0.1292472482, 0.3366940022, 0.1500484943, -0.0667337924, -0.0899746269, 0.279584527, -0.0481733568, -0.2850255668, 0.1136236936, 0.0650859401, -0.1385374963, -0.3585802913, -0.5579133034, -0.3380124569, -0.3663237989, -0.049869854, 0.0404046103, 0.1694331318, 0.4732453823, 0.088766627, 0.1524582207, 0.144516632, 0.2555793226, -0.2897176743, -0.0981437266, 0.1930554658, -0.3011599481, -0.3549561203, -0.0483235866, 0.1216570362, 0.4563895762, 0.2100287527, -0.4364906549, -0.1172404811, -0.0470240712, -0.0885037035, -0.2499402463, 0.2360156178, 0.4074498415, 0.1290813237, -0.1242928281, -0.1200071052, -0.2399530709, 0.0062454264, -0.1566556096, 0.3083716631, -0.1498816609, 0.3840339482, 0.0950716287, 0.5298096538, 0.2353642285, -0.3481455147, 0.552164197, -0.0683819279, 0.0210935343, -0.2291103005, -0.2141239792, 0.0781306177, -0.1270039678, 0.0188127141, 0.0257774778, -0.0133397346, -0.1851697266, -0.1848760992, -0.0613559149, -0.275307864, -0.0817706808, -0.1014536023, 0.2882516682, 0.3262504339, -0.0274664387, 0.0630108938, 0.2790856659, 0.1047116145, 0.2452649772, 0.2180065513, -0.0005832197, -0.0485989824, -0.3567247391, -0.0664363056, -0.166310057, 0.1761162579, -0.036845278, 0.2587999403, -0.0662170053, 0.0791430473, 0.1643024236, -0.3380361497, 0.8213409781, -0.2613056898, 0.2418704033, 0.3697153032, 0.2420530617, -0.2258996814, -0.1541520804, -0.3346180618, 0.1579958498, 0.0321327969, 0.4422741532, -0.1620720923, -0.1345662028, 0.3193741143, 0.2225746363, -0.0688897669, -0.0547737405, -0.3993507326, -0.3454326391, -0.5314347744, 0.1355778277, -0.0710414946, 0.3198798597, 0.0268678553, -0.2886477709, 0.0811934397, 0.0245287642, -0.0345289372, 0.2724259198, 0.3293778896, 0.3629221022, 0.3734197021, 0.1534742415, 0.2169042528, 0.5727989674, 0.6904036403, -0.0055705309, -0.3426516652, 0.0532504171, -0.0486376993, 0.2821165621, 0.2071949691, -0.027332034, 0.0476685688, 0.3138652742, 0.0925964192, 0.0154252043, 0.0600296594, 0.4105708003, -0.1176939979, -0.1394828707, -0.3072564602, 0.3418479264, 0.0342633314, 0.0702548027, 0.1426353306, 0.1649597138, -0.1044438556, 0.3420697153, 0.0719513968, 0.7941669226, -0.06136439, 0.0544958971, 0.3006099761, -0.2165735364, 0.5357986689, 0.0122666983, -0.0263530426, -0.3146302998, -0.0331078619, 0.081795685, -0.1689385623, -0.1216904521, -0.04357256, -0.2277178615, 0.0981285125, 0.0994217172, -0.6368501186, -0.0196981542, 0.4822021723, 0.269412756, -0.3180781901, 0.1898536682, 0.0903738886, -0.1135680452, 0.3425997198, 0.0033376229, -0.0613119714, -0.0299159139, -0.1697575152, -0.1712060422, 0.3080238104, -0.2501226962, 0.1981514692, 0.1826119721, -0.0362828448, 0.3760785758, -0.0424509086, 0.0703263506, 0.2589299381, -0.2436537296, 0.1512529254, 0.0191675872, 0.008591841, 0.0646049306, -0.1925952733, 0.3855213821, -0.1781772822, -0.3778918087, -0.0535506494, 0.0051438864, 0.0241541192, 0.2977985144, -0.0370538794, 0.3488346934, -0.1993159801, -0.3270693123, -0.0684842914, 0.0865809172, -0.2445610017, 0.1859183609, 0.103659898, -0.0919287354, 0.1581238359, -0.0964927673, -0.098988153, 0.0936480537, 0.5139009953, -0.0521473773, -0.2407251745, 0.3571927249, 0.376475364, -0.1675053239, -0.2569653392, -0.2915703058, -0.0567010082, -0.4139514863, 0.1468438059, 0.1565704197, 0.0060512032, -0.023061661, 0.1697079986, 0.0113721844, -0.0628127903, 0.0332417525, -0.426538974, -0.0209039841, 0.1503373981, -0.0237374548, 0.2881924808, 0.2251568437, -0.2516815662, 0.0911819637, 0.1103963777, -0.3268145025, 0.1120833233, -0.2939635217, 0.1811269969, -0.0480352268, -0.093469277, 0.0767808259, -0.2518734336, 0.1652527452, 0.0562194027, -0.2075743824, -0.2605429888, -0.194071874, 0.1158635244, -0.0125148408, -0.0428056493, 0.3127569258, -0.1428234875, -0.320920825, -0.0568052158, 0.0906094089, 0.1143380776, -0.1301572919, 0.2040451169, 0.0169669464, -0.057571318, -0.1385834664, 0.1575560868, -0.101148501, -0.2803792059, -0.0445990041, 0.2606082261, -0.0789657161, -0.1785390526, -0.2275822461, -0.0671848878, 0.0470046252, 0.0342256986, 0.078411296, -0.3220159411, -0.3887526095, 0.0694619194, 0.3194072545, 0.316732049, -0.3201495707, 0.1803245544, 0.1402519494, 0.2861287296, -0.3268761933, -0.1249859184, 0.0659750998, -0.0699153244, -0.0357394442, 0.1400689334, -0.0094578965, -0.2825185955, 0.0897420272, 0.1392482817, 0.1462795436, -0.1761916876, 0.0119849825, 0.0392109863, -0.0369507335, -0.0240638498, -0.0192267802, -0.2650319636, 0.1773090363, 0.5816265941, -0.169587478, 0.1439688802, 0.1006707028, 0.2517463863, 0.015415539, -0.3448449969, 0.0421243124, 0.0107894735, -0.1757239252, 0.0977824554, 0.0104753366, 0.2789308727, 0.0440600365, -0.2300876826, -0.2636857331, 0.2312724441, -0.106570527, -0.0616308711, -0.3555412889, -0.0266098883, -0.2263419479, 0.0938467607, 0.0063367854, -0.0007109817, 0.148396492, 0.2181360424, -0.2742419541, -0.1426496953, -0.1995288283, 0.1203338951, 0.1999753416, -0.3994294107, 0.3342705071, 0.2159489244, -0.1108796597, -0.0578106754, 0.2559784949, 0.4459255636, 0.280233264, 0.1858567297, 0.0712097213, 0.035455402, -0.0325710103, 0.0056480458, 0.0822462738, 0.0866929218, 0.3283846974, 0.2914205194, 0.1601272225, -0.2376896888, -0.2040584385, 0.0316263288, 0.0797251835, -0.375875622, 0.0987094715, -0.4445272982, -0.0935650915, -0.2680284083, 0.3457231224, -0.6255671382, 0.0497021042, 0.4953057468, 0.1604815274, 0.1792558879, -0.1126629412, 0.1016188636, -0.1663561612, 0.3923478723, 0.3734773695, 0.295383662, -0.2490821332, -0.1365754455, -0.878283143, 0.212462008, -0.0601487979, -0.1413335204, 0.0086399289, 0.4021164775, -0.1589827091, -0.0569621399, 0.0387319736, 0.1829791218, 0.2797543406, 0.3865868747, -0.3127536178, 0.0174849275, -0.2016778588, -0.2143093199, 0.0766962841, -0.5682261586, 0.0554121621, -0.3495188653, -0.0262516644, -0.1149184033, -0.1688761711, 0.0431207828, 0.1054019034, 0.7171449065, -0.1032491997, 0.3438675404, -0.3376058936, -0.2243967354, -0.3235493898, 0.1438735127, -0.1175723448, 0.4296815395, 0.1589424014, 0.7069991231, -0.0599791184, 0.2978619933, -0.2578024566, 0.2526991367, -0.1073827669, -0.0951680169, -0.1830518842, 0.1367328912, -0.0260308236, 0.3013844788, 0.1257272065, -0.0345724337, -0.1449997872, -0.1756369323, -0.5247728229, -0.5696107149, 0.504558742, -0.0877103731, -0.1027099788, -0.3237430751, 0.4879233837, -0.2086920142, -0.1216666922, -0.5901433229, 0.1706805378, 0.2419440001, 0.0776016414, -0.4300966561, 0.3080764711, 0.0288775433, -0.1248119771, -0.0624255016, 0.0906090662, 0.1726604402, -0.263661772, 0.1627914757, -0.3946767747 ]
https://github.com/huggingface/datasets/issues/3996
Audio.encode_example() throws an error when writing example from array
Thanks @polinaeterna for reporting this issue. In relation to the decoding of MP3 audio files without torchaudio, I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. But yes, nice to give an alternative to non-torchaudio users (with a big warning on performance).
## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? πŸ€—
57
Audio.encode_example() throws an error when writing example from array ## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? πŸ€— Thanks @polinaeterna for reporting this issue. In relation to the decoding of MP3 audio files without torchaudio, I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. But yes, nice to give an alternative to non-torchaudio users (with a big warning on performance).
[ 0.1218088493, -0.3153703213, -0.0251268037, 0.2208195925, 0.4910096526, -0.1269059926, 0.362246424, 0.0690375343, -0.0697961226, 0.4098410308, -0.1219432727, 0.2596229613, -0.1840140373, 0.1837579608, 0.0004699291, -0.1854689717, 0.1399264932, 0.3047871888, -0.0332123414, 0.0122404145, -0.0559847429, 0.2753953338, -0.2977697849, 0.1225635707, -0.1476284415, 0.0326285921, -0.1087768897, 0.2442662567, -0.3760696948, -0.2263277918, 0.1469542533, -0.3730888367, 0.0352826864, 0.208965227, -0.0001106694, -0.2302896529, 0.2500787377, -0.3299730122, -0.3360891342, -0.2955343127, -0.133795619, 0.0778915808, -0.1535713524, -0.1914743483, 0.0632478744, -0.2226331234, -0.0459618084, -0.3997990191, 0.4415575862, 0.2356057912, 0.2387217283, 0.1879335046, 0.3045262992, -0.1747183949, 0.0712839067, 0.4677476883, -0.0464893542, 0.3073352277, 0.0885464102, 0.2884361148, 0.3068700433, 0.2265518159, -0.1636429578, 0.1005768031, 0.2081717253, 0.1091050729, -0.2038962394, -0.0676888227, 0.0335271545, 0.3791516721, 0.2410869449, -0.4096509218, -0.5086684823, 0.0554499887, -0.0824229643, -0.3040226102, 0.1220313385, 0.3326960206, -0.1067876667, 0.2435356081, -0.281883508, 0.2933561802, -0.109011583, 0.2338611633, 0.5219514966, -0.2748577297, -0.4490924776, 0.0287153386, 0.3818765879, -0.2788366675, -0.1578548551, -0.1685671806, -0.0165668838, 0.3028775752, 0.0324162804, -0.085492447, -0.3415187895, -0.2115220875, 0.138814643, -0.1434242576, 0.1140643731, 0.0929678977, -0.0155590149, 0.3471782804, -0.0533619113, 0.2396454662, 0.1849529594, -0.1621954441, -0.0284348447, 0.2236261964, 0.3230758309, -0.1305407137, -0.1993436962, 0.0457157083, 0.0673820972, 0.0538083538, 0.1790265739, -0.1509432048, -0.3317883015, 0.0816714391, -0.5892871618, -0.0835518017, 0.0671725273, 0.3148784637, 0.2309307754, -0.1440934092, 0.1073864624, 0.4600671828, -0.0997773036, 0.1100562066, -0.0721711665, 0.1662949473, -0.0316291787, 0.0839996859, 0.1446600705, 0.0357280448, 0.5193275809, 0.076925993, 0.2092845142, -0.3351915181, 0.098305881, -0.0130258091, 0.3493080437, 0.0810583383, 0.092803143, 0.243676275, 0.0534697697, 0.0773293823, -0.1705486327, 0.0415769629, -0.2083472908, -0.1810223907, -0.1555692554, 0.2160937041, -0.2203937918, 0.2011289597, -0.0335687362, -0.2207790017, 0.2547320724, -0.5286765099, -0.034288194, -0.0355705246, -0.1840753108, -0.1928375363, 0.4238453805, 0.1407552809, 0.0755925924, 0.0048319437, 0.0345273912, 0.0979385599, 0.3284042478, 0.1742617041, -0.0431306958, 0.098004967, -0.2051174492, 0.4213635325, 0.1707579046, -0.1917445511, -0.2194709182, 0.1428299695, 0.1458835006, 0.1055016294, 0.2473071218, 0.0945511982, 0.1255225092, -0.0268784203, 0.044095926, 0.3606646061, 0.0762563199, 0.0819399506, -0.123926416, -0.4092184603, -0.1625886858, -0.1067060381, -0.6740275025, 0.0267098267, 0.0109815681, 0.2453087419, 0.2561411858, -0.3637733161, 0.1206598729, 0.2628154159, 0.365175426, -0.2453647703, 0.0259715822, -0.3658709228, 0.1783523113, -0.1712257713, -0.1096723899, -0.0807459205, -0.1965280175, -0.2024310976, -0.142584756, -0.1227611229, -0.3521897793, -0.1807014495, 0.1041916162, 0.2677122653, 0.0589804612, -0.0375322215, -0.128923893, -0.1551584601, 0.0365635976, -0.082104966, -0.5538233519, -0.0375819206, -0.1610380411, -0.3899347484, 0.0296387766, 0.2333904058, 0.1109072641, -0.0579454564, -0.3029179275, 0.5065860748, 0.0834404826, 0.2627617419, -0.4672832489, -0.017157618, 0.0551158711, -0.2094912976, 0.2899377644, 0.3647680581, 0.258254379, -0.0135610374, -0.2301331609, 0.5189662576, 0.0796772242, 0.1560349911, 0.2046851516, -0.0782815889, 0.0601160936, 0.2829861641, -0.2081792504, -0.1031029969, 0.1038526893, -0.2463237345, 0.1874073595, -0.1155633181, -0.1847893894, -0.2285655141, 0.5576848388, -0.1005541384, 0.0857461169, 0.006924904, -0.1539464891, -0.1212806702, 0.0954073295, -0.1311722845, 0.3550001085, 0.1185794398, 0.082255654, 0.0094487583, 0.03287559, -0.0987443253, 0.2528766692, -0.0308799557, 0.0415501967, 0.1012951881, -0.0410049669, -0.0137281278, -0.394887954, -0.1583184749, -0.2758232653, 0.0070712394, -0.3662767708, 0.1048032641, -0.305685401, -0.0441292264, -0.5253924131, -0.3948096931, 0.0858598873, 0.0664872378, -0.1596352458, 0.3136148453, -0.2209744751, 0.1382658333, 0.5042651892, -0.1146233305, 0.1333699971, 0.2438389361, 0.1451638788, 0.3574588299, -0.1102738678, 0.0672016665, 0.2482129335, 0.1240958869, -0.0194030982, -0.0598402359, -0.1654979885, 0.0072797323, -0.0732101947, 0.0261020456, 0.1612289697, 0.2876837254, 0.1292695105, 0.1275783181, -0.0811864138, -0.5579059124, 0.3090573251, -0.1194378659, -0.2441390902, 0.3095239103, 0.1851960123, -0.0660318807, -0.5007343888, -0.3439302742, -0.1376512498, -0.2415703088, 0.294224143, -0.3354040384, 0.333083868, 0.2518375218, 0.2653980851, 0.3332060874, -0.1752931327, 0.1849287152, -0.1905393153, -0.1047150344, 0.1440177709, -0.260104686, -0.2995305061, -0.0789237246, -0.0374525934, 0.097105965, 0.0700358301, 0.2139172256, -0.3253252804, -0.1068392694, -0.3951167464, -0.2059900165, 0.2482340932, 0.0647377595, -0.0278257355, 0.0044432967, -0.1508849412, -0.2135192454, 0.2947167754, -0.0426413268, 0.0561015569, 0.024516888, 0.5369029045, 0.0040939022, 0.1544454247, 0.396712184, 0.0898361579, 0.3259146512, -0.0999680161, 0.099602066, -0.2350810915, -0.1346707493, 0.1642423421, 0.009033897, -0.2850018144, 0.0600540563, 0.0521874167, 0.1449112445, 0.1460049301, 0.2444001585, -0.1741298139, -0.0858204216, 0.1201667413, 0.1244464293, 0.0912068486, -0.1609355658, 0.2895284593, 0.1334287524, 0.1700605452, -0.2252701968, 0.0892681926, 0.1901633441, 0.0476444848, -0.3796043992, -0.4380775988, -0.052829802, 0.2918800414, 0.3224005103, 0.6408426166, -0.1536825895, -0.1265816092, 0.0910271183, 0.1246646941, 0.4062974453, 0.0881479532, -0.2107074708, -0.1136977226, 0.3247863352, -0.3538906872, -0.123250246, -0.3087650836, 0.3145841658, 0.0559549481, 0.1318820417, -0.1914541423, 0.0762766898, 0.3082994223, 0.3927287161, 0.1425291449, 0.0453393199, -0.1323156059, -0.4751456082, -0.5912305713, -0.08606904, 0.0674634203, 0.2387215644, 0.0650415421, -0.0534296148, 0.3166401982, 0.1226762608, 0.2815594375, -0.077720724, 0.5459546447, -0.1057949662, -0.0349949226, -0.0216285903, -0.0929223225, 0.1994078159, 0.1943016052, 0.2354991585, 0.2008959353, 0.1316884458, -0.298361361, 0.2535745502, 0.3492313027, 0.0600548089, 0.053669095, 0.3580785394, -0.0940803438, -0.1157239899, -0.0726811215, 0.5044251084, -0.0495679751, -0.087217547, -0.3546782434, 0.3251671195, -0.0199968517, 0.1388402432, 0.2130341828, 0.1271076053, -0.1349224001, 0.3051885366, -0.1547727436, 0.8499881625, 0.0378971994, 0.1433647126, 0.493124336, -0.2362788171, -0.1389583796, 0.2695140541, 0.1643807888, -0.1137871146, 0.00200544, 0.0621463619, -0.1258870512, 0.2832096815, 0.0599527992, -0.4243091345, 0.1427362263, -0.1810563505, 0.3606694639, -0.0302856285, -0.0656770393, -0.6879400611, -0.2975928485, -0.3547008932, 0.0993571654, 0.1974205971, -0.0370352082, 0.218423754, -0.4945063591, -0.168137759, -0.3509111106, -0.1148117483, 0.2398501784, -0.2527295053, -0.0913039818, -0.0676543564, -0.2005760819, 0.074775368, 0.0101295384, 0.1135792658, 0.2475359142, -0.0749707147, -0.3024786413, -0.2534324229, 0.3349665403, -0.1902507246, -0.0199490264, 0.0504026711, -0.1266461313, -0.1802682728, 0.0817937925, 0.0859093815, 0.0312937275, -0.0444307588, -0.0907128528, 0.0214132164, -0.3645025194, -0.5255662799, -0.163093105, -0.1187682822, -0.1725423187, 0.1802330762, 0.1277467757, -0.6301131248, 0.1046475992, -0.0329049751, -0.0200340115, -0.0813767612, 0.3146175444, 0.1485005617, 0.0242840834, 0.6454491615, -0.1978867948, 0.0291800071, -0.1500879675, 0.1826306134, 0.0783951133, -0.3819466829, 0.0365011431, -0.0458089225, -0.1438464671, -0.0850460902, 0.0678584054, -0.1462878585, 0.2408921123, -0.2180112451, -0.1720742285, -0.2818648815, 0.2565748394, 0.1647849977, 0.2669834793, -0.1596541107, 0.0509778, -0.0949704126, -0.2157746851, -0.3198490441, 0.1646291465, -0.0450708903, 0.3367744386, -0.1002465338, 0.048538927, 0.1744363755, -0.1431606859, 0.1886601299, 0.2174119204, -0.3829723895, -0.1137143373, 0.0018713332, 0.1176692918, -0.0481841713, -0.3058464825, -0.0100561511, 0.0359495841, -0.1515767276, -0.2811770439, 0.0054376815, 0.0877977386, -0.0147794951, 0.0978263021, -0.2422730327, 0.3005315661, 0.1397274882, -0.2745330036, -0.2428883612, 0.0122391507, -0.025450211, -0.0685522631, -0.1708460748, -0.105901286, -0.0371023677, 0.0776751265, -0.0285960231, -0.0673175529, 0.1855232865, -0.2676127255, 0.0806332678, 0.0674263388, 0.5945363045, 0.0405873768, -0.256713599, 0.0531586967, 0.0788834393, 0.2507316172, 0.1550258994, 0.1930319816, 0.0666178092, -0.4055872858, -0.154576242, 0.2609022856, 0.1677786112, -0.0578712001, 0.228421554, -0.156769678, 0.2704317868, 0.0894173235, 0.0989959389, 0.3274488151, -0.2326122522, 0.1788406819, -0.1675029695, -0.2361679524, 0.4896130562, 0.2202804536, -0.4780780673, 0.6226852536, 0.13316302, -0.1334929466, 0.2241212577, -0.3880477846, -0.2253774852, 0.0669512749, 0.319988668, 0.4373658001, 0.1670468897, 0.4606551826, -0.8908777237, -0.196034953, 0.0030252719, -0.017864665, -0.105991587, -0.0588563047, 0.1046152189, -0.0383843221, -0.2414259762, -0.1860544086, -0.0661257282, 0.2151698172, 0.0498146974, -0.0559494942, 0.0415671803, -0.0441306084, -0.1591968983, 0.1424180716, 0.2548343539, -0.344106853, 0.2289237827, 0.4074864089, -0.0749329031, -0.0069504902, 0.3395501673, 0.6201731563, 0.3707656264, 0.1479556561, 0.3041648269, -0.2396521568, -0.1158487722, 0.1326853484, 0.0976050645, 0.2938636243, 0.136509046, 0.0835870951, 0.1729073375, -0.1430553496, -0.0008516046, 0.3146732748, 0.2887904048, -0.2960101366, 0.0608110577, -0.5431631207, 0.0501887128, -0.2254740447, -0.2088316828, -0.5357284546, 0.1621271819, 0.0945084691, 0.0834886059, 0.0995005965, 0.1882358193, 0.0646165386, -0.0267205965, 0.1989088506, 0.3497521579, 0.062627539, -0.1306117177, -0.0986513123, -0.357475996, 0.0009950331, 0.031459637, 0.2862077057, -0.0571239777, 0.0266831573, 0.143530637, -0.0593011118, 0.0425558835, -0.0766801462, -0.0193564929, 0.1502921879, -0.16949974, -0.2342239171, 0.2073595077, -0.0540773682, 0.0567604415, -0.5042083263, 0.1374406219, -0.3806079924, 0.1263732314, -0.0471941978, 0.1577955633, -0.5429629683, -0.1945222318, 0.1125843078, 0.160421744, 0.1480251253, -0.2953573763, -0.4412285686, -0.061950475, 0.0564773642, 0.1005559266, -0.0025013173, -0.038122531, 0.7926676273, 0.0265854597, 0.0519262031, -0.4209489226, 0.615634501, -0.1391472518, -0.1846994162, -0.2449785471, 0.2969465852, -0.481251806, -0.0393883921, 0.0441216603, -0.0284822825, -0.0270592887, 0.3105620742, -0.2854062319, -0.0550217442, 0.5836778879, 0.0709045529, -0.1253315657, 0.0219453033, 0.293349117, 0.079816319, 0.0257718656, -0.8609780669, 0.1444383413, 0.063155286, -0.0453927368, -0.0369478948, 0.2667574286, -0.129599303, -0.1466528922, 0.0874199793, 0.2568248808, 0.1857883632, -0.3226910532, 0.3364755511, -0.3761797249 ]
https://github.com/huggingface/datasets/issues/3996
Audio.encode_example() throws an error when writing example from array
> I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. Yeah, I know, but as far as I understand, some users just categorically don't want to have torchaudio in their environment. Anyway, it's just a more or less random example, they can use any library they like following the same logic (I'm just not a big expert in decoding utils so if you can give me some presentation / resources about that I would really appreciate it πŸ€—)
## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? πŸ€—
93
Audio.encode_example() throws an error when writing example from array ## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? πŸ€— > I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. Yeah, I know, but as far as I understand, some users just categorically don't want to have torchaudio in their environment. Anyway, it's just a more or less random example, they can use any library they like following the same logic (I'm just not a big expert in decoding utils so if you can give me some presentation / resources about that I would really appreciate it πŸ€—)
[ 0.1218088493, -0.3153703213, -0.0251268037, 0.2208195925, 0.4910096526, -0.1269059926, 0.362246424, 0.0690375343, -0.0697961226, 0.4098410308, -0.1219432727, 0.2596229613, -0.1840140373, 0.1837579608, 0.0004699291, -0.1854689717, 0.1399264932, 0.3047871888, -0.0332123414, 0.0122404145, -0.0559847429, 0.2753953338, -0.2977697849, 0.1225635707, -0.1476284415, 0.0326285921, -0.1087768897, 0.2442662567, -0.3760696948, -0.2263277918, 0.1469542533, -0.3730888367, 0.0352826864, 0.208965227, -0.0001106694, -0.2302896529, 0.2500787377, -0.3299730122, -0.3360891342, -0.2955343127, -0.133795619, 0.0778915808, -0.1535713524, -0.1914743483, 0.0632478744, -0.2226331234, -0.0459618084, -0.3997990191, 0.4415575862, 0.2356057912, 0.2387217283, 0.1879335046, 0.3045262992, -0.1747183949, 0.0712839067, 0.4677476883, -0.0464893542, 0.3073352277, 0.0885464102, 0.2884361148, 0.3068700433, 0.2265518159, -0.1636429578, 0.1005768031, 0.2081717253, 0.1091050729, -0.2038962394, -0.0676888227, 0.0335271545, 0.3791516721, 0.2410869449, -0.4096509218, -0.5086684823, 0.0554499887, -0.0824229643, -0.3040226102, 0.1220313385, 0.3326960206, -0.1067876667, 0.2435356081, -0.281883508, 0.2933561802, -0.109011583, 0.2338611633, 0.5219514966, -0.2748577297, -0.4490924776, 0.0287153386, 0.3818765879, -0.2788366675, -0.1578548551, -0.1685671806, -0.0165668838, 0.3028775752, 0.0324162804, -0.085492447, -0.3415187895, -0.2115220875, 0.138814643, -0.1434242576, 0.1140643731, 0.0929678977, -0.0155590149, 0.3471782804, -0.0533619113, 0.2396454662, 0.1849529594, -0.1621954441, -0.0284348447, 0.2236261964, 0.3230758309, -0.1305407137, -0.1993436962, 0.0457157083, 0.0673820972, 0.0538083538, 0.1790265739, -0.1509432048, -0.3317883015, 0.0816714391, -0.5892871618, -0.0835518017, 0.0671725273, 0.3148784637, 0.2309307754, -0.1440934092, 0.1073864624, 0.4600671828, -0.0997773036, 0.1100562066, -0.0721711665, 0.1662949473, -0.0316291787, 0.0839996859, 0.1446600705, 0.0357280448, 0.5193275809, 0.076925993, 0.2092845142, -0.3351915181, 0.098305881, -0.0130258091, 0.3493080437, 0.0810583383, 0.092803143, 0.243676275, 0.0534697697, 0.0773293823, -0.1705486327, 0.0415769629, -0.2083472908, -0.1810223907, -0.1555692554, 0.2160937041, -0.2203937918, 0.2011289597, -0.0335687362, -0.2207790017, 0.2547320724, -0.5286765099, -0.034288194, -0.0355705246, -0.1840753108, -0.1928375363, 0.4238453805, 0.1407552809, 0.0755925924, 0.0048319437, 0.0345273912, 0.0979385599, 0.3284042478, 0.1742617041, -0.0431306958, 0.098004967, -0.2051174492, 0.4213635325, 0.1707579046, -0.1917445511, -0.2194709182, 0.1428299695, 0.1458835006, 0.1055016294, 0.2473071218, 0.0945511982, 0.1255225092, -0.0268784203, 0.044095926, 0.3606646061, 0.0762563199, 0.0819399506, -0.123926416, -0.4092184603, -0.1625886858, -0.1067060381, -0.6740275025, 0.0267098267, 0.0109815681, 0.2453087419, 0.2561411858, -0.3637733161, 0.1206598729, 0.2628154159, 0.365175426, -0.2453647703, 0.0259715822, -0.3658709228, 0.1783523113, -0.1712257713, -0.1096723899, -0.0807459205, -0.1965280175, -0.2024310976, -0.142584756, -0.1227611229, -0.3521897793, -0.1807014495, 0.1041916162, 0.2677122653, 0.0589804612, -0.0375322215, -0.128923893, -0.1551584601, 0.0365635976, -0.082104966, -0.5538233519, -0.0375819206, -0.1610380411, -0.3899347484, 0.0296387766, 0.2333904058, 0.1109072641, -0.0579454564, -0.3029179275, 0.5065860748, 0.0834404826, 0.2627617419, -0.4672832489, -0.017157618, 0.0551158711, -0.2094912976, 0.2899377644, 0.3647680581, 0.258254379, -0.0135610374, -0.2301331609, 0.5189662576, 0.0796772242, 0.1560349911, 0.2046851516, -0.0782815889, 0.0601160936, 0.2829861641, -0.2081792504, -0.1031029969, 0.1038526893, -0.2463237345, 0.1874073595, -0.1155633181, -0.1847893894, -0.2285655141, 0.5576848388, -0.1005541384, 0.0857461169, 0.006924904, -0.1539464891, -0.1212806702, 0.0954073295, -0.1311722845, 0.3550001085, 0.1185794398, 0.082255654, 0.0094487583, 0.03287559, -0.0987443253, 0.2528766692, -0.0308799557, 0.0415501967, 0.1012951881, -0.0410049669, -0.0137281278, -0.394887954, -0.1583184749, -0.2758232653, 0.0070712394, -0.3662767708, 0.1048032641, -0.305685401, -0.0441292264, -0.5253924131, -0.3948096931, 0.0858598873, 0.0664872378, -0.1596352458, 0.3136148453, -0.2209744751, 0.1382658333, 0.5042651892, -0.1146233305, 0.1333699971, 0.2438389361, 0.1451638788, 0.3574588299, -0.1102738678, 0.0672016665, 0.2482129335, 0.1240958869, -0.0194030982, -0.0598402359, -0.1654979885, 0.0072797323, -0.0732101947, 0.0261020456, 0.1612289697, 0.2876837254, 0.1292695105, 0.1275783181, -0.0811864138, -0.5579059124, 0.3090573251, -0.1194378659, -0.2441390902, 0.3095239103, 0.1851960123, -0.0660318807, -0.5007343888, -0.3439302742, -0.1376512498, -0.2415703088, 0.294224143, -0.3354040384, 0.333083868, 0.2518375218, 0.2653980851, 0.3332060874, -0.1752931327, 0.1849287152, -0.1905393153, -0.1047150344, 0.1440177709, -0.260104686, -0.2995305061, -0.0789237246, -0.0374525934, 0.097105965, 0.0700358301, 0.2139172256, -0.3253252804, -0.1068392694, -0.3951167464, -0.2059900165, 0.2482340932, 0.0647377595, -0.0278257355, 0.0044432967, -0.1508849412, -0.2135192454, 0.2947167754, -0.0426413268, 0.0561015569, 0.024516888, 0.5369029045, 0.0040939022, 0.1544454247, 0.396712184, 0.0898361579, 0.3259146512, -0.0999680161, 0.099602066, -0.2350810915, -0.1346707493, 0.1642423421, 0.009033897, -0.2850018144, 0.0600540563, 0.0521874167, 0.1449112445, 0.1460049301, 0.2444001585, -0.1741298139, -0.0858204216, 0.1201667413, 0.1244464293, 0.0912068486, -0.1609355658, 0.2895284593, 0.1334287524, 0.1700605452, -0.2252701968, 0.0892681926, 0.1901633441, 0.0476444848, -0.3796043992, -0.4380775988, -0.052829802, 0.2918800414, 0.3224005103, 0.6408426166, -0.1536825895, -0.1265816092, 0.0910271183, 0.1246646941, 0.4062974453, 0.0881479532, -0.2107074708, -0.1136977226, 0.3247863352, -0.3538906872, -0.123250246, -0.3087650836, 0.3145841658, 0.0559549481, 0.1318820417, -0.1914541423, 0.0762766898, 0.3082994223, 0.3927287161, 0.1425291449, 0.0453393199, -0.1323156059, -0.4751456082, -0.5912305713, -0.08606904, 0.0674634203, 0.2387215644, 0.0650415421, -0.0534296148, 0.3166401982, 0.1226762608, 0.2815594375, -0.077720724, 0.5459546447, -0.1057949662, -0.0349949226, -0.0216285903, -0.0929223225, 0.1994078159, 0.1943016052, 0.2354991585, 0.2008959353, 0.1316884458, -0.298361361, 0.2535745502, 0.3492313027, 0.0600548089, 0.053669095, 0.3580785394, -0.0940803438, -0.1157239899, -0.0726811215, 0.5044251084, -0.0495679751, -0.087217547, -0.3546782434, 0.3251671195, -0.0199968517, 0.1388402432, 0.2130341828, 0.1271076053, -0.1349224001, 0.3051885366, -0.1547727436, 0.8499881625, 0.0378971994, 0.1433647126, 0.493124336, -0.2362788171, -0.1389583796, 0.2695140541, 0.1643807888, -0.1137871146, 0.00200544, 0.0621463619, -0.1258870512, 0.2832096815, 0.0599527992, -0.4243091345, 0.1427362263, -0.1810563505, 0.3606694639, -0.0302856285, -0.0656770393, -0.6879400611, -0.2975928485, -0.3547008932, 0.0993571654, 0.1974205971, -0.0370352082, 0.218423754, -0.4945063591, -0.168137759, -0.3509111106, -0.1148117483, 0.2398501784, -0.2527295053, -0.0913039818, -0.0676543564, -0.2005760819, 0.074775368, 0.0101295384, 0.1135792658, 0.2475359142, -0.0749707147, -0.3024786413, -0.2534324229, 0.3349665403, -0.1902507246, -0.0199490264, 0.0504026711, -0.1266461313, -0.1802682728, 0.0817937925, 0.0859093815, 0.0312937275, -0.0444307588, -0.0907128528, 0.0214132164, -0.3645025194, -0.5255662799, -0.163093105, -0.1187682822, -0.1725423187, 0.1802330762, 0.1277467757, -0.6301131248, 0.1046475992, -0.0329049751, -0.0200340115, -0.0813767612, 0.3146175444, 0.1485005617, 0.0242840834, 0.6454491615, -0.1978867948, 0.0291800071, -0.1500879675, 0.1826306134, 0.0783951133, -0.3819466829, 0.0365011431, -0.0458089225, -0.1438464671, -0.0850460902, 0.0678584054, -0.1462878585, 0.2408921123, -0.2180112451, -0.1720742285, -0.2818648815, 0.2565748394, 0.1647849977, 0.2669834793, -0.1596541107, 0.0509778, -0.0949704126, -0.2157746851, -0.3198490441, 0.1646291465, -0.0450708903, 0.3367744386, -0.1002465338, 0.048538927, 0.1744363755, -0.1431606859, 0.1886601299, 0.2174119204, -0.3829723895, -0.1137143373, 0.0018713332, 0.1176692918, -0.0481841713, -0.3058464825, -0.0100561511, 0.0359495841, -0.1515767276, -0.2811770439, 0.0054376815, 0.0877977386, -0.0147794951, 0.0978263021, -0.2422730327, 0.3005315661, 0.1397274882, -0.2745330036, -0.2428883612, 0.0122391507, -0.025450211, -0.0685522631, -0.1708460748, -0.105901286, -0.0371023677, 0.0776751265, -0.0285960231, -0.0673175529, 0.1855232865, -0.2676127255, 0.0806332678, 0.0674263388, 0.5945363045, 0.0405873768, -0.256713599, 0.0531586967, 0.0788834393, 0.2507316172, 0.1550258994, 0.1930319816, 0.0666178092, -0.4055872858, -0.154576242, 0.2609022856, 0.1677786112, -0.0578712001, 0.228421554, -0.156769678, 0.2704317868, 0.0894173235, 0.0989959389, 0.3274488151, -0.2326122522, 0.1788406819, -0.1675029695, -0.2361679524, 0.4896130562, 0.2202804536, -0.4780780673, 0.6226852536, 0.13316302, -0.1334929466, 0.2241212577, -0.3880477846, -0.2253774852, 0.0669512749, 0.319988668, 0.4373658001, 0.1670468897, 0.4606551826, -0.8908777237, -0.196034953, 0.0030252719, -0.017864665, -0.105991587, -0.0588563047, 0.1046152189, -0.0383843221, -0.2414259762, -0.1860544086, -0.0661257282, 0.2151698172, 0.0498146974, -0.0559494942, 0.0415671803, -0.0441306084, -0.1591968983, 0.1424180716, 0.2548343539, -0.344106853, 0.2289237827, 0.4074864089, -0.0749329031, -0.0069504902, 0.3395501673, 0.6201731563, 0.3707656264, 0.1479556561, 0.3041648269, -0.2396521568, -0.1158487722, 0.1326853484, 0.0976050645, 0.2938636243, 0.136509046, 0.0835870951, 0.1729073375, -0.1430553496, -0.0008516046, 0.3146732748, 0.2887904048, -0.2960101366, 0.0608110577, -0.5431631207, 0.0501887128, -0.2254740447, -0.2088316828, -0.5357284546, 0.1621271819, 0.0945084691, 0.0834886059, 0.0995005965, 0.1882358193, 0.0646165386, -0.0267205965, 0.1989088506, 0.3497521579, 0.062627539, -0.1306117177, -0.0986513123, -0.357475996, 0.0009950331, 0.031459637, 0.2862077057, -0.0571239777, 0.0266831573, 0.143530637, -0.0593011118, 0.0425558835, -0.0766801462, -0.0193564929, 0.1502921879, -0.16949974, -0.2342239171, 0.2073595077, -0.0540773682, 0.0567604415, -0.5042083263, 0.1374406219, -0.3806079924, 0.1263732314, -0.0471941978, 0.1577955633, -0.5429629683, -0.1945222318, 0.1125843078, 0.160421744, 0.1480251253, -0.2953573763, -0.4412285686, -0.061950475, 0.0564773642, 0.1005559266, -0.0025013173, -0.038122531, 0.7926676273, 0.0265854597, 0.0519262031, -0.4209489226, 0.615634501, -0.1391472518, -0.1846994162, -0.2449785471, 0.2969465852, -0.481251806, -0.0393883921, 0.0441216603, -0.0284822825, -0.0270592887, 0.3105620742, -0.2854062319, -0.0550217442, 0.5836778879, 0.0709045529, -0.1253315657, 0.0219453033, 0.293349117, 0.079816319, 0.0257718656, -0.8609780669, 0.1444383413, 0.063155286, -0.0453927368, -0.0369478948, 0.2667574286, -0.129599303, -0.1466528922, 0.0874199793, 0.2568248808, 0.1857883632, -0.3226910532, 0.3364755511, -0.3761797249 ]
https://github.com/huggingface/datasets/issues/3993
Streaming dataset + interleave + DataLoader hangs with multiple workers
Hi ! Thanks for reporting, could this be related to https://github.com/huggingface/datasets/issues/3950 ? Currently streaming datasets only works in single process, but we're working on having in work in distributed setups as well :)
## Describe the bug Interleaving multiple iterable datasets that use `load_dataset` on streaming mode hangs when passed to `torch.utils.data.DataLoader` with multiple workers. ## Steps to reproduce the bug ```python from datasets import interleave_datasets, load_dataset from torch.utils.data import DataLoader en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) fr_dataset = load_dataset('oscar', "unshuffled_deduplicated_fr", split='train', streaming=True) it_dataset = load_dataset('oscar', "unshuffled_deduplicated_it", split='train', streaming=True) de_dataset = load_dataset('oscar', "unshuffled_deduplicated_de", split='train', streaming=True) multilingual_dataset = interleave_datasets([en_dataset, fr_dataset, de_dataset, it_dataset]) multilingual_dataset = multilingual_dataset.with_format('torch') next(iter(multilingual_dataset)) # works fairly fast dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=4) for batch in dataloader: print(len(batch)) # prints nothing after 30 min of waiting dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=0) for batch in dataloader: print(len(batch)) # prints right away ``` ## Expected results It should be able to iterate the dataset with multiple workers. ## Actual results Prints with results with `next(iter(multilingual_dataset)) ` and `num_workers=0` but it prints nothing with `num_workers=4` or any number above 0. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.1.dev0 - `pytorch` version: 1.10.0+cu113 - Python version: 3.7 - PyArrow version: 6.0.1
33
Streaming dataset + interleave + DataLoader hangs with multiple workers ## Describe the bug Interleaving multiple iterable datasets that use `load_dataset` on streaming mode hangs when passed to `torch.utils.data.DataLoader` with multiple workers. ## Steps to reproduce the bug ```python from datasets import interleave_datasets, load_dataset from torch.utils.data import DataLoader en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) fr_dataset = load_dataset('oscar', "unshuffled_deduplicated_fr", split='train', streaming=True) it_dataset = load_dataset('oscar', "unshuffled_deduplicated_it", split='train', streaming=True) de_dataset = load_dataset('oscar', "unshuffled_deduplicated_de", split='train', streaming=True) multilingual_dataset = interleave_datasets([en_dataset, fr_dataset, de_dataset, it_dataset]) multilingual_dataset = multilingual_dataset.with_format('torch') next(iter(multilingual_dataset)) # works fairly fast dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=4) for batch in dataloader: print(len(batch)) # prints nothing after 30 min of waiting dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=0) for batch in dataloader: print(len(batch)) # prints right away ``` ## Expected results It should be able to iterate the dataset with multiple workers. ## Actual results Prints with results with `next(iter(multilingual_dataset)) ` and `num_workers=0` but it prints nothing with `num_workers=4` or any number above 0. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.1.dev0 - `pytorch` version: 1.10.0+cu113 - Python version: 3.7 - PyArrow version: 6.0.1 Hi ! Thanks for reporting, could this be related to https://github.com/huggingface/datasets/issues/3950 ? Currently streaming datasets only works in single process, but we're working on having in work in distributed setups as well :)
[ -0.3555943668, -0.2197351754, -0.1446901411, 0.2996629775, 0.1088644564, -0.0536144264, 0.6818822026, 0.1681309193, 0.1518095136, 0.288113445, -0.0748729855, 0.2441164255, -0.035196729, -0.214463532, -0.2273011804, -0.1399882138, 0.0366156325, -0.0317587443, -0.0748977289, 0.0626454726, -0.0479082502, 0.0443596132, -0.0435347632, -0.191462636, -0.2948990166, 0.1169484705, -0.1179235578, 0.0686438829, 0.2101738155, -0.0613277033, 0.3103602827, 0.3442393243, 0.1036443636, 0.6017295718, -0.0001101167, 0.0146649191, 0.3275209367, 0.1109991968, -0.4509074688, -0.3862383366, -0.1633572876, -0.1193421334, 0.0547903217, -0.0473575108, -0.2211236209, 0.038093552, -0.0291745272, -0.6962122321, 0.1689932197, 0.0826395527, 0.1709663719, 0.4673816264, -0.2818618417, -0.0543782413, 0.0510421321, -0.2142955363, 0.0413707569, 0.2188517749, 0.4648147821, -0.0931230783, -0.2846240699, 0.2917741537, 0.032941509, -0.014436028, -0.0213375166, -0.2548258901, -0.1707265228, -0.4361049533, 0.0939590111, 0.306422174, 0.3039129674, -0.0648325905, -0.23185651, -0.2324748933, 0.0506600291, -0.2415568978, 0.1410300285, 0.2126716822, -0.0566025078, -0.1791277677, 0.0894801766, 0.1955352426, -0.0503472835, 0.0897787735, -0.1180930361, 0.4335829616, -0.078259699, 0.19383654, 0.2778147757, -0.0464315638, 0.4499907196, -0.0521787219, 0.0985534638, -0.1268400401, -0.590709269, 0.189361155, 0.1779351681, 0.0182410982, -0.1569004953, 0.105744876, 0.0177967437, 0.1376210451, 0.2536170781, 0.0550420247, 0.4589816034, -0.3183933496, -0.1087824255, -0.172910437, 0.2449959666, 0.0809124038, -0.0426026769, -0.1133719981, 0.0637527555, -0.5267928243, -0.1432195604, 0.0967221633, 0.2501464188, -0.0142591642, -0.335606724, -0.0652278513, -0.3926197886, -0.1222486496, 0.1175883785, 0.3623334765, -0.2022065669, 0.5516572595, 0.0085493354, 0.0751146749, -0.1623996794, -0.2986531258, -0.1439604163, -0.0772469118, -0.1483549625, -0.0152186519, 0.1089426577, -0.5669416189, 0.1142556593, 0.1711032689, 0.3558903337, -0.1127818972, 0.2802706659, -0.3353891969, 0.2147079706, -0.1377898157, 0.3586117327, 0.2789706886, -0.0795153007, 0.0744211972, -0.0640460551, -0.1349921823, -0.1031134948, -0.1600508541, -0.2591455281, 0.2131652385, -0.0833245963, 0.0576946661, 0.0069576427, -0.1939621121, 0.3156577051, -0.0850629583, 0.1579865664, -0.28520298, 0.1295770109, -0.0912370309, 0.1248387769, 0.4882068038, 0.1268210858, 0.0130032497, 0.0899457633, 0.0509405434, 0.2634972036, 0.1871577203, -0.0978624225, -0.0676741526, -0.2769598961, -0.0630256906, 0.1250873804, -0.3466638327, -0.1596098244, 0.7216660976, 0.0084292674, 0.4391191602, 0.3753017783, 0.1440783292, 0.315752387, -0.230583787, 0.2519469559, 0.5603943467, -0.2840958536, 0.2102858871, -0.2290270925, 0.1710145921, 0.2628223598, 0.3264387548, 0.1102965847, -0.3416826725, -0.0882279575, 0.0543411113, 0.3968739212, -0.1324515194, 0.0504437312, 0.1252251416, -0.0321499445, 0.3070202172, -0.0508903563, -0.0376022868, -0.348084718, 0.1755201221, 0.4643338621, -0.094703272, 0.2170749754, 0.0357642137, 0.1342943609, -0.0162858795, -0.5007017851, -0.1971419901, 0.0553231202, 0.451625973, -0.1405498981, -0.1492661983, -0.054778479, 0.5384518504, -0.1494092494, -0.2308048457, -0.6708422899, 0.3416261673, -0.0453303754, -0.177750811, 0.061862018, 0.2822545767, -0.0311157908, -0.24004893, -0.0568073429, 0.3127937019, -0.2253384888, 0.378036648, -0.0242091678, -0.0424094871, 0.2609531581, -0.2975848913, 0.0803120434, 0.177410394, 0.0159135219, -0.174473092, 0.0939284936, 0.207390815, -0.0988258719, 0.5323569179, 0.0388840288, 0.0460328683, 0.1383311599, 0.1501513571, -0.3206410706, 0.1413554996, 0.4868216515, -0.4145824313, 0.5537261367, -0.0905306116, -0.5546481609, 0.2078959793, 0.3607549667, 0.1801535636, -0.1643949598, -0.0794385374, -0.0218802337, 0.0108823348, 0.1113909855, -0.3244875371, 0.26301983, 0.1303042769, 0.1444833279, -0.4014029205, 0.0930673182, -0.3110407889, 0.0493751317, 0.0018934608, 0.0344949551, 0.2997637093, 0.0369359814, -0.0343710892, -0.0758186728, -0.4735891223, -0.1708141416, 0.0196387228, -0.0919043943, 0.2147528976, -0.1175041646, -0.0451670475, -0.2308440804, -0.4968993366, -0.238565743, -0.4013833106, -0.3228115141, 0.541446805, -0.0320799798, 0.2611174881, 0.0369045138, -0.1146204621, 0.2637780309, 0.0720740184, -0.2239192277, -0.1377021521, -0.1426856369, 0.0279215872, 0.4029548168, -0.1551498771, 0.4027914405, 0.1035328507, -0.3425669968, -0.4209596813, 0.1323094368, 0.1061087474, -0.0835770741, 0.2081797123, 0.1869203299, 0.1636300683, 0.2173268646, -0.2507635355, 0.1403439492, -0.0370229259, 0.1236620992, 0.1274477392, -0.1078718677, 0.2535389662, 0.1370130777, -0.3670021892, -0.2804936767, -0.5737882853, 0.0372107588, -0.3145758808, -0.1657452732, -0.1262925863, 0.3190801442, -0.0409478098, 0.3590500057, -0.0783522278, -0.1659759283, -0.5308595896, 0.1690096408, -0.1447749436, -0.27494964, -0.2060434967, 0.0272786133, 0.1943965256, 0.1992131472, -0.3442414105, 0.2497888505, -0.2131629288, 0.1720575392, -0.1001547724, 0.0421882495, 0.1115860492, 0.0297261477, -0.0365452692, -0.0846408978, 0.0459273048, -0.1293620169, -0.0369941406, 0.2563710213, 0.0303044301, 0.4400654137, 0.0280970428, 0.5979781747, 0.3036007881, -0.1252684444, 0.2400017232, 0.2150696665, 0.3155677915, 0.0832496732, -0.4672910273, 0.2191968113, -0.098408021, 0.148674503, 0.1541611105, -0.3193789721, -0.410684526, -0.15334858, -0.0986069962, -0.035961099, -0.2290053368, 0.4090315998, -0.5180920362, 0.1733872592, -0.1834763288, 0.0993585587, -0.117780529, -0.1489507258, -0.0190730859, 0.1006490439, 0.1393177211, -0.0429821126, 0.2291409522, -0.068438448, -0.4147858024, 0.0433077067, 0.208909452, 0.5289236307, 0.239063248, -0.1302599311, -0.0088735912, -0.2102151662, 0.5460898876, -0.2168999761, -0.1224838421, 0.2481341809, -0.1197532341, -0.2262833416, -0.1384167969, -0.1893344074, 0.3384047449, 0.3664725721, 0.0798923895, -0.2488493621, -0.5288242102, 0.2791981995, 0.0603043176, -0.0917020887, -0.2477782965, -0.4182786644, -0.0848183334, -0.1811270863, 0.2648970783, -0.0588405542, 0.2032989711, -0.4398604631, -0.1291949153, -0.0979063511, -0.1208835915, 0.1665424556, 0.0787118748, -0.0092287501, -0.1539811939, 0.3066285551, 0.1898285896, 0.243556425, 0.3160485327, 0.2977920771, -0.0990865454, -0.3027535975, 0.4845294952, -0.1656494439, 0.3725863993, 0.3902020454, -0.0210921671, 0.0016117976, 0.0263101682, 0.2781246305, -0.0013709599, 0.2481286228, 0.3127352595, 0.2152018845, -0.5704709291, -0.3738196492, 0.0190846827, 0.1477140039, 0.1678350717, 0.4883320034, -0.386903584, -0.1309550554, 0.1464737803, 0.1079145297, 0.7136855721, 0.1366732121, 0.1717276424, 0.1947731823, -0.0675241649, 0.1487109363, -0.429135859, 0.2115102112, -0.2590501308, -0.4845870137, 0.1678226441, -0.1169953123, 0.0458383523, -0.1592484713, -0.1139129698, 0.1983909756, -0.0343143754, 0.2403790504, -0.0811358392, 0.2986228168, -0.5023852587, -0.3112259805, -0.1910642982, 0.1259109676, -0.0341074802, -0.022692861, -0.2362827659, -0.1860158592, 0.304712683, -0.085852854, -0.1669364274, 0.1493480951, -0.0786061585, 0.1099759042, -0.2043450475, -0.4349503219, 0.2075234056, 0.1042702571, 0.0709429681, -0.2348687649, 0.0844952092, 0.0495563932, 0.0735071301, -0.1681861132, -0.039513234, -0.0781189278, 0.3358656764, 0.0068749515, -0.2111122608, 0.1717661917, 0.1217181534, -0.2523837686, -0.1667492837, 0.3990225792, 0.0489824153, -0.127600804, -0.0358234644, 0.2205097526, -0.1337421536, -0.2384832352, 0.1460696012, 0.0138195092, -0.2554711998, 0.1722791493, -0.2401656806, -0.1468712091, -0.233564049, 0.4096783996, 0.0699834824, -0.0033080718, 0.3911914825, 0.4190593064, -0.2655147016, -0.2226702124, -0.0886617452, 0.2941717803, -0.3591431975, 0.1596283168, -0.1798743606, 0.0392448567, -0.0604603998, -0.1263338327, -0.0875015035, 0.0261618067, -0.0503115468, -0.2802981436, -0.0134556815, -0.0817263499, -0.0202505905, 0.2778103948, -0.1997217834, 0.1548149437, 0.0859886929, 0.1380060911, -0.3305320442, -0.1582009643, -0.4221050143, 0.132403627, 0.3297835886, -0.2659401596, 0.148782447, 0.0772796422, 0.0995670483, 0.176120013, -0.0142846508, -0.2631761432, -0.0968266055, 0.0816716179, -0.0971157327, 0.0355620869, -0.0381841362, -0.1661023647, 0.0864245892, -0.2775123119, 0.2593143284, -0.0017471545, -0.1213750839, -0.023930911, 0.1311357617, 0.3807644546, -0.0068285614, 0.1671432853, 0.1623781621, -0.1026297882, -0.0931590497, 0.18694745, 0.1810149848, -0.0510838479, 0.0331503376, -0.003419922, 0.5133016706, 0.3128291368, 0.1512341797, -0.2349372655, 0.0609205887, 0.1394290179, 0.283102721, 0.6794842482, -0.0394797362, -0.1692690551, 0.0936407968, 0.1896709055, 0.0063181347, 0.0162881631, -0.0409572348, -0.081074819, 0.1586711109, 0.2134080082, 0.0754388943, -0.2591460943, 0.1738215685, 0.2167599648, -0.0197516512, -0.3796120882, -0.0335629657, 0.064357549, 0.0526978858, -0.0269172508, 0.0839454234, 0.012102101, 0.0707108229, 0.2018756717, -0.0148070613, 0.6086345911, 0.2540811002, -0.1163149253, 0.1028241217, -0.3527193666, -0.2841008008, -0.0369411632, -0.1394004077, 0.1254239231, -0.118464753, 0.3774728477, -0.2668000162, -0.1677889526, -0.1309541911, 0.1324226111, -0.0882531106, 0.0720868334, 0.0841760784, -0.0193837658, -0.2662060261, -0.0202311371, 0.0900534391, 0.1443740278, 0.2472939789, 0.3306847215, 0.0242793821, -0.4061638117, -0.1038347557, 0.0503303111, 0.0700913519, -0.2004040629, 0.0475916751, 0.2546737194, -0.1230074838, -0.2715113759, 0.0988436565, 0.4051929414, 0.3669311106, -0.3044698536, 0.1496936977, 0.083928965, -0.047513593, -0.030912783, 0.1409972757, -0.0818670318, -0.1530560404, 0.3277862966, 0.1966907382, -0.1850942224, 0.1091793925, 0.1905865818, 0.0056590913, -0.2427781075, -0.2129749805, -0.1025058553, 0.0232271608, -0.2382524163, -0.0071226205, -0.6021060348, -0.0217138529, 0.2477207929, -0.0980291143, 0.0556649528, -0.1184254214, 0.0877911448, 0.0242631417, 0.5296976566, 0.3075284362, 0.3880647123, -0.3028618991, -0.3123134673, -0.3422721326, 0.1093621105, -0.0922910199, 0.1812975705, -0.2323224097, 0.626257956, 0.0372775458, -0.0637966022, 0.0653622225, -0.0483485498, 0.2599041462, 0.4532907605, -0.4161211252, -0.2091854364, -0.0726519674, 0.0743516982, 0.1560100764, -0.1800947934, -0.0890064687, -0.031183036, 0.1590120345, -0.0981711447, -0.4023668766, 0.1505967379, 0.0340788104, 0.1404879093, 0.0636838377, 0.2209293842, -0.0076115015, -0.231008485, -0.3436694443, -0.1186870039, 0.00553218, 0.1192364767, 0.2475469261, 0.1992133409, -0.0682238713, 0.0178721473, -0.4676856399, 0.4312351644, 0.0757094324, 0.1880702525, -0.2177797109, 0.0043424675, 0.0195389222, 0.3552042544, -0.1259744018, 0.4378260076, -0.0449612811, 0.1693632007, -0.4186753929, -0.3761245906, 0.2952398062, -0.3174699843, -0.4214571714, -0.3238566518, 0.2226518095, 0.3154905438, 0.3059095442, -0.3343667984, 0.2135821879, 0.1441447586, 0.0231748726, -0.0915027335, 0.1102948338, 0.3029445708, 0.2385800034, -0.1231703907, -0.1095300093, 0.2420913279, -0.0911523402, 0.3504402936, -0.2450473309 ]
https://github.com/huggingface/datasets/issues/3992
Image column is not decoded in map when using with with_transform
Hi! This behavior stems from this line: https://github.com/huggingface/datasets/blob/799b817d97590ddc97cbd38d07469403e030de8c/src/datasets/arrow_dataset.py#L1919 Basically, the `Image`/`Audio` columns are decoded only if the `format_type` attribute is `None` (`set_format`/`with_format` and `set_transform`/`with_transform` assign a non-`None` value to it) and the `input_columns` param is not specified (see https://github.com/huggingface/datasets/issues/3756). We will remove these limitations soon.
## Describe the bug Image column is not _decoded_ in **map** when using with `with_transform` ## Steps to reproduce the bug ```python from datasets import Image, Dataset def add_C(batch): batch["C"] = batch["A"] return batch ds = Dataset.from_dict({"A": ["image.png"]}).cast_column("A", Image()) ds = ds.with_transform(lambda x: x) # <= This line causes the problem ds = ds.map(add_C, batched=True) print(ds[0]) ``` ## Expected results ``` {'C': <PIL.PngImagePlugin.PngImageFile>, ...} ``` ## Actual results ``` {'C': {'bytes': None, 'path': 'image.png'}, ...} ``` If we remove the `with_transform` line, we get the expected result. ## Environment info - `datasets` version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0
45
Image column is not decoded in map when using with with_transform ## Describe the bug Image column is not _decoded_ in **map** when using with `with_transform` ## Steps to reproduce the bug ```python from datasets import Image, Dataset def add_C(batch): batch["C"] = batch["A"] return batch ds = Dataset.from_dict({"A": ["image.png"]}).cast_column("A", Image()) ds = ds.with_transform(lambda x: x) # <= This line causes the problem ds = ds.map(add_C, batched=True) print(ds[0]) ``` ## Expected results ``` {'C': <PIL.PngImagePlugin.PngImageFile>, ...} ``` ## Actual results ``` {'C': {'bytes': None, 'path': 'image.png'}, ...} ``` If we remove the `with_transform` line, we get the expected result. ## Environment info - `datasets` version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0 Hi! This behavior stems from this line: https://github.com/huggingface/datasets/blob/799b817d97590ddc97cbd38d07469403e030de8c/src/datasets/arrow_dataset.py#L1919 Basically, the `Image`/`Audio` columns are decoded only if the `format_type` attribute is `None` (`set_format`/`with_format` and `set_transform`/`with_transform` assign a non-`None` value to it) and the `input_columns` param is not specified (see https://github.com/huggingface/datasets/issues/3756). We will remove these limitations soon.
[ -0.1467385888, -0.1622456312, 0.0413527489, 0.3056761324, 0.6214095354, 0.1209302396, 0.1893106997, 0.25581792, 0.3303367198, 0.0117178382, -0.2401601374, 0.765168786, -0.0390638933, -0.1923353076, -0.1648159325, -0.2066480368, 0.2259844393, 0.1344407201, -0.3847177625, 0.0640420914, -0.4407153726, 0.0781020001, -0.4031552076, -0.0204115976, -0.1323690712, 0.1330416799, -0.2085783482, -0.0859255493, -0.1459352821, -0.1088426635, -0.0242774524, -0.138501808, -0.0610678829, 0.5268480778, -0.0001167612, 0.3529258668, 0.363021642, -0.031175632, 0.015979154, -0.2475892603, -0.4517784715, -0.2792010009, -0.2631655633, -0.219644919, -0.0249411445, -0.369571209, 0.0699908063, -0.2596253753, 0.2834883332, 0.1449798942, 0.1661983579, 0.1256088316, 0.1508255899, 0.2744571567, 0.0861268565, 0.1242473051, -0.0844978765, -0.1024652123, 0.1790408939, 0.1144246683, -0.241597265, 0.3360448182, -0.2850147188, -0.094439216, 0.0291223247, 0.3723781407, 0.0059716199, -0.3140664101, -0.1209197938, 0.0593461618, 0.2015549541, -0.1254718304, -0.3128692806, 0.0360519998, -0.0515269861, 0.0237514023, 0.2270906717, 0.0052123535, 0.0089057796, 0.0851922333, -0.4448623657, 0.1854140759, -0.1508226544, 0.1529952288, -0.196696803, -0.0556281619, -0.1304075718, 0.1844190955, 0.0215030648, -0.0167316366, -0.2047360688, -0.2315954566, -0.0762816146, 0.2950724661, -0.1810154915, 0.0116743213, -0.1183678806, 0.0935204625, 0.0835928693, -0.1514839381, -0.1961735785, -0.0001904225, 0.0382908508, 0.4727174342, 0.1045465991, 0.0187735688, -0.3211264014, 0.5645448565, 0.3122344315, 0.0975454673, -0.0449273102, -0.2017881423, -0.0178466663, -0.1700408906, 0.0810390413, -0.0112334518, 0.3026798666, 0.0557456017, 0.0752786547, -0.1509846151, -0.1263928711, -0.0363888778, -0.198379457, 0.1279489547, 0.3530984223, 0.2121132165, 0.30751279, 0.3942490518, -0.0670175701, -0.0601199307, -0.2139322311, -0.2161565274, -0.3181026876, -0.0560994558, -0.1279453039, 0.3320193291, 0.0879935548, 0.2763934731, 0.1360621601, 0.0429972, -0.2982151508, -0.2341125906, 0.3834027052, 0.3648418188, -0.0904594436, 0.0783315077, 0.071660988, -0.1423597634, -0.0422442965, 0.4081788361, -0.4639820158, -0.0126507375, -0.1186435297, 0.1039764732, -0.1179748103, -0.0821617991, -0.5160194635, 0.0856556296, 0.1844447553, -0.3654154241, 0.0725191608, -0.2053440809, -0.3705524802, -0.259258002, 0.1103473976, 0.1826070845, -0.4020442665, 0.1839849949, 0.249463141, -0.1582878232, 0.3310239613, 0.3867717981, -0.028811764, -0.2195477635, -0.1981082708, 0.1734981388, 0.2711233795, -0.3192254901, -0.4790731668, 0.3383994102, 0.0874599218, 0.1728208959, -0.0368350856, 0.0254112054, 0.2533999085, -0.1224321947, -0.4337974489, 0.324975729, 0.0086050695, 0.332904458, -0.1335339397, -0.222949177, 0.1234774515, 0.0381648652, -0.1794864237, 0.2698198557, 0.0988312215, -0.2004770786, 0.2204486579, 0.0997007638, 0.249588415, 0.1554172784, 0.2863110602, -0.1272530854, 0.2156968415, -0.1368612051, -0.1599265784, 0.1357069463, 0.3024491072, -0.0182841811, -0.6747267246, -0.2961073518, -0.0325828753, -0.1525638849, -0.394066602, 0.0016154323, 0.0887988731, -0.0799822435, 0.0544660017, -0.057110101, -0.144216612, 0.01282808, 0.1271632761, 0.1119341031, -0.2188870311, 0.1242897362, -0.1454241276, -0.2012429535, -0.1991846859, 0.1463018209, 0.1330536902, 0.0137008792, -0.1879298538, 0.3037105501, 0.0981886834, 0.5173985958, -0.6269655824, -0.0265261307, 0.2739034593, -0.3033289909, -0.1032781526, -0.1013578251, 0.3026087582, 0.117944032, -0.1702268571, 0.0179087427, 0.1760030687, 0.3434045315, -0.0101711527, 0.0492311791, 0.1305647045, -0.2164803892, 0.0356295928, -0.3535357714, -0.4461379349, -0.1588329226, -0.055721987, -0.0241138712, 0.2729877234, -0.0579397567, 0.6194267869, -0.0255496521, -0.0143138906, 0.0362853967, -0.2841300368, 0.1788500696, 0.1297963113, 0.0644528195, 0.4223518372, 0.1684039384, -0.2127892375, -0.1545359641, -0.0564048178, 0.1204520389, 0.3314386308, 0.3493823111, 0.1046179682, 0.0293337423, 0.3237186968, 0.1092565656, -0.2533068657, -0.2773838043, 0.2552274764, -0.0043463949, -0.3308742046, 0.1191909686, -0.4668596685, -0.2087633014, -0.083730951, 0.2024486959, 0.2112908363, -0.3514454961, -0.1833479106, 0.0693803951, -0.1858535558, 0.2102018297, -0.090924181, -0.1587612927, 0.1139501333, -0.4983244538, -0.3678345084, -0.0520230904, -0.0897662863, 0.0318600461, 0.1076627374, -0.4798768163, 0.0810079649, 0.1953911483, 0.0271564461, -0.0709128752, -0.3326505125, 0.2454291433, -0.4266756773, 0.1318938434, -0.0501679741, 0.1942813545, -0.1981783211, -0.1065272689, 0.5025520921, -0.0996551439, -0.3976349533, 0.2482426614, 0.0745708123, -0.0835515782, -0.2983529568, -0.0340658724, 0.0908064842, -0.3344812095, -0.0177118648, -0.1626345068, 0.0717396513, 0.1450479776, 0.2494677752, 0.0141491294, -0.0027100483, -0.0115235401, -0.2457840592, -0.0766245574, 0.502964437, -0.0672057644, -0.2172658592, -0.0042506936, -0.0914000869, 0.0133577595, 0.4280118942, -0.2381064445, -0.1615114063, -0.3451769352, 0.2589971721, -0.0679484829, 0.2502202392, 0.0790127441, 0.2630447447, -0.0080229528, -0.3268403411, -0.0666206405, -0.1171744093, 0.2954491675, 0.1924524903, 0.2950099111, 0.5460866094, 0.0740035027, 0.0893610194, 0.1236496344, -0.1377594769, 0.3111900389, -0.3859802783, 0.1219079494, 0.0215507485, -0.0446585417, 0.0438987762, 0.0073861955, 0.1739441454, -0.1641372889, 0.0561380759, -0.3797843158, 0.0135235945, 0.2117526531, -0.4884015024, -0.1354774833, 0.1667578816, 0.0517169721, 0.0599802621, -0.0168239549, 0.1230250895, 0.0946666747, -0.2436739951, 0.0011622327, -0.0519742407, 0.565439105, -0.1150693297, 0.1535659581, -0.2830636799, -0.3161756396, 0.159784466, 0.0522902608, 0.3250744045, -0.0332697704, -0.0247898642, 0.2157039642, 0.165444836, 0.8171385527, -0.3596580029, -0.1211316809, 0.1155983508, 0.1154975668, -0.3344841003, 0.06156094, -0.2727864385, -0.2056091279, -0.0478278808, 0.8106672168, -0.0791388303, -0.0144319013, 0.2103555351, 0.1095526218, -0.0356268324, -0.2570799589, -0.3040981889, -0.3781854808, -0.3053559363, -0.0471435972, 0.33921808, 0.1858916283, 0.0793493763, -0.2493837029, -0.0285250545, -0.0494874865, 0.0282857344, 0.0837402046, 0.320435673, 0.1991601884, 0.1842994392, 0.1855968684, 0.1105481237, 0.0899048969, 0.5427937508, -0.2020785362, -0.2474062294, -0.0116761699, -0.218914777, 0.3060038984, 0.1520601213, -0.0423919186, 0.1023102701, -0.1544808149, 0.1327168047, -0.436852783, -0.2213384956, 0.5516978502, 0.0343563519, -0.0719304159, -0.2048457861, 0.6108139753, 0.2630907297, -0.0259568002, 0.3200165629, 0.309043467, -0.2870000601, 0.7411367893, 0.1191551834, 0.7751125693, 0.0139198536, -0.0020011531, 0.317522347, -0.3554588556, 0.3143202662, 0.1190019473, 0.1354666203, 0.0402026102, -0.2572263777, -0.1330617368, 0.0513288043, 0.1349935681, 0.2965942919, -0.4119955599, 0.1182764322, -0.2077153176, 0.3460826576, 0.1451378018, -0.3329501152, -0.0701975673, -0.2969233692, -0.0782132968, 0.1229572892, 0.0275000352, -0.0028358642, 0.3001642823, -0.0915712938, -0.3104377389, 0.0040411288, -0.1448509991, 0.0521937981, -0.2651104927, 0.1825700998, -0.1126878634, -0.2938800752, 0.371576339, 0.2722805738, -0.1680739373, 0.0028153574, -0.0012705019, 0.1137563735, 0.4948942661, 0.4444142878, 0.1323348433, -0.0936666429, 0.2235751599, 0.1846419871, -0.2866661847, -0.0456257351, 0.009886153, 0.0019636739, -0.1670091301, 0.211712718, 0.060405422, -0.2854353189, -0.3174580038, -0.2116418183, 0.1101637483, -0.0246888697, 0.0962500721, -0.1430183053, -0.0497167371, 0.6130070686, 0.0015220445, -0.2637938261, 0.1481635422, 0.5180677176, -0.0341776088, -0.0043549142, 0.2266694754, -0.196796447, -0.2773421705, -0.0800169855, 0.0463114828, 0.0920457914, -0.5069897175, 0.0032078058, 0.0869005099, 0.1517681181, -0.1227675155, -0.1229353324, -0.2603093684, -0.1556929052, -0.2168787718, -0.4414593875, -0.3877161741, 0.3754324913, 0.090051502, 0.1390030384, -0.132338509, 0.1981558055, 0.0090191131, -0.0141314417, -0.2756840885, 0.2127979696, 0.0736375079, 0.2169676721, 0.2264564782, 0.3008569777, 0.3186602294, -0.3978664875, 0.1077978313, 0.516872108, -0.0046970476, -0.0819366351, -0.2559616268, 0.1312758923, 0.0010619196, -0.1810235232, -0.1831714362, -0.2399924248, -0.1685781032, -0.124892287, 0.2590671778, 0.2829284072, 0.0006524849, 0.0651627332, -0.1595063657, -0.0323654823, 0.1104410663, -0.0433481745, -0.299261272, 0.2436508238, 0.2567244172, 0.1439668983, 0.1062118113, 0.1105008945, -0.0512529723, -0.1970965862, -0.1615125239, 0.0215554889, 0.8044279814, -0.1064512357, 0.1110849306, 0.1342448294, 0.2836871445, -0.0992027968, -0.2972743213, -0.2827208936, 0.0469510891, 0.1673557311, -0.2326610386, -0.0224760529, 0.134929806, 0.1782867014, 0.1599515826, 0.1978652179, -0.2595276535, -0.0363723077, -0.3072318733, -0.0277944319, 0.5875515938, -0.1479432732, 0.0667310059, 0.5899361968, -0.0566028468, 0.1530222148, 0.1954827905, 0.1795354486, 0.0666648373, 0.4915294051, -0.0263649318, 0.0971560627, 0.0831151381, 0.1645818949, 0.1173713654, -0.2267452776, 0.1923422962, 0.2717134356, -0.220738098, 0.2644851208, 0.0856911317, -0.0725414827, -0.2040332854, -0.0829496607, 0.1543473899, 0.2085387558, -0.0695668086, 0.0235404447, -0.1576962024, 0.0034863604, -0.2611893713, -0.0721942633, 0.032800477, -0.2400087714, 0.4353781939, 0.2266389132, 0.0988627896, 0.0710701868, -0.2786560953, 0.1359222382, 0.5420196652, -0.2273899317, 0.3139545023, 0.2737707794, 0.2019262016, 0.4319344461, 0.2616500556, 0.4901482165, 0.1380396932, 0.0315507017, 0.248899579, -0.0112990383, -0.3332274258, 0.0256174691, 0.5061977506, 0.1002763286, 0.071664758, 0.2021170855, 0.1136252955, -0.1627085209, -0.2691328824, 0.1089828089, 0.4462459087, 0.034358751, 0.6749503016, -0.2202085555, -0.3921358585, 0.0197447799, -0.6207206845, -0.1235454082, -0.2290237695, 0.2175727785, -0.2462192029, 0.244603768, 0.1551363021, 0.0368815325, 0.074537687, 0.0336606614, 0.4817044139, -0.2645425797, -0.1879550815, -0.1338973492, -0.3321124017, -0.0147428559, -0.0529784746, -0.2319160104, -0.1510671228, 0.040493343, 0.1207777858, -0.0005292863, 0.1864847541, -0.1212776303, 0.1785287261, 0.4230290949, 0.0305454824, -0.3284921646, -0.0824049339, -0.0693435743, -0.121117115, -0.3715837002, 0.2344540656, 0.2260655314, 0.0991405398, -0.3057251573, 0.1056531817, -0.2058637142, -0.2305641025, 0.3818659782, 0.3291977942, 0.4185762107, -0.3215899765, -0.0822923407, -0.0057937969, -0.0677053556, -0.2601280212, 0.0416492932, -0.0324077941, 0.4628964663, 0.0169585142, -0.258844167, -0.2592478991, -0.0409776047, -0.099070996, -0.1097376049, -0.4877178967, 0.2102646977, -0.2221685946, -0.2699838579, -0.0482811369, 0.1174645945, 0.1185534596, 0.1001119912, -0.132479161, -0.6703444719, 0.4197305739, -0.6944069266, -0.3615768552, 0.334618777, 0.0875546783, -0.4379129112, 0.1828214973, -0.5258364677, -0.0857099369, 0.2117393613, -0.2464512736, -0.0536023453, 0.1892676353, 0.1577755809, 0.1597169191, -0.1088070571, 0.3789191544, 0.1676160246, -0.1141724288, 0.0365204401, -0.1507710516 ]
https://github.com/huggingface/datasets/issues/3990
Improve AutomaticSpeechRecognition task template
There is an open PR to do that: #3364. I just haven't had time to finish it...
**Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature.
17
Improve AutomaticSpeechRecognition task template **Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature. There is an open PR to do that: #3364. I just haven't had time to finish it...
[ -0.2149880379, -0.346783191, -0.0174444132, -0.1044970453, 0.2359564155, -0.2255588621, 0.3123865426, 0.1822747886, 0.0016585005, 0.285658747, -0.0709596574, 0.3695853651, -0.198413536, 0.1915427595, -0.0616692901, -0.329256624, -0.0029951178, 0.0826634914, 0.1883462071, -0.0653443858, -0.4183263183, 0.2343668789, -0.2353564948, 0.25003618, -0.2449753433, -0.1208511814, 0.1334362328, -0.011242575, -0.0534755848, -0.1596304327, -0.2059504837, 0.083124049, 0.0384524465, 0.202803418, -0.0000978006, -0.2422653884, 0.4023902118, -0.0486573167, -0.2969120145, -0.2181210369, -0.316601634, -0.0173429139, -0.1303967535, -0.1604849398, -0.224455148, 0.0435830615, 0.1477851719, 0.2227932662, 0.3849651515, 0.3770551085, 0.3490595818, 0.10381037, -0.0713498145, 0.0199876837, 0.2410480231, 0.1745643616, -0.2263513356, -0.0319656432, 0.3085455596, -0.2901122272, 0.0552664027, 0.4171873629, 0.0048590223, -0.0552982204, 0.3441359401, -0.0550203249, -0.0548724979, -0.2881929278, 0.0919335634, 0.1804089993, 0.3637914658, -0.2780379057, -0.1060811207, -0.3211091459, 0.1001881063, -0.4158456028, 0.1395873725, -0.1434560865, -0.2418451011, 0.2472726405, 0.1116047651, -0.266168952, -0.0771863982, -0.1878357977, 0.0720764846, -0.1409946978, -0.1387757808, -0.2821490169, 0.250400871, -0.3091310859, -0.3202346265, 0.3066670001, 0.0174370352, 0.2387555242, -0.3544453084, -0.2793827355, 0.1541260332, -0.0002984407, 0.000287438, 0.2093316764, 0.2100775242, 0.2379389554, -0.161167562, 0.1559779048, -0.0935134292, 0.3464472592, 0.0925821438, -0.2859384716, 0.0668233857, 0.4274047315, -0.0567526743, -0.0845237747, -0.0770947561, -0.1693184376, -0.0521334298, 0.1772671193, 0.2511061728, -0.1841749251, -0.2144252211, -0.1166488603, 0.1597088128, -0.0504112504, 0.1044607982, 0.3871079087, -0.136155948, 0.0794200599, 0.0261229333, 0.1547001153, -0.1334408671, 0.0176218953, -0.0505589694, 0.0544198044, -0.1465401053, 0.1973673105, 0.0397931449, 0.1968779266, 0.3736981452, -0.0945924148, 0.0228938516, -0.0603085943, -0.0563880987, 0.1055254042, -0.1384105384, -0.10850887, -0.2528313696, 0.0307883937, -0.1686793417, 0.1042395309, -0.0493224449, -0.1043617129, -0.2904776931, -0.2250541151, 0.0150906583, 0.2501680553, 0.0190572273, -0.1387410611, 0.0101696318, 0.2936831713, -0.1182265282, -0.2425324023, 0.0016942103, -0.0744531304, -0.2744652629, -0.0368966348, 0.0474592485, 0.0599472262, 0.2816150188, -0.1630064994, -0.03205299, -0.0340924412, 0.2334428728, 0.4770337939, 0.0693186298, 0.1305435151, -0.0565025546, 0.5322831273, 0.1058831215, -0.3005208075, -0.0960279554, 0.0685842633, -0.2513021827, 0.1373172998, 0.0913994089, -0.1740337461, 0.206155479, -0.2661593854, 0.1840024143, 0.1806475967, 0.2374991924, -0.0379700437, -0.3387284577, -0.2408328801, -0.0583958849, 0.0742950812, -0.1628353894, -0.0053511946, -0.2077236623, -0.0046465416, 0.3746639788, -0.1912571937, -0.0071744262, 0.1027203649, 0.6944016218, 0.1420866549, 0.0647955313, -0.3521130681, 0.1121596023, -0.0565199032, -0.1812754571, 0.1362414211, -0.2884871364, -0.2558935583, -0.1450847983, -0.1251164973, -0.2139449567, 0.0721585304, 0.2681296766, 0.0965721235, -0.0962714031, -0.2506013215, -0.0549834818, 0.2308785021, -0.2795283496, -0.0413069725, -0.0957834423, -0.049964685, -0.0355273895, 0.0396524183, 0.2433964014, 0.2525744736, 0.1713858843, 0.1446410716, -0.0746067017, 0.3479606807, 0.1912216246, 0.4350375831, -0.2456472069, 0.2122176886, 0.0299222656, -0.2257203907, 0.0873614177, 0.1355238706, 0.0683645979, -0.002732221, -0.1351613253, 0.1148908585, 0.2842312753, 0.3015116453, 0.3140021861, 0.0245416798, 0.2347095162, -0.1157496944, -0.2959037125, 0.0929080397, 0.0066960193, -0.2183350772, -0.0327597409, -0.0221365951, -0.6638230085, 0.0660420656, 0.4666072428, -0.0368500911, 0.130784452, 0.2514179349, -0.1947536469, -0.2520228624, 0.0215374883, -0.0068171015, 0.0199485905, 0.3320979476, 0.0580887422, 0.0687991157, -0.2640105784, -0.1285739541, 0.1638218015, 0.072931841, -0.0820916891, 0.1363609433, 0.1575649679, -0.0718034506, -0.4928658605, -0.1230828017, -0.1704856008, 0.1182450801, -0.3187282383, -0.3327942789, -0.1600404382, -0.4361520112, -0.2894280851, 0.0358094014, 0.0107008303, 0.0075917491, 0.3561314344, 0.2471949607, -0.2044848502, 0.3077746034, 0.2816000879, 0.2507228553, -0.205606699, -0.172293961, -0.1330016553, -0.0125505906, -0.042802494, 0.2209897935, 0.1306091696, 0.2182480842, 0.0680227354, -0.0721078664, -0.0183569025, -0.3153040707, -0.1207305118, -0.017969409, -0.0233244766, 0.0767276436, 0.0860234648, 0.3379262686, -0.0342492014, -0.3225487471, 0.1715868413, 0.0462459475, -0.2566768229, -0.1112585366, -0.0042790337, 0.0757813528, -0.1692269593, -0.3831627667, -0.0937946513, -0.3989014328, 0.5438477993, -0.0032122186, 0.182603538, 0.5762652755, -0.091073297, -0.0333568193, -0.2665210068, 0.2919457853, -0.1331644654, -0.1038472801, 0.2039713711, -0.1198548451, -0.2145117819, -0.2849752009, -0.0442524217, 0.2250116915, -0.0161237828, 0.1196961179, -0.4458323121, -0.2258514464, 0.0538617559, -0.0616416223, 0.0717302263, 0.3141362667, 0.2368569821, -0.2027204037, 0.0030178607, -0.1674184799, 0.2343171537, 0.4886432886, 0.4709196687, 0.1793417633, 0.0870614946, -0.2242814302, 0.7547684312, 0.2273443639, 0.0907233357, 0.2568219304, -0.1549107432, -0.0171328373, -0.229619652, -0.1297886223, 0.3187503517, -0.0052846461, -0.1703620255, 0.4355170131, 0.2650682628, -0.0749193057, 0.1128277481, -0.3943195343, -0.2745908797, -0.2206596434, 0.0984714404, 0.1341905445, 0.3184362948, 0.1112752408, 0.0730970204, -0.229518339, 0.0130746625, 0.4227364063, 0.3087519109, 0.2635642588, -0.2071787268, -0.1610284001, -0.1319819689, -0.3256998956, 0.0605155788, 0.0794873983, 0.2542586923, -0.1721877903, -0.3001223207, -0.0435295925, 0.0965467468, 0.1574681103, -0.1814943403, -0.0639550686, -0.0247374475, 0.3906508386, 0.3270967007, 0.0522633567, -0.161842823, -0.2002201378, 0.071443148, 0.4585857391, 0.0616976023, -0.0955259949, -0.1100735366, 0.1505530626, -0.0486153699, 0.1639255434, 0.0487008803, -0.37056759, -0.0599811487, 0.2054340094, 0.3227470815, 0.052623149, 0.1025724262, -0.0768849403, 0.1828714311, -0.0594555363, 0.2190010548, 0.209414348, 0.2535859644, 0.012986959, 0.2894706428, 0.0561968386, 0.2752044797, -0.0286609698, 0.1123469546, -0.3362622261, -0.262735188, -0.340264231, -0.1837976128, 0.4324143231, 0.3444294631, -0.0772977546, 0.3231344223, -0.0192842502, 0.2765198946, -0.456237942, 0.0612256676, 0.5761846304, 0.2805604637, -0.0516466759, -0.4501219094, 0.3232393265, -0.0313437581, -0.3236130178, 0.1104637906, -0.0259793587, -0.1611047983, 0.3644030094, -0.2648300231, 0.951022625, 0.2423054427, 0.008201506, 0.3130402863, -0.173998192, -0.1243527159, -0.2504861355, 0.2526919246, -0.1042086855, -0.191459313, 0.0208288394, 0.1980853081, 0.0850744247, 0.1811270416, -0.2923460901, 0.1995635629, 0.1562751234, 0.0417207666, 0.0513019823, 0.3053176105, -0.0641925633, -0.3330098391, -0.2340119481, 0.214042291, 0.311200887, 0.2673977911, 0.1255367249, -0.306558609, 0.3721928895, -0.1963455975, -0.2054722309, 0.0080648474, -0.3365672529, -0.3207315803, 0.0796759874, -0.0130238095, 0.2553381026, -0.1154480428, 0.0445996597, 0.2812634408, -0.329161644, 0.2192417681, 0.1994452327, 0.2194272429, -0.1163174883, 0.0972579494, 0.2526869178, -0.1964295208, -0.1088808402, -0.1224683747, -0.0061490932, -0.0228281021, -0.2100902796, -0.3211761713, 0.2191762775, -0.0547371767, -0.1131923348, 0.0215893164, -0.0250559542, -0.25873667, 0.2667091787, -0.1034332439, -0.1785889417, 0.3079039454, 0.1386587024, 0.0547303297, -0.0530377142, 0.1326521486, -0.0246443171, -0.1455215663, 0.4588234127, -0.0477141924, -0.1368057281, -0.424982667, -0.1419881433, -0.1305355132, -0.2357487828, 0.0206337739, 0.3226961493, -0.1785112768, 0.0207550451, 0.3639272153, 0.05455257, -0.0939057171, -0.4951735735, -0.0820667669, -0.360045284, 0.1227975115, -0.0940431282, 0.1705221236, -0.2317094952, 0.1089139506, 0.2377949208, -0.2144645154, -0.5269116759, -0.0518304594, -0.1113861278, 0.1302757114, 0.3553217649, -0.0166488886, 0.2866264284, 0.0309318118, 0.2496597916, 0.1236761138, -0.0668971315, -0.3082890213, -0.1621603072, 0.1268790215, -0.0150559871, 0.191043973, 0.1194255129, -0.0366754569, -0.1838849932, -0.1535974443, -0.0841957107, 0.1275743395, 0.0477233827, 0.2988545597, -0.1144267619, -0.0670490414, 0.2419737279, 0.008825209, -0.0329297893, 0.0520610251, -0.0530475043, -0.1723982841, -0.120896481, -0.0426867083, 0.11021211, 0.2141799927, 0.0376737081, -0.1096488759, 0.0401258096, 0.2081244141, -0.2706283927, 0.0135140903, 0.2717462778, 0.055733785, -0.0051783458, -0.174190253, 0.559961915, 0.3968873322, -0.3992977142, 0.0073146527, -0.0807244927, -0.3728665709, 0.2288182825, 0.2111458778, 0.1212179735, -0.0386295244, 0.0995749012, 0.0025094762, 0.0453581624, -0.3837015331, -0.0546838418, 0.2259235531, 0.3363764882, -0.2367759347, 0.333525151, -0.0607815422, 0.2792699933, 0.3574873507, -0.2178597897, -0.0046284893, 0.10780067, 0.2425635755, 0.1542596519, -0.0545582734, -0.1969199032, 0.0850024521, -0.148683399, 0.1246540546, 0.0572838224, 0.678580761, -0.0137871811, -0.0529027991, -0.1122221276, 0.2653152943, -0.1604336947, -0.3745939732, -0.0042133424, -0.1688820422, -0.1649833322, -0.370472908, 0.1588241011, 0.3021016121, 0.1790979207, -0.2620353103, 0.1577057987, 0.0560100898, -0.1538898647, -0.0353579558, 0.4824999273, -0.1229985133, 0.1688662916, -0.2648889124, -0.0652225316, 0.3092582822, 0.3263779879, 0.2944619358, 0.0400597826, -0.0685657039, 0.0673603266, -0.2029259056, -0.0162883047, -0.0464098416, 0.1906927377, 0.0026073495, 0.1829622388, 0.3152430058, 0.2054868639, -0.2930799127, 0.1965558827, -0.0772361681, -0.1899786443, -0.237291351, 0.6066159606, 0.1038569137, -0.0908603668, -0.4701751471, -0.2624887824, -0.5270690322, -0.1416864693, 0.2502837181, 0.0113991369, 0.0823147222, -0.0907114968, 0.1597608924, -0.2380426675, 0.2061832696, 0.4091454148, -0.1663634777, 0.0986281782, -0.1352061629, -0.6821528077, -0.0751205385, 0.0874523818, -0.1764212102, 0.0363895148, -0.1114389598, 0.0683205798, -0.0756637678, 0.1282817274, -0.0071195881, -0.1541023105, 0.090238221, -0.2957776785, 0.3367046118, 0.0948139951, 0.1797568947, 0.156449154, -0.1168275848, 0.067815654, 0.2875292897, 0.1561365426, -0.1268890053, 0.309951216, -0.262173146, -0.2858406603, 0.2807861269, -0.089870654, 0.0425641388, -0.4192927182, -0.0223614741, -0.0311517119, 0.0423895642, -0.1562076956, -0.1806211174, 0.0887405127, 0.5161409378, 0.165373072, 0.093583636, -0.2229882181, -0.086792618, 0.1988235563, -0.2163556069, -0.2455956787, 0.2825838029, -0.1072313711, -0.0700026378, -0.0116284275, 0.0306967795, -0.0645676479, -0.2192755342, -0.3891906142, -0.6209070683, 0.6795045733, -0.0640526712, -0.3472346961, -0.0958339721, 0.574752748, -0.1963783205, 0.0517627932, -0.8849998713, -0.088383235, 0.0831197947, 0.1204586551, 0.0646464378, 0.2274657488, -0.1078674793, -0.0205586106, -0.0831763819, -0.0366911553, 0.1474382728, 0.1054525897, -0.0535739958, -0.394910574 ]
https://github.com/huggingface/datasets/issues/3990
Improve AutomaticSpeechRecognition task template
> There is an open PR to do that: #3364. I just haven't had time to finish it... 😬 thanks...
**Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature.
20
Improve AutomaticSpeechRecognition task template **Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature. > There is an open PR to do that: #3364. I just haven't had time to finish it... 😬 thanks...
[ -0.1985286325, -0.3698556721, -0.0073386733, -0.0866735801, 0.2447382063, -0.2159384638, 0.2979326546, 0.1808808893, 0.0078332815, 0.2391605675, -0.063534148, 0.3760056198, -0.1943418533, 0.1996388584, -0.0680930093, -0.3678844273, 0.0123951416, 0.0835121423, 0.1972334236, -0.0613945611, -0.4474823773, 0.2391318083, -0.2420191765, 0.2670724392, -0.2338708043, -0.1206420213, 0.0985915214, -0.0171705652, -0.0720274299, -0.1547668278, -0.1945836693, 0.0741360933, 0.0546479188, 0.1826962233, -0.0001001094, -0.2664788067, 0.4109765887, -0.0275246054, -0.2662692666, -0.2329607457, -0.3487452269, -0.033199206, -0.1328298897, -0.1649189293, -0.2112875581, 0.0597886443, 0.1250052452, 0.247045815, 0.3937241733, 0.3907525837, 0.3285594583, 0.0859585404, -0.0569740906, 0.0101300254, 0.2440136671, 0.1931277066, -0.2446438521, -0.0147142056, 0.3480489552, -0.2965681553, 0.0903366655, 0.4420277178, -0.0002623124, -0.0859327465, 0.4022741318, -0.071385622, -0.0353133008, -0.2944988608, 0.0862401128, 0.1678396165, 0.3890969455, -0.2774453163, -0.0849948451, -0.2941460311, 0.1049715579, -0.4292164743, 0.1471355557, -0.1656888872, -0.20751445, 0.2592455149, 0.1120140478, -0.2904393673, -0.0916743502, -0.1942314059, 0.0942169204, -0.1587785184, -0.1192520261, -0.2706269622, 0.2165407985, -0.2973840237, -0.3076304197, 0.3112633824, 0.0116717089, 0.2474975139, -0.3633115888, -0.2954034507, 0.134695515, -0.0074775792, -0.0074664922, 0.2476812154, 0.2192491889, 0.215316087, -0.1571614444, 0.1507138163, -0.10815005, 0.364502281, 0.1023410857, -0.2965935469, 0.0394822024, 0.4495241344, -0.058803197, -0.1040710807, -0.0774523169, -0.1770950854, -0.0360009819, 0.1971165389, 0.2724347413, -0.2087537646, -0.1976281255, -0.1031545624, 0.1686525643, -0.0547245219, 0.1192945093, 0.3958243132, -0.1486204416, 0.0967196822, 0.0404957682, 0.1465546638, -0.0977090076, 0.0217965003, -0.011752353, 0.0685044304, -0.1528811902, 0.1971239597, 0.0255408157, 0.1855695546, 0.3558116257, -0.1036840901, 0.0442895927, -0.0667745024, -0.0740723908, 0.0930085257, -0.1383360475, -0.1194514036, -0.3019868731, 0.0472979397, -0.1722234488, 0.1285753697, -0.0529183596, -0.098669298, -0.341463536, -0.2588519752, 0.0151001066, 0.2184062153, 0.0186524242, -0.1340784729, -0.0184438303, 0.2870106399, -0.1247607768, -0.2390829474, 0.0237881895, -0.08404544, -0.2754172385, -0.0458498821, 0.0499948151, 0.052513279, 0.2950278521, -0.1456052065, -0.0490091853, -0.0185467582, 0.2433787137, 0.5046893954, 0.1004674584, 0.1293374598, -0.0498864651, 0.5266278982, 0.1167240888, -0.2932019532, -0.0782448351, 0.0753286406, -0.2324276268, 0.1590536833, 0.0829835981, -0.1742294878, 0.2050223053, -0.2828864753, 0.1646929085, 0.1833732128, 0.263155818, -0.0561136082, -0.368678391, -0.2511416078, -0.0231433082, 0.0427121148, -0.1495542377, 0.0109311659, -0.2162084281, 0.0002039621, 0.3790594041, -0.1823519021, -0.0276863445, 0.0969394296, 0.738415122, 0.1515267342, 0.0745896399, -0.3556456566, 0.1053330004, -0.0537498705, -0.2088026553, 0.1093988121, -0.2858523428, -0.2453212589, -0.1451409459, -0.1011306867, -0.2139237523, 0.0585681014, 0.2346295267, 0.0659658313, -0.0967670158, -0.2739696801, -0.0685322508, 0.2424169481, -0.3197073638, -0.0471550822, -0.0889232829, -0.0385143086, -0.0087400274, 0.0573654361, 0.2205357701, 0.2489829212, 0.1911454201, 0.1398904026, -0.0825702697, 0.3419342637, 0.1903299391, 0.4507395923, -0.2430140972, 0.2196800858, 0.0310940556, -0.2482567132, 0.1116814017, 0.1289874464, 0.059410803, -0.0034548522, -0.1383369863, 0.1205638051, 0.280211091, 0.3228560388, 0.297493577, 0.0363289602, 0.2007973343, -0.104187645, -0.3053768575, 0.12105003, 0.003892452, -0.2290400714, -0.035711959, -0.0224051662, -0.6677460074, 0.0697430521, 0.471734345, -0.0483211949, 0.1013839319, 0.2704772055, -0.1777556539, -0.2919402122, 0.0067133405, -0.0256479755, 0.0262218174, 0.3030278683, 0.027147308, 0.1038786545, -0.2543804944, -0.1188477799, 0.1946626455, 0.0657723397, -0.0833874568, 0.1162311435, 0.1658565402, -0.0409424677, -0.4511707425, -0.1193250865, -0.1570829898, 0.1405195892, -0.34331882, -0.3471833766, -0.1435740888, -0.4517397583, -0.3066166937, 0.0180251207, -0.001338676, 0.0059317569, 0.3464049697, 0.2364517301, -0.1694223136, 0.3171040416, 0.2990227044, 0.2671587169, -0.2349292934, -0.1839496642, -0.1752359569, 0.0110899592, -0.0320266411, 0.1906265318, 0.1431173831, 0.2316239625, 0.0560389496, -0.0921924189, -0.0180723388, -0.3539981544, -0.1363568306, -0.0362704471, -0.0175974201, 0.0764933079, 0.0892069563, 0.3457401693, -0.042496942, -0.3113031089, 0.1856470555, 0.0487096235, -0.2306371182, -0.1123886853, -0.0093963221, 0.1011773571, -0.1369580477, -0.3850286603, -0.1002762541, -0.3833267093, 0.56431669, -0.0205375347, 0.2064476311, 0.5951753855, -0.076658614, -0.0498672388, -0.2684526443, 0.2876592577, -0.1138971224, -0.1203057021, 0.2163342386, -0.0982685983, -0.2108783573, -0.2744379342, -0.017523732, 0.2259386927, -0.0085436525, 0.131760478, -0.460070014, -0.2345002145, 0.0505903363, -0.070842512, 0.0541579314, 0.3332332671, 0.2141459584, -0.177278325, 0.0325011015, -0.1643453091, 0.213089779, 0.5207009912, 0.5182084441, 0.2067043781, 0.1057055965, -0.2326441854, 0.7799147964, 0.2368331403, 0.0842716321, 0.2361732274, -0.1368095726, -0.0353559852, -0.2383628041, -0.1613828242, 0.3477587402, -0.0244286992, -0.1769070029, 0.4230223596, 0.2867509127, -0.0781351328, 0.1117746308, -0.4309728444, -0.2657087743, -0.2021255344, 0.1326308697, 0.1273467988, 0.3503132761, 0.1407761723, 0.0704311505, -0.2509845197, -0.0034809744, 0.4547136426, 0.3572293818, 0.2696708441, -0.1929924637, -0.1459673792, -0.1362230927, -0.318303287, 0.0642045215, 0.0722121522, 0.2811743021, -0.1544976979, -0.2840377986, -0.00958155, 0.0963505954, 0.1473423988, -0.1904620379, -0.0804828182, -0.0257801581, 0.3978921771, 0.3759914637, 0.0237556975, -0.1446185708, -0.1920870095, 0.0738903061, 0.5030252934, 0.1127437651, -0.1382050067, -0.1177381724, 0.1488134563, -0.0588543862, 0.1784030795, 0.0534564294, -0.3692819774, -0.0317011178, 0.2163333297, 0.3191635013, 0.0504530072, 0.1163297668, -0.0664475262, 0.1693213731, -0.0410830975, 0.211263448, 0.2044861913, 0.239368856, 0.002194579, 0.282314986, 0.0288147684, 0.2818516791, -0.0515364371, 0.0789120793, -0.3654833436, -0.2767715752, -0.369776547, -0.1915741712, 0.4453746378, 0.3622479737, -0.1023649871, 0.3388538957, -0.0258815084, 0.2862787545, -0.472550869, 0.0256856605, 0.6024845243, 0.2914624512, -0.0682433173, -0.4844225943, 0.3317486346, -0.0220317263, -0.3329302669, 0.096138835, -0.0302541889, -0.154024601, 0.3636519909, -0.2321773022, 0.9927347302, 0.2438339591, -0.0059142062, 0.3122611046, -0.1837292612, -0.1163451299, -0.2617468536, 0.2532976866, -0.1144950017, -0.2181066275, 0.0028182385, 0.1945431083, 0.1289617717, 0.1689001322, -0.2906101048, 0.2275197506, 0.1618906856, 0.0623469874, 0.0632373244, 0.3062918484, -0.0482926928, -0.3177350461, -0.2290409207, 0.1890378445, 0.3020040989, 0.2828054428, 0.1083437279, -0.3183739185, 0.3805716634, -0.2056630105, -0.232491523, -0.0035192962, -0.3288257122, -0.3310799301, 0.0949989557, -0.0310546886, 0.2904166877, -0.1313491613, 0.0472176708, 0.2686816752, -0.3325705528, 0.2216060162, 0.2121269256, 0.2070572525, -0.0979372486, 0.091007486, 0.2540324628, -0.2019134015, -0.0875839517, -0.1161340475, -0.0159219466, -0.0448774844, -0.2349705547, -0.3539029658, 0.2494083643, -0.0320227221, -0.1540793329, 0.0270114839, -0.0099856295, -0.2504517138, 0.2463803142, -0.0918620601, -0.1880445033, 0.3370869458, 0.1190415099, 0.0463878065, -0.0365544707, 0.1091673747, -0.0547841787, -0.1685524136, 0.4616138637, -0.0364033841, -0.136320591, -0.4147966504, -0.1223306507, -0.1441699117, -0.2648406029, 0.0060392963, 0.3237267733, -0.1414819509, 0.0016023151, 0.3818026483, 0.0873116478, -0.0906611308, -0.4935703278, -0.1075907648, -0.3705488145, 0.1289725751, -0.1097219065, 0.1507438272, -0.2582407296, 0.10092213, 0.2712199986, -0.2259488404, -0.5061924458, -0.0171248913, -0.0916600823, 0.1222657934, 0.358153075, 0.0106698712, 0.2689906657, 0.0152083533, 0.2184548229, 0.1108255833, -0.0533971563, -0.2781357765, -0.1692768186, 0.1401914358, -0.020006638, 0.2155621499, 0.1147599965, -0.0552776866, -0.1827296615, -0.1453284025, -0.1253872365, 0.127184853, 0.049021259, 0.3115369976, -0.1266894788, -0.0731747076, 0.2271498293, 0.0370992273, -0.0305620395, 0.0627969131, -0.0493236482, -0.1581715643, -0.12243779, -0.0443690456, 0.0896844491, 0.2188540697, 0.0097141499, -0.1153533608, 0.0475503393, 0.2150063813, -0.249831453, -0.014327921, 0.2400748134, 0.0686989874, -0.0073765465, -0.1792326868, 0.589915812, 0.360047251, -0.3910857737, 0.0148250014, -0.095811829, -0.3630197346, 0.1644002348, 0.2148073316, 0.1550087035, -0.0379997119, 0.088700667, -0.0004871596, 0.0618241094, -0.3954489231, -0.0692479834, 0.2289712131, 0.3715882599, -0.2262910455, 0.3352718055, -0.0577690005, 0.2508889139, 0.3446203172, -0.2231149524, -0.0374710709, 0.1185663342, 0.2689218521, 0.1499336809, -0.0494223572, -0.2127162367, 0.0983218402, -0.1564517468, 0.1443572044, 0.0470197313, 0.7137876749, 0.0155146802, -0.0679155216, -0.1023573652, 0.2788537741, -0.124692902, -0.394318819, -0.006865772, -0.1700651795, -0.1891016513, -0.3774614632, 0.1370477825, 0.3043498397, 0.2103347331, -0.2592191994, 0.1448313147, 0.0640063062, -0.1695278883, -0.0261181463, 0.4720171094, -0.1353824884, 0.1614029258, -0.2852058709, -0.0558420196, 0.321826607, 0.333232373, 0.2890206873, 0.0539638065, -0.0532660484, 0.0602476001, -0.1893785298, -0.0031625533, 0.0184614565, 0.1875752211, 0.0068261484, 0.1693071276, 0.2948125601, 0.177939266, -0.2668273747, 0.2117775828, -0.0879820213, -0.1693627089, -0.2569847107, 0.6530593634, 0.1313963234, -0.1096490696, -0.4647374451, -0.2598186433, -0.5370673537, -0.1335169226, 0.2492081374, 0.0350649357, 0.0750026405, -0.067923665, 0.1462960094, -0.2502496839, 0.1997833401, 0.4241502583, -0.1932889521, 0.092969276, -0.1403012723, -0.700766325, -0.10222058, 0.104504548, -0.1649361104, 0.0722302794, -0.1331221759, 0.0433202572, -0.0821516216, 0.1620552242, 0.0069408468, -0.1602772921, 0.1286955774, -0.2916398644, 0.3635221124, 0.1216558143, 0.2182591408, 0.1420679986, -0.1031239405, 0.0718639195, 0.3293167651, 0.1138516217, -0.1488662213, 0.3162774444, -0.255320847, -0.2821470201, 0.2975549996, -0.0892386138, 0.0109472554, -0.3971534371, -0.0146063762, -0.031392131, 0.0435550064, -0.1423735321, -0.1437099725, 0.0893858969, 0.5023289323, 0.1640085727, 0.0815668926, -0.2406536043, -0.0994086936, 0.1701181978, -0.2571007907, -0.2871444225, 0.273710072, -0.1125706658, -0.0634310916, -0.0070491759, 0.0166146532, -0.0654975325, -0.2180030346, -0.4200689197, -0.6038335562, 0.6975604296, -0.0665442273, -0.3603758812, -0.084319599, 0.577439487, -0.2024061978, 0.0672179535, -0.9164294004, -0.1275000125, 0.0775491595, 0.1387345344, 0.0779777765, 0.2248134613, -0.1127805188, -0.0068520373, -0.0833477452, -0.0415546261, 0.1211527213, 0.1150568426, -0.0665624887, -0.3992733955 ]
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi ! I didn't managed to reproduce the issue. When you kill the process, is there any stacktrace that shows at what point in the code python is hanging ?
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No
30
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No Hi ! I didn't managed to reproduce the issue. When you kill the process, is there any stacktrace that shows at what point in the code python is hanging ?
[ -0.130522728, -0.0170790944, 0.0759793818, 0.1971009821, 0.2393505275, 0.1249808967, 0.3519514203, 0.0293050352, 0.3356306851, -0.1589412391, -0.2429889143, 0.2090013325, -0.1376602203, -0.185026139, 0.0645398125, 0.1283339411, -0.0886049792, 0.0668050274, -0.5255346298, 0.1019569114, -0.1630275548, 0.3697199225, 0.1454888731, -0.0361488238, -0.3487506807, 0.1171323359, 0.070938006, 0.3248759508, 0.284840554, -0.4033541381, 0.5639554262, 0.3767759204, -0.0151353646, 0.8255628347, -0.0001214048, 0.1954479963, 0.2053899914, 0.0017627405, -0.4395931363, -0.2337888032, -0.1346473992, 0.2202594876, 0.1387147903, 0.1232878715, -0.1384272873, 0.1595128775, -0.2997704148, -0.5241687298, 0.3007486165, -0.0116882557, 0.0657875091, 0.0115922932, -0.4470211565, -0.0171903986, 0.0138579216, 0.322488904, -0.0880425498, 0.1964546293, -0.0470876135, -0.2627892196, -0.2986686528, 0.1067385003, 0.053715352, 0.1175466999, 0.5483435988, -0.2097979188, -0.2182810903, -0.1128420979, 0.3412290215, 0.3434644639, 0.4595815241, -0.2446324974, -0.3263520598, -0.2560603023, -0.1411262453, -0.1492008418, 0.4811568856, 0.0840476379, -0.1207475364, 0.1394042969, -0.1968068928, -0.1649780571, -0.1814966649, 0.028249599, -0.1576107293, -0.1277596802, -0.2168082446, 0.1148059741, 0.0870400891, -0.0220876541, 0.0778257698, -0.2115033865, -0.118000187, 0.1512606442, -0.3537856042, 0.2573580146, 0.079353936, 0.2177928537, 0.1493039578, 0.0202696193, 0.0680986419, 0.2825655341, -0.190801844, -0.1802584082, 0.243017301, 0.3162928224, -0.115762718, -0.0316479392, 0.220010519, 0.394117713, -0.2198415548, 0.1218628436, 0.0256527606, -0.1532414258, 0.0065414296, -0.2546769977, 0.0881280899, -0.2044024169, 0.1312608421, 0.0764049888, 0.2867887914, 0.1787468642, 0.184279412, 0.6079396605, -0.1440736651, 0.1542140543, -0.0858695507, -0.0179087706, -0.2161131501, 0.2433121651, -0.0759999007, -0.2126174569, -0.2573897839, 0.1553670764, 0.3877046108, -0.1346036643, 0.10198728, 0.1465541273, 0.2816565931, -0.0559381582, -0.0547530428, 0.0743585378, 0.2832054794, 0.3101753592, -0.3951537609, 0.4864345193, 0.1892682314, 0.0705768913, -0.239471525, 0.0016309682, -0.0389287993, -0.3527887166, 0.1786186248, 0.0245088506, -0.2370638549, 0.1931072474, -0.1684761196, -0.2208417952, 0.0402860679, 0.0732326508, 0.2099790126, -0.1485813707, -0.1769754887, -0.1225774288, 0.2169214636, 0.9498236179, -0.1216748878, -0.1263211071, -0.059963949, -0.0446085408, -0.2922510803, 0.2930454314, -0.2115429193, 0.0704403967, -0.479847312, -0.2935522795, -0.0658328235, -0.246978581, -0.5121554136, 0.3591552079, -0.1407612562, 0.4206980765, 0.0088790059, 0.0423634276, -0.1094540954, -0.1049225554, 0.2273187935, 0.3918736279, 0.2328348458, -0.0154332416, -0.1703714281, -0.2187569737, -0.1398877501, 0.2466062009, -0.1207457706, 0.2442850322, -0.0916582346, 0.216766417, 0.1755948365, -0.0444952287, -0.016649304, 0.6591695547, 0.0903282836, 0.3805585206, 0.146976918, 0.011421877, -0.8068041801, 0.3693328798, -0.2015694678, -0.1619613171, -0.2819778025, -0.0262343027, -0.2726868093, 0.1480977088, -0.4376360178, -0.2487781942, -0.0590844899, 0.06970945, 0.099471949, -0.0563594103, -0.0980067775, 0.7305580378, 0.1339222342, 0.1444107592, -0.3898896575, 0.1285340488, 0.2008386552, 0.0798988864, -0.1271092892, 0.3195002377, 0.075109981, -0.50508672, -0.2542537451, 0.3948641419, 0.0508921109, 0.4864186645, -0.1177679226, 0.1073267683, 0.1997962594, -0.0920786113, 0.14431189, 0.055089809, -0.0256245974, -0.1266596913, -0.2523876131, 0.1093662232, -0.5087054372, 0.4081338942, -0.0124582006, -0.2308521569, 0.1800682545, -0.1230824217, -0.0276809689, -0.1276398301, 0.3353101909, -0.0318333693, 0.7870125771, 0.2162119895, 0.0875559673, 0.0924548134, 0.0345668793, 0.0120298658, -0.0901118591, 0.136647135, -0.1967533231, -0.0841770321, -0.0221936721, 0.2342622131, 0.3251563907, -0.0218538158, -0.0075655188, 0.0799726173, -0.0186118856, -0.0664593503, 0.0378574878, -0.1616067588, -0.0185366347, 0.2964583039, 0.2262775302, -0.0050976998, -0.2255754769, -0.209583506, -0.1205943227, 0.0264139455, -0.318261534, 0.2000205815, -0.3299236298, 0.1220144331, -0.0595960058, -0.1875286549, -0.2338730395, -0.1663554758, -0.3243647516, 0.3181394041, -0.0120979697, 0.083132036, 0.0273919571, 0.0839139819, 0.0779852718, -0.6237425208, -0.4418584406, -0.1814076602, -0.1416037828, -0.2348458618, 0.1944314539, -0.1888299435, -0.1600967646, 0.0085300375, -0.2028989345, -0.3153501451, -0.1854240447, 0.1036140397, 0.1077692658, 0.4596062005, 0.1736198813, 0.3005418777, 0.302000016, 0.0883217305, 0.2483822107, -0.1640896052, 0.1643961221, 0.2783429325, -0.0445599221, 0.2051132023, -0.2253153175, -0.0944296792, -0.0427980646, -0.4178713858, 0.2366302758, -0.2104036659, -0.0122578889, 0.3359170258, 0.0977731347, 0.0725862011, -0.2288158685, -0.102183409, -0.2113218158, -0.3302199244, 0.3547581434, -0.1011323482, -0.1773374677, -0.2069159299, -0.2311806232, 0.1812753379, 0.0605772473, -0.644415617, 0.147026211, -0.4078543782, 0.347458154, -0.2887936234, -0.1917368174, 0.2688193321, 0.1137102619, 0.0887076706, -0.1081383303, -0.2930825353, 0.0900283456, -0.0321721248, 0.066159673, 0.0035948355, 0.2761033177, -0.0940752625, 0.6626378894, 0.0787137896, 0.0119002853, 0.3889986277, 0.0515651256, 0.5719014406, -0.3301735222, -0.2870436311, -0.1880918741, -0.0738214552, -0.2350581139, 0.0991533622, 0.1411219537, 0.1140788049, 0.0905547738, -0.0679584816, 0.1330858022, -0.3578876257, 0.0481069274, -0.1934202611, 0.1566178501, 0.2233896703, 0.0616800413, -0.224466145, -0.1251525134, 0.2731549144, 0.3852528036, 0.0058027175, 0.1834826469, -0.1512002796, 0.2285096347, -0.2176880985, -0.0467651673, -0.1773908883, 0.1736545116, -0.2019876987, 0.1512930542, -0.0834329575, -0.1656292379, 0.7700787783, 0.0933132768, 0.4446451366, 0.1316230893, -0.1926817447, -0.5198280215, -0.0459324196, 0.3214998543, 0.1346313208, 0.1667930335, 0.4837483764, -0.1229398176, -0.393386364, -0.1347491294, 0.3605484366, -0.1729432791, -0.2888604701, -0.1269897819, -0.1851267517, -0.0499544516, -0.0856963173, -0.2328862846, -0.1665305644, 0.1297017783, -0.1383282095, -0.0121845221, -0.0495053157, 0.0595738068, 0.1700799018, 0.2295363843, -0.1422383934, 0.2899217606, 0.2011722922, -0.2386822253, 0.1391369402, 0.5795517564, -0.202761516, 0.0179725159, 0.1931151152, 0.0095008174, -0.202071622, 0.4298546612, -0.0538150407, 0.0120301936, -0.0395988896, 0.3624822199, -0.3489117622, 0.202689141, -0.0149296643, 0.1641926467, -0.0813980773, -0.2914859653, 0.5887513161, -0.0003851267, -0.1984991878, 0.3374209404, 0.297835052, -0.2333904952, 0.4287292063, -0.1433905363, 0.5357992053, -0.0847599357, 0.278119266, 0.1580084264, -0.3518630564, 0.2277251184, -0.2005302459, 0.0006390069, -0.2629264593, -0.0433592275, 0.0171557553, -0.3445847034, 0.1265471876, 0.2057866454, -0.0516538136, 0.3397003412, -0.2776758671, 0.1573855579, -0.0570064746, 0.1723962426, -0.1792372614, -0.4409550726, -0.2281834483, 0.1079368368, -0.2076847702, 0.5127373338, -0.0649853647, 0.0654219016, -0.0231813565, 0.1333324909, -0.1916766763, 0.1424476653, -0.2056075335, -0.0190160107, 0.0640571639, -0.1677262634, 0.3053973913, 0.1211150289, 0.2497211546, 0.1831995249, -0.1654814929, 0.2377769649, -0.1761317104, 0.1477912962, -0.085671857, 0.0466758199, 0.0116824694, 0.1783214211, 0.0434356742, -0.3020640016, -0.3680848181, -0.0632969812, 0.0780719891, 0.01135772, -0.0828315094, -0.2589148581, -0.2332768291, -0.0130080804, 0.2325272262, -0.0385552496, 0.0342833474, 0.0729516745, 0.0072338772, 0.1671505719, -0.2390594929, -0.4568992853, -0.1547293514, 0.423396498, -0.2755562365, -0.1281432211, 0.704708159, 0.1380664557, 0.0375084579, -0.1465627849, -0.0175182186, 0.1783906221, -0.6224486232, 0.1242875531, -0.0254998449, -0.2103298306, 0.0760467798, -0.1262669116, 0.1971791536, -0.0928573683, -0.0375668406, -0.1793452054, -0.3700248599, -0.068798624, -0.276761353, 0.1873636097, 0.1403643936, -0.136164397, 0.0680486411, 0.2571337819, -0.158761546, 0.2239903957, -0.2043819129, -0.0914194658, 0.1882014871, -0.1860173047, 0.2467832267, -0.3107422888, -0.0192456469, -0.0043713027, -0.3588531613, -0.1199375913, -0.3398401737, 0.1446139663, -0.1449093819, 0.1470783204, -0.1322007775, -0.1819549054, 0.234961316, -0.2244151533, 0.4771927893, 0.303721875, -0.0619702451, -0.0321537405, 0.0145737771, 0.0624913909, -0.2256607115, 0.0600852706, 0.013331959, -0.0653804094, 0.2858358026, 0.0237374678, -0.3684057891, -0.0231436752, -0.3023254573, 0.0584191196, 0.0475697853, 0.0088712685, 0.3669114709, -0.3021146953, 0.101570867, 0.1210650355, 0.1265238672, 0.2139824331, -0.099642612, -0.3137446344, 0.1251666248, 0.0648529753, 0.0882330239, -0.0954809859, 0.1210107505, -0.0623795092, 0.0240279511, 0.2588594258, 0.3017421961, -0.1690633297, 0.3920370936, 0.2243453115, 0.7210767269, -0.1238615364, 0.1312213689, 0.2824809849, -0.2342367023, 0.0856005326, 0.4194848537, 0.3362240791, 0.0754098892, 0.5063925385, 0.249141708, 0.1157296225, -0.2259455919, 0.3680346012, 0.0743034258, -0.6350303888, -0.1154926941, 0.0932227746, 0.036345426, 0.3147947192, -0.1151629537, 0.3819343448, -0.5003913045, -0.2156365365, -0.0217393618, 0.0231083073, -0.0731592774, -0.3077051938, 0.4727832675, -0.0576733351, 0.0609682389, 0.084742941, -0.0682602003, -0.2254702002, 0.2648173273, 0.0816714615, 0.0855787992, -0.1813575476, 0.0145048983, 0.0783919245, -0.0337121114, 0.0262601394, 0.345577538, 0.1560439467, -0.2400464416, 0.079890132, 0.0502448305, 0.1954464167, 0.1996315122, -0.1803606451, 0.2526494563, 0.0550399497, -0.0090592578, -0.0356782749, 0.0421368852, -0.2091645896, -0.0002515553, 0.1857786477, 0.0856420249, -0.1097080037, -0.0485152528, -0.1228455901, 0.5743908286, -0.3306770623, 0.4036708474, 0.0631857365, 0.0070620831, 0.0763952136, 0.0472050235, -0.3255839348, 0.0682408437, 0.4605392814, -0.0840826184, -0.0110177463, -0.0459627919, 0.0215771105, 0.1860045493, 0.6756531, 0.1809038967, 0.068885684, -0.1753340065, -0.0922475755, -0.7202568054, 0.0048393924, -0.1538161486, 0.0682043582, 0.1833008677, 0.0254980158, -0.0335257612, -0.1361493468, 0.1343495697, 0.036406599, 0.0856267065, 0.0804948211, -0.2730597854, 0.0851766393, -0.1839798242, 0.167298466, -0.0666692704, -0.3812740445, 0.0055370205, 0.4040569365, -0.033012554, 0.0836495012, 0.0168267116, 0.060325101, -0.0656191707, 0.2211055011, 0.0045557744, -0.3314672112, 0.2668884695, -0.2987352312, -0.4420069456, -0.1787157506, 0.2237335593, -0.3295326829, 0.0261545759, 0.3159604967, -0.3746153116, -0.359002769, -0.4697314799, 0.0518303812, 0.1891973615, 0.1528866738, 0.0489632152, 0.2164821327, -0.184308961, 0.3807107508, 0.2426661402, 0.5996031165, 0.1425165087, 0.3425970376, -0.1881644875, -0.1459379345, 0.5672605038, -0.333176434, -0.5053147078, 0.2855778337, 0.2199482024, -0.0973545015, -0.450909704, -0.2351054698, 0.123703137, 0.0580434278, -0.0460868515, -0.138294965, 0.0322722942, -0.3811503947, 0.0314328074, -0.1813528985, 0.3775717914, 0.2685392201, -0.0065706805, -0.0406485908, 0.0667337477 ]
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi @lhoestq , I've traced the issue back to file locking. It's similar to this thread, using Lustre filesystem as well. https://github.com/huggingface/datasets/issues/329 . In this case the user was able to modify and add -o flock option while mounting and it solved the problem. However in other cases such as mine, we do not have the permissions to modify the commands while mounting. I'm still trying to figure out a workaround. Any ideas how can we use a mounted Lustre filesystem with no flock option?
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No
85
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No Hi @lhoestq , I've traced the issue back to file locking. It's similar to this thread, using Lustre filesystem as well. https://github.com/huggingface/datasets/issues/329 . In this case the user was able to modify and add -o flock option while mounting and it solved the problem. However in other cases such as mine, we do not have the permissions to modify the commands while mounting. I'm still trying to figure out a workaround. Any ideas how can we use a mounted Lustre filesystem with no flock option?
[ -0.130522728, -0.0170790944, 0.0759793818, 0.1971009821, 0.2393505275, 0.1249808967, 0.3519514203, 0.0293050352, 0.3356306851, -0.1589412391, -0.2429889143, 0.2090013325, -0.1376602203, -0.185026139, 0.0645398125, 0.1283339411, -0.0886049792, 0.0668050274, -0.5255346298, 0.1019569114, -0.1630275548, 0.3697199225, 0.1454888731, -0.0361488238, -0.3487506807, 0.1171323359, 0.070938006, 0.3248759508, 0.284840554, -0.4033541381, 0.5639554262, 0.3767759204, -0.0151353646, 0.8255628347, -0.0001214048, 0.1954479963, 0.2053899914, 0.0017627405, -0.4395931363, -0.2337888032, -0.1346473992, 0.2202594876, 0.1387147903, 0.1232878715, -0.1384272873, 0.1595128775, -0.2997704148, -0.5241687298, 0.3007486165, -0.0116882557, 0.0657875091, 0.0115922932, -0.4470211565, -0.0171903986, 0.0138579216, 0.322488904, -0.0880425498, 0.1964546293, -0.0470876135, -0.2627892196, -0.2986686528, 0.1067385003, 0.053715352, 0.1175466999, 0.5483435988, -0.2097979188, -0.2182810903, -0.1128420979, 0.3412290215, 0.3434644639, 0.4595815241, -0.2446324974, -0.3263520598, -0.2560603023, -0.1411262453, -0.1492008418, 0.4811568856, 0.0840476379, -0.1207475364, 0.1394042969, -0.1968068928, -0.1649780571, -0.1814966649, 0.028249599, -0.1576107293, -0.1277596802, -0.2168082446, 0.1148059741, 0.0870400891, -0.0220876541, 0.0778257698, -0.2115033865, -0.118000187, 0.1512606442, -0.3537856042, 0.2573580146, 0.079353936, 0.2177928537, 0.1493039578, 0.0202696193, 0.0680986419, 0.2825655341, -0.190801844, -0.1802584082, 0.243017301, 0.3162928224, -0.115762718, -0.0316479392, 0.220010519, 0.394117713, -0.2198415548, 0.1218628436, 0.0256527606, -0.1532414258, 0.0065414296, -0.2546769977, 0.0881280899, -0.2044024169, 0.1312608421, 0.0764049888, 0.2867887914, 0.1787468642, 0.184279412, 0.6079396605, -0.1440736651, 0.1542140543, -0.0858695507, -0.0179087706, -0.2161131501, 0.2433121651, -0.0759999007, -0.2126174569, -0.2573897839, 0.1553670764, 0.3877046108, -0.1346036643, 0.10198728, 0.1465541273, 0.2816565931, -0.0559381582, -0.0547530428, 0.0743585378, 0.2832054794, 0.3101753592, -0.3951537609, 0.4864345193, 0.1892682314, 0.0705768913, -0.239471525, 0.0016309682, -0.0389287993, -0.3527887166, 0.1786186248, 0.0245088506, -0.2370638549, 0.1931072474, -0.1684761196, -0.2208417952, 0.0402860679, 0.0732326508, 0.2099790126, -0.1485813707, -0.1769754887, -0.1225774288, 0.2169214636, 0.9498236179, -0.1216748878, -0.1263211071, -0.059963949, -0.0446085408, -0.2922510803, 0.2930454314, -0.2115429193, 0.0704403967, -0.479847312, -0.2935522795, -0.0658328235, -0.246978581, -0.5121554136, 0.3591552079, -0.1407612562, 0.4206980765, 0.0088790059, 0.0423634276, -0.1094540954, -0.1049225554, 0.2273187935, 0.3918736279, 0.2328348458, -0.0154332416, -0.1703714281, -0.2187569737, -0.1398877501, 0.2466062009, -0.1207457706, 0.2442850322, -0.0916582346, 0.216766417, 0.1755948365, -0.0444952287, -0.016649304, 0.6591695547, 0.0903282836, 0.3805585206, 0.146976918, 0.011421877, -0.8068041801, 0.3693328798, -0.2015694678, -0.1619613171, -0.2819778025, -0.0262343027, -0.2726868093, 0.1480977088, -0.4376360178, -0.2487781942, -0.0590844899, 0.06970945, 0.099471949, -0.0563594103, -0.0980067775, 0.7305580378, 0.1339222342, 0.1444107592, -0.3898896575, 0.1285340488, 0.2008386552, 0.0798988864, -0.1271092892, 0.3195002377, 0.075109981, -0.50508672, -0.2542537451, 0.3948641419, 0.0508921109, 0.4864186645, -0.1177679226, 0.1073267683, 0.1997962594, -0.0920786113, 0.14431189, 0.055089809, -0.0256245974, -0.1266596913, -0.2523876131, 0.1093662232, -0.5087054372, 0.4081338942, -0.0124582006, -0.2308521569, 0.1800682545, -0.1230824217, -0.0276809689, -0.1276398301, 0.3353101909, -0.0318333693, 0.7870125771, 0.2162119895, 0.0875559673, 0.0924548134, 0.0345668793, 0.0120298658, -0.0901118591, 0.136647135, -0.1967533231, -0.0841770321, -0.0221936721, 0.2342622131, 0.3251563907, -0.0218538158, -0.0075655188, 0.0799726173, -0.0186118856, -0.0664593503, 0.0378574878, -0.1616067588, -0.0185366347, 0.2964583039, 0.2262775302, -0.0050976998, -0.2255754769, -0.209583506, -0.1205943227, 0.0264139455, -0.318261534, 0.2000205815, -0.3299236298, 0.1220144331, -0.0595960058, -0.1875286549, -0.2338730395, -0.1663554758, -0.3243647516, 0.3181394041, -0.0120979697, 0.083132036, 0.0273919571, 0.0839139819, 0.0779852718, -0.6237425208, -0.4418584406, -0.1814076602, -0.1416037828, -0.2348458618, 0.1944314539, -0.1888299435, -0.1600967646, 0.0085300375, -0.2028989345, -0.3153501451, -0.1854240447, 0.1036140397, 0.1077692658, 0.4596062005, 0.1736198813, 0.3005418777, 0.302000016, 0.0883217305, 0.2483822107, -0.1640896052, 0.1643961221, 0.2783429325, -0.0445599221, 0.2051132023, -0.2253153175, -0.0944296792, -0.0427980646, -0.4178713858, 0.2366302758, -0.2104036659, -0.0122578889, 0.3359170258, 0.0977731347, 0.0725862011, -0.2288158685, -0.102183409, -0.2113218158, -0.3302199244, 0.3547581434, -0.1011323482, -0.1773374677, -0.2069159299, -0.2311806232, 0.1812753379, 0.0605772473, -0.644415617, 0.147026211, -0.4078543782, 0.347458154, -0.2887936234, -0.1917368174, 0.2688193321, 0.1137102619, 0.0887076706, -0.1081383303, -0.2930825353, 0.0900283456, -0.0321721248, 0.066159673, 0.0035948355, 0.2761033177, -0.0940752625, 0.6626378894, 0.0787137896, 0.0119002853, 0.3889986277, 0.0515651256, 0.5719014406, -0.3301735222, -0.2870436311, -0.1880918741, -0.0738214552, -0.2350581139, 0.0991533622, 0.1411219537, 0.1140788049, 0.0905547738, -0.0679584816, 0.1330858022, -0.3578876257, 0.0481069274, -0.1934202611, 0.1566178501, 0.2233896703, 0.0616800413, -0.224466145, -0.1251525134, 0.2731549144, 0.3852528036, 0.0058027175, 0.1834826469, -0.1512002796, 0.2285096347, -0.2176880985, -0.0467651673, -0.1773908883, 0.1736545116, -0.2019876987, 0.1512930542, -0.0834329575, -0.1656292379, 0.7700787783, 0.0933132768, 0.4446451366, 0.1316230893, -0.1926817447, -0.5198280215, -0.0459324196, 0.3214998543, 0.1346313208, 0.1667930335, 0.4837483764, -0.1229398176, -0.393386364, -0.1347491294, 0.3605484366, -0.1729432791, -0.2888604701, -0.1269897819, -0.1851267517, -0.0499544516, -0.0856963173, -0.2328862846, -0.1665305644, 0.1297017783, -0.1383282095, -0.0121845221, -0.0495053157, 0.0595738068, 0.1700799018, 0.2295363843, -0.1422383934, 0.2899217606, 0.2011722922, -0.2386822253, 0.1391369402, 0.5795517564, -0.202761516, 0.0179725159, 0.1931151152, 0.0095008174, -0.202071622, 0.4298546612, -0.0538150407, 0.0120301936, -0.0395988896, 0.3624822199, -0.3489117622, 0.202689141, -0.0149296643, 0.1641926467, -0.0813980773, -0.2914859653, 0.5887513161, -0.0003851267, -0.1984991878, 0.3374209404, 0.297835052, -0.2333904952, 0.4287292063, -0.1433905363, 0.5357992053, -0.0847599357, 0.278119266, 0.1580084264, -0.3518630564, 0.2277251184, -0.2005302459, 0.0006390069, -0.2629264593, -0.0433592275, 0.0171557553, -0.3445847034, 0.1265471876, 0.2057866454, -0.0516538136, 0.3397003412, -0.2776758671, 0.1573855579, -0.0570064746, 0.1723962426, -0.1792372614, -0.4409550726, -0.2281834483, 0.1079368368, -0.2076847702, 0.5127373338, -0.0649853647, 0.0654219016, -0.0231813565, 0.1333324909, -0.1916766763, 0.1424476653, -0.2056075335, -0.0190160107, 0.0640571639, -0.1677262634, 0.3053973913, 0.1211150289, 0.2497211546, 0.1831995249, -0.1654814929, 0.2377769649, -0.1761317104, 0.1477912962, -0.085671857, 0.0466758199, 0.0116824694, 0.1783214211, 0.0434356742, -0.3020640016, -0.3680848181, -0.0632969812, 0.0780719891, 0.01135772, -0.0828315094, -0.2589148581, -0.2332768291, -0.0130080804, 0.2325272262, -0.0385552496, 0.0342833474, 0.0729516745, 0.0072338772, 0.1671505719, -0.2390594929, -0.4568992853, -0.1547293514, 0.423396498, -0.2755562365, -0.1281432211, 0.704708159, 0.1380664557, 0.0375084579, -0.1465627849, -0.0175182186, 0.1783906221, -0.6224486232, 0.1242875531, -0.0254998449, -0.2103298306, 0.0760467798, -0.1262669116, 0.1971791536, -0.0928573683, -0.0375668406, -0.1793452054, -0.3700248599, -0.068798624, -0.276761353, 0.1873636097, 0.1403643936, -0.136164397, 0.0680486411, 0.2571337819, -0.158761546, 0.2239903957, -0.2043819129, -0.0914194658, 0.1882014871, -0.1860173047, 0.2467832267, -0.3107422888, -0.0192456469, -0.0043713027, -0.3588531613, -0.1199375913, -0.3398401737, 0.1446139663, -0.1449093819, 0.1470783204, -0.1322007775, -0.1819549054, 0.234961316, -0.2244151533, 0.4771927893, 0.303721875, -0.0619702451, -0.0321537405, 0.0145737771, 0.0624913909, -0.2256607115, 0.0600852706, 0.013331959, -0.0653804094, 0.2858358026, 0.0237374678, -0.3684057891, -0.0231436752, -0.3023254573, 0.0584191196, 0.0475697853, 0.0088712685, 0.3669114709, -0.3021146953, 0.101570867, 0.1210650355, 0.1265238672, 0.2139824331, -0.099642612, -0.3137446344, 0.1251666248, 0.0648529753, 0.0882330239, -0.0954809859, 0.1210107505, -0.0623795092, 0.0240279511, 0.2588594258, 0.3017421961, -0.1690633297, 0.3920370936, 0.2243453115, 0.7210767269, -0.1238615364, 0.1312213689, 0.2824809849, -0.2342367023, 0.0856005326, 0.4194848537, 0.3362240791, 0.0754098892, 0.5063925385, 0.249141708, 0.1157296225, -0.2259455919, 0.3680346012, 0.0743034258, -0.6350303888, -0.1154926941, 0.0932227746, 0.036345426, 0.3147947192, -0.1151629537, 0.3819343448, -0.5003913045, -0.2156365365, -0.0217393618, 0.0231083073, -0.0731592774, -0.3077051938, 0.4727832675, -0.0576733351, 0.0609682389, 0.084742941, -0.0682602003, -0.2254702002, 0.2648173273, 0.0816714615, 0.0855787992, -0.1813575476, 0.0145048983, 0.0783919245, -0.0337121114, 0.0262601394, 0.345577538, 0.1560439467, -0.2400464416, 0.079890132, 0.0502448305, 0.1954464167, 0.1996315122, -0.1803606451, 0.2526494563, 0.0550399497, -0.0090592578, -0.0356782749, 0.0421368852, -0.2091645896, -0.0002515553, 0.1857786477, 0.0856420249, -0.1097080037, -0.0485152528, -0.1228455901, 0.5743908286, -0.3306770623, 0.4036708474, 0.0631857365, 0.0070620831, 0.0763952136, 0.0472050235, -0.3255839348, 0.0682408437, 0.4605392814, -0.0840826184, -0.0110177463, -0.0459627919, 0.0215771105, 0.1860045493, 0.6756531, 0.1809038967, 0.068885684, -0.1753340065, -0.0922475755, -0.7202568054, 0.0048393924, -0.1538161486, 0.0682043582, 0.1833008677, 0.0254980158, -0.0335257612, -0.1361493468, 0.1343495697, 0.036406599, 0.0856267065, 0.0804948211, -0.2730597854, 0.0851766393, -0.1839798242, 0.167298466, -0.0666692704, -0.3812740445, 0.0055370205, 0.4040569365, -0.033012554, 0.0836495012, 0.0168267116, 0.060325101, -0.0656191707, 0.2211055011, 0.0045557744, -0.3314672112, 0.2668884695, -0.2987352312, -0.4420069456, -0.1787157506, 0.2237335593, -0.3295326829, 0.0261545759, 0.3159604967, -0.3746153116, -0.359002769, -0.4697314799, 0.0518303812, 0.1891973615, 0.1528866738, 0.0489632152, 0.2164821327, -0.184308961, 0.3807107508, 0.2426661402, 0.5996031165, 0.1425165087, 0.3425970376, -0.1881644875, -0.1459379345, 0.5672605038, -0.333176434, -0.5053147078, 0.2855778337, 0.2199482024, -0.0973545015, -0.450909704, -0.2351054698, 0.123703137, 0.0580434278, -0.0460868515, -0.138294965, 0.0322722942, -0.3811503947, 0.0314328074, -0.1813528985, 0.3775717914, 0.2685392201, -0.0065706805, -0.0406485908, 0.0667337477 ]
https://github.com/huggingface/datasets/issues/3984
Local and automatic tests fail
Hi ! To be able to run the tests, you need to install all the test dependencies and additional ones with ``` pip install -e .[tests] pip install -r additional-tests-requirements.txt --no-deps ``` In particular, you probably need to `sacrebleu`. It looks like it wasn't able to instantiate `sacrebleu.TER` properly.
## Describe the bug Running the tests from CircleCI on a PR or locally fails, even with no changes. Tests seem to fail on `test_metric_common.py` ## Steps to reproduce the bug ```shell git clone https://huggingface/datasets.git cd datasets ``` ```python python -m pip install -e . pytest ``` ## Expected results All tests passing ## Actual results ``` tests/test_metric_common.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../.pyenv/versions/3.8.5/lib/python3.8/doctest.py:1336: in __run exec(compile(example.source, filename, "single", <doctest datasets_modules.metrics.ter.c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155.ter.Ter[3]>:1: in <module> ??? ../datasets/src/datasets/metric.py:430: in compute output = self._compute(**inputs, **compute_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Metric(name: "ter", features: {'predictions': Value(dtype='string', id='sequence'), 'references': Sequence(feature=Val...ences=references) >>> print(results) {'score': 0.0, 'num_edits': 0, 'ref_length': 6.5} """, stored examples: 0) predictions = ['hello there general kenobi', 'foo bar foobar'] references = [['hello there general kenobi', 'hello there !'], ['foo bar foobar', 'foo bar foobar']] normalized = False, no_punct = False, asian_support = False, case_sensitive = False def _compute( self, predictions, references, normalized: bool = False, no_punct: bool = False, asian_support: bool = False, case_sensitive: bool = False, ): references_per_prediction = len(references[0]) if any(len(refs) != references_per_prediction for refs in references): raise ValueError("Sacrebleu requires the same number of references for each prediction") transformed_references = [[refs[i] for refs in references] for i in range(references_per_prediction)] > sb_ter = TER(normalized, no_punct, asian_support, case_sensitive) E TypeError: __init__() takes 2 positional arguments but 5 were given /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/metrics/ter/c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155/ter.py:130: TypeError ------------------------------ Captured stdout call ------------------------------- Trying: predictions = ["hello there general kenobi", "foo bar foobar"] Expecting nothing ok Trying: references = [["hello there general kenobi", "hello there !"], ["foo bar foobar", "foo bar foobar"]] Expecting nothing ok Trying: ter = datasets.load_metric("ter") Expecting nothing ok Trying: results = ter.compute(predictions=predictions, references=references) Expecting nothing ================================ warnings summary ================================= ../.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15 /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses from imp import load_source ../datasets/src/datasets/commands/test.py:35 /home/markussagen/datasets/src/datasets/commands/test.py:35: PytestCollectionWarning: cannot collect test class 'TestCommand' because it has a __init__ constructor (from: tests/commands/test_test.py) class TestCommand(BaseDatasetsCLICommand): tests/commands/test_test.py:33 /home/markussagen/mydataset/tests/commands/test_test.py:33: PytestCollectionWarning: cannot collect test class 'TestCommandArgs' because it has a __new__ constructor (from: tests/commands/test_test.py) class TestCommandArgs: tests/test_arrow_dataset.py: 760 warnings tests/test_formatting.py: 60 warnings tests/test_search.py: 31 warnings tests/features/test_array_xd.py: 117 warnings /home/markussagen/datasets/src/datasets/formatting/formatting.py:197: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations (isinstance(x, np.ndarray) and (x.dtype == np.object or x.shape != array[0].shape)) tests/test_arrow_dataset.py: 154 warnings tests/features/test_array_xd.py: 1 warning /home/markussagen/datasets/src/datasets/formatting/formatting.py:201: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations return np.array(array, copy=False, **{**self.np_array_kwargs, "dtype": np.object}) tests/test_arrow_dataset.py: 60 warnings /home/markussagen/datasets/src/datasets/arrow_dataset.py:3105: DeprecationWarning: `np.str` is a deprecated alias for the builtin `str`. To silence this warning, use `str` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.str_` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations elif np.issubdtype(values.dtype, np.str): tests/test_arrow_dataset.py: 138 warnings tests/test_formatting.py: 21 warnings /home/markussagen/datasets/src/datasets/formatting/tf_formatter.py:69: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations data_struct.dtype == np.object tests/test_arrow_dataset.py: 240 warnings tests/test_formatting.py: 20 warnings /home/markussagen/datasets/src/datasets/formatting/torch_formatter.py:49: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # pytorch tensors cannot be instantied from an array of objects tests/test_arrow_dataset.py: 12 warnings tests/test_search.py: 2 warnings tests/features/test_array_xd.py: 6 warnings tests/features/test_image.py: 4 warnings /home/markussagen/datasets/src/datasets/features/features.py:1129: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations [0] + [len(arr) for arr in l_arr], dtype=np.object tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_banking77 /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/banking77/aec0289529599d4572d76ab00c8944cb84f88410ad0c9e7da26189d31f62a55b/banking77.py:24: DeprecationWarning: invalid escape sequence \~ _CITATION = """\ tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_universal_dependencies /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/universal_dependencies/065e728dfe9a8371434a6e87132c2386a6eacab1a076d3a12aa417b994e6ef7d/universal_dependencies.py:6: DeprecationWarning: invalid escape sequence \= _CITATION = """\ tests/test_filesystem.py: 105 warnings /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/responses/__init__.py:398: DeprecationWarning: stream argument is deprecated. Use stream parameter in request directly warn( tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs /home/markussagen/datasets/src/datasets/formatting/jax_formatter.py:57: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # jax arrays cannot be instantied from an array of objects tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py:3567: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.int64'> requested in array is not available, and will be truncated to dtype int32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more. lax._check_user_dtype_supported(dtype, "array") tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html if obj.zone == 'local': tests/test_upstream_hub.py::TestPushToHub::test_push_dataset_to_hub_custom_features _audio /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations dtype=np.complex, tests/features/test_array_xd.py::test_array_xd_with_none /home/markussagen/mydataset/tests/features/test_array_xd.py:338: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations assert isinstance(arr, np.ndarray) and arr.dtype == np.object and arr.shape == (3,) -- Docs: https://docs.pytest.org/en/stable/warnings.html ============================= short test summary info ============================= FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_bleurt - I... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_chrf - Att... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_code_eval FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_comet - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_competition_math FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_coval - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_perplexity FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_ter - Type... ``` ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-5.16.11-76051611-generic-x86_64-with-glibc2.33 - Python version: 3.8.5 - PyArrow version: 5.0.0
49
Local and automatic tests fail ## Describe the bug Running the tests from CircleCI on a PR or locally fails, even with no changes. Tests seem to fail on `test_metric_common.py` ## Steps to reproduce the bug ```shell git clone https://huggingface/datasets.git cd datasets ``` ```python python -m pip install -e . pytest ``` ## Expected results All tests passing ## Actual results ``` tests/test_metric_common.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../.pyenv/versions/3.8.5/lib/python3.8/doctest.py:1336: in __run exec(compile(example.source, filename, "single", <doctest datasets_modules.metrics.ter.c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155.ter.Ter[3]>:1: in <module> ??? ../datasets/src/datasets/metric.py:430: in compute output = self._compute(**inputs, **compute_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Metric(name: "ter", features: {'predictions': Value(dtype='string', id='sequence'), 'references': Sequence(feature=Val...ences=references) >>> print(results) {'score': 0.0, 'num_edits': 0, 'ref_length': 6.5} """, stored examples: 0) predictions = ['hello there general kenobi', 'foo bar foobar'] references = [['hello there general kenobi', 'hello there !'], ['foo bar foobar', 'foo bar foobar']] normalized = False, no_punct = False, asian_support = False, case_sensitive = False def _compute( self, predictions, references, normalized: bool = False, no_punct: bool = False, asian_support: bool = False, case_sensitive: bool = False, ): references_per_prediction = len(references[0]) if any(len(refs) != references_per_prediction for refs in references): raise ValueError("Sacrebleu requires the same number of references for each prediction") transformed_references = [[refs[i] for refs in references] for i in range(references_per_prediction)] > sb_ter = TER(normalized, no_punct, asian_support, case_sensitive) E TypeError: __init__() takes 2 positional arguments but 5 were given /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/metrics/ter/c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155/ter.py:130: TypeError ------------------------------ Captured stdout call ------------------------------- Trying: predictions = ["hello there general kenobi", "foo bar foobar"] Expecting nothing ok Trying: references = [["hello there general kenobi", "hello there !"], ["foo bar foobar", "foo bar foobar"]] Expecting nothing ok Trying: ter = datasets.load_metric("ter") Expecting nothing ok Trying: results = ter.compute(predictions=predictions, references=references) Expecting nothing ================================ warnings summary ================================= ../.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15 /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses from imp import load_source ../datasets/src/datasets/commands/test.py:35 /home/markussagen/datasets/src/datasets/commands/test.py:35: PytestCollectionWarning: cannot collect test class 'TestCommand' because it has a __init__ constructor (from: tests/commands/test_test.py) class TestCommand(BaseDatasetsCLICommand): tests/commands/test_test.py:33 /home/markussagen/mydataset/tests/commands/test_test.py:33: PytestCollectionWarning: cannot collect test class 'TestCommandArgs' because it has a __new__ constructor (from: tests/commands/test_test.py) class TestCommandArgs: tests/test_arrow_dataset.py: 760 warnings tests/test_formatting.py: 60 warnings tests/test_search.py: 31 warnings tests/features/test_array_xd.py: 117 warnings /home/markussagen/datasets/src/datasets/formatting/formatting.py:197: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations (isinstance(x, np.ndarray) and (x.dtype == np.object or x.shape != array[0].shape)) tests/test_arrow_dataset.py: 154 warnings tests/features/test_array_xd.py: 1 warning /home/markussagen/datasets/src/datasets/formatting/formatting.py:201: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations return np.array(array, copy=False, **{**self.np_array_kwargs, "dtype": np.object}) tests/test_arrow_dataset.py: 60 warnings /home/markussagen/datasets/src/datasets/arrow_dataset.py:3105: DeprecationWarning: `np.str` is a deprecated alias for the builtin `str`. To silence this warning, use `str` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.str_` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations elif np.issubdtype(values.dtype, np.str): tests/test_arrow_dataset.py: 138 warnings tests/test_formatting.py: 21 warnings /home/markussagen/datasets/src/datasets/formatting/tf_formatter.py:69: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations data_struct.dtype == np.object tests/test_arrow_dataset.py: 240 warnings tests/test_formatting.py: 20 warnings /home/markussagen/datasets/src/datasets/formatting/torch_formatter.py:49: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # pytorch tensors cannot be instantied from an array of objects tests/test_arrow_dataset.py: 12 warnings tests/test_search.py: 2 warnings tests/features/test_array_xd.py: 6 warnings tests/features/test_image.py: 4 warnings /home/markussagen/datasets/src/datasets/features/features.py:1129: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations [0] + [len(arr) for arr in l_arr], dtype=np.object tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_banking77 /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/banking77/aec0289529599d4572d76ab00c8944cb84f88410ad0c9e7da26189d31f62a55b/banking77.py:24: DeprecationWarning: invalid escape sequence \~ _CITATION = """\ tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_universal_dependencies /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/universal_dependencies/065e728dfe9a8371434a6e87132c2386a6eacab1a076d3a12aa417b994e6ef7d/universal_dependencies.py:6: DeprecationWarning: invalid escape sequence \= _CITATION = """\ tests/test_filesystem.py: 105 warnings /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/responses/__init__.py:398: DeprecationWarning: stream argument is deprecated. Use stream parameter in request directly warn( tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs /home/markussagen/datasets/src/datasets/formatting/jax_formatter.py:57: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # jax arrays cannot be instantied from an array of objects tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py:3567: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.int64'> requested in array is not available, and will be truncated to dtype int32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more. lax._check_user_dtype_supported(dtype, "array") tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html if obj.zone == 'local': tests/test_upstream_hub.py::TestPushToHub::test_push_dataset_to_hub_custom_features _audio /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations dtype=np.complex, tests/features/test_array_xd.py::test_array_xd_with_none /home/markussagen/mydataset/tests/features/test_array_xd.py:338: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations assert isinstance(arr, np.ndarray) and arr.dtype == np.object and arr.shape == (3,) -- Docs: https://docs.pytest.org/en/stable/warnings.html ============================= short test summary info ============================= FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_bleurt - I... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_chrf - Att... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_code_eval FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_comet - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_competition_math FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_coval - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_perplexity FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_ter - Type... ``` ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-5.16.11-76051611-generic-x86_64-with-glibc2.33 - Python version: 3.8.5 - PyArrow version: 5.0.0 Hi ! To be able to run the tests, you need to install all the test dependencies and additional ones with ``` pip install -e .[tests] pip install -r additional-tests-requirements.txt --no-deps ``` In particular, you probably need to `sacrebleu`. It looks like it wasn't able to instantiate `sacrebleu.TER` properly.
[ -0.1117824614, -0.2659797966, -0.0161101297, 0.1842330545, 0.1371133029, -0.056852825, 0.1238805279, 0.3405486345, 0.1495894492, 0.3421726823, 0.0462886617, 0.307631582, -0.166297853, 0.2298704684, -0.0389916226, -0.2192201465, -0.1309422553, 0.0968284383, 0.1460393518, 0.0278005339, -0.3403891027, 0.1960444748, -0.0316950381, 0.0648200437, -0.0361584313, -0.1340272278, -0.275875628, 0.0504055023, -0.0124514122, -0.4531465769, 0.4501771629, 0.0989145935, -0.1556575, 0.5707753897, -0.0001159414, -0.0384488143, 0.2932115197, 0.0701966584, -0.0584012344, -0.2195952982, 0.1554088145, -0.0976715684, 0.2539591193, -0.2469301671, 0.0426184162, 0.2035589069, -0.3367878199, -0.410675019, 0.0659025759, 0.4597378075, 0.2156749517, 0.6754707694, -0.1171889231, -0.1912710369, -0.1549745798, 0.0669054985, -0.1981369406, 0.558527112, 0.0841318741, -0.1405882388, 0.016003659, -0.0483157672, -0.1220775694, 0.2049999386, 0.2133193463, -0.0541234761, 0.1657506078, -0.2625638247, 0.2092679888, -0.0694146976, 0.1340790838, -0.6006871462, -0.1354281008, 0.210601598, -0.0159018096, -0.5591042638, 0.2265514284, -0.1152378693, -0.3385134637, 0.1105037406, -0.4063829482, 0.0768811554, -0.2239940464, 0.1231597587, -0.4451666474, -0.0565639697, 0.0740066916, 0.0899963006, -0.0109233391, 0.0556606911, -0.1094671935, -0.0631624088, -0.0458145067, 0.1386149377, -0.1354183555, -0.2055397183, 0.1738154143, 0.2380697131, 0.3196876347, 0.2967391014, -0.0553979985, -0.0180284586, 0.1199381426, 0.2634008229, -0.1120252237, 0.4166603386, 0.1960202754, 0.4561015368, 0.3786031902, 0.2773090005, -0.2229226977, 0.1240450889, 0.4632346332, -0.3278054297, 0.2778977454, 0.0327776521, 0.2851963639, -0.2795381546, -0.3214880228, 0.4264313281, -0.2735040188, 0.1328959614, 0.2125268579, 0.3440184593, -0.0957013071, 0.3234866858, -0.0846480131, 0.4315162003, -0.1727761477, 0.3996866345, -0.2375713289, 0.1096758395, 0.0170237776, 0.338244915, 0.3698626161, -0.0800447315, 0.2883630097, 0.1117860824, 0.3321639597, -0.3014807105, 0.0712408721, -0.361728102, 0.0363528356, 0.3995060623, -0.0523790456, 0.0894653201, 0.1441112012, -0.0823275298, -0.1972928196, 0.1550899297, -0.1007749289, -0.2418887913, 0.3128140569, 0.2252591848, -0.2993646264, -0.089119494, 0.2124658674, -0.0882825404, 0.1053041071, -0.1089959666, 0.0990571007, -0.2900272906, -0.3266671002, -0.0384530462, 0.4411216974, 0.4156910777, -0.13610515, 0.1629472971, 0.095749639, 0.0910605118, 0.2036007345, 0.2165389955, 0.0686616302, 0.2709129751, -0.1698734909, -0.2038009018, 0.1570273638, -0.641911149, -0.1737918258, 0.075010471, 0.0279696267, 0.0306626167, -0.1142976508, -0.4182765782, 0.0293500964, 0.1199352294, 0.2898657918, -0.1686899513, -0.1500387937, 0.1138280034, -0.4484147727, -0.2092054933, 0.0172167476, 0.0046129758, 0.416226089, -0.0142517891, 0.1626061052, -0.3182095289, 0.1400526762, -0.0198430326, -0.1940309554, 0.2181540728, 0.5581352711, -0.3067373037, 0.1630335599, -0.3938632607, -0.0995179415, 0.49945274, -0.3178083897, 0.1165873483, -0.0790558979, -0.0499053076, -0.6530841589, 0.1803428084, -0.1846204102, -0.2717506886, 0.0977094322, 0.1849782914, 0.1459776014, 0.2273171246, -0.2784326673, -0.2882579267, -0.1563524455, -0.0007095949, 0.362128377, 0.1101032794, -0.1676657945, -0.2823256552, -0.1946871132, 0.2246025652, 0.2315846831, -0.0467900261, -0.2814888358, 0.3349469304, 0.1285810918, 0.0797303244, 0.0653295517, -0.0621824302, 0.2467945963, -0.3498296738, -0.1589857638, 0.0256493203, 0.0586203784, 0.0542023443, -0.171432063, 0.2581974864, 0.0900554657, 0.1572286785, -0.131396696, -0.0011829254, 0.1879754066, -0.0831546783, 0.0705400258, -0.1346348822, 0.297413379, -0.020849878, 0.5891729593, -0.1447900832, -0.1790736914, -0.0564817823, 0.0538677089, -0.0822060257, 0.024425419, 0.1311487406, 0.1265506297, 0.0639590174, -0.01922502, -0.0184658021, 0.5500509739, 0.0172496978, 0.1512441337, 0.4228760898, -0.2707676291, -0.2778632343, 0.1321663707, 0.038702704, -0.2029404789, 0.4893500507, 0.4481947124, 0.1431674957, -0.3087469935, -0.0709922984, -0.0951285735, 0.2990786135, -0.3414201736, 0.1542193592, -0.0934372395, 0.2626325786, -0.1200501546, 0.1098454148, -0.009779254, -0.2140138, 0.0902539566, 0.1791758239, -0.0851490423, 0.1795672923, 0.1697305739, 0.4784544706, 0.0673599839, -0.3618867695, -0.2634703219, -0.2334545404, -0.1452941597, 0.0576186776, 0.2435164303, -0.1473471522, 0.4051821828, -0.3689789772, -0.3197580278, -0.1588508934, -0.4063988924, 0.1868442446, 0.1293397844, 0.6690483689, 0.0263287034, -0.0220698956, -0.1263252497, -0.1807514876, 0.3363374472, -0.2418596894, -0.093784906, 0.0945671871, 0.0244741589, 0.023997277, -0.517549634, -0.40918082, -0.1590222418, -0.2556914985, 0.2087053657, 0.1542035639, 0.0382883921, 0.2169953734, 0.1465850323, 0.2258653343, 0.0009903826, 0.1971659213, -0.0104055796, -0.1894855052, 0.0761336684, -0.2080231458, -0.3638426363, -0.2055466324, 0.0023731284, 0.3455752432, 0.0401962921, -0.5079803467, -0.569878757, -0.0754452497, 0.6463384628, 0.0002467363, 0.027107466, 0.2081206441, 0.0279967003, -0.0135590257, -0.0824225619, -0.0613655858, 0.070908159, 0.1423255354, -0.1718173325, -0.0709106326, 0.1491176188, 0.0381467529, 0.6200240254, 0.2469254583, 0.0867814496, 0.3573978841, -0.0694517121, 0.4273224175, -0.3529714942, -0.3514102697, 0.1253528744, -0.070379518, -0.4805478454, -0.0237002186, -0.0573626794, -0.3188473582, -0.1827870905, 0.0550514683, -0.0366328508, -0.1816437244, -0.1381951272, -0.2256593853, 0.5033535957, 0.0262683481, 0.1906701326, -0.1608727127, -0.0085505061, 0.2471157014, 0.2289354205, -0.1801131368, -0.0467619821, -0.333147645, -0.1247699261, -0.3147515059, 0.2811857164, 0.154993102, 0.4269533157, -0.3052983582, -0.0169853941, 0.027041696, -0.2507067919, 0.0951988474, -0.139463231, 0.1265827417, 0.2879201174, -0.3036427796, -0.2697411776, 0.0014242502, -0.2324229926, -0.1306039542, -0.1800844818, 0.7990361452, -0.0359480865, -0.106936425, 0.1526375711, 0.290369153, -0.0132524017, -0.0913419425, -0.2689492106, -0.4574979842, -0.198915273, 0.3127295375, -0.0410034247, 0.3027317822, -0.4041001499, 0.0384004153, 0.0462672822, -0.1795188636, -0.02157587, 0.2678976655, 0.2999657094, -0.2801356316, 0.2568697929, 0.0165032484, -0.3802208602, 0.0500437878, 0.2021186352, -0.2663041651, -0.2912309468, 0.0986897796, -0.0003967531, 0.2586062849, 0.3781077564, -0.1953975856, -0.0255518109, -0.212481007, 0.0660250112, -0.1610764414, 0.283005923, 0.252088815, 0.0619774386, 0.1590714157, -0.0007427534, -0.0035873628, 0.3248775303, -0.1215405092, 0.2752375007, -0.0869584754, -0.1441514343, 0.2154290974, 0.0298817009, 0.6548755169, 0.1373975724, -0.0941459835, 0.4806256592, -0.1372223794, -0.0880697295, 0.0459654517, 0.0121641699, -0.3867965043, 0.0311117135, 0.1427559853, -0.2090419382, 0.3355264962, -0.4757677615, -0.1638799459, 0.1463148296, -0.1296002716, -0.0471346863, 0.2368060648, -0.0858865157, -0.2694052458, 0.0709168017, -0.0872221813, 0.1698518693, 0.0131257381, 0.3332585394, -0.1795681715, 0.1297031641, 0.0657539815, -0.3725874424, -0.2204085737, -0.136102587, -0.3988215923, 0.053481359, 0.2632778287, -0.390325129, -0.2725699842, 0.2406466901, 0.5081052184, 0.2821465135, -0.3107663095, 0.0169549435, -0.1405721307, 0.287058264, 0.4064965844, 0.0792594105, 0.1399898678, -0.2517520487, -0.3922173679, 0.0134908753, -0.2151153833, -0.0818109959, 0.1457618326, 0.0578148402, 0.0555744246, -0.0043592583, 0.0860546157, -0.3460756838, 0.1169577464, -0.2342457026, 0.1760006845, -0.130746901, -0.0746691972, 0.2903476357, -0.2280170172, -0.2763030529, -0.0702702552, 0.1392038763, -0.2053065747, -0.0517579876, 0.1249011904, -0.1651042998, -0.0270367861, -0.2339377701, 0.2473321259, -0.2082738429, -0.2143904865, 0.2384541631, -0.0434208699, -0.1426705271, -0.010724077, 0.6182687283, 0.2289488465, -0.1429370642, -0.0401300937, -0.3980574012, -0.2963373363, 0.0644458011, 0.2653591335, 0.1697256267, 0.2229129076, 0.335917592, -0.0708102882, 0.0620714426, -0.2874387503, -0.0594090931, -0.4218957424, 0.013639953, -0.2612431645, -0.1449743807, 0.1236989573, -0.072913371, 0.106125772, 0.0297845863, -0.1622425765, -0.2865359485, -0.1723804921, 0.1048062742, -0.0489338525, -0.0464399494, 0.0326438211, -0.0016116739, 0.2299783081, -0.0907121077, 0.1112479866, 0.1218671426, -0.2261872441, 0.101481773, -0.1230229959, 0.433244586, -0.0124531025, 0.068593435, 0.0113425096, -0.0363495685, -0.0819088221, 0.0354792848, -0.177664578, -0.0280462932, 0.3044444919, 0.0098477453, 0.0465225093, 0.1391917616, 0.1793588102, -0.2088629752, -0.1235314906, -0.0281156991, 0.1959357858, 0.2127253115, -0.2583088577, 0.0851434544, 0.0813915804, 0.2426645756, -0.2245330215, -0.1397698224, -0.0247893985, 0.1256046891, 0.242535904, 0.212710008, 0.3661424816, -0.5041453838, 0.3083018363, 0.1834322214, 0.5069269538, -0.1421209872, -0.0039807069, 0.0360936821, -0.0760310665, 0.2812584937, -0.0801201239, -0.1246643141, 0.0691813454, -0.0270340666, -0.1342583597, 0.2226520479, -0.2853283882, 0.1268779188, 0.262850672, -0.0140299089, 0.3657429516, -0.5431712866, 0.059993621, -0.1363831311, -0.1140088215, 0.4063800573, -0.5215761662, -0.3389736116, -0.0712819174, -0.1052163616, -0.1142991334, 0.0631549731, -0.3824951053, -0.1906555146, 0.1285907626, -0.1056345552, 0.0839086324, 0.2509521544, 0.3567028642, 0.0310381409, -0.2163500488, -0.183530584, -0.3135814369, 0.2732644379, 0.2569228113, -0.0605632402, 0.4377911985, 0.2493408918, -0.2090530396, -0.4105662704, 0.4729442298, 0.3921269476, 0.2921776474, -0.1801192611, -0.1473276615, -0.2807260454, 0.0123083871, -0.0460836515, -0.0082240608, -0.0926547647, -0.2002664655, 0.2153779119, 0.2064368129, -0.1995389611, 0.2509911358, 0.0271310657, 0.0623822026, -0.4839842618, 0.3127574325, 0.0513155423, 0.0356695317, 0.1665727645, -0.0267642047, -0.1883534193, 0.4026279151, 0.2507702112, 0.1518723071, 0.0715143606, -0.0257018358, 0.1047146246, 0.2047748119, 0.3232574165, 0.2262878567, -0.0156890471, -0.4532224834, -0.0650720596, -0.5233587623, 0.4157930017, 0.1434278041, 0.2453727275, 0.1703636944, -0.1492547542, -0.06553673, 0.0470233895, 0.0292986017, 0.208117485, -0.0355475321, -0.0930972546, -0.5842674971, -0.0366858877, -0.3594207764, -0.3539203405, 0.0666697547, -0.37286973, 0.2957374752, -0.4341224134, 0.0453253277, 0.1286355108, -0.262318939, 0.2074278444, 0.2196199298, 0.152605772, 0.269827038, 0.5485745072, -0.0024753038, 0.003491889, -0.1776341796, -0.2455119491, 0.0696277469, 0.0967346579, -0.2590159178, 0.0838677809, -0.0291892532, -0.4314462543, -0.0893495604, 0.3267248273, 0.287617445, -0.324809432, 0.1865660399, -0.0116895512, 0.1207471117, -0.014469278, 0.1098271981, 0.4687907696, -0.0228286926, 0.282663554, -0.2522916198, -0.3089721203, 0.608974576, -0.1151982322, -0.2582967579, -0.1861158609, 0.3217762709, -0.0257048476, -0.2463771254, -0.2995786965, -0.1892977208, 0.1882582754, -0.1733454615, -0.3156827092, 0.2111364007, 0.0931663737, 0.0102680372, -0.0195827149, 0.3811171055, 0.0364077874, 0.1170224026, 0.2098810226, -0.1987621486 ]
https://github.com/huggingface/datasets/issues/3983
Infinitely attempting lock
Hi ! Thanks for reporting. We're using `py-filelock` as our locking mechanism. Can you try deleting the .lock file mentioned in the logs and try again ? Make sure that no other process is generating the `cnn_dailymail` dataset. If it doesn't work, could you try to set up a lock using the latest version of `py-filelock` and see if it works ? ``` pip install filelock ``` here is a code example from the `py-filelock` documentation that you can try: ```python from filelock import Timeout, FileLock lock = FileLock("high_ground.txt.lock") with lock: with open("high_ground.txt", "a") as f: f.write("You were the chosen one.") ```
I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this?
102
Infinitely attempting lock I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this? Hi ! Thanks for reporting. We're using `py-filelock` as our locking mechanism. Can you try deleting the .lock file mentioned in the logs and try again ? Make sure that no other process is generating the `cnn_dailymail` dataset. If it doesn't work, could you try to set up a lock using the latest version of `py-filelock` and see if it works ? ``` pip install filelock ``` here is a code example from the `py-filelock` documentation that you can try: ```python from filelock import Timeout, FileLock lock = FileLock("high_ground.txt.lock") with lock: with open("high_ground.txt", "a") as f: f.write("You were the chosen one.") ```
[ -0.3298414648, 0.2049618959, -0.0227508154, 0.1526561677, 0.3330144286, 0.0533309989, 0.4307444394, 0.2333425879, 0.1402675211, 0.0099878293, -0.037053667, 0.0426321141, -0.1039026752, -0.3476848602, -0.1842166781, 0.1177707762, -0.0877683386, -0.0198222101, -0.2799401283, 0.0629315153, -0.085155867, 0.1151090786, -0.1450494975, -0.1171247289, -0.796233952, -0.2028403729, 0.0433075055, 0.1553907394, -0.0976353288, 0.0133709665, 0.1585726738, 0.3052717149, 0.0090414593, 0.9299720526, -0.0001191873, 0.0004468452, 0.3150666356, 0.0126307476, -0.566906631, -0.122359857, -0.0288466904, -0.2926037014, -0.0552297942, -0.2811678648, 0.1519022584, 0.0229823403, 0.1764892787, -0.2526323199, 0.4789531827, 0.0963919088, 0.1283451617, 0.3988610506, 0.1800812781, -0.3488636017, 0.1368836015, 0.1299934238, -0.2511268258, 0.1069557667, 0.3477579057, -0.2679891586, -0.1316343099, 0.3083176315, -0.2828638554, -0.0042684879, 0.027619807, -0.0500381105, -0.218398571, -0.1180961579, 0.1633093059, 0.1214598939, 0.3629537523, -0.1842794269, -0.6428251266, -0.2955244184, 0.1425687969, 0.0371799804, 0.0543324687, 0.0692963898, -0.2707689106, 0.3191727102, -0.4023727477, 0.0781577751, 0.0206689462, 0.1098821089, -0.0597067438, 0.2266732454, 0.0400686264, 0.1901205629, 0.3340246975, -0.1006525233, 0.3220439553, -0.0747189149, 0.0056030988, 0.0617189556, -0.4568729401, 0.0881094411, 0.0916193128, 0.0736584961, 0.0205158703, 0.0595738366, -0.2028279155, 0.1151698083, 0.1501237899, 0.122912921, 0.0612827986, 0.1322312355, 0.0200663377, 0.4104297757, 0.3102094233, 0.1448133439, -0.2280581295, 0.2034822255, -0.0752118677, -0.1301472187, 0.3084658384, -0.1692631543, 0.1210073009, 0.0827312917, 0.0983599797, 0.3246401846, -0.1917595565, -0.0126627842, 0.2504722774, 0.2101436704, 0.3013386726, -0.1120065451, 0.3008499742, -0.0981880799, -0.3114047348, 0.0838258862, -0.299734056, 0.0359518677, -0.484724462, 0.1459385157, 0.23877877, 0.1667162925, 0.1024377048, 0.0698364377, 0.1991072297, -0.1148299575, 0.2619995773, -0.0933033824, -0.0872033089, 0.5230212212, -0.1823235154, 0.1318268329, 0.1146951392, -0.0563614741, 0.1008915156, 0.2097309083, 0.2752989829, -0.1651593149, 0.1792680621, 0.1204250604, -0.292460084, 0.1692409366, 0.0463215299, -0.0310950093, 0.1746886075, 0.0631311759, 0.1407446563, -0.2117413878, 0.2318180799, 0.132390216, -0.0426444523, 0.7179312706, -0.144792214, 0.1030961499, -0.021423446, 0.0069234394, -0.0626068637, 0.2393884212, -0.2922545969, 0.114206098, -0.1334797144, 0.0929538384, 0.1381018162, -0.141950652, -0.7052137256, 0.3468112946, -0.2805712521, -0.1852951944, 0.2469991446, 0.3287364542, 0.1457758993, 0.0635996237, 0.1703407466, -0.0660730675, -0.0560430028, -0.1308033466, -0.0954017863, -0.2397292554, -0.172342658, 0.2567355335, 0.3085660934, 0.0647057295, 0.0442422777, 0.7330673933, 0.1936255246, 0.0497302264, -0.0563593432, 0.4711810052, 0.148328796, 0.1212457567, -0.1042042896, -0.3040809631, -0.5598873496, 0.4960913062, 0.2175125629, -0.1532705873, -0.256474942, -0.2384226024, -0.0534456447, 0.2630109787, -0.0404073931, -0.026055906, 0.0674148649, 0.1026360616, -0.0948008746, -0.4041507244, -0.1626712829, 0.3588071465, 0.0760128945, 0.0715179294, -0.1905595064, 0.0525142029, -0.0908193365, -0.4515402615, -0.2340862006, 0.036859151, 0.0776760578, -0.201866433, -0.034636341, 0.1607924402, 0.2771880925, 0.1080864817, 0.2665814757, 0.3066010177, -0.0564401969, 0.2584995627, -0.1163465008, -0.0741634592, 0.0296589416, -0.0071184686, -0.0053711729, 0.1726503223, 0.0412316918, 0.0462003946, -0.1055659354, 0.0830270424, 0.2325128466, -0.1400758475, -0.0470821932, -0.0699085742, 0.2751993835, 0.3642915189, 0.108364962, 0.1443056017, -0.0421926342, 0.0164054967, 0.3040955663, -0.2539135516, 0.1324605495, -0.1204459742, -0.0273268297, 0.1827206761, -0.0575061999, 0.3870866597, 0.3265508711, 0.1303874254, 0.2377393693, -0.0629550293, -0.02650938, -0.2989282906, 0.017724229, 0.244001478, -0.0092344368, 0.3166927099, 0.1180433258, -0.166339606, -0.2963676155, -0.4193618, 0.1669656932, 0.2838845849, 0.0220564157, 0.2455000728, -0.2926654518, 0.1964639276, 0.0651897788, -0.0923465416, -0.1521758735, -0.3921794295, -0.0162863061, 0.6691693068, -0.0394821651, 0.2523660064, -0.3066671193, -0.0227448121, 0.1912257522, -0.026857337, -0.0379333831, -0.1548594683, -0.1800376624, -0.0899395198, 0.293288976, -0.3571374416, 0.1823857725, 0.1925036013, -0.1727763563, -0.4929659367, -0.1807818711, 0.0021665995, -0.3139694035, 0.3161465824, 0.1486027688, 0.1655844003, -0.1570742577, -0.0268404093, -0.0873213708, -0.0031312078, -0.0559371673, 0.2526432276, -0.0171097703, -0.1866946667, -0.2099345028, 0.0841217861, -0.1339217126, -0.4041657448, 0.3009425104, -0.3045150638, -0.0729709938, 0.0917684287, -0.0056317314, 0.4490483701, 0.0162794124, -0.0226987451, -0.1511770189, -0.0305073727, 0.3649401665, 0.223982349, -0.209519282, 0.0007265799, -0.1142335907, -0.3396967351, 0.278624624, -0.4284463525, -0.2242126018, -0.4051948488, 0.0556077808, -0.2499951124, 0.080757007, 0.4011627436, -0.1902489215, -0.1843455881, -0.1846212596, -0.1269573867, 0.0832559839, -0.0895757452, 0.1065011546, -0.371011734, 0.2627336085, 0.2673960626, 0.498868525, 0.2884264588, -0.027428396, -0.0478797778, -0.0174515583, 0.1629685163, -0.0849941075, -0.2828542888, -0.3911368251, 0.1042816564, -0.5105002522, -0.040276695, -0.0675185323, -0.0189131107, 0.0945699587, 0.0003667813, -0.1441059709, -0.5093678832, -0.0257933978, -0.0051349211, 0.2096405178, 0.0509561636, 0.3999622464, 0.1126213074, 0.0893458575, -0.1316083372, 0.3289102614, -0.0463400409, 0.0396826714, -0.028299043, 0.151615575, -0.1516741365, 0.2404339314, -0.2466138303, 0.4611185491, -0.187018469, -0.1006087214, 0.0789083913, -0.1047601476, 0.7617740035, 0.26129511, 0.1803589016, 0.2404871732, -0.3923036158, -0.1124158204, -0.2237944156, -0.4798315763, 0.1904427558, 0.2956912518, 0.4993788898, -0.2686322033, -0.04875388, -0.0026958117, 0.0939497948, -0.1516523659, -0.3616787791, 0.089398101, -0.2466701716, -0.5159500837, 0.1803587973, 0.1892168224, -0.1053414643, 0.1035927385, -0.2285421491, -0.1187317595, -0.2584252059, 0.3663306832, -0.0244055446, 0.0177495219, -0.0131229861, 0.2743583024, 0.136894837, -0.3791845143, 0.2622288167, 0.3432236612, 0.19088462, 0.0888846144, 0.3496577442, -0.1455689222, -0.0994814858, 0.6703085899, -0.2420809716, -0.131533891, 0.1719067842, 0.1937931776, -0.0611139461, -0.0689174086, 0.2693523467, 0.2426324636, -0.1244161204, -0.1226254702, 0.2950457335, 0.038391903, -0.245759055, 0.1156170145, 0.041980315, -0.0990468115, 0.3975761533, 0.0197928008, 1.0183520317, -0.2927395999, 0.2523346841, 0.0099825757, 0.1485074162, 0.3657845557, -0.1905449927, 0.179686144, -0.2483025342, -0.3729198873, -0.0179275982, -0.2550694048, 0.0383227691, 0.0874725208, 0.003609847, 0.0841335207, -0.4284697175, 0.0413886458, 0.0661202967, -0.0003928301, -0.5783004761, -0.1555819213, 0.0929448605, 0.1783423722, -0.0913285539, 0.3091127574, -0.1907777935, -0.0310257804, -0.1888783127, -0.0372912399, -0.6020591259, 0.2056047767, -0.0673560053, 0.356151998, -0.1338459551, 0.1697856784, -0.08852458, -0.0355781317, 0.1324370056, 0.4639597237, -0.2376188636, 0.11856848, 0.0307474528, -0.1255322993, -0.1163426265, -0.0373254009, 0.553838253, 0.1713826656, -0.1855172664, -0.2225193381, 0.1629963219, -0.131060794, -0.084390983, -0.0285670199, 0.0622514188, -0.1770804822, -0.229313314, 0.0789540559, -0.3944195211, -0.1642886251, 0.0946887732, 0.0988696888, -0.2255432159, 0.061759837, -0.1010663137, -0.3086924851, 0.0284596831, 0.5793579817, 0.0001595716, -0.303296268, 0.6266492605, 0.3185146451, -0.3612619638, -0.3751991689, -0.1436154395, -0.0106565235, -0.2840613723, 0.1635339111, -0.183724001, -0.2048045248, 0.2417339534, -0.065593712, 0.4959199429, -0.2838371992, -0.2070623636, -0.4194810987, -0.3767536283, 0.107310392, 0.1719779074, 0.4062543809, -0.0608405769, 0.07949806, -0.1906373352, 0.0267612804, -0.2640849054, 0.0510413237, -0.3249843121, -0.0041179671, 0.1803738326, -0.3338365853, 0.1706261188, -0.0946146995, 0.0951183885, 0.2669583857, -0.396761477, -0.1936008036, -0.283921808, 0.1727406234, 0.1831907034, 0.1875666529, -0.0362084843, -0.481929332, 0.1517736316, -0.1275486201, 0.1563567966, 0.4430078268, 0.0996924415, 0.0201968402, 0.4922060668, 0.5121808648, -0.0615383871, -0.1663073748, 0.0085606854, -0.1227523535, 0.2275992185, 0.1465126276, 0.269760251, 0.0608025044, -0.7063055038, 0.0952747688, -0.0336974151, 0.5002021194, 0.2083892822, -0.124519445, 0.0817635208, 0.3356989622, 0.4695411325, 0.0995897651, 0.0851548612, -0.4312776327, 0.0750728771, 0.2180996686, -0.1949426681, -0.2206795961, 0.0516530126, 0.0271152034, -0.0097411294, 0.2591814399, -0.077746667, 0.07370729, -0.1473710984, 0.0924944505, 0.3873281181, -0.1936206967, 0.2883462906, 0.4341546297, 0.0064401533, 0.021056179, 0.4357020557, 0.1177085564, 0.1513449401, 0.3645498157, -0.3053931296, 0.2817716897, -0.1655374169, 0.1307050288, 0.0268971492, -0.3474991322, 0.1095865667, -0.0699458644, 0.375751704, 0.1482127458, -0.4365254939, 0.0476336367, -0.3430121839, 0.3507921398, -0.0970816538, 0.1928211451, -0.1815487891, -0.1472954005, 0.4035932124, -0.1154083908, -0.2209893018, -0.1490308791, 0.0269109625, 0.1895445734, 0.2551186979, 0.267423898, 0.0473332517, -0.3425478935, 0.0956015438, -0.0616036803, 0.0014914311, -0.4026840627, -0.0362292267, 0.1647159457, 0.1490720809, -0.0435551293, 0.1245395541, 0.1121395752, 0.2108324468, -0.1066733599, 0.3312610686, -0.1139926314, -0.0177278873, -0.3874352574, 0.4767233729, -0.2176084965, 0.1350049376, 0.1029508039, 0.059169434, -0.2822972238, -0.050558567, -0.0044265022, -0.1400511116, -0.0281991549, 0.7831403613, 0.2301234156, -0.2302265316, 0.0980292112, 0.2583376169, -0.3196391761, -0.1227684468, 0.5342129469, -0.3212115765, 0.1602585018, -0.0646126494, 0.0469476208, -0.1708563119, 0.3581725657, 0.2508339286, 0.1035976186, -0.3341054916, 0.3696284294, -0.4050317109, 0.1685602963, -0.0889516771, -0.1267608702, 0.1095197052, 0.1299387813, 0.0356420428, -0.1080575958, 0.1481335759, -0.369920373, -0.2403443605, 0.2211830616, -0.193589583, -0.0771974996, 0.1940297931, -0.2089424878, -0.0482485592, -0.3809468448, 0.1235276312, 0.0145463673, 0.0329653248, -0.1984218061, -0.3347179592, 0.3243956268, 0.1012826487, 0.1935378462, 0.0376481265, 0.2797818482, -0.0042297603, -0.0320456587, -0.4217538238, -0.1095190868, -0.0948292166, -0.2987493277, 0.0908324569, 0.4153292775, -0.437517792, -0.079507634, -0.252510339, 0.1178209111, -0.200873971, -0.2907447517, -0.2061670572, 0.1375644654, -0.3852882683, 0.244474858, 0.2087120861, 0.6392321587, 0.2174149156, 0.4519739747, -0.3081021309, -0.3786515594, 0.605517745, -0.4298022687, -0.6699892879, 0.0346012041, 0.1023602635, 0.1385991424, -0.1439061165, -0.4980720282, 0.1530314088, 0.1405943334, -0.2632386982, -0.2928698361, 0.3045799732, 0.0046435124, -0.15607813, -0.0857319757, 0.5018901229, 0.0763127878, -0.1687096804, -0.1481285542, 0.0169171263 ]
https://github.com/huggingface/datasets/issues/3978
I can't view HFcallback dataset for ASR Space
the dataset viewer is working on this dataset. I imagine the issue is that we would expect to be able to listen to the audio files in the `Please Record Your Voice file` column, right? maybe @lhoestq or @albertvillanova could help <img width="1019" alt="Capture d’écran 2022-03-24 aΜ€ 17 36 20" src="https://user-images.githubusercontent.com/1676121/159966006-57dcf8f7-b65f-4200-ac8c-66859318a8bb.png">
## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes
51
I can't view HFcallback dataset for ASR Space ## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes the dataset viewer is working on this dataset. I imagine the issue is that we would expect to be able to listen to the audio files in the `Please Record Your Voice file` column, right? maybe @lhoestq or @albertvillanova could help <img width="1019" alt="Capture d’écran 2022-03-24 aΜ€ 17 36 20" src="https://user-images.githubusercontent.com/1676121/159966006-57dcf8f7-b65f-4200-ac8c-66859318a8bb.png">
[ -0.2916873693, -0.142144084, -0.0383737311, 0.3071325421, 0.0016790606, 0.3776570559, -0.1179486141, 0.2751256526, -0.383146286, 0.3440394998, -0.1850825995, -0.1555973291, -0.2009932548, -0.0877864435, 0.1465865225, 0.3381248713, -0.0852607638, 0.1948905736, 0.1229014471, -0.1652788967, -0.3467812538, 0.0005138148, -0.3551326394, 0.138665393, -0.1143139079, -0.1472113132, -0.1559475809, -0.0601453781, -0.2368642092, -0.6190575361, -0.0353753529, 0.1194372401, 0.3321785927, 0.3191593885, -0.0001234433, -0.0095324945, 0.2244903743, 0.0274661575, -0.3563437462, 0.0087652383, -0.5114051104, 0.1179404706, -0.0680191368, -0.0544297099, -0.1401780844, 0.0274576452, 0.3343566358, -0.4557536244, 0.0826505572, 0.4541828632, 0.090802379, 0.0692100525, -0.0505048074, 0.2109847963, 0.184048444, 0.3531140983, 0.0633598194, -0.0779812187, 0.1152385026, 0.1275238693, -0.4390977919, 0.1985422075, -0.0319935791, 0.0379437022, 0.0602509491, -0.1034145877, -0.3676297963, -0.5624575019, 0.2486274242, 0.296289295, 0.8365830183, -0.2792367935, -0.0440233871, 0.0857587531, -0.0838726982, -0.4396815598, -0.0439106636, 0.4304509461, -0.1607874483, 0.3195385635, 0.1560292542, -0.1623741984, -0.4322438836, 0.2988373637, -0.0222349465, 0.0709048137, -0.3488633037, 0.1211471483, 0.0127903689, 0.0733527094, 0.442482233, 0.0233259704, -0.1065659449, 0.3600756228, -0.2721095085, -0.0261043943, 0.0911228731, 0.2734034956, 0.195409134, -0.2344760001, 0.0388055593, 0.2303287387, -0.260402292, 0.1838258356, -0.0317480452, 0.0905875787, 0.2252800912, 0.3502041101, 0.6207138896, 0.101862371, 0.1707793474, -0.0990015566, -0.2055806518, -0.1351670027, -0.1516927481, -0.3943473995, 0.3613753617, -0.4040419161, -0.3736779392, 0.1514473706, 0.0707390234, -0.2933035493, -0.0863434076, 0.4444206953, 0.1649970412, -0.1238065735, 0.0141985863, 0.0449109823, 0.0631535351, -0.6492155194, -0.0638470799, -0.0830186009, -0.1400321275, 0.2054503411, 0.2023064047, 0.0017467366, -0.1121672019, 0.134381935, 0.3034716845, 0.176139459, 0.0192238335, -0.2539524138, -0.0356179327, 0.2603714466, 0.292937994, 0.2544272542, -0.0212218966, 0.3169887066, -0.0924766138, 0.245781377, -0.0425486825, -0.0282242242, 0.0033648224, 0.1072199196, -0.2537649274, -0.0219645761, -0.4892823994, 0.2051582187, -0.0260204803, -0.3912271261, -0.0227322597, 0.1317273378, -0.2962192595, -0.1678853631, -0.2551723421, 0.5339462757, -0.5944229364, 0.1680142432, -0.1965612918, -0.0417559706, 0.2472143173, -0.2175557911, -0.1094717756, 0.0291213896, -0.6343244314, -0.060760051, 0.6820705533, -0.3576027751, -0.6072973013, 0.1245073229, 0.0810781717, -0.0267437324, 0.1801235825, -0.0099738678, 0.5641444325, -0.0792311504, -0.1289286017, 0.0191792622, 0.1047844514, -0.0745743886, -0.23030518, -0.104941465, 0.2608342767, 0.3238939643, 0.2146280259, 0.3388619125, 0.2921193838, -0.2695750594, 0.5986286998, 0.059281677, 0.3063248098, 0.1023308709, 0.071485132, 0.069701463, 0.0974046141, -0.2228425592, -0.1133528501, -0.1874863356, 0.0318725258, 0.1097667515, -0.0120837316, -0.1772003472, -0.1848702282, -0.2450984269, -0.4316566885, 0.1070955321, 0.0515362844, 0.5161709189, -0.0916160569, 0.0170834325, -0.3136964738, 0.5988961458, -0.0495520793, 0.0871750712, 0.0143122459, 0.347773999, 0.0682859123, 0.1738135219, 0.3372878432, 0.1319360286, 0.2673844397, -0.0595589466, -0.1579130143, 0.1770510674, -0.0271890797, 0.0058852932, -0.0620219298, 0.1200885549, 0.1925075203, -0.7026786804, 0.3654130101, 0.1574629247, 0.0798230469, -0.1696459949, 0.0438763499, -0.0918385684, 0.1332453936, 0.2574356198, 0.1457728893, 0.1662721932, 0.0513914153, 0.0326918066, -0.1813310683, 0.0650288686, 0.253903985, -0.3643349111, 0.1577944607, 0.0342402123, -0.2677188516, 0.0917133242, 0.568300724, -0.0615328997, 0.1024911925, 0.5207375288, -0.3271581233, 0.0056966576, 0.2507317662, 0.148284927, 0.118228659, 0.2225048393, -0.2794814408, 0.039268516, 0.0874461308, 0.0305332579, -0.143815428, 0.2105120718, -0.0609997697, 0.0903764963, 0.2520310283, -0.105407007, -0.3450088799, -0.348500818, 0.1866259277, 0.4198998511, -0.296127826, -0.1845777929, -0.0165813714, -0.3281153738, 0.1509515345, -0.174877584, 0.2155966908, -0.3368275464, -0.0607461445, -0.0563367791, 0.2860675454, -0.1295629293, -0.5599006414, 0.3354699314, -0.062843658, 0.1304382086, -0.1661119461, 0.219612658, -0.4011032879, 0.0832420215, 0.3209810555, 0.1221399158, 0.3675052226, -0.1001939997, 0.1060155481, -0.3260739744, -0.0954220369, 0.1430991739, -0.0956260636, -0.1360772997, -0.2590932548, 0.2192761898, -0.1674112976, -0.023740463, -0.1385986507, 0.3392362297, -0.1607812792, 0.2002301812, -0.1915917397, -0.067435272, 0.253131628, -0.1243779883, -0.3761066794, -0.5444595218, 0.026364794, -0.0540874004, 0.2580614388, -0.0272382125, -0.3311110735, 0.115021728, 0.0206280723, 0.090350017, -0.1593821794, -0.2536050081, 0.3554023206, -0.3027788103, -0.302259028, 0.2597798109, -0.0593552552, 0.3205856681, -0.2193458378, -0.5375496745, -0.0792089328, -0.2322715372, 0.2543559968, -0.1588574052, -0.0791015178, 0.1635635346, -0.0018748171, 0.1973478645, -0.0063989153, -0.2771382928, -0.0673136786, -0.1002169624, 0.0734492615, 0.0903485045, 0.2162026614, -0.2860932946, 0.1149504706, 0.3674968481, 0.1793557405, 0.4045572281, -0.2014696449, 0.2086140662, -0.0331346728, -0.2761022151, 0.2627815008, 0.0415215157, -0.051597409, 0.1777376533, -0.072440885, -0.1278722137, -0.0132831419, -0.2255500108, -0.4156285822, -0.0521790907, -0.2677206099, -0.2052468657, 0.2427684516, 0.1231947988, -0.2713260651, 0.2132775337, -0.3778702021, 0.1230225936, 0.4873612821, 0.23857449, -0.0318950713, -0.3394623697, 0.0289980303, -0.122180663, 0.3138878047, -0.1915757656, 0.3045149148, -0.3046537638, 0.0937915593, 0.3540220261, 0.1825653166, 0.7206643224, -0.015171105, 0.0868308172, 0.0962990448, 0.2177540064, -0.0819068179, 0.1552997679, -0.0415129252, -0.1174878851, -0.2999916077, -0.0735722929, 0.0478728637, 0.1321446002, 0.2047850788, 0.0343586542, -0.0347705521, -0.0663587824, -0.0430047698, -0.1511081755, -0.029225599, -0.2389500886, -0.1274757385, -0.0551253073, -0.0071890084, 0.0585581809, 0.0040249168, -0.1088551208, 0.3822025657, 0.2973252833, 0.289187789, 0.0188567378, 0.0286043566, 0.4164080322, -0.1181475446, 0.5476626158, 0.6138074994, -0.1193350852, -0.5710570812, 0.4589237869, -0.1447021216, 0.4098575115, 0.1810605079, -0.0854433924, 0.3272844255, -0.1066426784, 0.0957239866, -0.4221109748, 0.0936288312, 0.2469703257, 0.1207523495, -0.3328068256, -0.4241974354, 0.4813682437, -0.0359103866, -0.1762020886, 0.1146219, 0.6317074895, -0.1047991961, 0.5344867706, -0.399736166, 1.019410491, 0.0604806691, 0.1533832401, 0.1053047925, -0.3526493311, -0.055865515, -0.6347509623, -0.0257592127, -0.1777649373, 0.0797985792, -0.1672354192, -0.0372234993, 0.0920403972, 0.1245238334, -0.3954555988, 0.1418771148, -0.0246551707, -0.007916837, 0.0093344217, 0.0716092288, -0.1771618277, -0.0223697703, -0.1235698164, 0.1188609228, -0.241850853, 0.316152364, 0.1816273183, -0.0345981196, 0.0847139284, -0.0444172025, -0.3440230489, 0.0636697561, -0.0867132545, -0.4106314182, -0.2159007043, -0.0761913285, 0.5776908994, 0.2147416472, 0.3627282679, 0.2627826333, -0.1246408746, 0.0176462233, 0.1253854334, 0.2999895215, -0.0958353803, 0.3563137352, 0.0301204827, -0.0814125687, -0.2068422288, 0.6095698476, 0.0829222202, -0.0919760093, -0.3206571341, 0.2174149007, 0.2203320712, -0.3260158598, -0.0357328244, -0.1112122536, 0.0203791857, -0.1806638092, 0.0785431787, 0.0786288455, -0.2333912402, 0.0562271401, 0.1953041852, -0.1288886368, 0.0741301626, 0.2610573173, 0.2191308886, 0.063747555, 0.4973227084, 0.1302877218, -0.2483956814, -0.1499898136, -0.0515102483, 0.1155434772, -0.0954123288, -0.0743314326, 0.2154098749, 0.3878113329, -0.1823960841, -0.0297066849, -0.0391556062, 0.0010826096, -0.3734546304, -0.425903827, -0.4566020072, 0.0046955822, -0.2481694818, 0.1072218195, 0.0288901962, -0.1256025583, 0.1063179672, 0.0707801729, -0.2451577634, 0.0512749329, -0.0206118319, 0.0221211184, 0.3890458941, 0.1047124043, 0.1485789567, -0.0692035705, 0.0148182949, 0.2793528736, -0.0118557354, -0.0275722016, 0.2006133199, 0.1855004132, 0.1959769577, -0.0063239723, 0.0400989242, -0.3321884274, -0.1583646834, 0.2317502797, 0.1286770254, 0.2342437655, 0.0900582001, 0.1581121236, 0.0475433804, -0.47923401, 0.1859638095, 0.244354099, 0.0520027056, 0.0749939159, 0.1353258342, 0.1289138645, -0.1082593501, -0.0792701542, -0.0457444452, 0.2622429729, 0.1317372024, -0.3797204494, 0.3713511229, -0.4721400738, 0.5202053189, 0.1229614541, 0.1331374198, 0.0507268719, -0.0775373057, -0.1347655207, 0.2751989067, 0.0336481482, -0.3279130757, -0.1668470651, -0.0323224552, -0.0673756674, 0.1310007423, 0.0472028144, -0.0696047172, -0.135689646, 0.1671427637, 0.0352398343, 0.4224966168, -0.0876867995, -0.0201189741, 0.5511718392, -0.2130867839, 0.0931627527, 0.2718895972, 0.3525978625, -0.1743591577, 0.476169914, -0.3202608526, 0.0496741422, -0.1320000887, 0.0107538579, 0.2199744582, -0.6977474093, 0.1093650833, 0.3723294139, -0.1362068951, -0.0908889025, -0.0564306751, 0.2811022997, 0.5319431424, 0.0632535592, 0.0732912645, -0.1882595122, 0.044581227, 0.2682116926, 0.0146383252, -0.2149421573, -0.1712618321, -0.1509359181, 0.1267282814, -0.3185127974, -0.0243674386, -0.0024180275, -0.1599422693, 0.1417949498, 0.0677498877, 0.1717501581, -0.0604714006, 0.0577719919, 0.2918873429, -0.0612046346, 0.0928175747, 0.2782666385, 0.2981143296, 0.2824327052, 0.1573488861, 0.1970824897, 0.1496193707, -0.1460606903, -0.2272442281, 0.0766616762, 0.2855293453, 0.1828490198, 0.0155656692, -0.0092895012, -0.0043933196, 0.0151840327, 0.2734376192, -0.2141427249, 0.1702362746, 0.0331887417, -0.0787826851, -0.1142495051, -0.177233845, -0.2514294088, -0.4665242732, -0.4527488947, -0.3253574371, 0.5831744671, -0.2648953795, -0.002375287, -0.1826429665, -0.0198736191, -0.2441370189, -0.0914662033, 0.7417106628, -0.0723868012, -0.0970710665, -0.3206203282, -0.4597216845, 0.2772246897, -0.116437465, -0.2338500917, -0.0085471654, -0.0775210708, 0.2028858811, -0.1456751823, 0.3552369475, -0.0388563238, -0.2054861635, 0.3046803474, -0.0450509414, 0.066187419, 0.0254832543, 0.2505016029, -0.4876552224, -0.3365564346, 0.3100914955, 0.2822487056, -0.1290079951, 0.0100019379, 0.2215268016, -0.1625882983, -0.4670167565, 0.0643000901, -0.0986706987, 0.5088026524, -0.1595872343, 0.2083500475, -0.1019744873, -0.0057047773, -0.1533360481, -0.1386416852, 0.1375735998, 0.4163767099, 0.0730035156, -0.3186666667, -0.0815791637, -0.0443955138, -0.2022827417, -0.1594071239, -0.0854105279, 0.2016532868, -0.207835421, 0.249243468, 0.3977701366, -0.3133953512, 0.1829510629, -0.2140394449, -0.3313733041, -0.2071745247, 0.4530530572, -0.3975247741, -0.3032923043, 0.1883866936, 0.3958460391, -0.0272547062, -0.4276711047, -0.3805971742, -0.107209377, 0.4674951434, -0.0249420591, 0.2080507874, 0.3405707777, -0.0350307263, 0.2075570077, -0.0024290625, 0.2612374723, 0.133746922, 0.0509837195, -0.1368522495, -0.3908818066 ]
https://github.com/huggingface/datasets/issues/3978
I can't view HFcallback dataset for ASR Space
The structure of the dataset is not supported. Only the CSV file is parsed and the audio files are ignored. We're working on supporting audio datasets with a specific structure in #3963
## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes
32
I can't view HFcallback dataset for ASR Space ## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes The structure of the dataset is not supported. Only the CSV file is parsed and the audio files are ignored. We're working on supporting audio datasets with a specific structure in #3963
[ -0.3399884105, -0.1958577931, -0.0508293658, 0.281201601, -0.0315378197, 0.3359980583, -0.133547619, 0.2814232111, -0.3438002467, 0.3145847619, -0.1204231083, -0.1139252111, -0.2503626049, 0.0155256502, 0.176128149, 0.3054134846, -0.107241042, 0.2273607552, 0.1579889953, -0.0951578543, -0.3737169504, 0.0494258106, -0.2703896463, 0.0697304904, -0.0043404717, -0.104422152, -0.2299320698, -0.0900093615, -0.2116855532, -0.6428133249, 0.0263287351, 0.1487980485, 0.3796956241, 0.2800369561, -0.000122617, 0.0136802364, 0.2233396769, 0.0145340711, -0.3167947531, 0.0447412804, -0.4784297049, 0.0551012643, -0.0083606411, -0.0104347318, -0.1896303147, 0.0288319904, 0.2457038462, -0.3764941394, 0.0789255872, 0.4076650143, 0.1114362106, 0.1260233819, -0.0173791721, 0.0874415562, 0.1016981602, 0.3417500257, 0.0521031208, -0.0256879181, 0.1167163923, 0.167244941, -0.4562678039, 0.0960943624, -0.0167730041, 0.0791328177, 0.095519945, -0.212536633, -0.3129456937, -0.5615535975, 0.226409778, 0.3413154781, 0.8157067299, -0.2016541511, -0.0746494532, 0.1452615261, -0.1088297963, -0.4577693343, -0.0982626304, 0.4697027504, -0.0613961555, 0.3176855445, 0.2072954178, -0.2037989646, -0.3956957459, 0.3083372712, 0.0547679551, 0.1634596884, -0.3672467768, 0.1375013739, 0.0136562949, 0.0338475704, 0.4391461611, -0.0299996641, -0.1084592789, 0.2949893177, -0.1849657595, 0.0011489493, 0.1048094183, 0.2140187025, 0.259957701, -0.218686372, 0.0096423747, 0.3147499859, -0.2156136632, 0.1796175539, -0.0955432504, 0.0921646655, 0.2186738998, 0.3432726562, 0.6323131919, 0.1727253646, 0.2252688408, -0.0537434034, -0.273799628, -0.1320236772, -0.3034394383, -0.3613592982, 0.4107879996, -0.3405131698, -0.4272580147, 0.0800379664, 0.1397926658, -0.2497058362, -0.0688886419, 0.4852366745, 0.2000623345, -0.1390596926, -0.0230236985, 0.0503045358, 0.0442563333, -0.5887697339, -0.0555896163, -0.0845445171, -0.182723999, 0.1838561594, 0.1512402892, -0.0396137238, -0.1230664179, 0.1435822845, 0.2752892673, 0.2158541828, -0.0542079136, -0.201050207, 0.0030212053, 0.3269922137, 0.280726701, 0.2488330156, -0.0047098212, 0.3541360199, -0.1637505889, 0.2357184738, -0.1593260318, -0.0894523039, -0.1258722842, 0.1206466183, -0.2577424943, -0.0195379872, -0.5019347072, 0.2370167822, -0.0288570188, -0.3553496003, -0.0319198482, 0.1500986069, -0.3393377364, -0.236341238, -0.239474237, 0.5698567629, -0.626680851, 0.1260017157, -0.2220009267, -0.0557752326, 0.2700871825, -0.1448377818, -0.1222446486, -0.0368492603, -0.7095806003, -0.1762056947, 0.6966350079, -0.3373068869, -0.5361367464, 0.147507906, 0.1120621189, -0.0587821752, 0.2112285346, -0.0375220329, 0.5473411679, -0.0950754508, -0.1403459609, 0.0433627665, 0.1545231193, -0.0611812025, -0.2227508873, -0.1240090877, 0.273373574, 0.2334616035, 0.3218260407, 0.3769430816, 0.2840668261, -0.3381034434, 0.5731977224, 0.079804413, 0.3431153297, 0.1665892601, 0.1659812927, 0.0856026858, 0.1715966463, -0.2903831601, -0.1432067156, -0.1028591618, 0.096344389, 0.1746975482, 0.0657569021, -0.1757318527, -0.188092649, -0.2594724, -0.438503623, 0.0244413204, 0.0485452153, 0.5265997648, -0.0208197702, -0.0246923678, -0.3038270772, 0.5025755167, -0.0465432964, 0.1390000433, 0.0073029571, 0.4462565184, 0.0651088506, 0.1270401329, 0.4055878818, 0.1869963855, 0.2655352056, -0.1175960675, -0.0979663581, 0.1437288225, 0.0302403104, -0.1019153669, -0.039262332, 0.1004261822, 0.1777522415, -0.6715275645, 0.3424567282, 0.2504188716, 0.0734968334, -0.1489107609, 0.0392620303, 0.0749447197, 0.1590140015, 0.2631575465, 0.1942757368, 0.2294950634, 0.1274705529, 0.0215036944, -0.1637433618, -0.0634364486, 0.2462489903, -0.3945668638, 0.1536981016, 0.0238436535, -0.2846978009, 0.1000103951, 0.5595635176, 0.0105982646, 0.0968010649, 0.5580288768, -0.3517258465, 0.0675619543, 0.2532398999, 0.1655947268, 0.0687929839, 0.249100849, -0.3809678257, 0.0437442549, 0.1027552336, 0.0025173733, -0.0897192433, 0.10795784, -0.0103239613, 0.0844138935, 0.2784481645, -0.0727727264, -0.3396932185, -0.3906317055, 0.1045574099, 0.4102881849, -0.3530694842, -0.1517125964, -0.0622095168, -0.3684971929, 0.0841173753, -0.1819644868, 0.1983215362, -0.3518553078, -0.093897514, -0.0492690764, 0.2646555007, -0.0996879861, -0.4657264352, 0.2654082179, -0.0094289873, 0.1377082169, -0.1385801286, 0.2011017948, -0.3439633846, 0.0955031514, 0.2785817087, 0.1127718017, 0.3653861284, -0.143790856, 0.1547190249, -0.3940393031, -0.1567666233, 0.2057605684, -0.1134163067, -0.1090431139, -0.174868688, 0.2126346678, -0.190482825, -0.0865269899, -0.0918668211, 0.2459978312, -0.1655187458, 0.3032183647, -0.1517729163, -0.1346389502, 0.1929862648, -0.1269759536, -0.3392395675, -0.5684355497, 0.0217072498, -0.0261185151, 0.2567103803, 0.0042224606, -0.2688613236, 0.1328782439, 0.0600379705, -0.0113296658, -0.0889960155, -0.2302718759, 0.3959746957, -0.3629840314, -0.3672967255, 0.2680688202, -0.0775086358, 0.2394075692, -0.1900829524, -0.4131779075, -0.054300122, -0.270862937, 0.2443614304, -0.1329104751, -0.0400489755, 0.2313826084, 0.0261828955, 0.184127003, -0.0629541352, -0.2774280608, -0.1253177971, -0.145122081, -0.0134478789, 0.0823561475, 0.2234967202, -0.2474099696, 0.2131757438, 0.3265721798, 0.0933946297, 0.4687970877, -0.1815629303, 0.291823715, -0.0567926504, -0.2787580192, 0.1845755875, 0.0937731639, -0.0232535582, 0.2313709706, -0.0797270089, -0.1109945923, -0.0062646419, -0.2234621644, -0.407809943, -0.0627814382, -0.3234284818, -0.2416314483, 0.2575282454, 0.0712847933, -0.3085837066, 0.2490783781, -0.394110024, 0.1177755818, 0.6114875674, 0.1911421567, -0.0077304123, -0.4412973225, 0.0430867486, -0.1389862746, 0.3600260019, -0.1989955157, 0.3190195858, -0.2596689463, 0.1117383018, 0.3049030602, 0.1751071215, 0.6992762089, -0.0418529399, 0.1230407953, 0.1215751395, 0.1708033532, -0.1303849369, 0.0757008567, -0.0832560211, 0.0044239215, -0.2933745384, -0.0549187176, 0.0945852771, 0.0420754887, 0.1672186255, 0.0330451764, -0.0536733121, -0.0582603514, -0.1578436643, -0.1657518744, -0.1095395535, -0.2532614768, -0.1198568121, -0.060820438, -0.0141780488, -0.0144458134, -0.117677629, -0.197630927, 0.3494253457, 0.2454519421, 0.3303880095, 0.0231271181, -0.0451740101, 0.2988304198, -0.1287142932, 0.6747406721, 0.5579635501, -0.1230562478, -0.6764394045, 0.5349211693, -0.0953636914, 0.4404415488, 0.1124799922, -0.1043991297, 0.2981758416, -0.1101378053, 0.0964218155, -0.4689689875, 0.0199216641, 0.2211208493, 0.039194122, -0.4753327668, -0.406534642, 0.3881570101, -0.045071125, -0.1834728718, 0.1068594307, 0.711368382, -0.147509709, 0.5031135082, -0.354485482, 0.9482866526, -0.0450346284, 0.1137726083, 0.13756226, -0.3213079572, 0.0716846511, -0.5290586352, 0.0101713212, -0.2534009814, 0.0704340115, -0.1795622408, -0.0573014915, 0.1809040755, 0.1518018842, -0.4339160025, 0.3074111342, -0.0858669057, 0.1355792731, -0.0051619126, 0.1138891429, -0.1863258779, 0.0289844554, -0.2220146507, 0.122486569, -0.3094180226, 0.2841699123, 0.0986612067, -0.0720540136, 0.1385841817, -0.0827464908, -0.4289283156, 0.0461856797, -0.0622310936, -0.3556388319, -0.1731976867, -0.0994454101, 0.611299932, 0.1587769091, 0.3868432343, 0.2559296191, -0.1304318905, -0.0490596853, -0.0303883627, 0.1843405962, -0.1918672025, 0.3222615421, 0.0176332183, -0.0307330489, -0.1754411012, 0.5443466306, 0.1041643471, -0.0752481744, -0.2187232077, 0.1892754734, 0.1149729341, -0.3357193172, -0.0434927531, -0.1431429088, 0.0176881198, -0.1981241107, 0.0837158859, 0.0074405596, -0.2083533406, -0.0648082197, 0.3065954447, -0.1069737673, 0.047350578, 0.2375394255, 0.2743574679, 0.0436222516, 0.4214887917, 0.1495334059, -0.2754502594, -0.1517218053, -0.0440038964, 0.1260246933, -0.0470022634, 0.0145972427, 0.1974616647, 0.3592151999, -0.087948963, -0.0105073005, -0.0627642274, 0.0784700364, -0.3342791796, -0.5091573596, -0.342729032, 0.0457311012, -0.3757242262, 0.0340744071, 0.0667626038, -0.1046449095, 0.1529896408, 0.0193952806, -0.2544309795, 0.0774262995, -0.0121373907, -0.0171995647, 0.3700800836, 0.1597276777, 0.0863568336, -0.0975543186, -0.0430503525, 0.2021876127, -0.0479167476, -0.0345949791, 0.2038116008, 0.1790803522, 0.1383257359, 0.0703207254, 0.0295335054, -0.3450036943, -0.1487082988, 0.1994210482, 0.1727139205, 0.2470815182, 0.0227960497, 0.2148781121, 0.0861586481, -0.4702189863, 0.1830903292, 0.2092846483, -0.0195926242, 0.1108255312, 0.1758453399, 0.1118914336, -0.0707618892, -0.0499946401, -0.0383674316, 0.2780129313, 0.1600457877, -0.3298250139, 0.3862717748, -0.4814178944, 0.5035584569, 0.0738575235, 0.1318523288, 0.1163483709, -0.0363833942, -0.1243170276, 0.3416905701, 0.0355211459, -0.3782464266, -0.1495643407, -0.0059881085, -0.0141828861, 0.1138033494, 0.0981465206, 0.0328928865, -0.2140454948, 0.2017136067, 0.0700794533, 0.4975319803, -0.0432291739, 0.0796745941, 0.5489250422, -0.1487824917, 0.1499384195, 0.2840906978, 0.3230154812, -0.1385065466, 0.4250059724, -0.2219115794, 0.1197928265, 0.0032086396, 0.0126532614, 0.2773528993, -0.7211375833, 0.0786388442, 0.314045459, -0.0739601701, -0.1400574297, -0.0277107805, 0.336414516, 0.5340941548, 0.0782346204, 0.0524221845, -0.1759512573, -0.0047327657, 0.2720760107, 0.0385679379, -0.190342769, -0.1304734945, -0.1375235617, 0.1114468724, -0.2327342629, 0.0248720851, -0.0731147975, -0.0831419006, 0.0864011198, 0.2482780367, 0.1805729717, -0.0416344665, 0.0482678004, 0.263268888, -0.0783084556, 0.0789518952, 0.1747049838, 0.2581912577, 0.3081258535, 0.205653891, 0.1470097601, 0.0660900399, -0.1714693457, -0.2214257568, 0.0880170763, 0.3000177145, 0.2042390406, -0.0447525308, -0.030683089, -0.0011124683, 0.0093970615, 0.3035489917, -0.2268306017, 0.1626163721, 0.0321649313, -0.093728967, -0.1059198901, -0.1242285892, -0.1743565947, -0.4277462363, -0.4225842953, -0.3132920563, 0.6229586005, -0.25026986, -0.0234317277, -0.1826203316, -0.0131726302, -0.1673317999, -0.0218054522, 0.7315739393, -0.0674365163, -0.0626149774, -0.3205392957, -0.4260147512, 0.2606401742, -0.1197824106, -0.1626889855, -0.064327836, -0.0772499964, 0.1815975159, -0.1257013232, 0.2841345966, -0.0090084774, -0.147659421, 0.2374993265, -0.020358583, 0.0695392489, -0.0578439534, 0.1748454422, -0.480083555, -0.3165642023, 0.2247127742, 0.2204416692, -0.13914226, -0.058136262, 0.2094256431, -0.1571448147, -0.4563504755, 0.0950533524, -0.0339399129, 0.5322592258, -0.15858832, 0.194709003, -0.1375296265, -0.1020721942, -0.0653675795, 0.0278388988, 0.1407205462, 0.3025627732, -0.0003528839, -0.34003824, -0.1266278476, 0.0139092943, -0.161408186, -0.0718086362, -0.1063782871, 0.268717885, -0.2385848612, 0.2152670771, 0.4083884358, -0.2584879696, 0.1617829204, -0.2320142686, -0.2702663839, -0.2385126203, 0.3689097762, -0.3682694137, -0.3796035647, 0.1552703381, 0.3627698421, 0.0185640156, -0.4088622034, -0.3885897696, -0.1025870889, 0.4413813353, 0.0018164493, 0.159389168, 0.37032938, -0.0461175554, 0.1241142675, 0.0009455681, 0.2083615512, 0.161646679, 0.0043445053, -0.198882401, -0.3963397145 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
Hi ! You can download the `oscar.py` file from this repository at `/datasets/oscar/oscar.py`. Then you can load the dataset by passing the local path to `oscar.py` to `load_dataset`: ```python load_dataset("path/to/oscar.py", "unshuffled_deduplicated_it") ```
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
32
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? Hi ! You can download the `oscar.py` file from this repository at `/datasets/oscar/oscar.py`. Then you can load the dataset by passing the local path to `oscar.py` to `load_dataset`: ```python load_dataset("path/to/oscar.py", "unshuffled_deduplicated_it") ```
[ -0.5248149037, 0.040523652, -0.1230329275, 0.0725033507, 0.3041601479, -0.0861737803, 0.379427731, 0.3197905421, 0.165754199, 0.1261253059, -0.0368026756, 0.1544637829, 0.029569976, 0.2415486127, -0.0804178566, 0.0118006617, 0.0215492398, 0.2121124864, -0.2936368585, 0.143444702, -0.1580766439, 0.0597130917, -0.1213338152, 0.0628933311, 0.0264170133, -0.0918864533, 0.0635952204, 0.0924893692, -0.2721809447, -0.5847227573, 0.3350659907, 0.0544016659, 0.1639635712, 0.3337171078, -0.0001032296, 0.1607511342, 0.3830232322, 0.0225939155, -0.4438837469, -0.0753619671, -0.2600418925, -0.1699306816, 0.1725029349, -0.2509514093, -0.1271162182, -0.1427577585, 0.0133184297, -0.1045695543, 0.4266456962, 0.5949543715, 0.3087109029, 0.2350478619, 0.2211328894, -0.2260816991, -0.0938684717, -0.0528600216, -0.0494217314, 0.3206470311, -0.1541196257, -0.0526121855, -0.0211273022, 0.1484285444, -0.0330745429, 0.1317688823, 0.185314402, -0.1362235546, 0.2192588896, -0.2343800068, 0.2789017856, 0.1347587705, 0.3769881129, -0.2704376876, -0.1939042807, -0.0663901567, 0.0133974114, -0.1153045744, 0.2672588825, -0.0227161665, -0.2561773062, 0.1315237582, 0.1152301133, -0.0420314185, -0.292009443, 0.1214199364, -0.2473966926, 0.3689370155, -0.1031118408, 0.1338787079, 0.1406414211, -0.2849051058, 0.3763565719, -0.2655765712, -0.0630823523, -0.0249632765, -0.3652108908, -0.0172485225, 0.0610819012, -0.1850278676, 0.0179429539, 0.2507582903, -0.1675682366, 0.0015168117, 0.2556135356, 0.0941411555, 0.1876467019, -0.0191311501, -0.0684207529, 0.2050613612, 0.2798158228, 0.4794408083, -0.0046104579, -0.019334387, 0.0774069205, -0.3451928496, 0.1494957656, 0.2217476219, 0.5676454306, -0.0497963876, -0.3642170727, 0.0815466121, -0.0719115213, -0.062608175, 0.1049009785, 0.5125080943, -0.1762954742, -0.0208247676, 0.0871408209, 0.0257268175, -0.1565680802, 0.0333855636, -0.2656221986, 0.0218056571, -0.0177686457, -0.060003154, 0.1233202368, -0.2167026848, 0.0878131092, 0.0247983132, 0.0363382325, -0.0132873338, 0.178739354, -0.2246454209, -0.0337172486, 0.3683736622, 0.079028815, 0.1233738586, 0.1865828335, -0.3182590008, 0.0053789513, -0.0215354506, -0.1364101022, -0.3689144254, -0.2977694571, 0.352627635, -0.0992431268, -0.0255752113, 0.1224339604, -0.1396497637, 0.1118072271, -0.18430911, -0.0066949618, -0.3930799663, -0.0140004195, -0.2388254106, 0.4356185198, 0.5765902996, -0.2544671297, -0.019435076, -0.1086842045, -0.3297650516, 0.1433627009, -0.0008664709, -0.1209413409, 0.1959982812, -0.2833371162, 0.0140804769, 0.4933345914, -0.2732447684, -0.4745297432, 0.2703972459, -0.0774072632, -0.0675546676, 0.1488502473, 0.0251266975, 0.1717927903, 0.1925429851, 0.2184544355, 0.097583428, -0.1320058405, 0.0138852913, -0.1103776023, -0.2811442912, 0.0865604952, 0.2148655504, 0.096492812, 0.0370332971, 0.2573038042, -0.0018461617, 0.2437435687, -0.0702358931, 0.0848947763, 0.1108253375, 0.2402844876, 0.2289814949, -0.0890919939, -0.0985052809, -0.3618348837, 0.166738987, 0.0708521008, 0.2703918517, -0.2953440249, -0.0068603451, -0.3324000239, 0.0225029346, -0.3172860146, -0.2356595248, 0.3202824593, 0.3172686994, 0.0873092785, 0.1541064233, -0.1639430225, 0.3611117303, -0.0898955092, 0.1543646455, -0.3304595351, 0.3856512904, -0.3553183973, -0.1974292397, 0.1665092707, -0.045564767, 0.2814328671, -0.1167607754, -0.1832755506, 0.2978258431, -0.1057499871, 0.1631052792, -0.0631919801, -0.0845944881, 0.0249381028, -0.2407683581, 0.1089294851, 0.1619397402, 0.2229105234, -0.0165448226, 0.0845862776, 0.3176098168, -0.0448931009, 0.2343652099, 0.1467713416, 0.1388760656, 0.4060240686, -0.0116491187, -0.0589957274, 0.0225233156, 0.0543648377, -0.1573623717, 0.2438282073, -0.2047212571, -0.154778108, 0.1012209728, 0.2893354893, -0.0325206332, 0.1159037277, -0.0359677598, -0.187846601, -0.0219849441, 0.1158396527, 0.3814060688, 0.4593288004, 0.0940861329, -0.1313470602, 0.2244413495, 0.0116805527, -0.0999063328, 0.3175114095, -0.0251845047, 0.0247130599, 0.2216824144, -0.0086905258, -0.0564418435, -0.3081172407, -0.4279346764, -0.2288103253, 0.3844626546, -0.2976516485, 0.1923936009, -0.1080934778, -0.4097385705, -0.1233199909, 0.1638266444, -0.174672246, -0.2784342766, -0.2045121193, 0.2484969646, -0.0588207245, 0.1951925159, -0.3050098419, 0.0053673829, 0.203263998, -0.0682167187, -0.0573420338, -0.1106281281, -0.0692982748, 0.1607011706, 0.1619071662, 0.0898404196, 0.456648618, -0.1733339131, 0.0086403489, -0.2272704542, -0.1802410781, 0.0204279777, 0.0706616789, 0.095889166, 0.4718351364, 0.4023368657, 0.1296421289, -0.4160858989, 0.3316512406, -0.1155414283, -0.0953335613, 0.0498098433, -0.1012488082, 0.0574599728, -0.0175372083, -0.4779074788, -0.4305973947, -0.4179044366, 0.049583558, 0.0944468528, 0.1638167202, 0.1572207958, 0.094363153, 0.240865007, -0.0294094495, 0.0499747954, -0.1950812489, -0.2628128827, 0.2003070265, -0.1548716277, -0.3877333999, 0.1066553816, -0.022867823, 0.1981834918, -0.2459311038, -0.5698670745, -0.3658428192, -0.1819874048, 0.3429220915, -0.0642677993, -0.0980044678, 0.2897352874, 0.1094277799, -0.1510211974, -0.0023642674, -0.3675796986, -0.0354960077, 0.0333932303, 0.0989800915, -0.0744054317, 0.5484484434, -0.1492922157, 0.4120689332, 0.2601546645, -0.0247458611, 0.2816316187, -0.1954272687, 0.276199609, -0.1008625031, -0.4945633113, 0.1130715087, 0.0432168394, 0.0221991539, 0.0754760131, -0.1758337617, -0.0101038124, -0.2960942686, -0.0057411371, -0.1998947114, -0.212282449, 0.0232856814, -0.1751740426, 0.0291306283, -0.0788471103, 0.0112787569, -0.2012251168, 0.034038797, -0.0709402189, 0.3898420334, -0.0914304405, -0.0414969362, -0.371504128, -0.0763454363, -0.4782927036, 0.2380043864, -0.0107992543, 0.3943246901, -0.2544142008, -0.0568364039, 0.0575072058, -0.1579571366, 0.2725334466, -0.1889369488, 0.0736242309, 0.2590825558, 0.1148895994, -0.2326652706, -0.095431976, -0.1666535437, 0.2130458057, 0.2680742741, 0.1405575275, -0.2034699023, -0.0908514336, 0.2623948753, 0.0532126725, -0.2037951797, 0.0266014058, -0.2134417593, -0.4743490219, -0.2818517387, -0.0204406437, -0.19123739, 0.1335671842, 0.0549869426, 0.0285452958, -0.0205861609, -0.0272799172, -0.0409764573, 0.2094241083, -0.0691880211, -0.130994305, 0.3358783424, 0.1157036647, 0.1482877731, 0.4378654659, 0.6769539118, -0.0694246888, -0.689909935, -0.0809615254, 0.0518615656, -0.0451885574, 0.0609447062, -0.1279144585, 0.0860835314, 0.0432816595, 0.3693659902, -0.1242099553, 0.1319570988, 0.3456197083, 0.0634787902, -0.4748463333, -0.4151926041, -0.0274869241, -0.2298889309, -0.0821822435, -0.0361402184, 0.107544221, -0.1986008435, 0.3165301979, -0.3249162138, 0.7054340839, 0.2348481417, -0.0746413916, 0.3237811029, -0.1675436348, 0.5478765368, -0.2046764344, 0.0434835926, -0.2822029293, -0.1322431117, 0.0454271138, -0.1345933229, 0.3515822887, -0.207466349, -0.3245688975, 0.2710917592, -0.0519798957, 0.0632451922, -0.046437569, 0.2215224802, -0.2527018487, 0.0796570182, -0.2668376267, 0.3141141236, -0.1192878932, 0.3367063105, -0.0494056456, -0.210871011, 0.0448293537, -0.3989043534, -0.1825060248, 0.1253214478, -0.3104631901, 0.1367134154, -0.0282988939, -0.186628446, 0.0160661675, 0.0317391977, 0.2939422727, -0.1041297317, -0.0751269236, 0.1690351516, -0.0705166161, 0.0123767452, -0.0534526892, -0.0253505483, 0.165536955, -0.2067498118, -0.3719680011, 0.2592321634, 0.0325298496, -0.3715871871, 0.219328627, 0.1176776588, 0.1285212785, -0.3902322352, 0.1690584719, -0.2446874827, -0.0616545901, -0.2952109575, 0.2518806756, 0.0039180052, -0.0792586505, 0.1976798773, 0.0241311006, -0.1665938944, -0.0916857719, 0.4564935863, -0.0018754405, 0.0363485105, 0.4682958126, -0.0226690676, -0.2191780508, -0.3535011709, 0.0366902836, -0.1018353179, -0.3600429296, 0.0033634114, -0.0720673427, 0.1297989935, 0.0770968348, 0.0095868465, 0.1300438195, 0.139184162, 0.0093851173, -0.5026985407, -0.2815226018, -0.1156679615, 0.0274134558, 0.2044064552, 0.1024860069, 0.2655484974, -0.084474653, -0.0402603447, -0.4307466149, 0.0776848197, -0.3320927322, 0.1361427009, 0.2370241433, -0.1819137931, 0.1668589711, -0.0888589844, 0.3069466949, -0.0922830552, -0.2236818373, -0.3488815427, 0.0539856963, 0.0680668876, -0.0025359141, -0.3869316876, -0.2209595442, -0.1348834336, -0.0917251855, 0.0615387037, 0.1269112527, 0.0708846226, -0.1991492808, 0.081318669, -0.046811752, 0.065792121, -0.0645852238, 0.2825683951, -0.1248583719, 0.3672303855, -0.1008244753, 0.330114603, -0.2541351616, -0.0960786343, -0.0724376068, 0.1856044978, -0.0236952845, 0.0627194494, 0.4409432411, -0.1987116486, -0.1662281752, -0.0558099672, 0.2913613617, 0.4696550965, -0.3229622841, 0.1365726292, 0.0449834429, 0.3554208875, -0.1938936114, -0.0150362384, 0.1663514227, 0.0039539738, 0.1663464755, 0.0106529761, -0.117137596, -0.1680072993, 0.0511407182, 0.1151048988, 0.4547314048, 0.0374675915, 0.2497938871, 0.5506364703, -0.0758395046, -0.0764913857, 0.2184364945, 0.0582549423, 0.1417235285, 0.5635435581, -0.2814537287, 0.3456499279, 0.0152608007, -0.0004706187, 0.1758255363, -0.3220490515, 0.1362470835, 0.026183147, -0.333496958, -0.2632864714, 0.0670349076, 0.1029890999, -0.2506716251, -0.1310003698, -0.2523129284, 0.066107288, -0.1547338963, -0.019156538, -0.0078117065, -0.0920326933, -0.0614684522, -0.1029288545, 0.2407509089, -0.0761448517, 0.1470612437, 0.0810853764, -0.1373152733, -0.1889929175, -0.1814133078, 0.1730406135, 0.0431972183, -0.1138740629, 0.1160896346, 0.4162257016, 0.0114426436, -0.0517087691, 0.4485640824, 0.7024621367, 0.2506974936, -0.0180028547, 0.2781977654, 0.065164417, -0.1715701073, -0.1216566414, -0.0462339483, -0.0936013237, 0.0901760161, 0.359592855, 0.3441751897, -0.2294066548, 0.1580892205, -0.0740269348, -0.0738181472, -0.1520431191, 0.1456703395, -0.1248114929, -0.0720471069, -0.235332042, 0.0414094366, -0.3682884574, -0.2032464594, 0.2662018239, -0.1119170412, 0.3393989503, -0.218494013, 0.1320830584, -0.2051074952, 0.5254541039, 0.0856599286, 0.2423616946, -0.1519323289, -0.1182737052, -0.4373203218, 0.0970544294, -0.0705553517, -0.0650265589, -0.2627158463, 0.1811017245, -0.2009331584, 0.1778687388, 0.251758188, 0.1569930315, 0.1309022903, 0.1834549159, -0.1841633022, -0.2023489475, 0.0517867357, -0.0612592064, -0.0073995488, -0.3829692304, 0.3222231269, -0.255838424, 0.1896577179, -0.0419959687, -0.1358307302, 0.1195980459, -0.0749320388, 0.5592896342, 0.291441232, 0.6465476751, -0.1111862436, -0.1426215172, -0.0561990999, -0.2643940449, -0.0356095545, 0.1849578321, 0.2205905914, 0.2121949643, 0.0759212077, -0.1084873825, -0.270537287, 0.4441295564, -0.0670009106, -0.0112398183, -0.2124060392, 0.1069641113, -0.0376998857, 0.1096094698, -0.0919886976, -0.1668414772, -0.0024392384, 0.087381728, -0.2711553574, -0.3653766811, 0.3906500638, -0.1145243645, -0.0587036982, -0.2743096054, 0.3120082915, -0.1287270188, 0.2038162798, -0.5106651187, 0.2680855691, 0.3385545015, -0.1110035703, -0.2565118372, 0.241507411, -0.0612004176, 0.1871724576, 0.0423918366, 0.2452308834, -0.0002002981, -0.1311198175, 0.1252477169, -0.0863222107 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
it works,but another error occurs. ``` ConnectionError: Couldn't reach https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (SSLError(MaxRetryError("HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` I can access `https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt` and `https://aws.amazon.com/cn/s3/` directly, so why it reports a SSLError, should I need tomodify the host file?
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
49
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? it works,but another error occurs. ``` ConnectionError: Couldn't reach https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (SSLError(MaxRetryError("HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` I can access `https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt` and `https://aws.amazon.com/cn/s3/` directly, so why it reports a SSLError, should I need tomodify the host file?
[ -0.5248149037, 0.040523652, -0.1230329275, 0.0725033507, 0.3041601479, -0.0861737803, 0.379427731, 0.3197905421, 0.165754199, 0.1261253059, -0.0368026756, 0.1544637829, 0.029569976, 0.2415486127, -0.0804178566, 0.0118006617, 0.0215492398, 0.2121124864, -0.2936368585, 0.143444702, -0.1580766439, 0.0597130917, -0.1213338152, 0.0628933311, 0.0264170133, -0.0918864533, 0.0635952204, 0.0924893692, -0.2721809447, -0.5847227573, 0.3350659907, 0.0544016659, 0.1639635712, 0.3337171078, -0.0001032296, 0.1607511342, 0.3830232322, 0.0225939155, -0.4438837469, -0.0753619671, -0.2600418925, -0.1699306816, 0.1725029349, -0.2509514093, -0.1271162182, -0.1427577585, 0.0133184297, -0.1045695543, 0.4266456962, 0.5949543715, 0.3087109029, 0.2350478619, 0.2211328894, -0.2260816991, -0.0938684717, -0.0528600216, -0.0494217314, 0.3206470311, -0.1541196257, -0.0526121855, -0.0211273022, 0.1484285444, -0.0330745429, 0.1317688823, 0.185314402, -0.1362235546, 0.2192588896, -0.2343800068, 0.2789017856, 0.1347587705, 0.3769881129, -0.2704376876, -0.1939042807, -0.0663901567, 0.0133974114, -0.1153045744, 0.2672588825, -0.0227161665, -0.2561773062, 0.1315237582, 0.1152301133, -0.0420314185, -0.292009443, 0.1214199364, -0.2473966926, 0.3689370155, -0.1031118408, 0.1338787079, 0.1406414211, -0.2849051058, 0.3763565719, -0.2655765712, -0.0630823523, -0.0249632765, -0.3652108908, -0.0172485225, 0.0610819012, -0.1850278676, 0.0179429539, 0.2507582903, -0.1675682366, 0.0015168117, 0.2556135356, 0.0941411555, 0.1876467019, -0.0191311501, -0.0684207529, 0.2050613612, 0.2798158228, 0.4794408083, -0.0046104579, -0.019334387, 0.0774069205, -0.3451928496, 0.1494957656, 0.2217476219, 0.5676454306, -0.0497963876, -0.3642170727, 0.0815466121, -0.0719115213, -0.062608175, 0.1049009785, 0.5125080943, -0.1762954742, -0.0208247676, 0.0871408209, 0.0257268175, -0.1565680802, 0.0333855636, -0.2656221986, 0.0218056571, -0.0177686457, -0.060003154, 0.1233202368, -0.2167026848, 0.0878131092, 0.0247983132, 0.0363382325, -0.0132873338, 0.178739354, -0.2246454209, -0.0337172486, 0.3683736622, 0.079028815, 0.1233738586, 0.1865828335, -0.3182590008, 0.0053789513, -0.0215354506, -0.1364101022, -0.3689144254, -0.2977694571, 0.352627635, -0.0992431268, -0.0255752113, 0.1224339604, -0.1396497637, 0.1118072271, -0.18430911, -0.0066949618, -0.3930799663, -0.0140004195, -0.2388254106, 0.4356185198, 0.5765902996, -0.2544671297, -0.019435076, -0.1086842045, -0.3297650516, 0.1433627009, -0.0008664709, -0.1209413409, 0.1959982812, -0.2833371162, 0.0140804769, 0.4933345914, -0.2732447684, -0.4745297432, 0.2703972459, -0.0774072632, -0.0675546676, 0.1488502473, 0.0251266975, 0.1717927903, 0.1925429851, 0.2184544355, 0.097583428, -0.1320058405, 0.0138852913, -0.1103776023, -0.2811442912, 0.0865604952, 0.2148655504, 0.096492812, 0.0370332971, 0.2573038042, -0.0018461617, 0.2437435687, -0.0702358931, 0.0848947763, 0.1108253375, 0.2402844876, 0.2289814949, -0.0890919939, -0.0985052809, -0.3618348837, 0.166738987, 0.0708521008, 0.2703918517, -0.2953440249, -0.0068603451, -0.3324000239, 0.0225029346, -0.3172860146, -0.2356595248, 0.3202824593, 0.3172686994, 0.0873092785, 0.1541064233, -0.1639430225, 0.3611117303, -0.0898955092, 0.1543646455, -0.3304595351, 0.3856512904, -0.3553183973, -0.1974292397, 0.1665092707, -0.045564767, 0.2814328671, -0.1167607754, -0.1832755506, 0.2978258431, -0.1057499871, 0.1631052792, -0.0631919801, -0.0845944881, 0.0249381028, -0.2407683581, 0.1089294851, 0.1619397402, 0.2229105234, -0.0165448226, 0.0845862776, 0.3176098168, -0.0448931009, 0.2343652099, 0.1467713416, 0.1388760656, 0.4060240686, -0.0116491187, -0.0589957274, 0.0225233156, 0.0543648377, -0.1573623717, 0.2438282073, -0.2047212571, -0.154778108, 0.1012209728, 0.2893354893, -0.0325206332, 0.1159037277, -0.0359677598, -0.187846601, -0.0219849441, 0.1158396527, 0.3814060688, 0.4593288004, 0.0940861329, -0.1313470602, 0.2244413495, 0.0116805527, -0.0999063328, 0.3175114095, -0.0251845047, 0.0247130599, 0.2216824144, -0.0086905258, -0.0564418435, -0.3081172407, -0.4279346764, -0.2288103253, 0.3844626546, -0.2976516485, 0.1923936009, -0.1080934778, -0.4097385705, -0.1233199909, 0.1638266444, -0.174672246, -0.2784342766, -0.2045121193, 0.2484969646, -0.0588207245, 0.1951925159, -0.3050098419, 0.0053673829, 0.203263998, -0.0682167187, -0.0573420338, -0.1106281281, -0.0692982748, 0.1607011706, 0.1619071662, 0.0898404196, 0.456648618, -0.1733339131, 0.0086403489, -0.2272704542, -0.1802410781, 0.0204279777, 0.0706616789, 0.095889166, 0.4718351364, 0.4023368657, 0.1296421289, -0.4160858989, 0.3316512406, -0.1155414283, -0.0953335613, 0.0498098433, -0.1012488082, 0.0574599728, -0.0175372083, -0.4779074788, -0.4305973947, -0.4179044366, 0.049583558, 0.0944468528, 0.1638167202, 0.1572207958, 0.094363153, 0.240865007, -0.0294094495, 0.0499747954, -0.1950812489, -0.2628128827, 0.2003070265, -0.1548716277, -0.3877333999, 0.1066553816, -0.022867823, 0.1981834918, -0.2459311038, -0.5698670745, -0.3658428192, -0.1819874048, 0.3429220915, -0.0642677993, -0.0980044678, 0.2897352874, 0.1094277799, -0.1510211974, -0.0023642674, -0.3675796986, -0.0354960077, 0.0333932303, 0.0989800915, -0.0744054317, 0.5484484434, -0.1492922157, 0.4120689332, 0.2601546645, -0.0247458611, 0.2816316187, -0.1954272687, 0.276199609, -0.1008625031, -0.4945633113, 0.1130715087, 0.0432168394, 0.0221991539, 0.0754760131, -0.1758337617, -0.0101038124, -0.2960942686, -0.0057411371, -0.1998947114, -0.212282449, 0.0232856814, -0.1751740426, 0.0291306283, -0.0788471103, 0.0112787569, -0.2012251168, 0.034038797, -0.0709402189, 0.3898420334, -0.0914304405, -0.0414969362, -0.371504128, -0.0763454363, -0.4782927036, 0.2380043864, -0.0107992543, 0.3943246901, -0.2544142008, -0.0568364039, 0.0575072058, -0.1579571366, 0.2725334466, -0.1889369488, 0.0736242309, 0.2590825558, 0.1148895994, -0.2326652706, -0.095431976, -0.1666535437, 0.2130458057, 0.2680742741, 0.1405575275, -0.2034699023, -0.0908514336, 0.2623948753, 0.0532126725, -0.2037951797, 0.0266014058, -0.2134417593, -0.4743490219, -0.2818517387, -0.0204406437, -0.19123739, 0.1335671842, 0.0549869426, 0.0285452958, -0.0205861609, -0.0272799172, -0.0409764573, 0.2094241083, -0.0691880211, -0.130994305, 0.3358783424, 0.1157036647, 0.1482877731, 0.4378654659, 0.6769539118, -0.0694246888, -0.689909935, -0.0809615254, 0.0518615656, -0.0451885574, 0.0609447062, -0.1279144585, 0.0860835314, 0.0432816595, 0.3693659902, -0.1242099553, 0.1319570988, 0.3456197083, 0.0634787902, -0.4748463333, -0.4151926041, -0.0274869241, -0.2298889309, -0.0821822435, -0.0361402184, 0.107544221, -0.1986008435, 0.3165301979, -0.3249162138, 0.7054340839, 0.2348481417, -0.0746413916, 0.3237811029, -0.1675436348, 0.5478765368, -0.2046764344, 0.0434835926, -0.2822029293, -0.1322431117, 0.0454271138, -0.1345933229, 0.3515822887, -0.207466349, -0.3245688975, 0.2710917592, -0.0519798957, 0.0632451922, -0.046437569, 0.2215224802, -0.2527018487, 0.0796570182, -0.2668376267, 0.3141141236, -0.1192878932, 0.3367063105, -0.0494056456, -0.210871011, 0.0448293537, -0.3989043534, -0.1825060248, 0.1253214478, -0.3104631901, 0.1367134154, -0.0282988939, -0.186628446, 0.0160661675, 0.0317391977, 0.2939422727, -0.1041297317, -0.0751269236, 0.1690351516, -0.0705166161, 0.0123767452, -0.0534526892, -0.0253505483, 0.165536955, -0.2067498118, -0.3719680011, 0.2592321634, 0.0325298496, -0.3715871871, 0.219328627, 0.1176776588, 0.1285212785, -0.3902322352, 0.1690584719, -0.2446874827, -0.0616545901, -0.2952109575, 0.2518806756, 0.0039180052, -0.0792586505, 0.1976798773, 0.0241311006, -0.1665938944, -0.0916857719, 0.4564935863, -0.0018754405, 0.0363485105, 0.4682958126, -0.0226690676, -0.2191780508, -0.3535011709, 0.0366902836, -0.1018353179, -0.3600429296, 0.0033634114, -0.0720673427, 0.1297989935, 0.0770968348, 0.0095868465, 0.1300438195, 0.139184162, 0.0093851173, -0.5026985407, -0.2815226018, -0.1156679615, 0.0274134558, 0.2044064552, 0.1024860069, 0.2655484974, -0.084474653, -0.0402603447, -0.4307466149, 0.0776848197, -0.3320927322, 0.1361427009, 0.2370241433, -0.1819137931, 0.1668589711, -0.0888589844, 0.3069466949, -0.0922830552, -0.2236818373, -0.3488815427, 0.0539856963, 0.0680668876, -0.0025359141, -0.3869316876, -0.2209595442, -0.1348834336, -0.0917251855, 0.0615387037, 0.1269112527, 0.0708846226, -0.1991492808, 0.081318669, -0.046811752, 0.065792121, -0.0645852238, 0.2825683951, -0.1248583719, 0.3672303855, -0.1008244753, 0.330114603, -0.2541351616, -0.0960786343, -0.0724376068, 0.1856044978, -0.0236952845, 0.0627194494, 0.4409432411, -0.1987116486, -0.1662281752, -0.0558099672, 0.2913613617, 0.4696550965, -0.3229622841, 0.1365726292, 0.0449834429, 0.3554208875, -0.1938936114, -0.0150362384, 0.1663514227, 0.0039539738, 0.1663464755, 0.0106529761, -0.117137596, -0.1680072993, 0.0511407182, 0.1151048988, 0.4547314048, 0.0374675915, 0.2497938871, 0.5506364703, -0.0758395046, -0.0764913857, 0.2184364945, 0.0582549423, 0.1417235285, 0.5635435581, -0.2814537287, 0.3456499279, 0.0152608007, -0.0004706187, 0.1758255363, -0.3220490515, 0.1362470835, 0.026183147, -0.333496958, -0.2632864714, 0.0670349076, 0.1029890999, -0.2506716251, -0.1310003698, -0.2523129284, 0.066107288, -0.1547338963, -0.019156538, -0.0078117065, -0.0920326933, -0.0614684522, -0.1029288545, 0.2407509089, -0.0761448517, 0.1470612437, 0.0810853764, -0.1373152733, -0.1889929175, -0.1814133078, 0.1730406135, 0.0431972183, -0.1138740629, 0.1160896346, 0.4162257016, 0.0114426436, -0.0517087691, 0.4485640824, 0.7024621367, 0.2506974936, -0.0180028547, 0.2781977654, 0.065164417, -0.1715701073, -0.1216566414, -0.0462339483, -0.0936013237, 0.0901760161, 0.359592855, 0.3441751897, -0.2294066548, 0.1580892205, -0.0740269348, -0.0738181472, -0.1520431191, 0.1456703395, -0.1248114929, -0.0720471069, -0.235332042, 0.0414094366, -0.3682884574, -0.2032464594, 0.2662018239, -0.1119170412, 0.3393989503, -0.218494013, 0.1320830584, -0.2051074952, 0.5254541039, 0.0856599286, 0.2423616946, -0.1519323289, -0.1182737052, -0.4373203218, 0.0970544294, -0.0705553517, -0.0650265589, -0.2627158463, 0.1811017245, -0.2009331584, 0.1778687388, 0.251758188, 0.1569930315, 0.1309022903, 0.1834549159, -0.1841633022, -0.2023489475, 0.0517867357, -0.0612592064, -0.0073995488, -0.3829692304, 0.3222231269, -0.255838424, 0.1896577179, -0.0419959687, -0.1358307302, 0.1195980459, -0.0749320388, 0.5592896342, 0.291441232, 0.6465476751, -0.1111862436, -0.1426215172, -0.0561990999, -0.2643940449, -0.0356095545, 0.1849578321, 0.2205905914, 0.2121949643, 0.0759212077, -0.1084873825, -0.270537287, 0.4441295564, -0.0670009106, -0.0112398183, -0.2124060392, 0.1069641113, -0.0376998857, 0.1096094698, -0.0919886976, -0.1668414772, -0.0024392384, 0.087381728, -0.2711553574, -0.3653766811, 0.3906500638, -0.1145243645, -0.0587036982, -0.2743096054, 0.3120082915, -0.1287270188, 0.2038162798, -0.5106651187, 0.2680855691, 0.3385545015, -0.1110035703, -0.2565118372, 0.241507411, -0.0612004176, 0.1871724576, 0.0423918366, 0.2452308834, -0.0002002981, -0.1311198175, 0.1252477169, -0.0863222107 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
you are so wise! it report [ConnectionError] in python 3.9.7 and works well in python 3.8.12 I need you help again: how can I specify the path for download files? the data is too large and my C hardware is not enough
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
42
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? you are so wise! it report [ConnectionError] in python 3.9.7 and works well in python 3.8.12 I need you help again: how can I specify the path for download files? the data is too large and my C hardware is not enough
[ -0.5248149037, 0.040523652, -0.1230329275, 0.0725033507, 0.3041601479, -0.0861737803, 0.379427731, 0.3197905421, 0.165754199, 0.1261253059, -0.0368026756, 0.1544637829, 0.029569976, 0.2415486127, -0.0804178566, 0.0118006617, 0.0215492398, 0.2121124864, -0.2936368585, 0.143444702, -0.1580766439, 0.0597130917, -0.1213338152, 0.0628933311, 0.0264170133, -0.0918864533, 0.0635952204, 0.0924893692, -0.2721809447, -0.5847227573, 0.3350659907, 0.0544016659, 0.1639635712, 0.3337171078, -0.0001032296, 0.1607511342, 0.3830232322, 0.0225939155, -0.4438837469, -0.0753619671, -0.2600418925, -0.1699306816, 0.1725029349, -0.2509514093, -0.1271162182, -0.1427577585, 0.0133184297, -0.1045695543, 0.4266456962, 0.5949543715, 0.3087109029, 0.2350478619, 0.2211328894, -0.2260816991, -0.0938684717, -0.0528600216, -0.0494217314, 0.3206470311, -0.1541196257, -0.0526121855, -0.0211273022, 0.1484285444, -0.0330745429, 0.1317688823, 0.185314402, -0.1362235546, 0.2192588896, -0.2343800068, 0.2789017856, 0.1347587705, 0.3769881129, -0.2704376876, -0.1939042807, -0.0663901567, 0.0133974114, -0.1153045744, 0.2672588825, -0.0227161665, -0.2561773062, 0.1315237582, 0.1152301133, -0.0420314185, -0.292009443, 0.1214199364, -0.2473966926, 0.3689370155, -0.1031118408, 0.1338787079, 0.1406414211, -0.2849051058, 0.3763565719, -0.2655765712, -0.0630823523, -0.0249632765, -0.3652108908, -0.0172485225, 0.0610819012, -0.1850278676, 0.0179429539, 0.2507582903, -0.1675682366, 0.0015168117, 0.2556135356, 0.0941411555, 0.1876467019, -0.0191311501, -0.0684207529, 0.2050613612, 0.2798158228, 0.4794408083, -0.0046104579, -0.019334387, 0.0774069205, -0.3451928496, 0.1494957656, 0.2217476219, 0.5676454306, -0.0497963876, -0.3642170727, 0.0815466121, -0.0719115213, -0.062608175, 0.1049009785, 0.5125080943, -0.1762954742, -0.0208247676, 0.0871408209, 0.0257268175, -0.1565680802, 0.0333855636, -0.2656221986, 0.0218056571, -0.0177686457, -0.060003154, 0.1233202368, -0.2167026848, 0.0878131092, 0.0247983132, 0.0363382325, -0.0132873338, 0.178739354, -0.2246454209, -0.0337172486, 0.3683736622, 0.079028815, 0.1233738586, 0.1865828335, -0.3182590008, 0.0053789513, -0.0215354506, -0.1364101022, -0.3689144254, -0.2977694571, 0.352627635, -0.0992431268, -0.0255752113, 0.1224339604, -0.1396497637, 0.1118072271, -0.18430911, -0.0066949618, -0.3930799663, -0.0140004195, -0.2388254106, 0.4356185198, 0.5765902996, -0.2544671297, -0.019435076, -0.1086842045, -0.3297650516, 0.1433627009, -0.0008664709, -0.1209413409, 0.1959982812, -0.2833371162, 0.0140804769, 0.4933345914, -0.2732447684, -0.4745297432, 0.2703972459, -0.0774072632, -0.0675546676, 0.1488502473, 0.0251266975, 0.1717927903, 0.1925429851, 0.2184544355, 0.097583428, -0.1320058405, 0.0138852913, -0.1103776023, -0.2811442912, 0.0865604952, 0.2148655504, 0.096492812, 0.0370332971, 0.2573038042, -0.0018461617, 0.2437435687, -0.0702358931, 0.0848947763, 0.1108253375, 0.2402844876, 0.2289814949, -0.0890919939, -0.0985052809, -0.3618348837, 0.166738987, 0.0708521008, 0.2703918517, -0.2953440249, -0.0068603451, -0.3324000239, 0.0225029346, -0.3172860146, -0.2356595248, 0.3202824593, 0.3172686994, 0.0873092785, 0.1541064233, -0.1639430225, 0.3611117303, -0.0898955092, 0.1543646455, -0.3304595351, 0.3856512904, -0.3553183973, -0.1974292397, 0.1665092707, -0.045564767, 0.2814328671, -0.1167607754, -0.1832755506, 0.2978258431, -0.1057499871, 0.1631052792, -0.0631919801, -0.0845944881, 0.0249381028, -0.2407683581, 0.1089294851, 0.1619397402, 0.2229105234, -0.0165448226, 0.0845862776, 0.3176098168, -0.0448931009, 0.2343652099, 0.1467713416, 0.1388760656, 0.4060240686, -0.0116491187, -0.0589957274, 0.0225233156, 0.0543648377, -0.1573623717, 0.2438282073, -0.2047212571, -0.154778108, 0.1012209728, 0.2893354893, -0.0325206332, 0.1159037277, -0.0359677598, -0.187846601, -0.0219849441, 0.1158396527, 0.3814060688, 0.4593288004, 0.0940861329, -0.1313470602, 0.2244413495, 0.0116805527, -0.0999063328, 0.3175114095, -0.0251845047, 0.0247130599, 0.2216824144, -0.0086905258, -0.0564418435, -0.3081172407, -0.4279346764, -0.2288103253, 0.3844626546, -0.2976516485, 0.1923936009, -0.1080934778, -0.4097385705, -0.1233199909, 0.1638266444, -0.174672246, -0.2784342766, -0.2045121193, 0.2484969646, -0.0588207245, 0.1951925159, -0.3050098419, 0.0053673829, 0.203263998, -0.0682167187, -0.0573420338, -0.1106281281, -0.0692982748, 0.1607011706, 0.1619071662, 0.0898404196, 0.456648618, -0.1733339131, 0.0086403489, -0.2272704542, -0.1802410781, 0.0204279777, 0.0706616789, 0.095889166, 0.4718351364, 0.4023368657, 0.1296421289, -0.4160858989, 0.3316512406, -0.1155414283, -0.0953335613, 0.0498098433, -0.1012488082, 0.0574599728, -0.0175372083, -0.4779074788, -0.4305973947, -0.4179044366, 0.049583558, 0.0944468528, 0.1638167202, 0.1572207958, 0.094363153, 0.240865007, -0.0294094495, 0.0499747954, -0.1950812489, -0.2628128827, 0.2003070265, -0.1548716277, -0.3877333999, 0.1066553816, -0.022867823, 0.1981834918, -0.2459311038, -0.5698670745, -0.3658428192, -0.1819874048, 0.3429220915, -0.0642677993, -0.0980044678, 0.2897352874, 0.1094277799, -0.1510211974, -0.0023642674, -0.3675796986, -0.0354960077, 0.0333932303, 0.0989800915, -0.0744054317, 0.5484484434, -0.1492922157, 0.4120689332, 0.2601546645, -0.0247458611, 0.2816316187, -0.1954272687, 0.276199609, -0.1008625031, -0.4945633113, 0.1130715087, 0.0432168394, 0.0221991539, 0.0754760131, -0.1758337617, -0.0101038124, -0.2960942686, -0.0057411371, -0.1998947114, -0.212282449, 0.0232856814, -0.1751740426, 0.0291306283, -0.0788471103, 0.0112787569, -0.2012251168, 0.034038797, -0.0709402189, 0.3898420334, -0.0914304405, -0.0414969362, -0.371504128, -0.0763454363, -0.4782927036, 0.2380043864, -0.0107992543, 0.3943246901, -0.2544142008, -0.0568364039, 0.0575072058, -0.1579571366, 0.2725334466, -0.1889369488, 0.0736242309, 0.2590825558, 0.1148895994, -0.2326652706, -0.095431976, -0.1666535437, 0.2130458057, 0.2680742741, 0.1405575275, -0.2034699023, -0.0908514336, 0.2623948753, 0.0532126725, -0.2037951797, 0.0266014058, -0.2134417593, -0.4743490219, -0.2818517387, -0.0204406437, -0.19123739, 0.1335671842, 0.0549869426, 0.0285452958, -0.0205861609, -0.0272799172, -0.0409764573, 0.2094241083, -0.0691880211, -0.130994305, 0.3358783424, 0.1157036647, 0.1482877731, 0.4378654659, 0.6769539118, -0.0694246888, -0.689909935, -0.0809615254, 0.0518615656, -0.0451885574, 0.0609447062, -0.1279144585, 0.0860835314, 0.0432816595, 0.3693659902, -0.1242099553, 0.1319570988, 0.3456197083, 0.0634787902, -0.4748463333, -0.4151926041, -0.0274869241, -0.2298889309, -0.0821822435, -0.0361402184, 0.107544221, -0.1986008435, 0.3165301979, -0.3249162138, 0.7054340839, 0.2348481417, -0.0746413916, 0.3237811029, -0.1675436348, 0.5478765368, -0.2046764344, 0.0434835926, -0.2822029293, -0.1322431117, 0.0454271138, -0.1345933229, 0.3515822887, -0.207466349, -0.3245688975, 0.2710917592, -0.0519798957, 0.0632451922, -0.046437569, 0.2215224802, -0.2527018487, 0.0796570182, -0.2668376267, 0.3141141236, -0.1192878932, 0.3367063105, -0.0494056456, -0.210871011, 0.0448293537, -0.3989043534, -0.1825060248, 0.1253214478, -0.3104631901, 0.1367134154, -0.0282988939, -0.186628446, 0.0160661675, 0.0317391977, 0.2939422727, -0.1041297317, -0.0751269236, 0.1690351516, -0.0705166161, 0.0123767452, -0.0534526892, -0.0253505483, 0.165536955, -0.2067498118, -0.3719680011, 0.2592321634, 0.0325298496, -0.3715871871, 0.219328627, 0.1176776588, 0.1285212785, -0.3902322352, 0.1690584719, -0.2446874827, -0.0616545901, -0.2952109575, 0.2518806756, 0.0039180052, -0.0792586505, 0.1976798773, 0.0241311006, -0.1665938944, -0.0916857719, 0.4564935863, -0.0018754405, 0.0363485105, 0.4682958126, -0.0226690676, -0.2191780508, -0.3535011709, 0.0366902836, -0.1018353179, -0.3600429296, 0.0033634114, -0.0720673427, 0.1297989935, 0.0770968348, 0.0095868465, 0.1300438195, 0.139184162, 0.0093851173, -0.5026985407, -0.2815226018, -0.1156679615, 0.0274134558, 0.2044064552, 0.1024860069, 0.2655484974, -0.084474653, -0.0402603447, -0.4307466149, 0.0776848197, -0.3320927322, 0.1361427009, 0.2370241433, -0.1819137931, 0.1668589711, -0.0888589844, 0.3069466949, -0.0922830552, -0.2236818373, -0.3488815427, 0.0539856963, 0.0680668876, -0.0025359141, -0.3869316876, -0.2209595442, -0.1348834336, -0.0917251855, 0.0615387037, 0.1269112527, 0.0708846226, -0.1991492808, 0.081318669, -0.046811752, 0.065792121, -0.0645852238, 0.2825683951, -0.1248583719, 0.3672303855, -0.1008244753, 0.330114603, -0.2541351616, -0.0960786343, -0.0724376068, 0.1856044978, -0.0236952845, 0.0627194494, 0.4409432411, -0.1987116486, -0.1662281752, -0.0558099672, 0.2913613617, 0.4696550965, -0.3229622841, 0.1365726292, 0.0449834429, 0.3554208875, -0.1938936114, -0.0150362384, 0.1663514227, 0.0039539738, 0.1663464755, 0.0106529761, -0.117137596, -0.1680072993, 0.0511407182, 0.1151048988, 0.4547314048, 0.0374675915, 0.2497938871, 0.5506364703, -0.0758395046, -0.0764913857, 0.2184364945, 0.0582549423, 0.1417235285, 0.5635435581, -0.2814537287, 0.3456499279, 0.0152608007, -0.0004706187, 0.1758255363, -0.3220490515, 0.1362470835, 0.026183147, -0.333496958, -0.2632864714, 0.0670349076, 0.1029890999, -0.2506716251, -0.1310003698, -0.2523129284, 0.066107288, -0.1547338963, -0.019156538, -0.0078117065, -0.0920326933, -0.0614684522, -0.1029288545, 0.2407509089, -0.0761448517, 0.1470612437, 0.0810853764, -0.1373152733, -0.1889929175, -0.1814133078, 0.1730406135, 0.0431972183, -0.1138740629, 0.1160896346, 0.4162257016, 0.0114426436, -0.0517087691, 0.4485640824, 0.7024621367, 0.2506974936, -0.0180028547, 0.2781977654, 0.065164417, -0.1715701073, -0.1216566414, -0.0462339483, -0.0936013237, 0.0901760161, 0.359592855, 0.3441751897, -0.2294066548, 0.1580892205, -0.0740269348, -0.0738181472, -0.1520431191, 0.1456703395, -0.1248114929, -0.0720471069, -0.235332042, 0.0414094366, -0.3682884574, -0.2032464594, 0.2662018239, -0.1119170412, 0.3393989503, -0.218494013, 0.1320830584, -0.2051074952, 0.5254541039, 0.0856599286, 0.2423616946, -0.1519323289, -0.1182737052, -0.4373203218, 0.0970544294, -0.0705553517, -0.0650265589, -0.2627158463, 0.1811017245, -0.2009331584, 0.1778687388, 0.251758188, 0.1569930315, 0.1309022903, 0.1834549159, -0.1841633022, -0.2023489475, 0.0517867357, -0.0612592064, -0.0073995488, -0.3829692304, 0.3222231269, -0.255838424, 0.1896577179, -0.0419959687, -0.1358307302, 0.1195980459, -0.0749320388, 0.5592896342, 0.291441232, 0.6465476751, -0.1111862436, -0.1426215172, -0.0561990999, -0.2643940449, -0.0356095545, 0.1849578321, 0.2205905914, 0.2121949643, 0.0759212077, -0.1084873825, -0.270537287, 0.4441295564, -0.0670009106, -0.0112398183, -0.2124060392, 0.1069641113, -0.0376998857, 0.1096094698, -0.0919886976, -0.1668414772, -0.0024392384, 0.087381728, -0.2711553574, -0.3653766811, 0.3906500638, -0.1145243645, -0.0587036982, -0.2743096054, 0.3120082915, -0.1287270188, 0.2038162798, -0.5106651187, 0.2680855691, 0.3385545015, -0.1110035703, -0.2565118372, 0.241507411, -0.0612004176, 0.1871724576, 0.0423918366, 0.2452308834, -0.0002002981, -0.1311198175, 0.1252477169, -0.0863222107 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
Cool ! And you can specify the path for download files with to the `cache_dir` parameter: ```python from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it', cache_dir='path/to/directory')
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
26
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? Cool ! And you can specify the path for download files with to the `cache_dir` parameter: ```python from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it', cache_dir='path/to/directory')
[ -0.5248149037, 0.040523652, -0.1230329275, 0.0725033507, 0.3041601479, -0.0861737803, 0.379427731, 0.3197905421, 0.165754199, 0.1261253059, -0.0368026756, 0.1544637829, 0.029569976, 0.2415486127, -0.0804178566, 0.0118006617, 0.0215492398, 0.2121124864, -0.2936368585, 0.143444702, -0.1580766439, 0.0597130917, -0.1213338152, 0.0628933311, 0.0264170133, -0.0918864533, 0.0635952204, 0.0924893692, -0.2721809447, -0.5847227573, 0.3350659907, 0.0544016659, 0.1639635712, 0.3337171078, -0.0001032296, 0.1607511342, 0.3830232322, 0.0225939155, -0.4438837469, -0.0753619671, -0.2600418925, -0.1699306816, 0.1725029349, -0.2509514093, -0.1271162182, -0.1427577585, 0.0133184297, -0.1045695543, 0.4266456962, 0.5949543715, 0.3087109029, 0.2350478619, 0.2211328894, -0.2260816991, -0.0938684717, -0.0528600216, -0.0494217314, 0.3206470311, -0.1541196257, -0.0526121855, -0.0211273022, 0.1484285444, -0.0330745429, 0.1317688823, 0.185314402, -0.1362235546, 0.2192588896, -0.2343800068, 0.2789017856, 0.1347587705, 0.3769881129, -0.2704376876, -0.1939042807, -0.0663901567, 0.0133974114, -0.1153045744, 0.2672588825, -0.0227161665, -0.2561773062, 0.1315237582, 0.1152301133, -0.0420314185, -0.292009443, 0.1214199364, -0.2473966926, 0.3689370155, -0.1031118408, 0.1338787079, 0.1406414211, -0.2849051058, 0.3763565719, -0.2655765712, -0.0630823523, -0.0249632765, -0.3652108908, -0.0172485225, 0.0610819012, -0.1850278676, 0.0179429539, 0.2507582903, -0.1675682366, 0.0015168117, 0.2556135356, 0.0941411555, 0.1876467019, -0.0191311501, -0.0684207529, 0.2050613612, 0.2798158228, 0.4794408083, -0.0046104579, -0.019334387, 0.0774069205, -0.3451928496, 0.1494957656, 0.2217476219, 0.5676454306, -0.0497963876, -0.3642170727, 0.0815466121, -0.0719115213, -0.062608175, 0.1049009785, 0.5125080943, -0.1762954742, -0.0208247676, 0.0871408209, 0.0257268175, -0.1565680802, 0.0333855636, -0.2656221986, 0.0218056571, -0.0177686457, -0.060003154, 0.1233202368, -0.2167026848, 0.0878131092, 0.0247983132, 0.0363382325, -0.0132873338, 0.178739354, -0.2246454209, -0.0337172486, 0.3683736622, 0.079028815, 0.1233738586, 0.1865828335, -0.3182590008, 0.0053789513, -0.0215354506, -0.1364101022, -0.3689144254, -0.2977694571, 0.352627635, -0.0992431268, -0.0255752113, 0.1224339604, -0.1396497637, 0.1118072271, -0.18430911, -0.0066949618, -0.3930799663, -0.0140004195, -0.2388254106, 0.4356185198, 0.5765902996, -0.2544671297, -0.019435076, -0.1086842045, -0.3297650516, 0.1433627009, -0.0008664709, -0.1209413409, 0.1959982812, -0.2833371162, 0.0140804769, 0.4933345914, -0.2732447684, -0.4745297432, 0.2703972459, -0.0774072632, -0.0675546676, 0.1488502473, 0.0251266975, 0.1717927903, 0.1925429851, 0.2184544355, 0.097583428, -0.1320058405, 0.0138852913, -0.1103776023, -0.2811442912, 0.0865604952, 0.2148655504, 0.096492812, 0.0370332971, 0.2573038042, -0.0018461617, 0.2437435687, -0.0702358931, 0.0848947763, 0.1108253375, 0.2402844876, 0.2289814949, -0.0890919939, -0.0985052809, -0.3618348837, 0.166738987, 0.0708521008, 0.2703918517, -0.2953440249, -0.0068603451, -0.3324000239, 0.0225029346, -0.3172860146, -0.2356595248, 0.3202824593, 0.3172686994, 0.0873092785, 0.1541064233, -0.1639430225, 0.3611117303, -0.0898955092, 0.1543646455, -0.3304595351, 0.3856512904, -0.3553183973, -0.1974292397, 0.1665092707, -0.045564767, 0.2814328671, -0.1167607754, -0.1832755506, 0.2978258431, -0.1057499871, 0.1631052792, -0.0631919801, -0.0845944881, 0.0249381028, -0.2407683581, 0.1089294851, 0.1619397402, 0.2229105234, -0.0165448226, 0.0845862776, 0.3176098168, -0.0448931009, 0.2343652099, 0.1467713416, 0.1388760656, 0.4060240686, -0.0116491187, -0.0589957274, 0.0225233156, 0.0543648377, -0.1573623717, 0.2438282073, -0.2047212571, -0.154778108, 0.1012209728, 0.2893354893, -0.0325206332, 0.1159037277, -0.0359677598, -0.187846601, -0.0219849441, 0.1158396527, 0.3814060688, 0.4593288004, 0.0940861329, -0.1313470602, 0.2244413495, 0.0116805527, -0.0999063328, 0.3175114095, -0.0251845047, 0.0247130599, 0.2216824144, -0.0086905258, -0.0564418435, -0.3081172407, -0.4279346764, -0.2288103253, 0.3844626546, -0.2976516485, 0.1923936009, -0.1080934778, -0.4097385705, -0.1233199909, 0.1638266444, -0.174672246, -0.2784342766, -0.2045121193, 0.2484969646, -0.0588207245, 0.1951925159, -0.3050098419, 0.0053673829, 0.203263998, -0.0682167187, -0.0573420338, -0.1106281281, -0.0692982748, 0.1607011706, 0.1619071662, 0.0898404196, 0.456648618, -0.1733339131, 0.0086403489, -0.2272704542, -0.1802410781, 0.0204279777, 0.0706616789, 0.095889166, 0.4718351364, 0.4023368657, 0.1296421289, -0.4160858989, 0.3316512406, -0.1155414283, -0.0953335613, 0.0498098433, -0.1012488082, 0.0574599728, -0.0175372083, -0.4779074788, -0.4305973947, -0.4179044366, 0.049583558, 0.0944468528, 0.1638167202, 0.1572207958, 0.094363153, 0.240865007, -0.0294094495, 0.0499747954, -0.1950812489, -0.2628128827, 0.2003070265, -0.1548716277, -0.3877333999, 0.1066553816, -0.022867823, 0.1981834918, -0.2459311038, -0.5698670745, -0.3658428192, -0.1819874048, 0.3429220915, -0.0642677993, -0.0980044678, 0.2897352874, 0.1094277799, -0.1510211974, -0.0023642674, -0.3675796986, -0.0354960077, 0.0333932303, 0.0989800915, -0.0744054317, 0.5484484434, -0.1492922157, 0.4120689332, 0.2601546645, -0.0247458611, 0.2816316187, -0.1954272687, 0.276199609, -0.1008625031, -0.4945633113, 0.1130715087, 0.0432168394, 0.0221991539, 0.0754760131, -0.1758337617, -0.0101038124, -0.2960942686, -0.0057411371, -0.1998947114, -0.212282449, 0.0232856814, -0.1751740426, 0.0291306283, -0.0788471103, 0.0112787569, -0.2012251168, 0.034038797, -0.0709402189, 0.3898420334, -0.0914304405, -0.0414969362, -0.371504128, -0.0763454363, -0.4782927036, 0.2380043864, -0.0107992543, 0.3943246901, -0.2544142008, -0.0568364039, 0.0575072058, -0.1579571366, 0.2725334466, -0.1889369488, 0.0736242309, 0.2590825558, 0.1148895994, -0.2326652706, -0.095431976, -0.1666535437, 0.2130458057, 0.2680742741, 0.1405575275, -0.2034699023, -0.0908514336, 0.2623948753, 0.0532126725, -0.2037951797, 0.0266014058, -0.2134417593, -0.4743490219, -0.2818517387, -0.0204406437, -0.19123739, 0.1335671842, 0.0549869426, 0.0285452958, -0.0205861609, -0.0272799172, -0.0409764573, 0.2094241083, -0.0691880211, -0.130994305, 0.3358783424, 0.1157036647, 0.1482877731, 0.4378654659, 0.6769539118, -0.0694246888, -0.689909935, -0.0809615254, 0.0518615656, -0.0451885574, 0.0609447062, -0.1279144585, 0.0860835314, 0.0432816595, 0.3693659902, -0.1242099553, 0.1319570988, 0.3456197083, 0.0634787902, -0.4748463333, -0.4151926041, -0.0274869241, -0.2298889309, -0.0821822435, -0.0361402184, 0.107544221, -0.1986008435, 0.3165301979, -0.3249162138, 0.7054340839, 0.2348481417, -0.0746413916, 0.3237811029, -0.1675436348, 0.5478765368, -0.2046764344, 0.0434835926, -0.2822029293, -0.1322431117, 0.0454271138, -0.1345933229, 0.3515822887, -0.207466349, -0.3245688975, 0.2710917592, -0.0519798957, 0.0632451922, -0.046437569, 0.2215224802, -0.2527018487, 0.0796570182, -0.2668376267, 0.3141141236, -0.1192878932, 0.3367063105, -0.0494056456, -0.210871011, 0.0448293537, -0.3989043534, -0.1825060248, 0.1253214478, -0.3104631901, 0.1367134154, -0.0282988939, -0.186628446, 0.0160661675, 0.0317391977, 0.2939422727, -0.1041297317, -0.0751269236, 0.1690351516, -0.0705166161, 0.0123767452, -0.0534526892, -0.0253505483, 0.165536955, -0.2067498118, -0.3719680011, 0.2592321634, 0.0325298496, -0.3715871871, 0.219328627, 0.1176776588, 0.1285212785, -0.3902322352, 0.1690584719, -0.2446874827, -0.0616545901, -0.2952109575, 0.2518806756, 0.0039180052, -0.0792586505, 0.1976798773, 0.0241311006, -0.1665938944, -0.0916857719, 0.4564935863, -0.0018754405, 0.0363485105, 0.4682958126, -0.0226690676, -0.2191780508, -0.3535011709, 0.0366902836, -0.1018353179, -0.3600429296, 0.0033634114, -0.0720673427, 0.1297989935, 0.0770968348, 0.0095868465, 0.1300438195, 0.139184162, 0.0093851173, -0.5026985407, -0.2815226018, -0.1156679615, 0.0274134558, 0.2044064552, 0.1024860069, 0.2655484974, -0.084474653, -0.0402603447, -0.4307466149, 0.0776848197, -0.3320927322, 0.1361427009, 0.2370241433, -0.1819137931, 0.1668589711, -0.0888589844, 0.3069466949, -0.0922830552, -0.2236818373, -0.3488815427, 0.0539856963, 0.0680668876, -0.0025359141, -0.3869316876, -0.2209595442, -0.1348834336, -0.0917251855, 0.0615387037, 0.1269112527, 0.0708846226, -0.1991492808, 0.081318669, -0.046811752, 0.065792121, -0.0645852238, 0.2825683951, -0.1248583719, 0.3672303855, -0.1008244753, 0.330114603, -0.2541351616, -0.0960786343, -0.0724376068, 0.1856044978, -0.0236952845, 0.0627194494, 0.4409432411, -0.1987116486, -0.1662281752, -0.0558099672, 0.2913613617, 0.4696550965, -0.3229622841, 0.1365726292, 0.0449834429, 0.3554208875, -0.1938936114, -0.0150362384, 0.1663514227, 0.0039539738, 0.1663464755, 0.0106529761, -0.117137596, -0.1680072993, 0.0511407182, 0.1151048988, 0.4547314048, 0.0374675915, 0.2497938871, 0.5506364703, -0.0758395046, -0.0764913857, 0.2184364945, 0.0582549423, 0.1417235285, 0.5635435581, -0.2814537287, 0.3456499279, 0.0152608007, -0.0004706187, 0.1758255363, -0.3220490515, 0.1362470835, 0.026183147, -0.333496958, -0.2632864714, 0.0670349076, 0.1029890999, -0.2506716251, -0.1310003698, -0.2523129284, 0.066107288, -0.1547338963, -0.019156538, -0.0078117065, -0.0920326933, -0.0614684522, -0.1029288545, 0.2407509089, -0.0761448517, 0.1470612437, 0.0810853764, -0.1373152733, -0.1889929175, -0.1814133078, 0.1730406135, 0.0431972183, -0.1138740629, 0.1160896346, 0.4162257016, 0.0114426436, -0.0517087691, 0.4485640824, 0.7024621367, 0.2506974936, -0.0180028547, 0.2781977654, 0.065164417, -0.1715701073, -0.1216566414, -0.0462339483, -0.0936013237, 0.0901760161, 0.359592855, 0.3441751897, -0.2294066548, 0.1580892205, -0.0740269348, -0.0738181472, -0.1520431191, 0.1456703395, -0.1248114929, -0.0720471069, -0.235332042, 0.0414094366, -0.3682884574, -0.2032464594, 0.2662018239, -0.1119170412, 0.3393989503, -0.218494013, 0.1320830584, -0.2051074952, 0.5254541039, 0.0856599286, 0.2423616946, -0.1519323289, -0.1182737052, -0.4373203218, 0.0970544294, -0.0705553517, -0.0650265589, -0.2627158463, 0.1811017245, -0.2009331584, 0.1778687388, 0.251758188, 0.1569930315, 0.1309022903, 0.1834549159, -0.1841633022, -0.2023489475, 0.0517867357, -0.0612592064, -0.0073995488, -0.3829692304, 0.3222231269, -0.255838424, 0.1896577179, -0.0419959687, -0.1358307302, 0.1195980459, -0.0749320388, 0.5592896342, 0.291441232, 0.6465476751, -0.1111862436, -0.1426215172, -0.0561990999, -0.2643940449, -0.0356095545, 0.1849578321, 0.2205905914, 0.2121949643, 0.0759212077, -0.1084873825, -0.270537287, 0.4441295564, -0.0670009106, -0.0112398183, -0.2124060392, 0.1069641113, -0.0376998857, 0.1096094698, -0.0919886976, -0.1668414772, -0.0024392384, 0.087381728, -0.2711553574, -0.3653766811, 0.3906500638, -0.1145243645, -0.0587036982, -0.2743096054, 0.3120082915, -0.1287270188, 0.2038162798, -0.5106651187, 0.2680855691, 0.3385545015, -0.1110035703, -0.2565118372, 0.241507411, -0.0612004176, 0.1871724576, 0.0423918366, 0.2452308834, -0.0002002981, -0.1311198175, 0.1252477169, -0.0863222107 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
It takes me some days to download data completely, Despise sometimes it occurs again, change py version is feasible way to avoid this ConnectionEror. parameter `cache_dir` works well, thanks for your kindness again!
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
33
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? It takes me some days to download data completely, Despise sometimes it occurs again, change py version is feasible way to avoid this ConnectionEror. parameter `cache_dir` works well, thanks for your kindness again!
[ -0.5248149037, 0.040523652, -0.1230329275, 0.0725033507, 0.3041601479, -0.0861737803, 0.379427731, 0.3197905421, 0.165754199, 0.1261253059, -0.0368026756, 0.1544637829, 0.029569976, 0.2415486127, -0.0804178566, 0.0118006617, 0.0215492398, 0.2121124864, -0.2936368585, 0.143444702, -0.1580766439, 0.0597130917, -0.1213338152, 0.0628933311, 0.0264170133, -0.0918864533, 0.0635952204, 0.0924893692, -0.2721809447, -0.5847227573, 0.3350659907, 0.0544016659, 0.1639635712, 0.3337171078, -0.0001032296, 0.1607511342, 0.3830232322, 0.0225939155, -0.4438837469, -0.0753619671, -0.2600418925, -0.1699306816, 0.1725029349, -0.2509514093, -0.1271162182, -0.1427577585, 0.0133184297, -0.1045695543, 0.4266456962, 0.5949543715, 0.3087109029, 0.2350478619, 0.2211328894, -0.2260816991, -0.0938684717, -0.0528600216, -0.0494217314, 0.3206470311, -0.1541196257, -0.0526121855, -0.0211273022, 0.1484285444, -0.0330745429, 0.1317688823, 0.185314402, -0.1362235546, 0.2192588896, -0.2343800068, 0.2789017856, 0.1347587705, 0.3769881129, -0.2704376876, -0.1939042807, -0.0663901567, 0.0133974114, -0.1153045744, 0.2672588825, -0.0227161665, -0.2561773062, 0.1315237582, 0.1152301133, -0.0420314185, -0.292009443, 0.1214199364, -0.2473966926, 0.3689370155, -0.1031118408, 0.1338787079, 0.1406414211, -0.2849051058, 0.3763565719, -0.2655765712, -0.0630823523, -0.0249632765, -0.3652108908, -0.0172485225, 0.0610819012, -0.1850278676, 0.0179429539, 0.2507582903, -0.1675682366, 0.0015168117, 0.2556135356, 0.0941411555, 0.1876467019, -0.0191311501, -0.0684207529, 0.2050613612, 0.2798158228, 0.4794408083, -0.0046104579, -0.019334387, 0.0774069205, -0.3451928496, 0.1494957656, 0.2217476219, 0.5676454306, -0.0497963876, -0.3642170727, 0.0815466121, -0.0719115213, -0.062608175, 0.1049009785, 0.5125080943, -0.1762954742, -0.0208247676, 0.0871408209, 0.0257268175, -0.1565680802, 0.0333855636, -0.2656221986, 0.0218056571, -0.0177686457, -0.060003154, 0.1233202368, -0.2167026848, 0.0878131092, 0.0247983132, 0.0363382325, -0.0132873338, 0.178739354, -0.2246454209, -0.0337172486, 0.3683736622, 0.079028815, 0.1233738586, 0.1865828335, -0.3182590008, 0.0053789513, -0.0215354506, -0.1364101022, -0.3689144254, -0.2977694571, 0.352627635, -0.0992431268, -0.0255752113, 0.1224339604, -0.1396497637, 0.1118072271, -0.18430911, -0.0066949618, -0.3930799663, -0.0140004195, -0.2388254106, 0.4356185198, 0.5765902996, -0.2544671297, -0.019435076, -0.1086842045, -0.3297650516, 0.1433627009, -0.0008664709, -0.1209413409, 0.1959982812, -0.2833371162, 0.0140804769, 0.4933345914, -0.2732447684, -0.4745297432, 0.2703972459, -0.0774072632, -0.0675546676, 0.1488502473, 0.0251266975, 0.1717927903, 0.1925429851, 0.2184544355, 0.097583428, -0.1320058405, 0.0138852913, -0.1103776023, -0.2811442912, 0.0865604952, 0.2148655504, 0.096492812, 0.0370332971, 0.2573038042, -0.0018461617, 0.2437435687, -0.0702358931, 0.0848947763, 0.1108253375, 0.2402844876, 0.2289814949, -0.0890919939, -0.0985052809, -0.3618348837, 0.166738987, 0.0708521008, 0.2703918517, -0.2953440249, -0.0068603451, -0.3324000239, 0.0225029346, -0.3172860146, -0.2356595248, 0.3202824593, 0.3172686994, 0.0873092785, 0.1541064233, -0.1639430225, 0.3611117303, -0.0898955092, 0.1543646455, -0.3304595351, 0.3856512904, -0.3553183973, -0.1974292397, 0.1665092707, -0.045564767, 0.2814328671, -0.1167607754, -0.1832755506, 0.2978258431, -0.1057499871, 0.1631052792, -0.0631919801, -0.0845944881, 0.0249381028, -0.2407683581, 0.1089294851, 0.1619397402, 0.2229105234, -0.0165448226, 0.0845862776, 0.3176098168, -0.0448931009, 0.2343652099, 0.1467713416, 0.1388760656, 0.4060240686, -0.0116491187, -0.0589957274, 0.0225233156, 0.0543648377, -0.1573623717, 0.2438282073, -0.2047212571, -0.154778108, 0.1012209728, 0.2893354893, -0.0325206332, 0.1159037277, -0.0359677598, -0.187846601, -0.0219849441, 0.1158396527, 0.3814060688, 0.4593288004, 0.0940861329, -0.1313470602, 0.2244413495, 0.0116805527, -0.0999063328, 0.3175114095, -0.0251845047, 0.0247130599, 0.2216824144, -0.0086905258, -0.0564418435, -0.3081172407, -0.4279346764, -0.2288103253, 0.3844626546, -0.2976516485, 0.1923936009, -0.1080934778, -0.4097385705, -0.1233199909, 0.1638266444, -0.174672246, -0.2784342766, -0.2045121193, 0.2484969646, -0.0588207245, 0.1951925159, -0.3050098419, 0.0053673829, 0.203263998, -0.0682167187, -0.0573420338, -0.1106281281, -0.0692982748, 0.1607011706, 0.1619071662, 0.0898404196, 0.456648618, -0.1733339131, 0.0086403489, -0.2272704542, -0.1802410781, 0.0204279777, 0.0706616789, 0.095889166, 0.4718351364, 0.4023368657, 0.1296421289, -0.4160858989, 0.3316512406, -0.1155414283, -0.0953335613, 0.0498098433, -0.1012488082, 0.0574599728, -0.0175372083, -0.4779074788, -0.4305973947, -0.4179044366, 0.049583558, 0.0944468528, 0.1638167202, 0.1572207958, 0.094363153, 0.240865007, -0.0294094495, 0.0499747954, -0.1950812489, -0.2628128827, 0.2003070265, -0.1548716277, -0.3877333999, 0.1066553816, -0.022867823, 0.1981834918, -0.2459311038, -0.5698670745, -0.3658428192, -0.1819874048, 0.3429220915, -0.0642677993, -0.0980044678, 0.2897352874, 0.1094277799, -0.1510211974, -0.0023642674, -0.3675796986, -0.0354960077, 0.0333932303, 0.0989800915, -0.0744054317, 0.5484484434, -0.1492922157, 0.4120689332, 0.2601546645, -0.0247458611, 0.2816316187, -0.1954272687, 0.276199609, -0.1008625031, -0.4945633113, 0.1130715087, 0.0432168394, 0.0221991539, 0.0754760131, -0.1758337617, -0.0101038124, -0.2960942686, -0.0057411371, -0.1998947114, -0.212282449, 0.0232856814, -0.1751740426, 0.0291306283, -0.0788471103, 0.0112787569, -0.2012251168, 0.034038797, -0.0709402189, 0.3898420334, -0.0914304405, -0.0414969362, -0.371504128, -0.0763454363, -0.4782927036, 0.2380043864, -0.0107992543, 0.3943246901, -0.2544142008, -0.0568364039, 0.0575072058, -0.1579571366, 0.2725334466, -0.1889369488, 0.0736242309, 0.2590825558, 0.1148895994, -0.2326652706, -0.095431976, -0.1666535437, 0.2130458057, 0.2680742741, 0.1405575275, -0.2034699023, -0.0908514336, 0.2623948753, 0.0532126725, -0.2037951797, 0.0266014058, -0.2134417593, -0.4743490219, -0.2818517387, -0.0204406437, -0.19123739, 0.1335671842, 0.0549869426, 0.0285452958, -0.0205861609, -0.0272799172, -0.0409764573, 0.2094241083, -0.0691880211, -0.130994305, 0.3358783424, 0.1157036647, 0.1482877731, 0.4378654659, 0.6769539118, -0.0694246888, -0.689909935, -0.0809615254, 0.0518615656, -0.0451885574, 0.0609447062, -0.1279144585, 0.0860835314, 0.0432816595, 0.3693659902, -0.1242099553, 0.1319570988, 0.3456197083, 0.0634787902, -0.4748463333, -0.4151926041, -0.0274869241, -0.2298889309, -0.0821822435, -0.0361402184, 0.107544221, -0.1986008435, 0.3165301979, -0.3249162138, 0.7054340839, 0.2348481417, -0.0746413916, 0.3237811029, -0.1675436348, 0.5478765368, -0.2046764344, 0.0434835926, -0.2822029293, -0.1322431117, 0.0454271138, -0.1345933229, 0.3515822887, -0.207466349, -0.3245688975, 0.2710917592, -0.0519798957, 0.0632451922, -0.046437569, 0.2215224802, -0.2527018487, 0.0796570182, -0.2668376267, 0.3141141236, -0.1192878932, 0.3367063105, -0.0494056456, -0.210871011, 0.0448293537, -0.3989043534, -0.1825060248, 0.1253214478, -0.3104631901, 0.1367134154, -0.0282988939, -0.186628446, 0.0160661675, 0.0317391977, 0.2939422727, -0.1041297317, -0.0751269236, 0.1690351516, -0.0705166161, 0.0123767452, -0.0534526892, -0.0253505483, 0.165536955, -0.2067498118, -0.3719680011, 0.2592321634, 0.0325298496, -0.3715871871, 0.219328627, 0.1176776588, 0.1285212785, -0.3902322352, 0.1690584719, -0.2446874827, -0.0616545901, -0.2952109575, 0.2518806756, 0.0039180052, -0.0792586505, 0.1976798773, 0.0241311006, -0.1665938944, -0.0916857719, 0.4564935863, -0.0018754405, 0.0363485105, 0.4682958126, -0.0226690676, -0.2191780508, -0.3535011709, 0.0366902836, -0.1018353179, -0.3600429296, 0.0033634114, -0.0720673427, 0.1297989935, 0.0770968348, 0.0095868465, 0.1300438195, 0.139184162, 0.0093851173, -0.5026985407, -0.2815226018, -0.1156679615, 0.0274134558, 0.2044064552, 0.1024860069, 0.2655484974, -0.084474653, -0.0402603447, -0.4307466149, 0.0776848197, -0.3320927322, 0.1361427009, 0.2370241433, -0.1819137931, 0.1668589711, -0.0888589844, 0.3069466949, -0.0922830552, -0.2236818373, -0.3488815427, 0.0539856963, 0.0680668876, -0.0025359141, -0.3869316876, -0.2209595442, -0.1348834336, -0.0917251855, 0.0615387037, 0.1269112527, 0.0708846226, -0.1991492808, 0.081318669, -0.046811752, 0.065792121, -0.0645852238, 0.2825683951, -0.1248583719, 0.3672303855, -0.1008244753, 0.330114603, -0.2541351616, -0.0960786343, -0.0724376068, 0.1856044978, -0.0236952845, 0.0627194494, 0.4409432411, -0.1987116486, -0.1662281752, -0.0558099672, 0.2913613617, 0.4696550965, -0.3229622841, 0.1365726292, 0.0449834429, 0.3554208875, -0.1938936114, -0.0150362384, 0.1663514227, 0.0039539738, 0.1663464755, 0.0106529761, -0.117137596, -0.1680072993, 0.0511407182, 0.1151048988, 0.4547314048, 0.0374675915, 0.2497938871, 0.5506364703, -0.0758395046, -0.0764913857, 0.2184364945, 0.0582549423, 0.1417235285, 0.5635435581, -0.2814537287, 0.3456499279, 0.0152608007, -0.0004706187, 0.1758255363, -0.3220490515, 0.1362470835, 0.026183147, -0.333496958, -0.2632864714, 0.0670349076, 0.1029890999, -0.2506716251, -0.1310003698, -0.2523129284, 0.066107288, -0.1547338963, -0.019156538, -0.0078117065, -0.0920326933, -0.0614684522, -0.1029288545, 0.2407509089, -0.0761448517, 0.1470612437, 0.0810853764, -0.1373152733, -0.1889929175, -0.1814133078, 0.1730406135, 0.0431972183, -0.1138740629, 0.1160896346, 0.4162257016, 0.0114426436, -0.0517087691, 0.4485640824, 0.7024621367, 0.2506974936, -0.0180028547, 0.2781977654, 0.065164417, -0.1715701073, -0.1216566414, -0.0462339483, -0.0936013237, 0.0901760161, 0.359592855, 0.3441751897, -0.2294066548, 0.1580892205, -0.0740269348, -0.0738181472, -0.1520431191, 0.1456703395, -0.1248114929, -0.0720471069, -0.235332042, 0.0414094366, -0.3682884574, -0.2032464594, 0.2662018239, -0.1119170412, 0.3393989503, -0.218494013, 0.1320830584, -0.2051074952, 0.5254541039, 0.0856599286, 0.2423616946, -0.1519323289, -0.1182737052, -0.4373203218, 0.0970544294, -0.0705553517, -0.0650265589, -0.2627158463, 0.1811017245, -0.2009331584, 0.1778687388, 0.251758188, 0.1569930315, 0.1309022903, 0.1834549159, -0.1841633022, -0.2023489475, 0.0517867357, -0.0612592064, -0.0073995488, -0.3829692304, 0.3222231269, -0.255838424, 0.1896577179, -0.0419959687, -0.1358307302, 0.1195980459, -0.0749320388, 0.5592896342, 0.291441232, 0.6465476751, -0.1111862436, -0.1426215172, -0.0561990999, -0.2643940449, -0.0356095545, 0.1849578321, 0.2205905914, 0.2121949643, 0.0759212077, -0.1084873825, -0.270537287, 0.4441295564, -0.0670009106, -0.0112398183, -0.2124060392, 0.1069641113, -0.0376998857, 0.1096094698, -0.0919886976, -0.1668414772, -0.0024392384, 0.087381728, -0.2711553574, -0.3653766811, 0.3906500638, -0.1145243645, -0.0587036982, -0.2743096054, 0.3120082915, -0.1287270188, 0.2038162798, -0.5106651187, 0.2680855691, 0.3385545015, -0.1110035703, -0.2565118372, 0.241507411, -0.0612004176, 0.1871724576, 0.0423918366, 0.2452308834, -0.0002002981, -0.1311198175, 0.1252477169, -0.0863222107 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
I guess the cache got corrupted due to a previous issue with Google Drive service. The cache should be regenerated, e.g. by passing `download_mode="force_redownload"`. CC: @severo
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
26
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No I guess the cache got corrupted due to a previous issue with Google Drive service. The cache should be regenerated, e.g. by passing `download_mode="force_redownload"`. CC: @severo
[ -0.3001440465, 0.1003714427, -0.0295106284, 0.2527274191, -0.0365718156, 0.4788866937, 0.3518635631, 0.1342158616, -0.1076104343, 0.0816057771, 0.0185797792, -0.0681073889, -0.1297191381, 0.1330211014, -0.0545894839, -0.0531768836, 0.0362982228, 0.0126729505, 0.0645381659, 0.1520993263, -0.3287051618, 0.1523637027, -0.1258550286, -0.1625271291, -0.1889630854, -0.2408400923, 0.0509406477, -0.0764457062, -0.2410832644, -0.2481218278, 0.0258548912, 0.0916940048, 0.0761289671, 0.286251843, -0.0001108677, 0.1460109502, 0.5770376921, 0.0952284038, -0.4096311033, -0.1781215519, 0.110983938, -0.0640219599, 0.0656168014, -0.0470407419, -0.2066570371, -0.1666980237, 0.0564075112, -0.2384860665, 0.2563392818, 0.2655280828, 0.2397267371, 0.2472804189, 0.0292734522, -0.2963423729, -0.117327027, -0.165860936, -0.2852420509, 0.2716924548, -0.2465449274, 0.1303915977, 0.1296733767, 0.1965685636, 0.0484308936, 0.0150310695, -0.0918337107, 0.1051231772, -0.160443306, -0.3715658784, 0.1897885352, -0.0067220554, 0.5617846251, -0.0110139912, -0.2454853803, 0.1766009927, 0.2344597131, -0.1753767431, 0.296787262, 0.1844430566, 0.1404482126, 0.2778818905, -0.4047365785, -0.1989470124, -0.0632663518, 0.3183284402, -0.1603927314, 0.0089880573, -0.1415831745, 0.1223068982, -0.0212877709, -0.1049773917, 0.5157183409, -0.1721925884, -0.063926816, 0.0498846248, -0.0117330849, -0.129030019, 0.0433032066, 0.0984491333, -0.043706093, 0.1161322519, -0.1133805811, -0.072145924, -0.0635621101, 0.0106567927, 0.1103334278, 0.27512151, 0.0813369453, 0.2554914951, 0.3578920066, 0.1652925462, 0.3596163094, -0.0539101586, -0.140428558, 0.1071249172, -0.0932269618, -0.0819679946, 0.4510967433, -0.0402331091, -0.2418124825, 0.171212092, -0.222013101, -0.0321245939, -0.071279496, 0.3751700222, -0.1875042766, -0.3492170274, -0.0499133356, 0.1813979149, 0.0645085499, -0.1590723097, -0.3080530763, -0.043910414, -0.1557721496, 0.2528356612, 0.3908676207, -0.2719049156, 0.1119517758, -0.0354325399, 0.1177472174, -0.0882540867, -0.1107254997, 0.0277162287, -0.2258161604, 0.2185357362, 0.0410523824, 0.344353497, 0.1177528799, 0.1806510091, 0.1035268307, 0.2060121, -0.1977183819, -0.4557102323, 0.0034161259, 0.1546729058, -0.4183006585, -0.1121838838, -0.0704922453, 0.160421133, -0.2096102834, -0.0834120363, -0.2386018485, 0.2705118954, -0.0968362093, -0.1173522696, 0.0767764524, 0.363594532, -0.3849913776, 0.0475909896, -0.4673798978, -0.4734215438, 0.11996793, 0.3018498123, -0.0998108461, -0.1450813711, -0.3228718936, 0.0501845032, 0.1767575741, -0.0054863081, -0.802315712, -0.0368469097, -0.1421165019, -0.0080494443, -0.0756034106, 0.1161132455, 0.0739759356, -0.1442149431, -0.1413903832, 0.4141312838, 0.0430427156, -0.0266129114, -0.2092333585, -0.3023830056, 0.208743751, 0.1786827594, 0.2769964337, 0.2069010139, 0.1031350493, -0.2416487932, -0.076163277, 0.1954418868, 0.0143925129, 0.1825564653, 0.0907428116, -0.1502749026, 0.1358543932, 0.1372161955, -0.5679866076, 0.0718720406, 0.1780580282, 0.0281819869, -0.1504190415, -0.1291861087, -0.2626025677, 0.070179455, -0.1377692074, -0.1789962351, 0.2244573981, 0.1023605242, -0.1249395236, 0.2711897492, 0.0309277382, 0.0489562191, -0.0438948125, -0.1087172776, -0.1179212853, 0.3618575037, -0.0935046971, -0.0409865044, 0.2035869211, -0.077409327, 0.2939368188, -0.0837796777, -0.2664111555, 0.1035311669, -0.1308326274, 0.2918297648, 0.2929286659, 0.0693166852, 0.0885811076, -0.396808356, 0.1386918426, 0.2722699344, -0.1687532663, -0.0358432978, -0.2935982645, 0.0438271351, 0.1748096496, -0.1422577947, -0.1314192414, 0.0886446685, 0.1271841824, 0.0016824109, 0.1677230597, -0.2345178872, 0.1830430329, 0.0120512536, 0.533898592, -0.1629336327, -0.2210364789, 0.1191414371, 0.2057209313, -0.2112346441, 0.0331554785, 0.1112069413, -0.4103274047, -0.2730819583, -0.2425909042, 0.2742204666, 0.2535571456, 0.0738536566, 0.2500463426, 0.2354705781, 0.1809595525, -0.1370880008, 0.1102373749, 0.0710177422, 0.042012997, 0.1230558306, 0.2608271539, -0.0267970506, -0.4891773164, 0.2632582486, 0.4685599804, 0.4192255735, -0.1656619012, -0.091353327, -0.1788527966, -0.0869128704, 0.2301267684, -0.2540562749, -0.1784053147, -0.3257439733, 0.1554210782, 0.2270694673, 0.0126741631, 0.1348281652, 0.1219550297, 0.479516387, 0.3065284491, 0.0175784416, -0.2787466943, -0.0005125076, -0.0804374516, 0.1368815899, 0.3602370322, -0.2678504288, 0.2713238597, 0.0690692216, 0.0595746227, -0.708973527, -0.2868512571, 0.0434288271, 0.0361276865, 0.6266726851, -0.1880390644, 0.3393319249, 0.161805883, 0.1048678458, -0.0417830348, -0.2110104114, -0.2959508598, -0.0863002539, -0.1145064086, -0.088817127, 0.0027828808, -0.3537247181, -0.2696411908, -0.2092416435, 0.1742669046, -0.1965798885, -0.06429483, 0.0015743267, -0.0416061953, -0.1231507584, 0.1943289787, -0.1102588102, -0.5379714966, -0.3815451264, 0.4116378129, -0.5738164783, -0.5965695381, 0.2564910948, 0.1105614677, -0.1507778466, -0.1051832885, -0.5431581736, -0.2485462576, -0.1045298949, -0.207377404, 0.0492329262, -0.5171288848, 0.0807987601, -0.1011416838, -0.0628671497, -0.0649813786, -0.3293248415, -0.1781775057, -0.1295359433, 0.0845281705, -0.1059700325, 0.4432548583, -0.0378230922, 0.571732223, 0.2785783112, 0.0316253006, 0.1705550849, -0.1906149536, 0.3731377125, -0.0227055009, -0.2890556157, -0.0133200381, 0.1308900863, -0.1853360683, 0.3492058218, -0.0148823522, -0.7280056477, -0.0440212525, -0.2733843923, -0.3965797424, -0.0067636627, -0.0479780436, 0.2230189592, 0.232089594, 0.269861728, 0.0542189702, -0.0842869282, -0.4655919373, 0.0624286532, 0.2920866907, 0.1022247225, 0.1292688549, 0.3309531212, 0.0790980905, -0.4765012562, 0.3582945168, -0.2448006123, 0.386153996, -0.2327152789, 0.2313529402, 0.2678005099, -0.0271395054, 0.4921704829, -0.4117200673, 0.0836630836, 0.0568166487, 0.1589611322, -0.0017535004, -0.213477239, -0.2107578814, 0.1903736144, 0.0844490677, 0.5196399689, 0.1831536889, -0.1916305125, 0.6251747608, -0.0488834903, -0.2038536072, -0.3586029708, -0.0683402568, -0.0972048417, -0.1431136578, -0.2020859271, -0.2618983686, 0.0929899886, -0.0860557184, -0.052575171, -0.128127709, -0.0063303295, -0.123996757, 0.0129445428, 0.2984323204, 0.1801837981, 0.3636230528, 0.5598950386, -0.0355606377, 0.2699553668, 0.5644022226, 0.1970074177, -0.1395009905, 0.3660874367, 0.0199931674, -0.2348940521, 0.3721762598, -0.3047797382, -0.1218878925, -0.001620096, 0.2885041833, -0.0955004618, 0.1017816141, 0.5060563087, -0.1230496243, -0.6048088074, -0.1517392248, 0.5762454867, 0.099047862, -0.027988283, 0.267811805, -0.1136503667, 0.1134237573, -0.0139115229, -0.0709110722, 0.7619315982, -0.0045158197, -0.1653607935, 0.2925009727, 0.1966670901, 0.1914349198, -0.2597796321, 0.1361597627, -0.1263286322, -0.4885145724, -0.1679027081, -0.0725471228, 0.1545122564, 0.178956911, -0.0395257287, 0.0116459113, -0.0705460384, 0.2080947459, -0.0221004039, 0.2590304613, -0.0507174954, 0.1166714653, 0.2728689909, 0.2294899672, -0.1043205559, 0.2139921486, -0.1635095775, -0.0787358433, 0.0179751627, -0.0258172397, -0.5983505845, 0.0695404038, -0.0914540812, 0.2793310583, -0.150537774, -0.2406316996, 0.0554522611, 0.0719651207, 0.2276998311, 0.1766554415, -0.4308980107, 0.2858771682, -0.3468964696, -0.2985718846, -0.3866156638, 0.0231910199, 0.1952139288, -0.1396134645, -0.1923620403, 0.0098784193, 0.0304634403, -0.1432768106, -0.3307603598, -0.0435835198, -0.2455217838, -0.0828332156, -0.1922057867, -0.0636894405, -0.1051935628, -0.1155833676, 0.1533253491, 0.0388986655, 0.1533033252, -0.0362577066, 0.0676589161, -0.1992484927, -0.1618558466, 0.3508851528, 0.0616420358, -0.4205885231, 0.4750544727, 0.1260210127, -0.3094172776, -0.133427009, 0.0749518499, 0.0142800193, -0.1310946047, 0.1192290187, -0.166333437, 0.4167334437, 0.105561547, 0.2135992795, 0.131634742, 0.063138403, -0.1221455261, -0.5720617175, 0.0185608771, 0.0481203943, -0.259177804, 0.3482032716, -0.1217405871, -0.0064867507, 0.1807595044, 0.030261606, -0.3195416629, 0.2370595485, -0.119788155, -0.1485961825, 0.2749853134, 0.0255035665, 0.5340716839, -0.0549864583, 0.1214003116, -0.0013441257, -0.3521372974, -0.2571371198, 0.0450052805, 0.1128093302, 0.0507952645, 0.0364981741, 0.0543237701, -0.1330451369, -0.0965520591, 0.1194743067, 0.1999317259, 0.0206539873, 0.0907612965, -0.2823002636, 0.0990877822, -0.1440472156, 0.0883313194, 0.0124286637, 0.0334727317, 0.4316852093, -0.0348333716, 0.2072975188, 0.1336605102, 0.081191875, -0.0296734348, -0.1225300208, -0.0239501093, 0.1737573445, 0.1940295249, -0.3491077721, 0.1684851646, 0.1763771474, 0.2007496059, 0.0083265109, -0.380014807, -0.0615889728, 0.3089770973, 0.221457243, -0.3259370327, -0.1062965617, 0.2988132834, 0.0127968704, -0.0424664542, -0.1314161122, 0.1208383888, 0.38645944, -0.010820643, 0.1393483579, 0.556874454, -0.0353433862, 0.3280091584, 0.015717702, -0.1115054786, 0.0222854409, 0.2663287818, 0.0866673812, -0.1260010749, 0.5893326998, -0.0420045443, -0.0679397136, 0.1162579954, 0.2467628717, 0.1126580685, -0.495105654, 0.3242580593, 0.0821092576, -0.2375186235, 0.2499780357, 0.0213761143, 0.094020538, -0.027506398, 0.1536609977, -0.5776534677, 0.320969671, 0.0285209846, 0.1753925532, 0.1848237962, -0.1928193122, 0.0245462302, 0.3231417835, 0.1619195193, -0.2717519403, 0.0699920952, 0.3222025633, -0.375703007, -0.0028606243, 0.1183009222, 0.1774772555, 0.0694692656, -0.2759809196, 0.2184580714, -0.0542468764, -0.0132787181, -0.0172570273, 0.4541378617, 0.2783801258, 0.108718954, 0.1161525771, 0.1744095534, 0.0289057903, -0.214443028, 0.1168044582, 0.2233328819, 0.4892682135, -0.1139347255, 0.0351320691, 0.1604223996, -0.1953127831, 0.3680017591, 0.0339063033, 0.2534709871, -0.1443013847, 0.0329540782, -0.3892355561, -0.0109112188, -0.2006535679, -0.3953438699, -0.332387507, -0.045192603, 0.391397804, -0.0037332452, 0.1073555052, -0.1503627896, 0.0845604166, 0.0400125682, 0.4985554814, 0.2868837416, 0.2580764294, -0.1626443267, -0.3849977553, -0.4396679103, 0.2761609852, -0.0426473692, 0.4879305661, 0.086184904, -0.0623123795, -0.1452435404, 0.2347007245, 0.4238203764, 0.3310486376, -0.0749215856, 0.2767628431, -0.2763682306, 0.0849354342, 0.3989916146, -0.141732648, -0.1488861442, -0.1953136474, 0.1361001283, -0.2522141635, -0.0111613292, -0.1848623604, 0.0743516609, -0.2690535486, 0.0888561308, 0.5317471027, 0.202576369, 0.5348271132, 0.0890579075, -0.054086905, -0.5409858227, -0.3321943283, -0.0795341954, 0.0627432093, 0.1914682239, 0.2505213916, -0.0370389111, -0.3902885914, -0.1148847416, -0.0151103754, -0.1231989264, 0.1420932859, -0.3997487724, 0.0017639174, -0.2176515907, 0.0913639665, 0.218670547, 0.1126996428, 0.068394199, 0.012210384, -0.1663648784, -0.235889554, 0.2702259719, -0.401317358, -0.1612314135, 0.1810166538, -0.0277978368, 0.059298005, -0.1085534766, -0.4449389279, 0.159770757, 0.2665718496, -0.0712665543, 0.0569923036, 0.2801187336, 0.1335457265, -0.061022006, 0.0140271727, 0.5735371113, 0.315530479, -0.1863253713, 0.0955489054, -0.174557671 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Note that the dataset preview uses its own cache, not `datasets`' cache. So `download_mode="force_redownload"` doesn't help. But yes indeed the cache must be refreshed. The CNN Dailymail dataste is currently hosted on Google Drive, which is an unreliable host and we've had many issues with it. Unless we found another most reliable host for the data, we will keep running into issues from time to time. At Hugging Face we're not allowed to host the CNN Dailymail data by ourselves AFAIK
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
81
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Note that the dataset preview uses its own cache, not `datasets`' cache. So `download_mode="force_redownload"` doesn't help. But yes indeed the cache must be refreshed. The CNN Dailymail dataste is currently hosted on Google Drive, which is an unreliable host and we've had many issues with it. Unless we found another most reliable host for the data, we will keep running into issues from time to time. At Hugging Face we're not allowed to host the CNN Dailymail data by ourselves AFAIK
[ -0.2877512872, -0.0782131031, 0.0257026702, 0.1993884295, -0.0514075831, 0.4068708718, 0.2187194377, 0.0937290639, -0.0140247401, -0.0956277996, -0.0778447166, 0.0096288519, -0.1578942686, 0.100140661, -0.0530549847, 0.1121212021, 0.0501070432, -0.0000497789, -0.0694659948, 0.076415658, -0.3327498436, 0.0836785808, -0.1671648473, -0.1943214089, -0.1941192746, -0.1363194883, -0.0024399066, -0.06272728, -0.1007723063, -0.3447620869, 0.150015071, 0.1057647094, 0.0542784333, 0.2984198332, -0.0001103875, 0.1719948351, 0.5493029952, 0.1666805297, -0.4551248848, -0.2572415769, 0.1659643352, -0.1803339124, 0.0772941783, 0.0110390075, -0.2430152148, -0.1408829689, -0.0197233018, -0.2719183266, 0.4213198721, 0.2056942433, 0.2483467758, 0.3528940976, -0.0346065946, -0.2374888808, -0.3471693099, -0.0251585338, -0.2632452548, 0.2356058359, -0.3124839664, 0.1292860657, 0.1594686061, 0.3620126843, 0.0214110538, -0.0570203289, 0.0008675125, -0.1113859639, -0.171718806, -0.37208125, 0.1505668908, 0.0628493503, 0.4738239944, -0.0176153015, -0.3095625639, 0.080228731, 0.1824072003, -0.0644037649, 0.190132618, 0.1251238286, 0.0324500352, 0.318177551, -0.3445436656, -0.331584841, -0.0358627401, 0.3206017315, -0.1023492739, 0.063600637, -0.1343165487, 0.1716401279, 0.0141445035, -0.0974693447, 0.4572317302, -0.1492510438, 0.0727067217, 0.0090213176, -0.0032136606, -0.0445007496, 0.0597557984, 0.0274546463, -0.1021665782, 0.1006120741, -0.1292752177, 0.0482039675, 0.0285990201, -0.0027374772, 0.1355714798, 0.2047309726, 0.2228850424, 0.3411676884, 0.3380827308, 0.2300968915, 0.2861372828, -0.1120483428, -0.1917904466, 0.1263729036, -0.0950782895, -0.2493277788, 0.4818766117, -0.0879091695, -0.2823853195, 0.2598662972, -0.2596722543, 0.052903045, 0.0268009603, 0.4836397469, -0.2662914693, -0.1627165824, 0.0052898051, 0.1054537892, -0.0414475016, -0.2572664618, -0.2862990797, -0.1986088455, -0.1974514425, 0.3780370653, 0.312869966, -0.2929090858, 0.163479656, 0.0434038267, 0.2740854025, -0.1676838398, -0.2202441692, 0.1822287142, -0.1392536908, 0.2492290884, -0.1769031584, 0.4302388132, 0.1456279457, 0.2044904679, 0.1174759641, 0.261827141, -0.150221169, -0.5024644136, 0.061894469, 0.1331837624, -0.4408262372, -0.1196241379, 0.0755514279, 0.1270301789, -0.146269232, -0.0270632692, -0.1607551724, 0.1822557896, -0.1133538261, -0.0515533835, 0.1392138451, 0.5039596558, -0.3705145121, -0.0294164903, -0.377017498, -0.3958622217, 0.0734163523, 0.2247146219, -0.23053734, -0.2819021642, -0.1788840592, -0.0669211298, 0.1264971346, -0.0241381899, -0.7376980782, -0.0255269539, -0.1185169071, 0.1960420609, -0.1322264522, 0.1991743445, -0.1293004602, -0.1861764491, -0.2848491073, 0.3423856795, 0.0757891685, -0.0366547294, -0.3420326412, -0.2245263159, 0.187682718, 0.1433742046, 0.1709597409, 0.199190259, 0.0102100549, -0.0133914743, 0.016809471, 0.2814854383, -0.0495781302, 0.0982774422, 0.0687617883, 0.0006534405, 0.0585737638, 0.1526641101, -0.5277035832, 0.0423613675, 0.2281124145, 0.0515624061, -0.0942559764, -0.1854326427, -0.3599236012, 0.1580791026, -0.2655128837, -0.328930974, 0.1610793471, 0.0994016454, -0.1415278763, 0.2191230357, -0.1267796606, 0.2091700584, -0.1368309706, -0.0065659736, -0.1646245867, 0.2553698421, 0.0011430786, 0.0686783493, 0.1366123706, 0.0733292475, 0.3332344592, 0.0151365176, -0.2100821435, 0.2907303572, -0.1601076871, 0.1776408255, 0.2159166187, -0.0915270224, 0.1412906945, -0.4080007672, 0.1846218854, 0.2687523961, -0.1448932737, -0.0395760797, -0.1025216207, 0.1113506258, 0.1494355053, -0.0485829823, -0.0942942575, 0.0726321563, 0.0416739881, 0.0774756074, 0.0232898407, -0.2866001427, 0.173756808, -0.2334358096, 0.4770439863, -0.1231416911, -0.2728246748, 0.1030129045, 0.0333458856, -0.1687874198, 0.0172248147, 0.20300439, -0.4265907407, -0.2580329478, -0.2828124166, 0.1727844626, 0.1857226789, 0.0193431955, 0.1866770536, 0.3260330856, 0.1129962355, -0.1216048524, 0.1045382321, 0.0847376287, 0.0617035925, 0.0369561166, 0.2211547941, -0.0465275645, -0.5038294792, 0.2997096479, 0.3491113484, 0.3608794212, -0.2468426824, -0.0443137512, -0.2766230106, -0.183081612, 0.1710461825, -0.3625525236, -0.2547195852, -0.4049344957, 0.1655372828, 0.2256377637, 0.0227213968, 0.1828956604, 0.030896673, 0.5402097106, 0.2558995485, 0.1363908499, -0.223499611, -0.0120831495, -0.2181959301, 0.0789754018, 0.3119771779, -0.2791768014, 0.2996759415, 0.0859477296, 0.0484058335, -0.5225780606, -0.3438032866, -0.0478160568, 0.1279497743, 0.6148025393, -0.2053209096, 0.3592161536, 0.1387791932, 0.1234493107, 0.0647165403, -0.1837056875, -0.1658990085, -0.0407850295, -0.0152422385, -0.0618900843, 0.0696447119, -0.3044243455, -0.3373874426, -0.268319428, 0.1082466692, -0.3139441311, -0.069231227, 0.1794960946, -0.0472409762, -0.225155443, -0.1040867046, -0.0613966808, -0.511085093, -0.4510962963, 0.3638852835, -0.5858356953, -0.6207177043, 0.2002075464, 0.1903792769, -0.0563076399, -0.2551053166, -0.6508644819, -0.2609161139, -0.0914143622, -0.2789711654, 0.0922922567, -0.448184073, -0.0643835366, -0.1797350347, -0.0829571113, -0.0929447338, -0.3087264895, -0.1359532028, -0.3059551716, 0.124176167, -0.1431389302, 0.388022393, 0.1167577729, 0.5172453523, 0.4319863915, -0.0653516427, 0.2187349945, -0.1563253701, 0.458584398, -0.0025783121, -0.4618528485, -0.0882802755, 0.1585665494, -0.0994341224, 0.3427476585, 0.0572186075, -0.5873072147, -0.1415821612, -0.214625448, -0.290376693, -0.0939828604, -0.0670445338, 0.1721608937, 0.1776387542, 0.3409837186, 0.1369382441, -0.0708803609, -0.4727293253, 0.0013743256, 0.3244951367, 0.0951059833, 0.0311752856, 0.3404241204, 0.0752684772, -0.3754809797, 0.2779478133, -0.288060993, 0.5858143568, -0.1576940417, 0.0594221577, 0.28242293, 0.1438395083, 0.537430644, -0.2122246623, -0.0088042933, -0.0022830805, 0.020512592, -0.1821952164, -0.1548264623, 0.0817444548, 0.220853284, 0.0594213903, 0.4732853174, 0.154884696, -0.2229271531, 0.5409237742, -0.0094144316, -0.2412934899, -0.5220706463, -0.0750424191, -0.0256687477, -0.1523907483, -0.1059091166, -0.3032208681, 0.0582803823, -0.019762272, -0.0443849564, -0.0546087064, 0.0205253772, -0.0820726007, 0.0612955093, 0.1894124001, 0.2426699996, 0.4306089282, 0.5994639993, -0.0418241695, 0.3165096343, 0.5480148196, 0.1385184526, -0.2084394544, 0.0999665335, 0.2043336481, -0.1880658865, 0.4803527594, -0.2628927529, -0.2075824887, 0.0919863731, 0.2746926546, -0.123271428, 0.1152824089, 0.4886677265, -0.1122718975, -0.7001448274, -0.3355026245, 0.5928039551, 0.0190856978, 0.0808271244, 0.1922662109, -0.1373796314, 0.2131527513, -0.0605665855, -0.0991043895, 0.8416470289, 0.0165724512, -0.1368687898, 0.2904659808, 0.2275900692, 0.3044578433, -0.2731993794, 0.0670109093, -0.1028873771, -0.4810788929, -0.1102154776, 0.0113877375, 0.2218212783, 0.1639557034, 0.1089534983, 0.0182269625, -0.0233674832, 0.1283436418, 0.0008779783, 0.2241630405, -0.0617074557, 0.0792965591, 0.1687710583, 0.2116024345, -0.0878795609, 0.3121173382, -0.1146539748, -0.1152371764, 0.0793346614, -0.016154442, -0.5896937251, 0.0859326273, -0.0535024256, 0.1759661734, -0.1546206027, -0.0893600136, 0.122525923, 0.0081999535, 0.1246671081, 0.1897467077, -0.3577543199, 0.2972274721, -0.2443325818, -0.2658339143, -0.3055379987, 0.0037583259, 0.2632020116, -0.1702371836, -0.1783559918, 0.0006400398, 0.0762296766, -0.0871574283, -0.2701816261, 0.0214318428, 0.0087525882, -0.1827604026, -0.165443778, 0.0620176382, 0.0115220947, -0.2176799476, 0.1549456865, 0.0074086874, 0.058591105, -0.0650375932, 0.096567899, -0.260340929, -0.1733460873, 0.468236357, -0.0592113025, -0.4365992844, 0.4322776794, 0.2327132076, -0.4140163958, -0.1288445443, 0.1383780837, 0.0916271806, -0.2397862971, 0.1365405619, -0.0792684704, 0.4893879294, 0.1160513908, 0.2636309862, 0.0597532727, -0.0630546212, -0.1546245217, -0.5599330068, 0.0510866642, 0.0081187701, -0.1083567068, 0.3235549927, -0.1743137091, 0.1075897366, 0.097659722, 0.1107256785, -0.3139708638, 0.1088118106, 0.0560695492, -0.125086695, 0.1130713224, 0.113240473, 0.5803629756, -0.0602338649, 0.0885189995, 0.0295656677, -0.3415305912, -0.2373204082, 0.0659547001, 0.1670877337, 0.0854925737, 0.0154616004, 0.04366621, -0.1199324206, -0.0815434456, 0.0782205984, 0.1282907575, 0.0937428027, 0.0124692246, -0.193556428, 0.1469037384, -0.0652521178, 0.179726392, 0.0071077137, -0.0095708286, 0.5081232786, 0.0640908331, 0.0974490792, -0.0305252187, 0.0071385605, -0.0438024178, -0.1034297422, -0.0154892532, 0.0783770829, 0.2226842195, -0.3824315369, 0.1295588911, 0.2934499681, 0.2887240946, 0.2287701815, -0.2864411771, -0.1198110208, 0.3517986238, 0.1694073379, -0.3697131574, -0.0020490359, 0.3712218404, 0.1193597987, -0.0119888168, -0.0915712416, 0.09096881, 0.3259117603, 0.0510070398, 0.1195081323, 0.4442242682, -0.0097651007, 0.4191806018, 0.2198305428, -0.1282665879, 0.0714323595, 0.2326542586, 0.1612627357, -0.024790626, 0.5530970097, -0.1094866991, 0.0233615823, 0.2570174634, 0.3736076355, 0.070155412, -0.5810551047, 0.3895002902, 0.0603661798, -0.1046628729, 0.2484205067, -0.0137628857, 0.2565515637, 0.0253327787, 0.143247664, -0.4820055664, 0.4729462266, 0.0742922276, 0.1179043502, 0.2196563333, -0.1867616326, -0.0780530423, 0.2359281331, 0.1203939691, -0.345630765, 0.0788905919, 0.2629455924, -0.3683586717, -0.1771618575, -0.06757956, 0.1006215587, 0.1084438339, -0.2125091553, 0.1896741092, 0.1295829862, -0.0046110768, 0.1059954986, 0.3721161485, 0.270821929, 0.2711467445, 0.1426374763, 0.2373273522, 0.0092748636, -0.1267758161, 0.1074821204, 0.2338987291, 0.407215178, -0.0611367188, 0.018180009, 0.1134501994, -0.2085261196, 0.3562141657, -0.0101133659, 0.4038150907, -0.2210857123, 0.1062403843, -0.3078493178, 0.048368156, -0.2638662159, -0.4100801647, -0.3346081376, -0.0206184778, 0.5009061694, -0.0642330423, 0.0837267563, -0.2917117178, 0.0918751806, 0.0782774314, 0.4894797504, 0.3406915963, 0.1070071384, -0.1629473269, -0.2755984068, -0.4925296307, 0.2637060285, -0.0530253462, 0.3689515591, 0.1136997715, -0.1331843436, -0.0291351806, 0.2794256508, 0.3012853861, 0.1781737059, -0.0570795052, 0.3236893117, -0.1610578001, 0.1212724298, 0.1457879394, -0.0688622296, -0.031811621, -0.1832009405, 0.1872905493, -0.3065128326, -0.0621117316, -0.0898196921, -0.0225792155, -0.2363109887, 0.0473599471, 0.5425310135, 0.1343667507, 0.3472076058, 0.2040522546, -0.1599130929, -0.597650528, -0.3159708977, -0.1495729834, 0.1325610578, 0.182005167, 0.1479014009, -0.0777108595, -0.4653263688, -0.2036954463, -0.0738612711, -0.083175987, -0.0883742869, -0.3474555314, -0.0704029128, -0.1271684617, 0.0974611267, 0.2253508866, 0.2560111582, -0.0874498412, 0.0602949113, -0.1569206715, -0.3006545305, 0.4775570929, -0.4811725318, -0.0324949659, 0.1864781082, 0.0126575697, -0.0143567026, -0.2438302338, -0.4781107903, 0.1478547603, 0.291066587, -0.0074484991, 0.1002266333, 0.2560004294, 0.0154812178, -0.0607571118, -0.0324766599, 0.6954702139, 0.3038193285, -0.1931298226, 0.1572134793, -0.1479182988 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
I remove the tag dataset-viewer, since it's more an issue with the hosting on Google Drive
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
16
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No I remove the tag dataset-viewer, since it's more an issue with the hosting on Google Drive
[ -0.249042511, -0.0306454003, -0.0246337336, 0.2104780227, -0.0485685319, 0.3847599626, 0.3927805424, 0.0898776203, -0.0480347797, 0.1583120227, 0.0144589236, -0.0029105369, -0.2134843469, 0.2687585354, 0.0569703877, 0.0509313904, 0.1048442572, -0.0149675589, 0.008058981, 0.0969505385, -0.3163967431, 0.0191303175, -0.0566150658, -0.094642736, -0.1183115393, -0.3115788102, 0.0678284392, -0.1698640585, -0.2007601112, -0.3205631375, -0.0027075477, 0.13096793, -0.015846312, 0.3148708045, -0.0001112538, 0.2562286556, 0.450219065, 0.1616533101, -0.4402184188, -0.2224352062, 0.0810447037, -0.0538879521, 0.1195536032, -0.0284321308, -0.2815752029, -0.2661771774, 0.0198256131, -0.1321747154, 0.1318855435, 0.1675363928, 0.2402111143, 0.2953067422, -0.0289590582, -0.3258403838, -0.1436049193, 0.0016754472, -0.35946998, 0.343427062, -0.2260081768, 0.2225528359, 0.0272914208, 0.3213894665, 0.0542526282, 0.0019405851, 0.023230752, 0.0201498978, -0.2137603462, -0.3979608417, 0.1453741044, 0.0138681671, 0.5150506496, 0.0112178456, -0.2266729623, 0.1072816402, 0.2430285364, -0.0944704637, 0.2982250154, 0.1991019547, 0.0666450486, 0.2764227092, -0.3475632966, -0.2895826101, -0.0456722267, 0.3480741382, -0.1497347355, 0.2409570962, -0.1416078061, 0.1818906516, 0.0100570451, -0.0758853033, 0.380999893, -0.1806548685, 0.0228280071, 0.0128673073, 0.1540315896, -0.1121588051, 0.1625425816, 0.0062195477, -0.0705232173, 0.164701283, -0.1601060182, -0.0466924198, -0.0574663281, 0.0445912294, 0.0969979763, 0.0732166097, 0.0943232924, 0.3918035924, 0.4631147683, 0.2718657255, 0.4505116343, -0.051761575, -0.0930329189, 0.1192888319, -0.2781315148, -0.1866242439, 0.5686739683, 0.0234836154, -0.3374863267, 0.2046372443, -0.3352553248, 0.0120537821, -0.0273006931, 0.3828162849, -0.0994443223, -0.4633709788, -0.0868910402, 0.1463262737, 0.0653107464, -0.1002392322, -0.299982965, -0.0539977551, -0.1117623001, 0.2483790368, 0.2847939134, -0.339545846, 0.0987254903, 0.0449077412, 0.2642937899, -0.1276901364, -0.2199350446, 0.0879662409, -0.2805048525, 0.3189263344, 0.0259142425, 0.4175660908, 0.0544317849, 0.0638950765, 0.0328036696, 0.1068834662, -0.1012932584, -0.3770011961, -0.064706862, 0.1753687561, -0.3540301621, -0.069915913, -0.121127069, 0.1650156975, -0.3382134736, -0.0144182136, -0.1713116616, 0.3539668918, -0.0319843702, -0.1339648813, 0.1097652018, 0.3155495822, -0.3218404949, -0.0078024678, -0.3144640326, -0.5056059957, 0.0871954635, 0.2737220824, -0.1616428345, -0.0471556894, -0.3271895349, 0.0179515779, 0.1851837337, -0.0630744323, -0.6642969251, 0.0205389708, -0.2532054484, 0.0506440699, 0.0015256888, 0.0607711114, -0.0012374704, -0.1972619444, -0.1916762888, 0.2923215032, 0.1112361774, -0.0305606723, -0.2290243208, -0.2529988289, 0.1597812027, 0.2018738091, 0.1852019727, 0.1493664831, 0.1319169998, -0.2729757726, -0.0375966243, 0.1234807596, -0.00293046, 0.0863544568, 0.1413863003, -0.0682977587, 0.0425972156, 0.1392784566, -0.5245829225, -0.0492905155, 0.3281360567, 0.1350888759, -0.2093204111, -0.322627306, -0.3623816371, 0.119522281, -0.1817237735, -0.2125801742, 0.1857769936, 0.0747561827, -0.2581256032, 0.3011359274, -0.0227366611, -0.0098357201, -0.1046042889, 0.0210160296, -0.0734330118, 0.2904420197, -0.1211528406, 0.04499387, 0.2424600124, 0.0173277874, 0.318703115, -0.1163668931, -0.1395891756, 0.0976688117, -0.2039911747, 0.3380883336, 0.4111948013, 0.0550784841, 0.1987639368, -0.4735758305, 0.1591317207, 0.291448921, -0.1520828307, -0.0772751346, -0.193818152, 0.0784161463, 0.1506842375, -0.0987640619, -0.1292062104, 0.0976163894, 0.1110165343, 0.1070494577, 0.0570340715, -0.2377457619, 0.2393024564, 0.0767706037, 0.5499401093, -0.1648982763, -0.4409743547, 0.0276682507, 0.0610250942, -0.2667647898, -0.0253131483, 0.2021857798, -0.4063673615, -0.0851605013, -0.1404311508, 0.1436877698, 0.1395485848, 0.079953596, 0.2154553682, 0.3159606159, 0.1857145131, -0.1710456163, 0.2110552639, 0.1016742289, -0.0686043873, 0.0872074217, 0.1744749248, -0.0663486421, -0.4573212862, 0.1507367641, 0.3265984654, 0.3257495463, -0.2795622051, -0.0505921505, -0.2046114951, -0.2238089442, 0.1366038769, -0.3868196905, -0.2971636653, -0.3341371417, 0.1853238493, 0.1822089702, -0.1066642851, 0.1656740308, 0.1368254274, 0.4646334946, 0.2197300494, 0.0736602917, -0.2397666723, 0.0564285219, -0.1261860579, 0.1240447536, 0.345218271, -0.29190135, 0.4842805266, 0.1220002696, 0.1039934829, -0.6351225972, -0.2794696391, 0.0807714462, 0.0219463129, 0.5913988948, -0.0876626074, 0.2888990343, 0.1982366741, 0.0469998196, 0.0020258953, -0.0134665426, -0.1934396029, -0.1787958145, -0.1254515052, -0.0233945362, 0.0343583748, -0.3702893257, -0.2822799385, -0.2021254748, 0.1910529882, -0.2307024151, -0.0252875667, 0.0703449026, 0.0046367659, -0.1235898212, 0.069427371, -0.1708222628, -0.4559647739, -0.2853651345, 0.4044088423, -0.5112723112, -0.5605722666, 0.2632055879, 0.2163044214, -0.1322324574, -0.165791288, -0.5768223405, -0.1924542785, 0.0056012529, -0.1311914325, 0.070544906, -0.37744838, -0.0569772795, -0.0902215913, -0.1011272743, -0.0752306804, -0.2789219022, -0.1893402487, -0.319142431, -0.0066156276, -0.0500886515, 0.3998307884, -0.0894640684, 0.6841115952, 0.3510211408, 0.0628634244, 0.2392886281, -0.2615245283, 0.3672419786, -0.0135013591, -0.3965234458, -0.0372686498, 0.2356312126, -0.145282492, 0.3887712359, -0.0161063764, -0.5673897862, -0.0702254772, -0.2900978327, -0.3419480026, -0.0655919313, -0.103908278, 0.217567876, 0.1378810257, 0.1732053608, 0.0887672603, 0.0146975396, -0.4492899179, 0.0094869277, 0.376948297, 0.0460009985, 0.0120607, 0.3361365199, 0.0066830693, -0.4614290297, 0.2951773703, -0.2819721699, 0.2785698473, -0.2055144906, 0.1609140038, 0.4141519666, 0.0502996184, 0.5788538456, -0.2889015079, 0.0541882552, -0.003021759, 0.1225832999, -0.0214830581, -0.1429095119, -0.1977881044, 0.24144274, 0.0300571397, 0.6724640131, 0.046598386, -0.1755711734, 0.6872931123, -0.186774686, -0.145695731, -0.3313920796, -0.1493993253, -0.1768271029, -0.1381196827, -0.1182916239, -0.1444783956, 0.1264598668, -0.0423240811, -0.1092815623, -0.0157841127, -0.0545453429, 0.0441957898, 0.1164488792, 0.143971771, 0.1650928855, 0.3581054807, 0.6146354675, 0.1190709844, 0.3667140305, 0.5801858902, 0.2484103739, -0.2492403686, 0.2400361598, -0.0301595051, 0.0081746047, 0.4527575076, -0.2705754638, -0.0817110464, -0.0677125975, 0.3293474615, -0.2565262616, 0.108586356, 0.5431643724, -0.1367274225, -0.7215755582, -0.1901144981, 0.6506624222, 0.089772962, -0.1288492084, 0.3622423112, 0.0799658448, -0.0309869535, -0.1075260192, -0.1075176671, 0.8571431041, 0.1326629519, -0.1194167361, 0.3358289599, -0.0055420422, 0.2420954704, -0.3410434425, 0.0633398667, -0.1815415919, -0.4316942394, -0.1924129874, -0.063435778, 0.2874967456, 0.1510887295, -0.026886262, 0.0061565079, -0.0823596865, 0.2805223167, -0.0050140885, 0.3633686304, -0.0362339392, 0.1012171954, 0.1304899752, 0.1936272979, -0.1292923242, 0.2725740373, -0.1988588721, -0.0558707416, -0.0263133906, -0.1471571326, -0.5462188125, -0.0114082247, -0.1240811422, 0.1632202268, -0.089475207, -0.2232806534, 0.1945965886, -0.0199064817, 0.0968883634, 0.1841394901, -0.3587804735, 0.2013939917, -0.3720681071, -0.1777913719, -0.431114316, 0.0504932962, 0.0970509052, -0.1415133625, -0.1506450027, 0.0088886702, 0.0994325429, -0.0953885019, -0.4016765356, -0.0932839736, -0.2551641166, -0.2254337072, -0.0361774117, -0.1082407981, 0.0678040311, -0.1713320911, 0.144564867, -0.1167839468, 0.1139022633, -0.0950478837, 0.2590420842, -0.2384985387, -0.1772021502, 0.3415676355, 0.0139595782, -0.3428103626, 0.461735338, 0.0868011788, -0.450589478, -0.161089614, 0.2577623725, 0.0814991519, -0.1346038878, 0.1246883646, -0.1048205197, 0.3553060293, -0.0104458574, 0.2272735089, 0.2093253732, 0.0084424643, -0.08884646, -0.4666921496, 0.1314761043, 0.0709966421, -0.1920803338, 0.3336921036, -0.1792621166, 0.1532371938, 0.1607581228, -0.0103425113, -0.3235220909, 0.0844797343, -0.0152130518, -0.2021086812, 0.2136960477, 0.1314584464, 0.5445174575, 0.0119230039, 0.1419003457, -0.110851869, -0.3148317039, -0.2421033829, 0.0464928485, 0.1156626716, -0.0043813009, -0.0063290857, 0.0423782282, -0.0742146, -0.0641756281, 0.1722562015, 0.3114618063, -0.0008371971, 0.1632956266, -0.2699896693, 0.1730655283, -0.1011611298, 0.0985728279, -0.0221913606, 0.0278443694, 0.5924341083, 0.03199099, 0.1063842624, 0.1025585309, 0.0444249287, -0.0035238729, -0.0616463274, 0.0572649911, 0.1531638205, 0.1296663433, -0.2498342097, 0.2075697035, 0.2297479063, 0.2800168097, 0.1590443254, -0.4522140324, -0.154818967, 0.324400425, 0.1918134689, -0.3245353699, -0.0801619738, 0.4045104682, 0.0123849176, -0.0360432006, -0.0615636222, 0.1588488072, 0.4432685375, -0.1805545837, 0.0285073388, 0.4788970947, 0.08501257, 0.3525652587, 0.1474914551, -0.2336134613, 0.1190227494, 0.3074007034, 0.1085312366, -0.0813605264, 0.6534435749, -0.1172110885, 0.076326713, 0.2599731982, 0.1855733544, 0.2014344484, -0.513199091, 0.3382242322, 0.0401633345, -0.1989816427, 0.1259674728, 0.0406502597, 0.1699786782, -0.0646718293, 0.2012683004, -0.4794180393, 0.4061909318, -0.0082910256, 0.1916746497, 0.0425112844, -0.2041635215, -0.1648682803, 0.2832253575, 0.1019130349, -0.3386154473, 0.0177675132, 0.2685236037, -0.3967909813, 0.0174025577, 0.1394003481, -0.0118497191, 0.1836793572, -0.22577703, 0.1803353429, -0.0233693291, 0.0939909145, 0.0288961008, 0.4362983704, 0.3209053278, 0.1455631256, 0.1202772111, 0.0814913139, -0.0693026483, -0.1963385344, 0.1579327285, 0.2039908171, 0.4055115581, 0.0804252476, 0.0457449853, 0.1210865602, -0.2067632973, 0.3169382811, 0.1625981182, 0.2485550046, -0.1968687922, 0.0258269999, -0.5200538635, -0.0173674878, -0.2280228138, -0.4885836244, -0.3208968937, -0.0339793563, 0.5241645575, 0.0045353672, 0.1012500003, -0.2252038717, 0.0850839466, 0.1514072567, 0.4943947196, 0.2220196277, 0.1645710766, -0.1222649217, -0.3857321739, -0.4354635775, 0.307505101, -0.0381320678, 0.2976160347, 0.0521554165, -0.1492889524, -0.0986467749, 0.2526041567, 0.3663498163, 0.3008725941, -0.0274257641, 0.24432908, -0.1068931296, 0.0519446507, 0.1478046626, -0.0697942302, -0.1645168513, -0.1092101857, 0.150544554, -0.2612056136, -0.0380804129, -0.2335382551, 0.1122145951, -0.2255864441, 0.0117231449, 0.5538669825, 0.1178915575, 0.5621461868, 0.0822231025, -0.12251921, -0.4693377912, -0.3400944471, -0.1350946873, 0.2264682949, 0.1288542151, 0.1038912907, 0.0245255902, -0.4704572856, -0.14960365, 0.0061033471, -0.1203290597, 0.1445144564, -0.3553855717, -0.0783619359, -0.1848359704, 0.0110771898, 0.2052809596, 0.0904785544, 0.0039297678, -0.1058131531, -0.1671448946, -0.3810783029, 0.3279700577, -0.3837536573, -0.0935383514, 0.1814518422, 0.0209587868, 0.0357563831, -0.0925820842, -0.5282149911, 0.0976992697, 0.3295485377, -0.1457556188, 0.1747683436, 0.3332258463, 0.1409028471, -0.0885886177, -0.0261829607, 0.53222996, 0.2421040833, -0.1982770711, 0.1173362732, -0.1750910133 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Sounds good. I was looking for another host of this dataset but couldn't find any (yet)
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
16
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Sounds good. I was looking for another host of this dataset but couldn't find any (yet)
[ -0.2171033621, -0.217253387, 0.0266657099, 0.2140307724, -0.1601771414, 0.3883537948, 0.3702820241, -0.0194980074, -0.0784727484, 0.0787744746, -0.0825128406, 0.0275870785, -0.2946317196, 0.0952442884, 0.1294853985, 0.0816146955, 0.1012256593, -0.03399368, 0.0840781406, -0.0007749535, -0.3267184794, 0.0254785269, -0.0976720154, -0.1202222705, -0.1840443164, -0.2792630494, -0.0244113784, -0.0751728714, -0.0823277086, -0.1943681687, 0.1649702936, 0.0813178942, -0.0077326242, 0.2722581625, -0.0001119008, 0.2275002897, 0.4504843652, 0.0960672572, -0.3038082719, -0.1647657752, 0.0752207711, -0.1425097883, 0.0561417155, -0.0087747928, -0.3615032732, -0.1414906085, 0.0179600716, -0.1271690726, 0.234502092, 0.1853407174, 0.2341653705, 0.5091759562, 0.1114098206, -0.3562346697, -0.2151587456, 0.0761053711, -0.3939526379, 0.3566155136, -0.2767026126, 0.1243764684, 0.160720855, 0.2481208295, 0.0121129993, -0.1591548622, 0.0087687839, -0.0110647809, -0.047325857, -0.4598962367, 0.0266002789, 0.106276229, 0.4408098161, 0.1821602434, -0.2153563499, 0.1482488811, 0.2948132157, -0.0389087982, 0.0932752341, 0.2778842747, -0.0395577922, 0.3151451945, -0.2040076554, -0.2149539739, -0.133582145, 0.3964516521, -0.1299136877, 0.1843085289, -0.1299760342, 0.2112770975, -0.0500470325, 0.0017489742, 0.4758312702, -0.0054880301, 0.0684013218, 0.0085364552, -0.0440454334, -0.1016480178, 0.0861525238, 0.0547373444, -0.132173568, 0.0286505707, -0.1887131929, -0.0188528541, -0.1118088663, -0.0688088685, 0.051377546, -0.0118389847, -0.0333683118, 0.3675240576, 0.3071873784, 0.2181044817, 0.4289985299, -0.0807025731, -0.234696418, 0.1746691614, -0.2948018014, -0.2752922475, 0.5934232473, -0.0877408311, -0.2546156049, 0.2274745256, -0.2608421743, 0.0435296185, 0.0229039136, 0.482381016, -0.1208636165, -0.2865332365, -0.0347136408, 0.0987996086, 0.0285717398, -0.2514086366, -0.3070601821, -0.1127565354, -0.0928220674, 0.1643881053, 0.1977633834, -0.3057465553, 0.0765105411, 0.024224285, 0.4559273124, -0.1493190527, -0.2213401943, 0.2196726948, -0.2030777484, 0.3019914031, -0.1759044081, 0.5032057762, 0.0452441275, 0.2463441938, 0.0954272225, 0.1003349125, -0.1502942145, -0.6014770269, -0.1327898949, 0.142228052, -0.4026879668, -0.1385256648, 0.0558632612, 0.1219468042, -0.2428067178, -0.0446653329, -0.1232102513, 0.2618823946, 0.0148233594, -0.1122161746, 0.1123771742, 0.2764376402, -0.376613766, 0.0394023098, -0.3442956805, -0.4251819253, 0.2397338599, 0.231757924, -0.2256490141, -0.143021971, -0.1898264289, -0.2237969339, 0.2078801692, 0.029332215, -0.6617168784, -0.0742434636, -0.242385909, 0.1327837855, 0.0355943963, 0.204426527, -0.0416280553, -0.318607986, -0.0991839543, 0.1654275507, 0.1850942373, -0.185956195, -0.2419879287, -0.1996614486, 0.1600744277, 0.2552377582, 0.2040071636, 0.1219164133, -0.0207063034, -0.1183564141, 0.0692706034, 0.2174634337, 0.0288780294, 0.0427612439, 0.16572164, -0.0574438162, 0.0199984442, 0.1092350259, -0.1369856149, -0.0583912544, 0.3021680117, 0.2546583712, 0.0563055649, -0.2389355898, -0.3356946707, 0.1840346605, -0.2265946418, -0.2241274118, 0.1415757686, 0.1172188148, -0.2897534966, 0.1306221932, -0.2742014229, 0.1806969345, -0.1323214173, -0.0120933028, -0.1977734715, 0.1712650806, -0.0223778244, 0.0901061371, 0.1948776245, 0.1682454497, 0.3324262798, -0.0804965943, -0.0429355092, 0.0846529528, -0.2265438437, 0.1244953722, 0.233543992, -0.1833998561, 0.215415895, -0.477044791, 0.1106265187, 0.3081183732, -0.1947437972, -0.0293231402, 0.0039374391, 0.0493168384, 0.1900473535, -0.1683246344, -0.243275404, 0.1944577396, 0.0602935851, 0.1302556545, 0.0545680262, -0.1765178293, 0.330370903, -0.1547837108, 0.4327259064, -0.2320992053, -0.5032945871, 0.0760689974, -0.118169792, -0.3200330734, -0.0654712841, 0.1750154346, -0.3522891998, -0.0329999551, -0.2454355359, 0.0872914717, 0.1108342633, 0.1048142686, 0.167046085, 0.259700954, 0.0486821756, -0.0768030658, 0.1401763558, 0.0956187919, -0.0317682587, -0.0452513956, 0.2098353356, -0.0109810745, -0.4611234367, 0.1167819127, 0.2506336868, 0.318852216, -0.3166098893, -0.1372297257, -0.1577327549, -0.1574367732, 0.1096163541, -0.5407723784, -0.2618406117, -0.3891304135, 0.229752481, 0.0797142759, 0.0994987339, 0.0895258486, 0.0201371349, 0.503141284, 0.1363455802, 0.3336871564, -0.1729287356, -0.0027316823, -0.2012460381, 0.1467082351, 0.193528071, -0.2813088596, 0.4186470807, 0.1280870885, 0.0145016424, -0.3650860786, -0.2776893973, 0.0187221225, 0.0193657614, 0.6191231608, -0.0119306929, 0.3943902254, 0.1603340209, 0.0302589014, 0.0379867554, 0.0053524752, -0.1493352801, -0.182227686, -0.1655219048, -0.1321745962, 0.158866778, -0.2677980363, -0.3857853413, -0.1930244267, 0.1264283508, -0.3520961702, -0.056455195, 0.0669731125, -0.066448167, -0.1602620184, -0.0846329704, -0.0580599643, -0.447947979, -0.4734264314, 0.4316122234, -0.5226653218, -0.5991619229, 0.1699855328, 0.2392329127, -0.0682188347, -0.3702259958, -0.5837754011, -0.1930253804, -0.0077279159, -0.3098196089, 0.1036865264, -0.3687532544, -0.0315248035, -0.2137466073, -0.0678241402, -0.0936397836, -0.2744043469, -0.2408688515, -0.29113096, 0.2263618857, -0.1414812654, 0.3679819703, -0.1747765392, 0.6317420006, 0.4117623568, 0.0867356881, 0.2340046912, -0.3007178307, 0.377240926, -0.0009131941, -0.505369246, 0.0009156102, 0.2696516514, -0.0967120975, 0.2798793912, -0.0343687907, -0.5275525451, -0.1504205018, -0.5004960895, -0.3050170541, -0.0994784087, -0.0394629464, 0.1612417698, 0.1360197067, 0.1042551994, 0.1579532921, -0.0522514991, -0.4731737971, 0.0414893441, 0.4065425098, 0.0348728821, -0.0808670446, 0.2038095444, 0.1196455136, -0.5639191866, 0.2546180189, -0.4624656737, 0.4857322276, -0.2116449177, 0.1298793554, 0.4326485693, 0.093314223, 0.6532970667, -0.1836080402, 0.0062053073, 0.0086843316, 0.1404182911, -0.2795335948, -0.1741763204, -0.0990567133, 0.2257228047, -0.0214622039, 0.5986794233, 0.09765549, -0.1174933389, 0.7131308317, -0.1240876168, -0.2294790149, -0.5125675201, -0.1386023015, -0.095712997, 0.0276868176, -0.111046508, -0.2744746804, 0.1813431978, 0.053714823, -0.0923457444, -0.0306384116, 0.0511375293, 0.191026181, 0.101506047, 0.0301223025, 0.2462695688, 0.4282130599, 0.6796942949, 0.1638357788, 0.2028303742, 0.5066856742, 0.2317808867, -0.415840894, 0.1067660302, 0.0883692801, 0.1641604453, 0.5345054865, -0.2258728147, -0.1088031754, 0.042670887, 0.3136636019, -0.1551473886, 0.1021334678, 0.5559885502, -0.196339801, -0.8499245644, -0.2745600045, 0.5541858077, 0.0003809042, -0.0406622291, 0.3047017455, 0.0177611224, 0.2152482569, 0.0270933565, -0.1017898768, 1.0316538811, 0.1665572524, -0.101793021, 0.3046643436, 0.0554904379, 0.276381135, -0.3099125624, 0.0574832819, -0.2100714743, -0.4552865326, -0.1753839105, -0.0134450812, 0.1479775459, 0.0867055655, 0.1562885493, 0.0022162804, -0.0169752333, 0.2163680792, -0.0711539611, 0.1590892971, 0.1387323141, 0.0729329586, -0.009471206, 0.1867233962, -0.0534912273, 0.237611562, -0.172242403, -0.1235657632, -0.0312960967, -0.1452427953, -0.5341829062, 0.0283747651, -0.02604804, 0.0368739292, 0.1148171201, -0.1523119211, 0.2555771172, -0.071609959, 0.1709361821, 0.1477441192, -0.3695230484, 0.1787769645, -0.2642451525, -0.2760711312, -0.280033499, -0.0399604551, 0.0726035014, -0.1205511019, -0.2939675748, 0.1224440634, 0.0725206658, -0.0156206442, -0.361848861, 0.0089196805, -0.0608821698, -0.2367426753, -0.0630087554, 0.0361014865, 0.2026479691, -0.1747391522, 0.1297205985, -0.0392285101, -0.0015913409, -0.0501018241, 0.1240927055, -0.2149390429, -0.1483230293, 0.3801878393, 0.0379671901, -0.2728872895, 0.4756604135, 0.0668709278, -0.3424496055, -0.1332026869, 0.2952407897, 0.1715569943, -0.2981536984, 0.0532320179, 0.0353146121, 0.4488973618, 0.175762713, 0.3266792297, 0.2281234711, -0.0589839742, -0.2407832593, -0.5577976704, 0.0271185488, 0.0146070048, -0.0509476289, 0.3810842037, -0.2111904174, 0.1325573772, 0.1221006438, 0.0845925361, -0.3070061505, 0.0640104711, 0.0300004948, -0.1553002298, 0.0832048208, 0.1585000157, 0.5198745728, 0.0498432405, 0.1120292172, -0.0385350697, -0.2792862058, -0.2060579509, 0.0594163537, 0.1593333483, 0.0008245689, -0.0342333727, 0.0734392256, -0.0729268119, -0.1149362698, 0.2315216511, 0.1596716344, 0.1344264746, 0.1638170779, -0.2500375807, 0.2240925282, -0.1156987026, 0.0463727787, 0.1024572998, 0.1047341749, 0.4935657978, 0.1050387174, 0.047425624, 0.1421901584, -0.0951758623, 0.0988721922, -0.0752779245, 0.0427054428, 0.0673963279, 0.1699752957, -0.2375447154, 0.180364728, 0.266544193, 0.2119640708, 0.1618150771, -0.2587856054, -0.0357410088, 0.2838715017, 0.1593204588, -0.4555670321, -0.0469285883, 0.4497560561, 0.268351227, -0.1514958888, -0.0484729931, 0.0666820183, 0.3078421056, -0.1614087224, 0.02171655, 0.2200214118, 0.1241388321, 0.3608237505, 0.2716368735, -0.2732668817, 0.0393442139, 0.2961339951, 0.0696080923, -0.0804052725, 0.6396632195, -0.0873455778, 0.0795071721, 0.2615145147, 0.1889399588, 0.3183290362, -0.4486746788, 0.3975267112, -0.0608912297, -0.0507751703, 0.1023390964, 0.0173109602, 0.2678565681, -0.0563446879, 0.2511930466, -0.5639758706, 0.4773780107, 0.0120050078, 0.1025072187, 0.0368170068, -0.2289964706, -0.0471077822, 0.122887969, 0.1314182878, -0.3637650013, 0.0941873565, 0.2608234584, -0.33950001, -0.0098732393, -0.0191410296, 0.114290975, 0.1501845568, -0.1780011803, 0.1524503678, 0.1704098433, 0.061447721, 0.2295960039, 0.450681448, 0.374466747, 0.1648172587, 0.1221148893, 0.2983509004, 0.0600653253, -0.1981368661, 0.1845132411, 0.2443454117, 0.4479266405, 0.1169427857, 0.0780878514, 0.0767560676, -0.1854882985, 0.3864355087, -0.0044148942, 0.3479319811, -0.2449849397, 0.1838675141, -0.5601366758, -0.0920955986, -0.3440258801, -0.4144130647, -0.2921172678, -0.0149499401, 0.4996257424, 0.0550455078, 0.117549479, -0.1901173741, 0.0690284893, -0.0109322565, 0.5671275854, 0.2890672088, 0.0103729516, -0.1329371482, -0.3762554824, -0.430098772, 0.3534835279, -0.0891751796, 0.2662037611, 0.0226116534, -0.2893403172, 0.189277932, 0.2269520313, 0.3247392476, 0.0879692286, -0.1283982396, 0.4551956058, -0.0511329584, 0.118176654, 0.2125452608, 0.0244401563, -0.0698314905, 0.0150541076, 0.1534082741, -0.2137990445, -0.0945164338, -0.1158652753, 0.0213539917, -0.2117902339, -0.0194542482, 0.4102624953, 0.1337187886, 0.4958585799, 0.1296667755, -0.1204951331, -0.5201576948, -0.2514713407, -0.0494954474, 0.2877626121, 0.1603051126, 0.0579403117, 0.0872016177, -0.4120640755, -0.1411785781, -0.1503898203, -0.083867304, 0.0880299285, -0.4412183762, -0.1094867066, -0.1924924999, -0.0627973303, 0.2984637022, 0.1440996975, -0.0570100509, -0.1416319609, -0.0582871847, -0.3732269704, 0.4508115351, -0.5157148242, -0.100709185, 0.0369601436, -0.0778088123, -0.0736558884, 0.0189316608, -0.5644421577, 0.1010633186, 0.3804488182, -0.1434461325, 0.2976985872, 0.3103175461, 0.1020264849, -0.0151871992, -0.0572939478, 0.6876626611, 0.2602871656, -0.1331806183, 0.1389071494, -0.1607223749 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
It seems like the issue is with the streaming mode, not with the hosting: ```python >>> import datasets >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=True, download_mode="force_redownload") Downloading builder script: 9.35kB [00:00, 10.2MB/s] Downloading metadata: 9.50kB [00:00, 12.2MB/s] >>> len(list(dataset)) 0 >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=False) Reusing dataset cnn_dailymail (/home/slesage/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234) >>> len(dataset) 287113 ``` Note, in particular, that the streaming mode is failing silently, returning 0 row while I would have expected an exception instead. The result is that the dataset viewer shows `No data` instead of a detailed error. <img width="1511" alt="Capture d’écran 2022-04-12 aΜ€ 11 50 46" src="https://user-images.githubusercontent.com/1676121/162935341-d50f1e73-d053-41d4-917f-e79708a0ca23.png">
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
101
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No It seems like the issue is with the streaming mode, not with the hosting: ```python >>> import datasets >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=True, download_mode="force_redownload") Downloading builder script: 9.35kB [00:00, 10.2MB/s] Downloading metadata: 9.50kB [00:00, 12.2MB/s] >>> len(list(dataset)) 0 >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=False) Reusing dataset cnn_dailymail (/home/slesage/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234) >>> len(dataset) 287113 ``` Note, in particular, that the streaming mode is failing silently, returning 0 row while I would have expected an exception instead. The result is that the dataset viewer shows `No data` instead of a detailed error. <img width="1511" alt="Capture d’écran 2022-04-12 aΜ€ 11 50 46" src="https://user-images.githubusercontent.com/1676121/162935341-d50f1e73-d053-41d4-917f-e79708a0ca23.png">
[ -0.2431964278, -0.1357468218, 0.0265148021, 0.1462695599, 0.1896486133, 0.2344716638, 0.2769337893, 0.1717694551, -0.1825178415, 0.0452863052, -0.1151526719, -0.0208409596, -0.2906262577, 0.1923888624, 0.017642051, 0.0711764842, 0.0342033543, 0.0241453182, -0.0968555585, 0.0815058574, -0.0605810881, -0.0037972038, -0.2111999094, -0.2716055512, -0.1623199582, 0.023440484, 0.1066218466, 0.0428096838, -0.1685925722, -0.3543576896, 0.2860432267, -0.0415514149, 0.0520592481, 0.5258233547, -0.000120302, 0.3273029625, 0.5579804778, 0.0264790226, -0.3801026642, -0.3547174335, -0.036062222, -0.1950266212, 0.0779944658, 0.0755063519, -0.3187073767, -0.171171993, 0.0502766743, -0.2798450887, 0.3906146586, 0.2203197181, 0.16608648, 0.4979023933, -0.1592529565, -0.1345313191, -0.3120320737, 0.1024296954, -0.3517460823, 0.4443075657, -0.2169591337, 0.1974194944, 0.0393489674, 0.3588908315, -0.10992679, -0.05257513, 0.0011324432, -0.0086017242, -0.2418617606, -0.3241955042, 0.1002306417, 0.1190383211, 0.5061438084, -0.0004672793, -0.4057705998, -0.0495393276, 0.2604937255, -0.1388947219, 0.0610204153, 0.2916110456, -0.1970093846, 0.1952508539, -0.5039411783, -0.0983152017, -0.2174566835, 0.3325145245, -0.2221638113, 0.1963770539, -0.1911192238, 0.1589992642, -0.2369972467, 0.0121415192, 0.3718171716, -0.2009685785, 0.257671237, 0.0413161069, -0.065413475, -0.0129150273, 0.2440187484, 0.0095797172, -0.0960787535, 0.2646344006, 0.1913893223, 0.0440541916, -0.1291320026, -0.0179583374, 0.0451806076, 0.0605027936, 0.1550273746, 0.1336668879, 0.342679292, 0.4127426744, 0.4138380885, -0.1191217378, -0.0892515033, 0.2289882898, -0.2311544567, -0.294716835, 0.6388024092, -0.1113093346, -0.3327446878, 0.2987061143, -0.4117088914, 0.1245289147, -0.0872042328, 0.4602437019, -0.2045127749, -0.0737417042, -0.0086361198, 0.2296144068, -0.1484955698, -0.2631023228, -0.2239151746, -0.2786772251, -0.1666031182, 0.1892032027, 0.3428504765, -0.3461091518, 0.075969182, 0.0875216275, 0.4799565971, -0.1034686342, -0.185954541, 0.1199372113, -0.0356692336, 0.2967165411, -0.0531909503, 0.3966711164, 0.2770213187, 0.1204128042, 0.1166747808, 0.1740125567, 0.0766922385, -0.4549432397, 0.0642370731, 0.11075937, -0.5505169034, -0.0473595187, 0.0193346385, 0.1492730975, -0.4424809515, -0.1461505294, -0.1813027263, 0.1881366372, -0.016918296, -0.1119708791, 0.3405719101, 0.624535501, -0.2779116333, -0.0837579668, -0.1298595667, -0.2965270579, 0.3687170744, 0.0610705949, -0.1629217714, -0.3280929327, -0.120579578, -0.0897273868, 0.1145802215, -0.0346065015, -0.5252027512, 0.279713124, -0.1565871835, 0.3932722211, 0.1271722168, 0.0650729835, 0.0352830179, -0.1613950133, -0.171356231, 0.241294831, -0.0166351162, -0.0248674192, -0.3085105717, -0.2361945957, 0.1116546467, 0.2608057857, 0.1896372736, 0.0571557581, -0.1023930684, 0.0647291616, 0.154523313, 0.112289235, 0.0287368856, -0.0409758054, 0.1661562473, -0.0177959856, -0.1839521676, 0.1064846814, -0.3846105635, 0.103553243, 0.476410836, 0.1740389168, -0.1640394926, -0.164873451, -0.3294973075, 0.128838703, -0.2620247602, -0.3648434579, 0.1230871677, 0.1850654036, -0.1909252405, 0.2043928653, -0.2035146505, 0.2994657755, -0.1503505707, 0.0437695421, -0.1337745488, 0.3198966682, 0.0280501917, -0.1452120841, 0.1814852059, -0.0508118905, 0.2108725756, -0.0398287512, -0.0891551375, 0.3160408735, -0.1846786588, 0.385949105, 0.0180027597, -0.1411038935, 0.4030871391, -0.4280253351, 0.1930464953, 0.3602169752, -0.0270849261, -0.0389647707, -0.2775731683, 0.2222052813, -0.0605666637, 0.0217802618, -0.0484393872, 0.0632628053, -0.0063194223, 0.192667231, -0.2667380571, -0.2202317864, 0.3333524466, -0.2569515407, 0.3065075278, -0.3389432132, -0.5107878447, -0.0120004918, -0.1568834037, -0.2364646196, -0.119943656, 0.1068561897, -0.3535437882, -0.0838971287, -0.0769047141, 0.1468552202, 0.3342182934, 0.0605381913, 0.2435475141, 0.3187684417, -0.0017704922, -0.222264573, 0.1696369201, 0.050616879, 0.0236828104, 0.1877931058, 0.1826010644, -0.0765747055, -0.4718126059, -0.0656739473, 0.2539701164, 0.1755333096, -0.3353128731, -0.0987177566, -0.3181795478, -0.2913375199, -0.0292220619, -0.4790533185, -0.1513879895, -0.371563077, 0.0050264318, 0.2142362297, 0.0293358713, 0.2431812286, -0.209324941, 0.1732740104, 0.1924415082, -0.0086462367, -0.2068411857, 0.1608026475, -0.1448873132, 0.0245846827, 0.2630587816, -0.3633776903, 0.3906147182, 0.0115734842, -0.0795564801, -0.4255231917, -0.1390344799, 0.1148336455, -0.0065677851, 0.4910012782, -0.0391070992, 0.4547232687, 0.2568944097, 0.2427019477, 0.216620937, -0.0956097618, -0.0080202539, 0.090141654, 0.068683356, 0.0736097172, -0.10540016, -0.2785199583, -0.3317002952, -0.331079334, -0.0242680237, -0.2311577797, 0.004037499, 0.1977367401, 0.1829372048, -0.0267649274, -0.1299565881, -0.1227411702, -0.3429507315, -0.469797641, 0.4494381249, -0.3644885421, -0.583915472, 0.1612731367, 0.3007353246, 0.0827128515, 0.0009040175, -0.575761497, -0.1424576044, 0.0302212741, -0.1126876622, 0.0641748756, -0.2666649818, 0.0199432466, -0.1944409013, -0.0821198374, -0.1888382584, -0.184085831, -0.3958897293, -0.2239425629, 0.0931511223, -0.005384984, 0.455791682, 0.0747219846, 0.5631701946, 0.644667685, 0.1413658857, 0.360978961, -0.2619819641, 0.4688647091, 0.0724468157, -0.3020936847, 0.0758601278, 0.0969376713, -0.181952998, 0.2328104377, 0.0605867766, -0.4269641042, -0.2848274708, -0.1615836024, -0.3131320775, -0.1184733137, 0.1272380054, 0.0758963898, 0.224570334, 0.1036143973, 0.2727034986, -0.0387086011, -0.291667223, -0.1263337731, 0.2984887362, 0.1411498189, 0.0213554204, 0.264308095, -0.0765059367, -0.5380878448, 0.2652270496, -0.2226372361, 0.5972192287, -0.0572042391, 0.0009752978, 0.213463679, 0.0804601312, 0.5613816977, -0.312479645, 0.0424836986, 0.0765019655, -0.0545883067, -0.3757925332, -0.1659126431, -0.1355526447, 0.2012599856, 0.0014959214, 0.4532292485, -0.0655835345, -0.0727827325, 0.4322493076, 0.0095446678, -0.098694697, -0.3402762711, -0.1993259937, -0.1416243315, -0.1357539296, -0.1250707656, -0.1768294275, 0.0403860174, -0.0687914789, -0.0386806428, 0.029343294, 0.1182340458, 0.1420788914, 0.1071143597, 0.0983800218, 0.1677129269, 0.3049291968, 0.6917497516, -0.0339151584, 0.1926784962, 0.7100118995, 0.4640907049, -0.2454137355, 0.1953160167, 0.2280346751, -0.0392349772, 0.6541723609, -0.2104542851, -0.2802653909, 0.1943667084, 0.3570387661, -0.3249318004, 0.0989484116, 0.5705994368, -0.2260961086, -0.5929547548, -0.4446778893, 0.667668581, -0.0945731327, 0.0790095925, 0.1752068996, 0.0802078992, 0.0359008871, 0.004882467, -0.1436123848, 0.8332957625, 0.1518282145, 0.033419393, 0.4920445979, 0.0519719012, 0.3506640196, -0.1289303005, 0.1070164666, 0.048855789, -0.4020258784, -0.222070545, -0.117140986, 0.332837224, 0.0246523768, 0.0450289212, 0.1136889309, -0.0688287765, 0.5115246773, 0.013947607, 0.010433971, -0.3435926437, -0.02391297, -0.2981192172, 0.1506588757, -0.1601780355, 0.2158660442, -0.0709574893, -0.0872049704, -0.1455836594, 0.0485906042, -0.5680172443, 0.1887772977, -0.0821991339, -0.0145753995, -0.1960006952, -0.2565681636, 0.1401832849, 0.1685538143, -0.2306789756, 0.0062105162, -0.4721266329, 0.2112881839, -0.239423573, 0.0076347678, -0.1435229778, -0.0530877225, 0.3404636979, -0.1668003798, -0.1948738098, 0.1847615987, 0.0438536592, 0.1589205712, -0.1989773959, -0.096399866, 0.1540451944, -0.2296469659, -0.2674137056, 0.0044741933, 0.1426170915, -0.2142634094, 0.075569801, -0.1091587543, -0.0451337397, -0.0557444207, 0.1820018888, -0.1733677685, -0.2017308772, 0.5493447185, -0.0587363653, -0.1099996194, 0.3781228662, 0.1894972026, -0.3248116374, -0.0501666702, 0.1853056103, -0.0330607817, -0.3176725507, 0.1099185348, -0.0538401715, 0.3666316569, 0.006097456, 0.0020435099, 0.1955249459, -0.0863054544, -0.197747618, -0.4666837156, 0.1713558584, 0.1475776732, 0.0598297939, 0.2667191029, -0.2924197316, 0.486328423, 0.206335336, -0.3173699081, -0.2442868352, 0.0379665978, 0.0539703332, -0.0786698386, -0.074762702, 0.1936473101, 0.5296571851, -0.0980270728, 0.0986662954, 0.1163124666, -0.3135928214, -0.1327050924, -0.1018830538, 0.2193790972, 0.1162562519, -0.0953520015, 0.1106546745, -0.0825392976, -0.1303051412, 0.0039641405, 0.2185334563, 0.1263229698, 0.084448792, -0.2333619446, 0.1282790452, 0.1487417817, -0.0143521084, -0.0534503534, 0.0154374558, 0.5504945517, 0.1314302087, 0.1243355572, 0.0501392148, -0.0482592061, -0.1711265892, -0.0139562907, -0.1553885788, 0.1418617219, 0.4082133174, -0.4073338807, 0.2471815944, 0.1873310655, 0.4463917017, 0.2940785885, -0.2829445899, -0.1631330699, 0.1349757612, 0.1115395874, -0.3001690209, 0.043885611, 0.0878669247, 0.1743676364, 0.0338543132, 0.0241483059, -0.0665019825, 0.1922851205, -0.1901021004, 0.0489411876, 0.3061082661, 0.0686888993, 0.2758621871, 0.3033845425, -0.0770633444, 0.2396178544, -0.041775696, 0.0209250096, -0.1021621823, 0.4195943773, -0.0788430125, 0.1639186889, 0.1899334341, 0.2583204806, -0.0936208293, -0.5624306798, 0.0765585154, 0.1623774916, -0.1687435061, 0.3869084716, -0.1759892404, 0.2032235861, -0.2541485429, 0.2063460946, -0.3492339551, 0.226590097, 0.1106283963, 0.1012699977, -0.0162981302, -0.2510932684, -0.215285331, 0.2021336704, -0.0107881427, -0.2444080561, 0.0141864344, 0.3065864444, -0.3044037521, -0.3593358994, -0.0392505191, 0.0138852289, 0.2546816766, -0.2356078625, 0.2248131335, 0.3970583975, 0.0584348105, 0.0992193669, 0.354834497, 0.4944122434, 0.1659638584, 0.1637918353, 0.2396962047, 0.1558306813, -0.1416275352, 0.1251226962, 0.1913523376, 0.4911358058, 0.153345868, 0.0840529501, 0.0994034037, -0.1923882216, 0.2232013792, 0.0326295309, 0.1472420245, -0.3108099401, 0.2089356482, -0.5406603217, 0.0509852953, -0.1982659996, -0.4474914372, -0.4040625393, 0.1604509503, 0.4031967819, 0.1376878023, 0.0827605426, -0.0575790554, 0.0197887588, 0.0920383707, 0.4122745395, 0.1273101568, 0.0517867208, -0.2012885958, -0.2734987736, -0.6200239062, 0.137687847, 0.0973039865, 0.1199651361, 0.1109097376, 0.0090307584, 0.0841317773, 0.2649004459, 0.1708655506, -0.0598501302, -0.0373387486, 0.3796362579, -0.1222223863, -0.1476027966, 0.0139677199, 0.056728974, -0.1919014007, -0.1639151722, 0.2377543002, -0.4417907596, -0.0491978712, -0.0090081757, -0.1012528911, -0.2077379078, -0.0920128971, 0.4254107773, 0.1315462291, 0.3616255224, 0.2051581293, -0.3490226269, -0.6204043031, -0.0517846607, -0.1115976572, 0.2025923729, 0.0634131506, 0.4727309048, 0.0340958238, -0.2734476626, -0.2353427559, 0.0806301758, 0.1404535174, -0.17956689, -0.354180634, -0.0042552799, -0.2355345935, 0.0211621523, 0.0770643204, 0.404554069, -0.1379840076, 0.1738592237, -0.1717424095, -0.4516324401, 0.5802804828, -0.5264075398, -0.158060059, 0.2101751417, 0.0536774956, 0.010401885, -0.0185051467, -0.588653326, 0.2459878176, 0.2067104727, -0.1458627284, -0.0019754067, 0.2970100343, 0.02450311, -0.0771017745, 0.0192931872, 0.6055628061, 0.1534605771, -0.3220107555, 0.3216480613, -0.1553278863 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Well this is because the host (Google Drive) returns a document that is not the actual data, but an error page
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
21
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Well this is because the host (Google Drive) returns a document that is not the actual data, but an error page
[ -0.2201514542, -0.1176844314, 0.008099528, 0.2750419974, -0.1578515172, 0.4535071552, 0.2774329185, 0.102217637, -0.0483689159, 0.1661637127, -0.0356001481, -0.052585002, -0.1807608753, 0.1826712191, 0.1238147318, -0.0059419046, 0.1332160234, 0.0092483321, 0.052741725, -0.0080859801, -0.3318599164, 0.0889669657, -0.0584084839, -0.0039936323, -0.2619492114, -0.3089892566, -0.0128886374, 0.0067216433, -0.2224760503, -0.2303927392, 0.0858082995, 0.0269250963, 0.0499249175, 0.3620632291, -0.0001152793, 0.1891456991, 0.4863827527, 0.108307071, -0.4522310495, -0.2389679849, 0.1416833103, -0.1223155558, 0.0636805072, -0.0568124689, -0.2799337804, -0.3232064843, 0.0595693998, -0.0796695426, 0.1604131311, 0.3566170037, 0.1863383353, 0.3343722522, 0.1211294904, -0.3069159687, -0.0773628801, 0.0560883172, -0.3309741616, 0.3657692671, -0.2458205223, 0.1272613108, 0.1323568523, 0.1770348251, 0.0332457796, -0.0539935082, -0.0107881837, 0.1502775848, -0.1001573727, -0.4100966454, 0.098890245, 0.0040334044, 0.5076124072, 0.0974192992, -0.2605163157, 0.1629241854, 0.2568358183, 0.0502130315, 0.2088209093, 0.3091561496, -0.0175114218, 0.3155993521, -0.4082107246, -0.2824775875, -0.1487749666, 0.3551720977, -0.25141415, 0.0704748482, -0.1527745277, 0.1780553758, 0.0083351238, 0.0493482873, 0.4323792756, -0.2442035526, 0.0009933034, 0.0618021563, 0.0809559822, -0.1442618072, 0.2110193074, -0.0239824727, -0.0754470602, 0.0164076351, -0.0811590254, -0.0870789364, -0.1566170007, 0.0847581849, 0.180788815, 0.0450835079, 0.0328993425, 0.3662652075, 0.375477165, 0.2346585542, 0.460567981, -0.130380258, -0.117051594, 0.156211704, -0.2791981101, -0.1277957112, 0.6496926546, -0.1355737597, -0.3783629835, 0.2917422652, -0.2576910853, 0.0060263644, -0.0905193463, 0.406460464, -0.1818498075, -0.4397957325, 0.013195239, 0.1990049481, -0.0408586785, -0.0940360352, -0.2452991456, -0.075731121, -0.1100364625, 0.2008223534, 0.2541866601, -0.2731438577, 0.0947575495, -0.0375177078, 0.3017426133, -0.1975724995, -0.1312301159, 0.0285304282, -0.1495114416, 0.2590296566, 0.1148284897, 0.3747375906, 0.1037324518, 0.0892849639, 0.0355492905, 0.1200761199, -0.2199416012, -0.4862769246, -0.1499429792, 0.1335076392, -0.3008444309, -0.0205308162, -0.0856024399, 0.1045942456, -0.3613912761, -0.0218498372, -0.2326596826, 0.2420557439, 0.04984295, -0.1420775056, 0.1945732385, 0.3359161913, -0.4099532664, 0.1510225534, -0.2418164164, -0.5258988142, 0.1171421781, 0.2473932505, -0.0649644807, 0.0150135281, -0.4001533985, 0.0075163459, 0.1762172133, -0.0009338234, -0.5787943602, 0.0644040853, -0.241295442, 0.0968958586, -0.0244078543, 0.0919554979, 0.0126702189, -0.2267318964, -0.0519384891, 0.26163432, 0.0881200284, -0.0438748151, -0.2045970857, -0.201958254, 0.0658870339, 0.1743915379, 0.1543897688, 0.2378022224, 0.1852729619, -0.273524344, 0.0412097387, 0.047051955, -0.0220947396, 0.170437634, 0.2102938294, -0.0924085975, 0.0561212748, 0.1820005625, -0.426479429, -0.1049817652, 0.3093168437, 0.1271211505, -0.054369919, -0.2602131963, -0.4140976667, 0.1539497823, -0.1631958336, -0.1824099272, 0.1832993031, 0.1249210536, -0.1958928406, 0.3042889237, 0.0173511766, -0.0464376472, -0.1717028916, -0.0011510818, -0.1813450158, 0.3927273154, -0.1219835803, -0.0102145765, 0.321683079, 0.0115920259, 0.3157261312, -0.0735047832, -0.1143816933, 0.098235786, -0.1626502424, 0.3410436809, 0.3449940681, 0.0141277527, 0.2000821233, -0.4834502935, 0.1821325719, 0.3131290376, -0.1305126697, -0.0632115155, -0.2254809886, 0.0819393024, 0.0761995688, -0.0813643858, -0.1551278234, 0.1541080177, 0.0645154119, 0.100855805, 0.0822079033, -0.1953261048, 0.2314033508, -0.01458578, 0.5297227502, -0.3878595233, -0.3552370071, 0.0574009269, 0.0723397955, -0.2956595421, -0.0705860481, 0.2017155141, -0.3897346854, -0.1028961465, -0.1678913534, 0.1473095566, 0.1554943323, 0.1301677376, 0.3025991321, 0.3068817854, 0.1112518832, -0.0998322368, 0.1993185282, -0.0186702181, -0.0918072164, 0.076036036, 0.1054889113, -0.0785226971, -0.4633653462, 0.2048582286, 0.219738856, 0.2799298167, -0.310492903, -0.0855325088, -0.0356575996, -0.0629537255, 0.0529416949, -0.3302073479, -0.2204223126, -0.3978950977, 0.1393811554, 0.3382902741, -0.034198463, -0.0325661488, 0.0873524398, 0.4362009466, 0.1629599184, 0.151375711, -0.2340611517, 0.0066162222, -0.2488157004, 0.1412427127, 0.2475669235, -0.2122912854, 0.4454899132, 0.0270291343, 0.1296760589, -0.7213143706, -0.1841457486, 0.0712609291, -0.0800311342, 0.7195791602, 0.0085792178, 0.42169559, 0.2776837051, -0.0170773026, 0.0293064862, -0.0154740382, -0.2631320357, -0.1927480102, -0.0952363014, -0.0833551139, 0.0460695066, -0.4182263315, -0.2126948386, -0.1256284118, 0.0852230564, -0.2792631388, -0.022826381, -0.0469257496, 0.1117089391, -0.0560065433, 0.0923157558, -0.2120220959, -0.4563494027, -0.3089402318, 0.3565280139, -0.5065760612, -0.7046200633, 0.1581399739, 0.2332775593, -0.1772389114, -0.1397920102, -0.6498401165, -0.2922490835, -0.0215525161, -0.2619513571, 0.0539055057, -0.2884773612, 0.0525483526, -0.1056606993, -0.0735241398, -0.118391186, -0.3649297059, -0.2644460499, -0.1084386855, 0.1683602482, -0.0242838208, 0.4061194956, -0.1556462497, 0.6576995254, 0.389136225, 0.1316843182, 0.2209757268, -0.3310312927, 0.4410198629, -0.107133612, -0.3884886205, -0.0046947114, 0.1176079139, -0.2222028971, 0.4257201254, -0.0206025485, -0.6368911862, -0.0863678753, -0.4444471598, -0.4592678249, -0.0817178562, -0.0703098997, 0.1658423394, 0.1665542424, 0.1886390746, 0.1999758333, -0.0143066468, -0.41281569, 0.0981367901, 0.4083263278, 0.1051946506, 0.0761669725, 0.1786077768, 0.0064412928, -0.5843692422, 0.3477120996, -0.2641528547, 0.3079973459, -0.2208801061, 0.2051779181, 0.3781389594, 0.0176222287, 0.6160430312, -0.294064343, 0.093307063, 0.0089572649, 0.1462998241, -0.0253323428, -0.1307866424, -0.2525748014, 0.1978564411, 0.0163710192, 0.5898502469, 0.0464196354, -0.1152410954, 0.6265367866, -0.0977364704, -0.1451826394, -0.226507172, -0.0991894305, -0.176518485, -0.0582295693, -0.1507565975, -0.1977366358, 0.0799296796, -0.0564749353, -0.1142014712, -0.0201201569, 0.1189923137, 0.0298918057, 0.1372919828, 0.1628531665, 0.127867505, 0.2682484388, 0.7158566117, 0.172137931, 0.3288850784, 0.5712252855, 0.2080771029, -0.1970841289, 0.2722637057, -0.1470659077, 0.0482948348, 0.4571341574, -0.2195328325, -0.2774709761, 0.0582547672, 0.2510284483, -0.250374943, 0.1316083521, 0.6259375215, -0.1606461108, -0.7628830075, -0.1659806073, 0.5587625504, 0.0355805159, -0.1045976058, 0.3322420716, 0.1843535453, -0.0138992546, 0.0396947041, -0.0481411703, 0.8715388179, 0.1908510923, 0.0016297216, 0.3369533122, -0.0508638881, 0.1886176318, -0.2859455645, 0.0879279301, -0.2416443527, -0.3992380202, -0.2613996565, -0.0826933831, 0.1563524455, 0.2308924496, 0.0242767762, 0.0197774023, 0.0047144042, 0.1679076552, 0.016436087, 0.3518824875, 0.0108653763, 0.1870469302, 0.122767061, 0.1796622425, -0.0640437528, 0.2922525704, -0.2205900848, -0.0940464288, -0.1005037501, -0.2691824138, -0.5657054782, 0.0224463549, -0.091845341, 0.0431223065, -0.0411721654, -0.338672936, 0.0788405314, -0.0247959718, 0.1727466583, 0.1769677252, -0.4306743145, 0.1372689754, -0.324223429, -0.1838217825, -0.3703531623, -0.0653136522, 0.0903828219, -0.1005943641, -0.2379406542, 0.0242649615, 0.0163132958, -0.1185536236, -0.3095240295, -0.0553879216, -0.2249993682, -0.2242875844, -0.0993206948, -0.0760435015, -0.0223257467, -0.1131435558, 0.1049256548, -0.1417627186, 0.1334714144, -0.0860520452, 0.3719622493, -0.2315994948, -0.1195934862, 0.3257706761, 0.0137503101, -0.3651031852, 0.5478228927, 0.0092689414, -0.3087538779, -0.1381124556, 0.2516410649, 0.1336013675, -0.1696259379, 0.038401939, -0.1356734484, 0.3644444346, 0.0786206946, 0.2687474787, 0.2117758989, 0.024388941, -0.1661671549, -0.5497886539, 0.1904051751, 0.0684688762, -0.1981586516, 0.4265016317, -0.081219621, 0.1334062219, 0.140551433, -0.1088315472, -0.2879394889, 0.1174546853, -0.0876179561, -0.1201738566, 0.2480450273, 0.1733386517, 0.5065553188, 0.0052516358, 0.0936565697, -0.1387176961, -0.2893704176, -0.1989525259, 0.0658490658, 0.1387837976, 0.0296101812, -0.0597882718, 0.0111808795, -0.085217528, -0.1281297654, 0.2200079411, 0.2292459458, 0.083964631, 0.1512444615, -0.2904925346, 0.0735520944, 0.0005116527, -0.0354564264, 0.0008623456, 0.023293227, 0.5308206081, -0.0080551151, 0.1114047617, 0.0480173491, -0.0031436014, 0.0345788971, 0.0125454869, 0.0839817896, 0.2146317214, 0.2579998672, -0.2146199942, 0.1884475946, 0.1019768044, 0.2361060977, 0.1338534951, -0.3664902151, -0.1179946586, 0.3069830835, 0.1636258066, -0.255545646, -0.0854818746, 0.4128237963, -0.1100726575, -0.1073390543, -0.1009111404, 0.1231144741, 0.4707191885, -0.1861653924, -0.0024228962, 0.4510291815, 0.0620372258, 0.2291012108, 0.1665784419, -0.2809118629, 0.1256026775, 0.2477005124, -0.0477979593, -0.1899442673, 0.6262142658, -0.0679006428, -0.0390958041, 0.2495678812, 0.2134302557, 0.2251840383, -0.4302702546, 0.3597724438, -0.1090640202, -0.1988651901, 0.1486526132, -0.0004051442, 0.0763709918, -0.0912118182, 0.2685412467, -0.566123724, 0.2861226797, 0.048137527, 0.2149664611, 0.0008567755, -0.2835529745, -0.061866425, 0.2192973495, 0.1149580181, -0.329993695, -0.0397698432, 0.1910462081, -0.3403493464, 0.0805125982, 0.0941750482, 0.0326886587, 0.1262756437, -0.2490768433, 0.1701773703, 0.0146968374, 0.1275467575, 0.1492771953, 0.5176580548, 0.3785664439, 0.1975408196, 0.1251827478, 0.11123427, -0.0315468945, -0.1695641875, 0.1636157334, 0.3283908963, 0.3899358809, -0.003060784, 0.1686475575, 0.1156032607, -0.1266998351, 0.3357280195, 0.0257253982, 0.1740229279, -0.1986742616, 0.0045984345, -0.5467404127, -0.0675616637, -0.2711910605, -0.4548514783, -0.2797598839, -0.0325045176, 0.4525050223, -0.0100925285, 0.1291395277, -0.0874043331, 0.0549942106, 0.0449156277, 0.5602664351, 0.4346161783, 0.2077837288, -0.150636211, -0.3534657359, -0.4431249797, 0.340028882, -0.0609727465, 0.3285849988, -0.0155805172, -0.1678574085, 0.04513878, 0.321164012, 0.3837526739, 0.2918933928, -0.1959311515, 0.3943366408, -0.07925798, -0.0704139322, 0.1641869098, -0.002972787, -0.268057704, -0.1508990377, 0.1250846684, -0.1352974176, -0.0910068378, -0.1537877917, 0.1632814258, -0.2811168134, 0.0259727091, 0.5128396153, 0.2813967168, 0.6240665317, 0.023060564, -0.1538385302, -0.4278743267, -0.2185135931, -0.0441444032, 0.1783697456, 0.1343942434, 0.1760594249, 0.1032872349, -0.519097507, -0.1445877701, 0.0805709213, 0.0275290068, 0.1787601411, -0.398241818, -0.0589857064, -0.2338967174, -0.1129538491, 0.2856317163, 0.1588175297, 0.0542876013, -0.0705411509, -0.1080519259, -0.2452739924, 0.2869625688, -0.3805530667, -0.0851496086, 0.1594651192, -0.003224889, 0.0504741296, -0.1379480809, -0.5219266415, 0.0760821775, 0.3261541426, -0.2295748442, 0.1665061712, 0.1992683262, 0.1340611279, -0.0523749217, 0.008437641, 0.6675922275, 0.3035921454, -0.2026088536, 0.1606015414, -0.1839198321 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Yes it definitely should ! I don't have the bandwidth to work on this right now though
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
17
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Yes it definitely should ! I don't have the bandwidth to work on this right now though
[ -0.2430776656, -0.0320056789, -0.0319474787, 0.2054729015, -0.0779783353, 0.3501709104, 0.3647361994, 0.0361054949, -0.1428976059, 0.0710142553, 0.0454365984, 0.1317964494, -0.2172238827, 0.3043098748, 0.112982817, -0.0036861496, 0.0916846693, -0.0354320481, -0.0544379242, 0.0535227917, -0.36160025, 0.0830900595, -0.119309485, -0.1056484804, -0.1811307073, -0.1318101436, -0.0309524648, -0.1191481054, -0.2032646239, -0.2204311788, 0.0717404187, 0.1505127549, 0.0470490344, 0.1922080219, -0.0001117875, 0.1639230698, 0.4733366966, 0.1311962456, -0.2974595428, -0.0608545206, 0.0073063048, -0.2361370176, 0.0573245548, -0.0133962268, -0.2836750448, -0.0588006154, -0.0328105725, -0.2342372835, 0.1818597168, 0.2023291439, 0.2399218529, 0.4232840538, 0.1265164167, -0.3196795583, -0.1531536728, 0.0930035561, -0.4558535218, 0.2300073206, -0.3466902077, 0.1379309446, 0.1336327344, 0.3842051923, 0.1285700351, -0.0208154432, 0.0723192766, 0.0651639327, -0.0898673236, -0.3628293276, 0.0550246947, 0.0699557215, 0.4350481927, 0.0750660375, -0.2682984471, 0.1439627558, 0.2061059028, -0.148076728, 0.1680757552, 0.0844759792, -0.000576134, 0.2511816621, -0.293304354, -0.3158596158, -0.0609820485, 0.4674069881, -0.1349258721, 0.1619538218, -0.156921342, 0.1748400182, 0.0242434405, -0.0447687134, 0.4192393422, -0.0448032953, 0.0530239828, 0.0028552662, 0.0980028436, -0.0649741367, 0.1102384254, 0.0634667873, -0.1071828082, 0.1508692056, -0.2063878626, -0.0004856889, 0.003353639, -0.0707036257, 0.1184417829, -0.0016114183, -0.0045773713, 0.4627436996, 0.3954041898, 0.1957215369, 0.3232088983, -0.1258095503, -0.1916972995, 0.1083753854, -0.3455101848, -0.2003543377, 0.6104341745, -0.0395744629, -0.2271959782, 0.311862886, -0.1969331652, -0.000857219, -0.0782503635, 0.4603564739, -0.159107089, -0.2988230884, -0.0084496094, 0.1730186939, 0.0184163004, -0.1846219301, -0.2937640548, -0.1475814879, -0.0474814847, 0.2625269294, 0.2153387219, -0.1879227757, 0.0750690252, -0.130846858, 0.3130224943, -0.0594796427, -0.2010757178, 0.2323854268, -0.2050055116, 0.2796908319, -0.2108054012, 0.4745272398, 0.0692799985, 0.2590776086, 0.0458390005, 0.1655588597, -0.0784788579, -0.4589293003, -0.0514097176, 0.160408169, -0.3708094954, -0.2683320642, -0.0033188139, 0.2018960267, -0.1973160505, -0.0483454466, -0.1077378988, 0.2161322981, -0.0673224255, -0.0787445754, 0.0714924037, 0.256516546, -0.423097223, -0.0500943027, -0.4566076398, -0.4572383165, 0.186201632, 0.1630034298, -0.1738197058, -0.1609294266, -0.2236749232, -0.0258575473, 0.2602799237, -0.0874922201, -0.6225364208, 0.0071249702, -0.1937960684, 0.048347611, -0.0498396307, 0.2104512602, -0.0329801701, -0.3061194718, -0.2032051682, 0.2228953093, 0.0916428044, -0.0778789073, -0.3032110035, -0.2904154658, 0.2044277191, 0.2751361728, 0.296553731, 0.0857157707, -0.0616869256, -0.1012146771, 0.1062266901, 0.2134679854, 0.0333406553, -0.0519545153, 0.1632532626, -0.0638158023, 0.0566456504, 0.0721112117, -0.2646738291, -0.0897348076, 0.3005785644, 0.2048557848, 0.0508619212, -0.3141865134, -0.2540042698, 0.088794373, -0.245152384, -0.2625937462, 0.1532804519, 0.1183255911, -0.2182931155, 0.1422144771, -0.2415465415, 0.0884421989, -0.1590967476, -0.0123443659, -0.1322749853, 0.2004311532, -0.1088629216, 0.1716146618, 0.1474565715, 0.1292914748, 0.2001369148, -0.0475108959, -0.1019218788, 0.0737911239, -0.1616142243, 0.0591591708, 0.2180158198, -0.1138498262, 0.1730626523, -0.3846374452, 0.0892978385, 0.2960230112, -0.2346764356, -0.0785708129, -0.0396699049, 0.104451865, 0.1922203302, -0.1141286492, -0.1401193142, 0.0764361694, 0.0649172291, 0.1072322801, -0.0538397133, -0.2214039266, 0.1475479901, -0.1947707534, 0.3808957934, -0.2217410505, -0.4405340552, 0.1240579337, 0.110319674, -0.1811102033, -0.0276293159, 0.1487336904, -0.3717183173, 0.0062459549, -0.1681131423, 0.0850953013, 0.2220135033, 0.144234553, 0.1655051559, 0.2339821607, 0.0616838634, -0.1029392257, 0.1381673217, 0.1154186875, -0.0053145485, 0.0873270705, 0.078330256, -0.0306169447, -0.4897589982, 0.2466081232, 0.2669198513, 0.3713191748, -0.417091459, -0.1521896273, -0.1495572627, -0.328201443, 0.2337113172, -0.5104138851, -0.09104231, -0.4376583695, 0.2657763362, 0.0126857944, 0.0083170738, 0.186392203, -0.0359252021, 0.4887540638, 0.1028280631, 0.251080066, -0.232340157, 0.0495537557, -0.1511805803, 0.2041288465, 0.3427395821, -0.259593159, 0.3239100873, 0.1402586401, 0.0817771927, -0.4349754751, -0.3930365145, 0.0520074181, 0.0247364547, 0.5454176068, -0.075433068, 0.2626167238, 0.1773388982, -0.0423644669, 0.0722317472, -0.0696261525, -0.2752169371, -0.2654767036, -0.1467830986, -0.1705573052, -0.031495817, -0.328112781, -0.3940671682, -0.3067495823, 0.260170579, -0.1985611171, -0.0926984847, 0.0858285725, -0.0746608451, -0.0618966185, -0.0940746143, -0.0558731034, -0.4828523099, -0.3808533251, 0.4496865869, -0.5468262434, -0.668667376, 0.16617392, 0.1575283855, -0.0563704334, -0.3022793829, -0.556107223, -0.2444387823, -0.0021257803, -0.2062051892, 0.1314667165, -0.3301525414, 0.0296936352, -0.2232029289, -0.0407638997, -0.0283573717, -0.2214749455, -0.1909411848, -0.3105581999, 0.1155189276, -0.1733222008, 0.3755737245, -0.1786867082, 0.5339921117, 0.3768863082, 0.0572464019, 0.2034915984, -0.3385621011, 0.4795074165, 0.0479291864, -0.4740022719, 0.0406924188, 0.1459091157, -0.0218054913, 0.3318556249, -0.0201044269, -0.6154702902, -0.174605757, -0.2699295878, -0.3793101609, -0.1148316339, -0.025311105, 0.196922183, 0.0522476286, 0.1743258536, 0.2260686606, -0.0568671115, -0.4592653215, 0.0434081554, 0.4138101041, 0.1013998538, -0.0476622805, 0.2946933806, 0.0739531592, -0.5134725571, 0.2285554558, -0.3328892291, 0.3827474117, -0.1853878647, 0.0114631327, 0.3292163014, 0.0235984102, 0.5792459249, -0.293390125, -0.1670576781, 0.0600427054, 0.1207158566, -0.1781739593, -0.0744565725, -0.1095330417, 0.2644472718, 0.0307443347, 0.5263908505, 0.1297318488, -0.1169899032, 0.830057025, -0.1492534429, -0.1673461348, -0.4683885872, -0.13196446, -0.0452607907, -0.1274622232, -0.2035683542, -0.2301922292, 0.0673089251, 0.0366913006, -0.1870424747, -0.1303617656, -0.0872051641, 0.103336297, 0.1564657092, 0.1102232933, 0.2200031281, 0.4569348395, 0.6349511743, -0.0428223349, 0.27913481, 0.5302220583, 0.1844317764, -0.3505443633, 0.1418630034, 0.0506183319, 0.087588273, 0.5390375257, -0.256347537, -0.1477546543, 0.0431418344, 0.275898695, -0.209568128, 0.1437061429, 0.5875942111, -0.070003964, -0.7277027965, -0.3124761581, 0.5570963025, 0.0224767607, -0.0065426971, 0.3129312694, 0.0512343459, 0.1098023653, -0.1620755047, -0.1585961133, 0.9526555538, 0.1666374207, -0.0934871659, 0.2770255208, 0.1810586154, 0.3494929373, -0.3047785163, 0.0519145429, -0.1647348404, -0.4699400067, -0.1772155017, -0.0020227069, 0.2875194252, 0.1266389787, 0.0533838272, -0.0775866359, 0.0951047763, 0.2228390872, -0.0563682839, 0.2407509834, 0.030415548, 0.1205730587, 0.1164922267, 0.2384166867, -0.0379601642, 0.3257600367, -0.142607227, -0.0825250819, -0.0796639919, -0.1397093087, -0.4912528098, 0.0006667906, -0.0920116752, 0.1131353378, -0.0146098677, -0.0549778342, 0.1148863137, -0.0376960635, 0.1597490609, 0.2040782422, -0.3762000203, 0.18492046, -0.2683878541, -0.2525483966, -0.2990397215, -0.0127294874, 0.0681957901, -0.1965198219, -0.1703137457, 0.0537656024, 0.1037343144, -0.1948013604, -0.3490986228, 0.0771815777, -0.0084658479, -0.1964401156, -0.0829157382, 0.0525616854, 0.0292883087, -0.1483757049, 0.1499894857, -0.0371164232, 0.0372361243, 0.0844430625, 0.0996159911, -0.1632476598, -0.1676071882, 0.3948122263, -0.0512987524, -0.295573473, 0.3847623467, 0.0438942835, -0.4514856637, -0.134598732, 0.2752324939, 0.2693674862, -0.1724268645, 0.0244442113, 0.0469194762, 0.3661483824, 0.1316647828, 0.4291253686, 0.1970013082, -0.0959116742, -0.1675370485, -0.5060377717, -0.0388808139, 0.0312792622, -0.0315627791, 0.3632864058, -0.1912959963, 0.1948398501, 0.2265529633, 0.0817238465, -0.3128932416, 0.008238717, 0.1007224768, -0.2326024622, 0.2010215074, 0.2091289461, 0.6271913648, -0.0312440358, 0.0950810164, 0.071594432, -0.2875961363, -0.2427576631, 0.1162915528, 0.1532496065, 0.0999656394, -0.0794884786, 0.1200930327, -0.0355282351, -0.1890069991, 0.1896015555, 0.1361723691, 0.0614199154, 0.0950315222, -0.1658478379, 0.1995257884, -0.0952714458, 0.1680712253, 0.0916857123, 0.1680899113, 0.6224152446, 0.1155465022, 0.1736360937, 0.1451786309, 0.0179563761, 0.2176581323, -0.0228476357, -0.0599640273, 0.0777045041, 0.2154281586, -0.3175970912, 0.1759283394, 0.28874892, 0.2807039022, 0.3387726247, -0.2268237025, -0.0151897101, 0.2469228506, 0.1636658609, -0.4249566495, -0.0021559142, 0.3550480902, 0.1024154499, 0.0248744301, -0.0282055177, -0.0220250729, 0.3685753942, -0.0955667943, 0.1072186008, 0.3249957263, 0.0892768651, 0.4559541941, 0.1817666292, -0.3209398985, 0.0862668976, 0.27772367, 0.1040419564, -0.1265191734, 0.5817235708, -0.1082977429, 0.0452115163, 0.1888431758, 0.2628501058, 0.2919872403, -0.4619894326, 0.4543068707, -0.0486178584, -0.1380464286, 0.1208846197, 0.1447293609, 0.3070131242, -0.0056395824, 0.1850070208, -0.5421924591, 0.3491322696, -0.0113002406, 0.121848464, 0.0680317506, -0.2164084315, -0.0720223859, 0.1465818435, 0.0788707435, -0.3763976693, 0.1539603174, 0.2595075667, -0.3061296046, -0.0522319637, 0.1061519459, 0.007357467, 0.1977082193, -0.1717188507, 0.1815055907, 0.1276548654, 0.0398118943, 0.1698009074, 0.3475588858, 0.3276553452, 0.1881547868, 0.196053341, 0.2441152483, -0.017467089, -0.2248271853, 0.0831780955, 0.3167057633, 0.5050352216, 0.0793511197, 0.030640563, 0.1191840246, -0.2370713055, 0.4549608827, 0.0242681485, 0.3548565805, -0.2403597683, 0.1595007032, -0.5121229291, -0.02142106, -0.3230125904, -0.5161722302, -0.3155696094, -0.117582798, 0.3828168213, -0.0042242426, 0.1078034341, -0.2185864002, 0.0786510259, 0.0850011408, 0.4897680283, 0.240481168, 0.1264977604, -0.1790342182, -0.3136505485, -0.5674774051, 0.3051138222, -0.1042466685, 0.30700019, -0.0135780023, -0.1167028099, 0.187483117, 0.3754141331, 0.3341721594, 0.0318994038, -0.0052775396, 0.2626587451, -0.0997031108, 0.033244282, 0.2123304605, -0.0588916913, -0.0409646258, -0.1533157676, 0.1351714879, -0.298279047, -0.0743322372, -0.1441809088, -0.0309552439, -0.2582052946, 0.0506591164, 0.4363839626, 0.1181364357, 0.5609244108, 0.0884789005, -0.157683447, -0.4869357646, -0.2842333019, -0.1602109075, 0.3311345875, 0.1260219961, 0.091290459, 0.0241087154, -0.4674436748, -0.1634034663, -0.1092639565, -0.0576903708, 0.0075679375, -0.3575215042, 0.0218270086, -0.1404947042, 0.0207526758, 0.1866353303, 0.1107334942, -0.0657691881, -0.0641315952, -0.1089548618, -0.3935523927, 0.4271678329, -0.4611163139, -0.0580715165, 0.0493651591, -0.074300155, 0.0079420311, -0.0792103782, -0.6306439638, 0.0345044732, 0.3403096497, -0.1558962464, 0.3107556105, 0.3864094317, 0.0960890651, -0.03490014, -0.1306799054, 0.6202124357, 0.2436530739, -0.1085903272, 0.108035475, -0.2262449116 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Indeed, streaming was not supported: tgz archives were not properly iterated. I've opened a PR to support streaming. However, keep in mind that Google Drive will keep generating issues from time to time, like 403,...
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
35
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Indeed, streaming was not supported: tgz archives were not properly iterated. I've opened a PR to support streaming. However, keep in mind that Google Drive will keep generating issues from time to time, like 403,...
[ -0.3138817549, -0.0006062295, 0.0798434764, 0.1281982213, -0.0945748463, 0.4155945778, 0.3022679687, 0.0399726294, -0.2884829044, 0.1047268808, 0.0059947176, -0.130375728, -0.2775120139, 0.3053117692, -0.0797778219, -0.0123270582, 0.0110680507, 0.0108387722, 0.1293762028, 0.1192798764, -0.219029814, 0.2076621056, -0.1678166687, -0.0990261585, 0.0075206743, -0.4049855173, 0.0682614148, -0.0354362056, -0.1977647692, -0.0848872364, -0.185969457, 0.1007610857, 0.1900048405, 0.3464576304, -0.0001174354, 0.1279736906, 0.5033276081, 0.0360223278, -0.3595927954, -0.1934003234, 0.1603382379, -0.0275423974, -0.0123096872, -0.0217588414, -0.1943074465, -0.1887877136, 0.1074675098, -0.1955544651, 0.2302920818, 0.2033781409, 0.1371889412, 0.3322040737, 0.0454154536, -0.1983086169, -0.01973591, -0.2180088162, -0.4102926552, 0.336335212, -0.2425865084, 0.1576168388, 0.0974518731, 0.2042842656, 0.010499483, 0.0066163624, -0.0307861306, 0.1600520313, 0.0132627664, -0.3841501176, 0.0764495581, 0.083242029, 0.5803786516, 0.0656570196, -0.417146951, 0.0971097127, 0.2443550825, -0.1791666597, 0.1629537493, 0.3535988331, -0.0638633668, 0.2523455322, -0.4239280522, -0.187032178, -0.2792805731, 0.3285861313, -0.0806380138, 0.217872262, -0.0009138188, 0.0802901238, -0.0705522895, 0.0783419609, 0.5885828137, -0.1643439978, -0.1128773838, -0.0318105593, 0.051251471, -0.0936490297, 0.1824955642, 0.1408241093, -0.1329797804, 0.1546319872, 0.2525794208, 0.0846136585, 0.0144038266, -0.0025964244, 0.2414354384, 0.281388551, -0.003516613, 0.1560750753, 0.4323605299, 0.1372361928, 0.3602617085, -0.1570459157, -0.1636537611, 0.096293211, -0.2679050267, -0.1707107723, 0.4722882211, 0.0454444252, -0.1791421026, -0.0201522838, -0.4273181558, -0.0988221169, -0.1180783883, 0.2685245872, -0.1689495593, -0.4276706278, -0.1534890831, 0.2046965957, 0.0575320348, -0.0645191669, -0.2148975432, -0.133096084, -0.1322034299, 0.310093075, 0.2292633653, -0.441999197, -0.040915627, -0.1056524366, 0.2606792152, -0.0021677741, -0.1564829797, 0.105975531, -0.1558696628, 0.2573607266, 0.1285220981, 0.28536883, 0.072140947, 0.2549129426, 0.0289939214, 0.1106792539, -0.0041627791, -0.5941221118, 0.0755740255, 0.0819535181, -0.3786559105, -0.066732876, -0.0534301065, 0.237728551, -0.240882948, -0.2932812274, -0.2869547009, 0.3234150708, 0.0448728949, -0.1358935833, 0.1078195274, 0.1735467464, -0.3329516053, 0.0996848941, -0.5419815183, -0.2294979095, 0.2680197358, 0.3537349403, -0.0281908512, -0.1564217359, -0.3280756772, 0.2010662705, 0.2602242827, -0.0132028479, -0.5702244043, 0.1251699328, -0.2054798305, 0.1352235675, -0.0608116798, 0.0706979781, 0.0960993618, -0.3321787715, -0.302419275, 0.4847661257, -0.0175706409, -0.0414379798, -0.2118304521, -0.2758490741, 0.2248443365, 0.0846976042, 0.2603418231, 0.268207252, 0.2352647781, -0.318025589, -0.0052510914, 0.1843709648, 0.0889464393, 0.0173124187, 0.3054150045, -0.1310947239, 0.0589143373, 0.1988226026, -0.4800677299, -0.0096258102, 0.2170918584, 0.1297619641, -0.1857200861, -0.1809163541, -0.0079489229, 0.0726061687, -0.0942649469, -0.1241946667, 0.1941265017, 0.2075126469, -0.1946086138, 0.2174302042, 0.0821801871, -0.0306396708, -0.021986654, -0.1242412552, -0.0918573141, 0.4385019839, -0.1627459526, -0.1753552407, 0.3290233016, -0.0884462669, 0.1401404738, -0.1432204098, -0.1437240541, 0.1646163911, -0.4412012398, 0.4281412959, 0.1652766317, 0.1711309999, 0.1800698638, -0.4244721234, 0.1920386106, 0.2507938445, -0.1452030838, -0.0514333881, -0.2425704747, 0.076891236, 0.0559638329, -0.1398043931, 0.0700796321, 0.0451516584, -0.0220669694, 0.0893176645, -0.0793564692, -0.0732609704, 0.1761997789, -0.1220132709, 0.1423079967, -0.3014187813, -0.3988221586, 0.1703296751, 0.3057332635, -0.2384655029, -0.0633621886, 0.1617198586, -0.3472972512, -0.2750867605, -0.0788914263, 0.3986378312, 0.2695600092, 0.1270645857, 0.3394429684, 0.2293680757, 0.1109001487, -0.2100365907, 0.2398724258, 0.1222317144, -0.0913321078, 0.2210513502, 0.2137425691, 0.0023436875, -0.3710423708, 0.2371095568, 0.4635723829, 0.3096950054, -0.242484957, -0.1577898711, -0.2055054158, -0.1398199946, 0.3280589879, -0.4438513219, -0.172903955, -0.460765779, 0.1391780972, 0.455193162, 0.0183961447, 0.1943088621, 0.178957805, 0.5173248649, 0.2882269621, 0.0481313542, -0.2708815336, -0.0180187467, -0.114690952, 0.1074519902, 0.2934037745, -0.2623100579, 0.3352084756, 0.1988339126, 0.100407809, -0.5756390691, -0.2518734634, 0.1513376087, -0.1618769616, 0.5244991183, -0.3436201215, 0.441039741, 0.164227277, -0.1621023566, -0.0531416871, -0.1779286861, -0.1657478958, 0.0180500485, -0.0708845481, -0.1325200945, -0.0754656494, -0.2977248728, -0.2624937296, -0.2991455793, 0.2638406456, -0.2413109541, -0.0183785539, 0.2438421696, 0.0278353654, -0.1623852104, 0.2303893119, -0.2239781767, -0.3858826458, -0.3284016252, 0.5712825656, -0.5680828094, -0.7056031823, 0.3464390635, 0.2433269918, -0.1502040029, 0.0602599829, -0.4930645525, -0.1862474531, -0.0258649699, -0.2502468228, 0.1264970452, -0.4877671301, 0.1524556875, -0.0861166343, -0.0439180396, -0.0627596602, -0.2376357764, -0.1670339853, -0.0143172815, 0.0623903126, 0.1186913699, 0.4823942482, 0.0564664714, 0.5006404519, 0.2805622816, 0.1839817911, 0.2100865543, -0.2687800825, 0.3492598236, -0.0088744508, -0.2563957572, 0.0587100126, 0.004746092, -0.2251102328, 0.4655200839, 0.0177115891, -0.7032902241, -0.0947394148, -0.1159891263, -0.3340557516, -0.2062735558, -0.0104466341, -0.0170253012, 0.2077366263, 0.1907746792, 0.076988928, -0.1234690025, -0.4268572032, 0.0300538912, 0.3309878111, 0.116586566, 0.2359751612, 0.3570065498, 0.0433171354, -0.5228574872, 0.3756554723, -0.2550784349, 0.3784261644, -0.2487142384, 0.1061908603, 0.3637962639, -0.0520801097, 0.4278139174, -0.5585300922, 0.0562456399, 0.0054145954, 0.110218659, -0.0115818419, -0.3222399652, -0.1757739335, 0.1172101945, 0.0173069686, 0.5111270547, 0.045111388, -0.1090452522, 0.4606988132, -0.181328252, -0.1265085936, -0.334995091, -0.0814202055, -0.1430192739, -0.1152883321, -0.3513385355, -0.1381706744, -0.0052079819, -0.2698365152, -0.0429592058, 0.082476005, -0.0745350942, 0.0081830611, 0.0116475169, 0.1286258996, 0.2133464515, 0.1594092846, 0.648732245, -0.0425176173, 0.1917278022, 0.3731946051, 0.432985723, -0.0777368546, 0.312723875, -0.1272366643, -0.1712949723, 0.4755173624, -0.2089471817, -0.1430377811, 0.0966289341, 0.2910130322, -0.100631021, -0.0395794995, 0.5680065751, -0.2251369208, -0.6781757474, -0.1831152588, 0.4270637333, 0.0157194342, -0.0089592393, 0.4799181223, -0.0402361825, 0.0084367674, 0.0091113085, -0.1574273258, 0.9426149726, 0.1352974027, -0.1705955565, 0.3568411171, 0.0441143326, 0.1866471767, -0.3070464134, 0.2226871401, -0.0271204654, -0.5322155952, -0.2544993758, -0.0653853118, 0.0841201097, 0.2132326066, -0.2112236768, -0.0273536984, 0.0430951864, 0.2073165476, -0.0224632137, 0.1975557357, -0.1948702037, 0.1685861945, 0.1099578589, 0.1309954673, -0.1333267242, 0.224992469, -0.075674355, -0.3374631107, 0.0622062087, -0.0483941026, -0.6767470837, 0.0835728347, -0.0218981244, 0.0500232689, -0.190762803, -0.451990664, 0.0957451388, 0.0287644044, 0.0568025634, 0.0330537409, -0.5215521455, -0.0101268655, -0.4519027174, -0.2501375973, -0.4102552831, 0.0535771176, 0.2007574141, -0.2121764421, -0.1430271268, 0.0739558712, -0.0006461081, -0.2726134956, -0.2766528726, -0.2018067092, -0.2178046703, 0.082092084, -0.0246783383, -0.0206417758, -0.1354696006, -0.0814213678, 0.0826057419, -0.1643138826, 0.1536184251, 0.0507291555, 0.1120131165, -0.1018330306, -0.1248002127, 0.3605541587, -0.0769815817, -0.0770698637, 0.4979833364, 0.2389789224, -0.3105884194, -0.0123970108, 0.0798429251, 0.0904518738, -0.1277378947, 0.0807522237, -0.1345396489, 0.4318994284, 0.0281054303, 0.3428024054, 0.1285121143, 0.1278179884, -0.2658909261, -0.5458977222, 0.1196605861, 0.1351493895, -0.1905399412, 0.4184327424, -0.2969555855, 0.1600595117, 0.3131648898, -0.0312329363, -0.2618288398, 0.0897615775, 0.0216304138, -0.1752034873, 0.2149930149, 0.0198191311, 0.550719738, 0.0292672291, 0.063591592, -0.0826680586, -0.3694475293, -0.1067083254, 0.1775281131, 0.1683291048, 0.1972707063, -0.0632753149, 0.031736251, -0.1946941912, -0.2160167992, 0.1527361721, 0.2325821072, -0.0104713533, 0.0714167953, -0.3038291335, 0.178150937, -0.0561531261, 0.0614883378, -0.0125574628, -0.0125226667, 0.5062369704, 0.028270429, 0.1198996529, 0.2514355183, -0.0129107768, -0.097654283, -0.0969188139, 0.0383294895, 0.1776293963, 0.4405153692, -0.2741062045, 0.2000491321, -0.0725235566, 0.2945303023, -0.0389153808, -0.1755686551, -0.1758598387, 0.2276569903, 0.125741154, -0.3072661459, -0.104464598, 0.146466881, 0.05674541, -0.0482526384, -0.1892507374, 0.0009281426, 0.3235492408, -0.2086787224, 0.1111063734, 0.6458399892, 0.0448127203, 0.1991459131, 0.0986031294, -0.262686938, 0.0967365056, -0.0235286765, -0.0757515654, -0.1813942641, 0.3260141015, -0.1063484624, -0.1999088973, 0.1848884076, 0.1503417194, 0.1377863139, -0.5819010735, 0.1210530996, 0.0155563131, -0.1036193818, 0.2317281216, 0.1251285076, 0.1254760176, -0.0143129574, 0.2662231922, -0.5699828863, 0.3224189878, 0.2443219125, 0.2544150651, 0.0103594083, -0.1689102799, 0.0360699408, 0.2983879149, 0.2105555981, -0.1755067259, 0.0039384961, 0.4047412574, -0.1966966093, 0.0322428159, 0.1444451809, -0.0211151931, 0.1388736814, -0.2788449228, 0.1931449175, -0.0077284006, 0.034093935, 0.0576564483, 0.3018006086, 0.3616530597, 0.1569437683, 0.1480857134, 0.2411830574, 0.0294877999, -0.19892703, 0.2068127096, 0.2296068221, 0.6512100697, -0.063331455, 0.0040184846, 0.0709818006, -0.1196920723, 0.5413229465, 0.0382027328, 0.1387231648, -0.1072066575, 0.1719504446, -0.3337157369, -0.1292577982, -0.0387482978, -0.4260285497, -0.1463296562, 0.0095071681, 0.3212955594, -0.0167098641, 0.0494503006, -0.1662029177, 0.0353561454, 0.1488336474, 0.5764150023, 0.3069751561, 0.2756423354, -0.0425592028, -0.2691165507, -0.4251658618, 0.2161986679, 0.0534691513, 0.5675963163, 0.1079097614, -0.0862624049, 0.0630963147, 0.249181971, 0.3065220416, 0.3486736119, -0.189783141, 0.4265629351, -0.1942287534, 0.0309907552, 0.386813879, 0.0349088833, -0.2543940246, -0.0663464144, 0.1770812422, -0.3484497666, -0.0185016245, -0.130837962, 0.0631030351, -0.2255256772, 0.0318433717, 0.482731849, 0.2254153788, 0.547798574, -0.0008720805, -0.1017133668, -0.6572890282, -0.1684706658, -0.1160285175, 0.0354415886, 0.1210309863, 0.1830751747, 0.0416424498, -0.4703028202, -0.2437402755, 0.0537065938, -0.1352450103, 0.2167502642, -0.3220257759, 0.0205163825, -0.2142223269, 0.1343899965, 0.2769231498, -0.0474415384, 0.0076943855, -0.0819149315, -0.2718504667, -0.2813960314, 0.368640393, -0.4404426217, -0.1039876416, 0.2382914126, -0.0993181616, 0.188719064, 0.022895202, -0.3374960124, 0.1191844642, 0.2485545725, -0.1931187063, 0.1094786972, 0.2424765676, 0.4018131793, -0.1283781081, 0.0550127998, 0.4247663915, 0.2188480943, -0.2686827779, 0.1213382035, -0.1164017022 ]
https://github.com/huggingface/datasets/issues/3968
Cannot preview 'indonesian-nlp/eli5_id' dataset
Hi @cahya-wirawan, thanks for reporting. Your dataset is working OK in streaming mode: ```python In [1]: from datasets import load_dataset ...: ds = load_dataset("indonesian-nlp/eli5_id", split="train", streaming=True) ...: item = next(iter(ds)) ...: item Using custom data configuration indonesian-nlp--eli5_id-9fe728a7e760fb7b Out[1]: {'q_id': '1oy5tc', 'title': 'dalam sepak bola apa gunanya menyia-nyiakan dua permainan pertama dengan terburu-buru - di tengah - bukan permainan terburu-buru biasa saya mendapatkannya', 'selftext': '', 'document': '', 'subreddit': 'explainlikeimfive', 'answers': {'a_id': ['ccwtgnz', 'ccwtmho', 'ccwt946', 'ccwvj0u'], 'text': ['Jaga pertahanan tetap jujur, rasakan operan terburu-buru, buka permainan yang lewat. Pelanggaran yang terlalu satu dimensi akan gagal. Dan mereka yang bergegas ke tengah kadang-kadang dapat dibuka lebar-lebar untuk ukuran yard yang besar.', 'Jika Anda melempar bola sepanjang waktu, maka pertahanan akan beradaptasi untuk selalu menutupi umpan. Dengan melakukan permainan lari sederhana sesekali, Anda memaksa pertahanan untuk tetap dekat dan menjaga dari lari. Terkadang, pelanggaran dapat membuat pertahanan lengah dengan berpura-pura berlari dan membebaskan penerima mereka. Selain itu, Anda tidak perlu mendapatkan yard besar di setiap permainan. Terkadang, paling baik mendapatkan beberapa yard sekaligus. Selama Anda mendapatkan yang pertama, Anda dalam kondisi yang baik.', 'Dalam kebanyakan kasus, O-Line seharusnya membuat lubang untuk dilalui kembali. Jika Anda menjalankan terlalu banyak permainan ke luar / melempar, pertahanan akan mengejar. Juga, 2 permainan 5 yard memberi Anda satu set down baru.', 'Saya Anda tidak suka jenis drama itu, tonton CFL. Kami hanya mendapatkan 3 down sehingga Anda tidak bisa menyia-nyiakannya. Lebih banyak lagi yang lewat.'], 'score': [3, 2, 2, 2]}, 'title_urls': {'url': []}, 'selftext_urls': {'url': []}, 'answers_urls': {'url': []}} ``` Therefore, it should be properly rendered in the previewer. Let me ping @severo to have a look at it.
## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes
271
Cannot preview 'indonesian-nlp/eli5_id' dataset ## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes Hi @cahya-wirawan, thanks for reporting. Your dataset is working OK in streaming mode: ```python In [1]: from datasets import load_dataset ...: ds = load_dataset("indonesian-nlp/eli5_id", split="train", streaming=True) ...: item = next(iter(ds)) ...: item Using custom data configuration indonesian-nlp--eli5_id-9fe728a7e760fb7b Out[1]: {'q_id': '1oy5tc', 'title': 'dalam sepak bola apa gunanya menyia-nyiakan dua permainan pertama dengan terburu-buru - di tengah - bukan permainan terburu-buru biasa saya mendapatkannya', 'selftext': '', 'document': '', 'subreddit': 'explainlikeimfive', 'answers': {'a_id': ['ccwtgnz', 'ccwtmho', 'ccwt946', 'ccwvj0u'], 'text': ['Jaga pertahanan tetap jujur, rasakan operan terburu-buru, buka permainan yang lewat. Pelanggaran yang terlalu satu dimensi akan gagal. Dan mereka yang bergegas ke tengah kadang-kadang dapat dibuka lebar-lebar untuk ukuran yard yang besar.', 'Jika Anda melempar bola sepanjang waktu, maka pertahanan akan beradaptasi untuk selalu menutupi umpan. Dengan melakukan permainan lari sederhana sesekali, Anda memaksa pertahanan untuk tetap dekat dan menjaga dari lari. Terkadang, pelanggaran dapat membuat pertahanan lengah dengan berpura-pura berlari dan membebaskan penerima mereka. Selain itu, Anda tidak perlu mendapatkan yard besar di setiap permainan. Terkadang, paling baik mendapatkan beberapa yard sekaligus. Selama Anda mendapatkan yang pertama, Anda dalam kondisi yang baik.', 'Dalam kebanyakan kasus, O-Line seharusnya membuat lubang untuk dilalui kembali. Jika Anda menjalankan terlalu banyak permainan ke luar / melempar, pertahanan akan mengejar. Juga, 2 permainan 5 yard memberi Anda satu set down baru.', 'Saya Anda tidak suka jenis drama itu, tonton CFL. Kami hanya mendapatkan 3 down sehingga Anda tidak bisa menyia-nyiakannya. Lebih banyak lagi yang lewat.'], 'score': [3, 2, 2, 2]}, 'title_urls': {'url': []}, 'selftext_urls': {'url': []}, 'answers_urls': {'url': []}} ``` Therefore, it should be properly rendered in the previewer. Let me ping @severo to have a look at it.
[ -0.3884465694, -0.1418881714, -0.0735412166, 0.1538680792, -0.0247689895, 0.2311387956, 0.0929407179, 0.5587151647, 0.013209342, -0.0031359459, -0.2292772233, 0.1413211524, -0.0089979749, 0.0560638495, 0.2455597371, -0.3852819204, 0.1090712398, 0.2116558552, 0.066169925, 0.2062218338, -0.2260429114, 0.1690870821, -0.1779133528, 0.0307419728, -0.1016644016, 0.126808688, -0.2462917566, -0.1787739843, -0.2351304293, -0.4451827109, 0.3270983398, -0.006639801, 0.3465332389, 0.3288258612, -0.0001176661, 0.101507619, 0.4787646234, 0.0469392873, -0.4361976981, -0.2867251635, -0.0695509836, -0.2629037797, 0.1667049974, -0.3640159667, -0.3667899668, -0.1416674852, 0.1614738405, -0.2331001014, 0.449123323, 0.2519761622, 0.1802675575, 0.1842021197, -0.0906574726, -0.1951970011, 0.0046622544, 0.0135074984, -0.3405572772, -0.031118324, 0.0251057595, 0.1483628452, 0.0723095238, 0.1425688118, 0.0414822772, 0.0002271787, -0.0983590037, -0.177489087, -0.0742169842, -0.4272820055, 0.2674390376, 0.0889689475, 0.8293322325, -0.1354741156, -0.4231258333, 0.0516598895, 0.1803533435, -0.365241766, 0.0424408503, 0.1807281524, 0.0217579827, 0.2970376015, -0.2148315459, -0.1728136241, -0.134436354, 0.3529180288, 0.0918896645, 0.4469764829, -0.0729434043, 0.1788553745, -0.1445162743, 0.0110882726, 0.3606287241, -0.2371476591, -0.0554234721, 0.3523610234, -0.2338991314, -0.0025199496, -0.0487669073, 0.0658836737, -0.0402619317, 0.2348727882, 0.0417963564, 0.1268388778, 0.208937034, 0.0888384283, -0.0419940837, 0.2751556635, 0.2118460983, 0.1947979629, 0.0795956105, 0.1010087878, 0.3155801892, -0.1507544816, -0.1895993203, 0.0298120733, -0.0631495342, -0.1059171185, 0.0835054293, -0.0825970545, -0.2144389898, 0.0875712633, -0.2015106231, -0.1049720794, -0.0790584832, 0.2095066905, -0.2710110545, 0.0359094702, -0.0197480321, 0.3294925094, -0.1725649834, -0.3394617438, -0.2045640945, -0.0959232077, -0.2350438237, 0.1074183136, 0.2647382021, -0.0561428219, 0.3548190892, -0.1756877005, -0.0162343737, -0.040139094, 0.0868211761, -0.0773991495, -0.0552709065, 0.2023695111, 0.266063422, 0.2444278896, 0.2542656064, -0.145614326, 0.0261682644, 0.2186500877, -0.0606236011, -0.3396390676, -0.2691552043, 0.1292117238, -0.5351643562, 0.0107725216, -0.4277227223, 0.2442938834, 0.0839646682, -0.221321553, -0.0292769372, 0.1889334172, -0.3994219899, -0.0839851797, 0.113823466, 0.5005105138, -0.3949448764, -0.3168521821, -0.4791225195, -0.2337370366, 0.2002007514, 0.2949112058, -0.15335913, 0.0940815061, -0.4111355245, 0.2337621301, 0.6692297459, -0.1584240049, -0.8022480011, 0.3397340775, -0.2535733581, 0.1907270253, 0.2465167493, 0.1879567504, 0.2971200943, -0.2125582993, 0.0285504106, 0.140956834, 0.2370331436, -0.1495675594, -0.2030357122, -0.1790858954, 0.3119283915, 0.1220058426, 0.1393408328, 0.0354037583, 0.0201094802, -0.0297422893, 0.3851158023, 0.2866753638, 0.1901659518, -0.0552021675, 0.1308944672, 0.1412422806, -0.0467301458, -0.1130553856, -0.1065962762, 0.170655176, 0.0300967544, 0.0040670601, -0.1335962564, -0.1195593327, -0.5475381017, 0.1618607193, -0.4023775756, -0.2562201619, 0.1501111686, 0.115314737, 0.3233065307, 0.2405788153, -0.0133459652, 0.316526711, -0.141204983, -0.1434650123, -0.3764174283, 0.368545413, -0.0496471152, 0.0896377712, 0.2222928703, 0.1586567909, 0.3699979782, 0.0389928073, -0.1621095836, 0.277493, -0.2628035843, 0.1149622276, 0.2878965437, 0.0580260791, 0.185174644, -0.6591469646, 0.2241032422, 0.0801994801, 0.0848852992, -0.0888003334, -0.1891590357, 0.1237823069, 0.0863539651, 0.0509518906, -0.1372752339, 0.1171651781, 0.334838748, 0.0314219967, -0.1587207168, -0.1581456512, 0.2898857594, -0.2606803477, 0.4740165472, -0.2403024137, -0.1924536973, 0.1025098637, 0.0009774903, -0.0907085314, 0.0305847507, 0.1434004903, -0.2073387206, -0.2956689596, 0.01059864, 0.0880794674, 0.4563918114, 0.2363200039, 0.2078635693, 0.0893921107, 0.0896414965, -0.1324801892, 0.0991060659, 0.0699363872, 0.1454227418, 0.1838043481, 0.1430676281, -0.0732428879, -0.2717489898, 0.0095778825, 0.3297000229, 0.250069648, -0.0962309614, -0.0076893629, -0.224486202, -0.5751373172, -0.0319593921, -0.2915557325, 0.0072314637, -0.4501575828, 0.1041164845, 0.0707954988, 0.1665883958, 0.3464950323, -0.4401085377, 0.087265186, 0.1577486396, 0.0515142456, -0.1567111462, 0.0336694866, -0.0888904333, 0.0692384765, 0.2791856527, 0.039303042, 0.4615877867, -0.2586062849, 0.112382248, -0.5453109145, -0.2779380977, 0.0850229263, 0.0678188726, 0.4314615428, -0.1768882722, 0.2624556422, 0.1044781432, -0.124922365, 0.2560333908, -0.1020506322, -0.1849177033, 0.1137404293, 0.0292077754, -0.0099258544, 0.1951754689, -0.3396385312, -0.4454945624, -0.3778809607, 0.0324129947, -0.1336256117, 0.046642635, 0.0414327942, 0.1191718206, -0.0381576642, 0.1233727932, -0.2101918459, -0.3526590765, -0.4695137441, 0.3989986479, -0.4600350857, -0.4392986596, 0.1779685766, -0.0280601252, 0.3165484369, -0.142509535, -0.5763730407, 0.1502586156, -0.0402830578, 0.2317177057, 0.138329342, -0.2001966834, 0.1844014078, -0.1868000329, -0.0026976012, -0.0738971829, -0.0629624352, -0.2194812894, -0.3743026555, 0.4920830131, -0.0524416938, 0.5958859324, 0.0800617635, 0.7769434452, 0.5118923783, 0.1964696795, 0.3109143376, -0.055898156, 0.1896194071, -0.1541995853, -0.333096087, -0.0307290833, -0.1041820496, 0.0561071336, 0.3702024221, 0.0461915024, -0.7478691339, -0.2228848487, -0.3180098832, -0.3578879535, -0.0025214679, 0.0446534567, -0.0950088277, 0.305508852, 0.1023097262, -0.0770430863, -0.267177254, -0.3467079699, -0.1706094742, 0.2430205196, 0.1942959726, 0.2239891291, -0.2360150814, -0.1075785309, -0.5076069832, 0.2159343362, -0.0861787722, 0.6778612137, -0.1766464412, 0.0751416311, 0.2410081178, 0.1103313863, 0.6576358676, -0.3752948046, 0.1244709417, 0.007263015, -0.0336232483, -0.2673305571, -0.0279250853, 0.1722082347, 0.5803576112, 0.1842875481, 0.2497713715, 0.0066859117, -0.0502864644, 0.2616533637, -0.0226475, -0.3687913418, -0.5654734373, -0.1940602809, -0.0191469025, -0.1339984387, -0.0453677066, -0.031957414, 0.1435599774, -0.0498830713, 0.0581280217, -0.1275374144, -0.0482758097, -0.1593319774, 0.1020313576, 0.0281051863, 0.2048403323, 0.2786639631, 0.3728688359, -0.1358548701, 0.0300649311, 0.5851709843, 0.1980640441, -0.2018025517, 0.1586946845, 0.0560992882, 0.0859512538, 0.1941417307, -0.0365468822, -0.1116024777, 0.212592572, 0.2164726257, -0.1000881419, -0.1457444429, 0.3563314676, -0.1601370722, -0.500503242, -0.4730613828, 0.7459154129, 0.199493587, 0.076265581, 0.0661458075, 0.0687227771, -0.0354879163, -0.0129175121, -0.1387711763, 0.8892348409, 0.1197148263, -0.0264692903, 0.221446082, -0.2874385118, 0.2108962685, -0.2335761338, -0.0301621575, -0.1675378382, -0.1886752397, -0.1513210684, 0.0019487948, 0.3122941554, 0.0267541911, -0.1512974948, 0.0295940191, 0.092311576, -0.1038072854, 0.0974696055, 0.1633689255, -0.2187449187, -0.0662257448, -0.3391055763, 0.1834494174, -0.1813479811, 0.2126832902, -0.0727733448, -0.1009542197, -0.2217282057, 0.0876307711, -0.4429875612, 0.1619925946, 0.1331002861, 0.2509574294, -0.2198995203, -0.5399460196, 0.1493541598, 0.19438456, -0.0136401495, 0.0902478099, -0.2952405512, 0.2219254375, -0.1696271598, -0.194675386, -0.162535429, -0.0787357613, 0.2975397408, -0.139659062, -0.3892436922, 0.387506336, 0.1411938518, -0.0431438088, 0.0791375712, -0.0864694566, 0.0443790965, -0.2001003921, -0.3607819378, -0.0690727681, -0.1487849653, -0.1544013619, 0.1051435843, 0.0870813131, -0.3411918283, -0.2202505171, 0.1400279999, -0.0379711539, -0.1428449452, 0.7056679726, 0.0595564097, 0.0869910121, 0.4904761314, 0.3333442509, -0.1787361354, -0.0775492862, -0.0513477586, 0.0498177595, -0.4822865427, -0.2713321745, -0.0698004588, 0.4400420189, -0.0883144364, -0.0388597175, 0.0623295009, -0.255033195, -0.0294890739, -0.4575136602, -0.2191413492, 0.0498592518, -0.0883568749, 0.2604643404, -0.0786318481, 0.0295787826, 0.3363892734, 0.2489471883, -0.2594337463, -0.1226110831, -0.1895540804, 0.1012907177, 0.0991774276, 0.0707332939, 0.0351388492, -0.1600396782, 0.0046946201, 0.1495198756, -0.333327949, -0.2071996033, 0.0023849125, 0.180090338, 0.200391382, -0.0895694569, -0.0466784276, -0.1384355873, 0.0423723981, 0.1160276234, -0.0695924535, 0.1081566289, 0.1259209067, 0.1462444812, 0.3174910843, -0.1460376233, -0.095937565, 0.1683994979, 0.0768456981, 0.3887252212, 0.0119479932, 0.0797945112, 0.0683719143, 0.0407079756, -0.2020660937, -0.2571185231, -0.1096653342, 0.0123266829, 0.3643967211, -0.5675038099, 0.4386000931, 0.3499166369, 0.1890684366, 0.1197562888, -0.2355908006, -0.0554709621, 0.3459932506, 0.1008357257, -0.5098030567, -0.1697943807, 0.4381870627, 0.1187272966, -0.0613146797, 0.0176458899, 0.1672241986, -0.0134840487, 0.1838246882, 0.18338269, 0.3738627732, -0.2123483866, 0.2902963459, 0.3447018862, 0.0052648922, 0.1013692096, 0.1125191897, 0.3093738556, -0.0947456136, 0.4523064792, -0.0807519779, 0.1724289358, 0.0913661197, 0.3398768008, -0.0939341858, -0.2533669472, -0.0804303661, -0.0741504356, -0.1495147943, 0.2096606791, -0.0367771089, 0.2551167011, 0.1893181652, 0.3363839388, -0.3144727945, 0.2508846521, 0.0026630575, 0.0799334049, -0.2091483623, -0.0900107622, -0.246936515, -0.0057832799, -0.0159035344, -0.2040849179, -0.0663080961, 0.1455249339, -0.3640387654, -0.1880984157, 0.0282056965, 0.3198610842, 0.0873841569, -0.2854594588, 0.2024597824, 0.2979589403, 0.0207441337, 0.0354455672, 0.2992783785, 0.3583688736, -0.0401481763, -0.0896528438, 0.0999783874, 0.1719643921, -0.2692627311, 0.0602321215, 0.3017129302, 0.3616012335, -0.069386065, 0.1742507666, 0.0961458534, -0.1493700743, 0.4373697042, 0.2077496648, 0.3869385719, -0.2352853268, 0.1379616112, -0.4106282294, -0.2010418326, -0.1743830889, -0.1282634586, -0.5305161476, 0.3635141551, 0.1598040611, -0.0375679694, 0.1029069796, -0.3247042894, 0.0440878496, -0.2024557889, 0.4809065759, 0.4734500945, -0.0433602966, -0.1094527692, -0.2864566743, -0.6149179339, -0.0094549004, -0.2816466987, 0.0311798714, 0.2019241005, 0.0174052082, -0.0664156675, 0.356420517, 0.0474018343, -0.0017101594, 0.0251374505, 0.5438550711, -0.2185969949, -0.2257491797, 0.0760841444, 0.4242988825, -0.2082585543, -0.1218173057, 0.0554560497, -0.0210210718, -0.0128676184, -0.1353154182, -0.1803101003, -0.0992374942, -0.0927961394, 0.3081393838, 0.2015085071, 0.453355968, 0.047350727, 0.1119548604, -0.3511609435, -0.0732504576, 0.0463782921, 0.2871804535, 0.2551566362, 0.4397143722, -0.2109468728, -0.28664729, -0.0218294039, -0.100801833, -0.0891853198, 0.0622143634, -0.2900040448, -0.0647845715, -0.2131198049, 0.0948567316, 0.2200325131, 0.3416935503, -0.0404879227, 0.0923788846, -0.1147853956, -0.230149433, 0.3132925332, -0.5833628774, -0.2070662677, 0.102160573, 0.0327406749, 0.1178564653, -0.0366725735, -0.341664046, 0.2622630596, 0.4222701788, -0.1620439142, 0.3744626641, 0.3310526907, -0.0163178034, 0.1882607043, 0.0100535033, 0.5650956035, -0.0282598771, 0.0279995054, 0.0998947695, -0.41155985 ]
https://github.com/huggingface/datasets/issues/3968
Cannot preview 'indonesian-nlp/eli5_id' dataset
Thanks @albertvillanova for checking it. Btw, I have another dataset indonesian-nlp/lfqa_id which has the same issue. However, this dataset is still private, is it the reason why the preview doesn't work?
## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes
31
Cannot preview 'indonesian-nlp/eli5_id' dataset ## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes Thanks @albertvillanova for checking it. Btw, I have another dataset indonesian-nlp/lfqa_id which has the same issue. However, this dataset is still private, is it the reason why the preview doesn't work?
[ -0.3352318704, -0.1239318326, -0.0271362271, 0.2779891193, -0.1499149054, 0.2525175512, 0.1689608395, 0.4171839654, 0.0262223538, 0.1278894246, -0.2093314379, 0.0273423586, 0.0728632361, -0.0633365959, 0.2337571234, -0.2524936795, 0.1370038688, 0.2076776922, 0.0418996774, 0.139749676, -0.3411982059, 0.1387014091, -0.0847392231, 0.0956581756, -0.1752810627, 0.1472757608, -0.2631253004, -0.1625660658, -0.1750165075, -0.2988176346, 0.3090741336, 0.0094314842, 0.3150720894, 0.2825843692, -0.000120714, 0.1024615392, 0.5217807889, 0.0814411268, -0.3983308077, -0.1704622209, -0.2927370965, -0.1974095553, 0.1072621569, -0.2427867204, -0.3409101665, -0.0719876215, 0.2031476349, -0.2895104885, 0.3366416097, 0.1013348922, 0.1765974909, 0.2822755873, 0.0096486947, -0.4180736542, 0.0997701287, 0.1139397621, -0.3644116521, -0.0360723622, -0.0325785317, 0.1766187549, 0.1380994767, 0.1712029278, 0.1845664233, -0.0496160872, -0.0524262004, -0.113755919, -0.0809145421, -0.382392168, 0.3947342038, 0.1050451547, 0.9738979936, 0.0537457727, -0.421857357, 0.2185226232, 0.1650576293, -0.2702128589, 0.2160297036, 0.0777152404, 0.2029744685, 0.2938157022, -0.2840118408, -0.224087894, -0.0425115041, 0.2671951056, 0.0484018885, 0.3617528379, -0.1486110538, 0.1761084497, -0.1185659617, -0.0315705799, 0.2541718185, -0.2068041712, -0.196006164, 0.3550164104, -0.0789704472, 0.0018302443, -0.0349561088, 0.1232685372, 0.0478697568, 0.1794870645, -0.1306174397, 0.128243193, 0.0576458201, 0.1062517017, -0.0910097733, 0.2693842351, 0.2268242389, 0.1627316177, 0.2376191467, 0.0461571105, 0.3526897728, -0.1490911394, -0.2292902619, 0.1273767799, -0.1262226403, -0.2348272651, 0.1206290573, -0.1650113612, -0.2759548128, 0.1054633409, -0.0866015404, -0.1034127101, -0.1140604168, 0.2603634596, -0.162720412, -0.2183699012, 0.0150109828, 0.2727592885, -0.1524410695, -0.4064299762, -0.2044025362, -0.1434210539, -0.2629234195, 0.215383023, 0.1966868192, 0.0834169611, 0.3332151175, -0.1632977426, 0.0638503134, -0.0473395772, 0.0570902042, 0.0791119635, -0.2406434417, 0.2372681051, 0.1935508102, 0.2929942906, 0.1542375535, -0.1600528806, 0.1196651533, 0.1881630123, -0.0789426118, -0.3005830348, -0.3701652884, 0.0783778355, -0.514567256, 0.0544658117, -0.3898002207, 0.1647768021, 0.1224506572, -0.1828582138, 0.0200933293, 0.2839482129, -0.3336376548, -0.0686915219, 0.0581614561, 0.5976070762, -0.4043644965, -0.2873670161, -0.5321162343, -0.3303725719, 0.1480833888, 0.3575607538, -0.1674082875, -0.0633021072, -0.4827781618, 0.1629851758, 0.5765411258, -0.0882447809, -0.7730315924, 0.2138247639, -0.299672693, 0.0039667957, 0.1571529657, 0.158394739, 0.2135115862, -0.2919864357, -0.1313534677, -0.0370308012, 0.2716798484, -0.2453709543, -0.1660527438, -0.2120826244, 0.331356138, 0.1505405009, 0.2093390971, 0.086354278, 0.1533831507, -0.0644469038, 0.1847373992, 0.2670717835, 0.2059558332, 0.0518549383, 0.1193993539, 0.1918426603, -0.0156812854, -0.0267114528, -0.1420507878, 0.1247740835, -0.155266732, -0.0272431839, 0.0034463459, -0.1761897951, -0.4698730409, 0.091563344, -0.3309877217, -0.259821564, 0.0590097681, 0.2252212912, 0.2295534313, 0.2239292562, -0.0285138413, 0.1453656256, -0.078846693, -0.1175727323, -0.3168617487, 0.1957637221, -0.0385686718, 0.1330082566, 0.120266594, 0.1876132339, 0.3888682723, -0.0624556914, -0.1487777382, 0.2090478092, -0.3042761981, 0.0499681346, 0.4700351655, -0.0024410707, 0.1386858672, -0.6537969708, 0.1642119437, -0.0789462104, 0.0673483089, -0.0275915433, -0.1946154088, 0.0880390406, 0.1664420813, -0.0703112036, -0.2632865906, 0.150083974, 0.3535467684, 0.0582924001, -0.0260637514, -0.2253334671, 0.361833334, -0.1910686195, 0.4871994555, -0.2137667835, -0.2533411682, 0.117237173, -0.0745108873, -0.1371072084, 0.1531004906, 0.1593272686, -0.0686940551, -0.12840119, -0.0279648844, -0.0493269898, 0.4077872634, 0.1767101437, 0.1648615152, -0.0265671685, 0.1069116592, -0.1371835321, 0.0149035081, -0.0200790782, 0.1377495676, -0.0249667298, 0.1892009526, -0.0655181929, -0.2761461437, 0.1478758752, 0.4390675426, 0.2086623311, -0.1248711497, 0.0482875593, -0.179444924, -0.5138226151, 0.0877678096, -0.204324916, -0.1417866796, -0.3560837209, 0.1761587262, -0.0244356729, 0.1562806666, 0.3013617098, -0.3635273278, 0.3201650977, 0.013475297, 0.2143824846, -0.2297647148, 0.1407670826, -0.0902790204, 0.045908045, 0.275215596, -0.0245860238, 0.3592140675, -0.2050974816, 0.2490684241, -0.6150683761, -0.3445733786, 0.046978239, 0.0729132593, 0.4568883777, -0.1375473291, 0.2275832295, 0.1145645157, -0.0123428311, 0.1849180758, -0.0382079594, -0.2666503489, 0.0514327586, -0.0535291582, -0.1655914336, 0.0778843313, -0.1234853342, -0.3930378258, -0.2759178877, 0.1000736654, -0.2051887512, -0.0067537152, -0.0844910517, -0.0700426772, -0.0224738196, -0.068811506, -0.2468433976, -0.4568461478, -0.5459207892, 0.505356729, -0.4959365129, -0.4490429461, 0.2937424183, 0.0267342012, 0.3320811987, -0.2924140692, -0.548840642, 0.1215965152, -0.0819530413, 0.2348629087, 0.219441846, -0.2633042932, 0.3224674463, -0.2924362719, 0.0128777726, -0.1233027354, -0.1479101628, -0.1501103044, -0.4924744666, 0.6167439222, -0.1961085796, 0.4832937717, -0.0904608965, 0.8399671912, 0.4234229326, 0.2643405497, 0.3151849508, -0.0189049821, 0.3202705979, -0.218661949, -0.300047487, -0.0788537338, -0.0497428626, 0.0674757361, 0.3744082451, 0.0202596691, -0.7472122908, -0.2405231148, -0.3760587573, -0.2979604006, 0.0228147991, -0.1505651474, -0.0265887026, 0.2446666956, 0.1615009904, -0.0369065627, -0.2656737566, -0.3486569226, -0.0887759402, 0.3910939991, 0.3220136464, 0.1946191192, -0.2061439753, -0.0384665802, -0.3674564958, 0.3681217134, -0.1824028939, 0.6677200198, -0.3354755342, 0.1652267575, 0.2646197975, 0.1008790508, 0.6739158034, -0.2784418762, 0.1078037694, 0.0168496184, -0.0623014085, -0.121449925, -0.0452900268, 0.2411313355, 0.4831803143, 0.1190365553, 0.3090062141, 0.011448577, -0.0279315971, 0.3707346618, -0.1522451788, -0.4130624235, -0.4959717393, -0.3119443953, -0.0580268241, 0.0017378093, -0.0231698342, -0.1810638607, 0.0910385624, 0.034081988, 0.0976181924, -0.1324014068, -0.1226613671, -0.1574325711, 0.1128616706, -0.008856778, 0.2142557502, 0.2703533769, 0.5959442258, -0.1132215559, 0.1287600249, 0.464032501, 0.1371851861, -0.2585143447, 0.2785638273, -0.0947622135, 0.0931342542, 0.3057390153, -0.028709922, -0.0138126723, 0.2692587674, 0.1149496064, -0.103263706, -0.1740858853, 0.2771359086, -0.1457226872, -0.5776077509, -0.3795058429, 0.7008558512, 0.1564046741, 0.0520025827, 0.1480093151, 0.2372947931, 0.0105293151, -0.0943331718, -0.1386365891, 1.0113329887, 0.052038312, -0.1037926748, 0.0871594772, -0.1812111437, 0.2235644162, -0.2307283878, -0.0235553682, -0.096062094, -0.2620487213, -0.1606651396, -0.0390589498, 0.3552187979, -0.1223161966, 0.0143363383, -0.0187305398, -0.0576989353, -0.0507471338, 0.131493777, 0.0421629958, -0.1614248306, -0.0095938826, -0.1167410389, 0.1733912826, -0.0556047224, 0.3339979649, -0.1532006115, -0.1220796332, -0.2537505031, 0.0429494493, -0.4701382518, 0.1640577614, 0.1708620787, 0.1750000268, -0.0904053524, -0.4082520008, 0.3106303513, 0.0993588716, 0.1454127431, 0.1535442919, -0.3586645126, 0.2522358298, -0.237929821, -0.2044047266, -0.3137503862, -0.0559516251, 0.1366329342, -0.1100256816, -0.3310975134, 0.3761496544, 0.0456287302, -0.1004648581, -0.0809520632, -0.0241145082, -0.0463086739, -0.1450529695, -0.1649257243, -0.0618424378, -0.0817857757, -0.1797820181, 0.0783708394, 0.1923120618, -0.2830052972, -0.3162431717, 0.1903947145, -0.0229747426, -0.2007874697, 0.6034663916, -0.0134393312, -0.007219275, 0.4326702058, 0.1778024286, -0.2177864015, -0.0925166383, 0.0653158724, 0.1408793926, -0.590313375, -0.2935664356, -0.1076310948, 0.3710583448, -0.0878208354, 0.0556747131, 0.0892997906, -0.3599926233, -0.015050998, -0.4450066984, -0.2125076652, 0.0776091293, -0.2005682141, 0.2731676102, -0.1141216084, 0.0790934637, 0.3658863008, 0.3155329227, -0.2202852517, -0.1274373084, -0.2333174348, 0.0618257448, 0.2727698088, 0.1625708938, 0.1434547901, -0.2078992277, -0.0528549515, 0.2155426741, -0.263294965, -0.123814106, 0.047863625, 0.2025241405, 0.088128902, -0.0752388537, 0.014941778, -0.1221346036, 0.1315198094, 0.2157427669, -0.0489755571, -0.0180850103, 0.1550087333, -0.0950981081, 0.2673538923, -0.1491037607, -0.1010984704, 0.2239987552, 0.1898678988, 0.4695481658, -0.1019032821, 0.0606299266, 0.0486276448, 0.0037937493, 0.0110838087, -0.2153186202, -0.1139828786, 0.0166374017, 0.2953806221, -0.5593094826, 0.4593736827, 0.4185216725, 0.0658589751, 0.0338668339, -0.1913114637, 0.0817656517, 0.3391277194, 0.066221267, -0.4609879553, -0.12958996, 0.4516218901, 0.2643750012, -0.2071407884, 0.0768793747, 0.1874489933, 0.093737781, 0.179685995, 0.2059779614, 0.3449184299, -0.191363126, 0.3365710974, 0.2531097233, -0.089459829, 0.2207488567, 0.3303403258, 0.3120504022, -0.1715116352, 0.5860208273, -0.0828822702, 0.2512964606, 0.0606581792, 0.3964871168, -0.026474949, -0.3360003829, 0.0092124231, -0.1620104611, -0.0148349851, 0.1546781212, -0.0467467792, 0.2804742157, 0.0269144699, 0.3673231304, -0.4465813339, 0.2884130776, -0.0747017488, 0.1052126959, -0.1423324198, -0.182543993, -0.1287407428, 0.0201075654, 0.076213263, -0.1576614082, 0.0153264906, 0.0235583, -0.3378557265, -0.1258670241, 0.0580697544, 0.3748048842, 0.0344932452, -0.2779206634, 0.2430824339, 0.2139621824, -0.0836325511, 0.1782226712, 0.3870232403, 0.2714069188, -0.0514423065, 0.0267619789, 0.0970691517, 0.0585125946, -0.2838381827, 0.0420850776, 0.3980163038, 0.4304371178, -0.1465028971, 0.1134060025, 0.0537465625, -0.0862548649, 0.5028346181, 0.1695601046, 0.4853595495, -0.2164718807, 0.0932768136, -0.6445356011, -0.1197532117, -0.2096034586, -0.1141422018, -0.3539428115, 0.4982135594, 0.2179801911, 0.0321414769, -0.0370684527, -0.2895390391, 0.0078819748, -0.1045646816, 0.4067368507, 0.4573470056, -0.0000754467, -0.1219458953, -0.297906965, -0.594502449, 0.1152175292, -0.230902642, 0.2296445668, 0.0885776803, 0.0156191913, 0.0441886224, 0.2564216852, 0.3363043964, 0.0765780509, 0.1798238903, 0.429266274, -0.0718170404, -0.1806185544, 0.0987931266, 0.201040104, -0.2326031923, -0.0762741119, 0.1828092188, -0.0218391288, -0.0665664971, -0.1717883348, -0.1515777409, -0.1535935998, -0.1204233393, 0.3688369095, 0.2274585664, 0.4650770426, 0.1526224464, 0.0059997919, -0.3064815402, -0.2236144394, 0.0799730793, 0.2037748694, 0.252717346, 0.265001297, -0.2483148426, -0.2452792078, -0.1072065458, -0.0554489084, -0.1728669703, 0.3280535638, -0.3576886952, -0.099524729, -0.3826436996, -0.0605966002, 0.3981666863, 0.1726895869, 0.0413064994, -0.0547028556, -0.121460095, -0.0809225515, 0.2616740465, -0.6758461595, -0.1647693366, 0.0396090038, 0.0838740394, 0.0976226926, -0.3416195512, -0.2835708261, 0.1940411776, 0.3804619014, -0.0890124962, 0.4223928452, 0.2608200312, 0.016848702, 0.0793244243, -0.0578444786, 0.7129946351, 0.0037542179, 0.0838925391, 0.1482186019, -0.3717838824 ]
https://github.com/huggingface/datasets/issues/3965
TypeError: Couldn't cast array of type for JSONLines dataset
Hi @lewtun, thanks for reporting. It seems that our library fails at inferring the dtype of the columns: - `milestone` - `performed_via_github_app` (and assigns them `null` dtype).
## Describe the bug One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below). This reminds me a bit of #2799 where one can load the dataset in `pandas` but not in `datasets` and perhaps increasing the `block_size` is needed again. ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns 'https://huggingface.co/datasets/Evan/spaCy-github-issues/resolve/main/spacy-issues.jsonl' data_files = hf_hub_url(repo_id="Evan/spaCy-github-issues", filename="spacy-issues.jsonl", repo_type="dataset") # throws TypeError: Couldn't cast array of type dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas - note this take a while as the file is >2GB df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to pandas. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 683, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 1136, in _prepare_split writer.write_table(table) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/arrow_writer.py", line 511, in write_table pa_table = table_cast(pa_table, self._schema) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1121, in table_cast return cast_table_to_features(table, Features.from_arrow_schema(schema)) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in cast_table_to_features arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1086, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 920, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1019, in array_cast raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}") TypeError: Couldn't cast array of type struct<url: string, html_url: string, labels_url: string, id: int64, node_id: string, number: int64, title: string, description: string, creator: struct<login: string, id: int64, node_id: string, avatar_url: string, gravatar_id: string, url: string, html_url: string, followers_url: string, following_url: string, gists_url: string, starred_url: string, subscriptions_url: string, organizations_url: string, repos_url: string, events_url: string, received_events_url: string, type: string, site_admin: bool>, open_issues: int64, closed_issues: int64, state: string, created_at: timestamp[s], updated_at: timestamp[s], due_on: null, closed_at: timestamp[s]> to null ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.9.7 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
27
TypeError: Couldn't cast array of type for JSONLines dataset ## Describe the bug One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below). This reminds me a bit of #2799 where one can load the dataset in `pandas` but not in `datasets` and perhaps increasing the `block_size` is needed again. ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns 'https://huggingface.co/datasets/Evan/spaCy-github-issues/resolve/main/spacy-issues.jsonl' data_files = hf_hub_url(repo_id="Evan/spaCy-github-issues", filename="spacy-issues.jsonl", repo_type="dataset") # throws TypeError: Couldn't cast array of type dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas - note this take a while as the file is >2GB df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to pandas. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 683, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 1136, in _prepare_split writer.write_table(table) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/arrow_writer.py", line 511, in write_table pa_table = table_cast(pa_table, self._schema) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1121, in table_cast return cast_table_to_features(table, Features.from_arrow_schema(schema)) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in cast_table_to_features arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1086, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 920, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1019, in array_cast raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}") TypeError: Couldn't cast array of type struct<url: string, html_url: string, labels_url: string, id: int64, node_id: string, number: int64, title: string, description: string, creator: struct<login: string, id: int64, node_id: string, avatar_url: string, gravatar_id: string, url: string, html_url: string, followers_url: string, following_url: string, gists_url: string, starred_url: string, subscriptions_url: string, organizations_url: string, repos_url: string, events_url: string, received_events_url: string, type: string, site_admin: bool>, open_issues: int64, closed_issues: int64, state: string, created_at: timestamp[s], updated_at: timestamp[s], due_on: null, closed_at: timestamp[s]> to null ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.9.7 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi @lewtun, thanks for reporting. It seems that our library fails at inferring the dtype of the columns: - `milestone` - `performed_via_github_app` (and assigns them `null` dtype).
[ 0.0036057804, -0.0479999408, -0.0535868518, 0.4342817962, 0.4592534006, 0.1503396481, 0.4873130918, 0.3241954744, 0.4770776033, -0.0575013347, -0.061183814, 0.1311788857, -0.1100014076, 0.2816880941, -0.0008709847, -0.3941473365, -0.0146889286, -0.0445323624, 0.1062436849, 0.1749329716, -0.0933481455, 0.1730908751, -0.1196655855, -0.1031807661, -0.1494211107, -0.0852559432, 0.1366050094, 0.2853342295, -0.0558418706, -0.4664639831, 0.5960642695, 0.0274270345, 0.2970756292, 0.4774361253, -0.0001162325, 0.265896976, 0.362314105, 0.043948561, -0.2050977349, -0.3944781423, -0.2175052613, -0.2268909216, 0.2927970588, -0.2615487278, 0.0292121582, 0.0209293291, -0.2876492143, -0.2808041871, 0.6315011382, 0.3120799065, 0.1566185951, 0.5220170021, 0.1360074282, -0.1679839641, -0.0224393699, 0.2847000659, -0.2199212015, 0.2597153485, -0.0267581008, 0.3974965811, 0.1206841469, -0.0854223892, -0.1513489783, -0.0770171732, 0.4257462919, -0.1706186235, -0.0252254661, 0.0552035756, -0.0201819893, 0.2161802948, 0.3892120421, -0.1799873561, -0.2810041904, -0.4458331168, 0.0304252785, 0.2269042134, 0.1046084389, 0.1048278138, -0.1074723378, 0.1574064493, -0.3536053598, 0.1600889266, -0.1817760766, 0.0738730803, -0.0526406169, -0.3760052025, -0.1472246647, 0.071338214, 0.0066732117, -0.1403694004, -0.1099324077, -0.0787997469, 0.0000560371, 0.2029623985, -0.032404229, 0.0440946184, 0.2454861104, -0.4204907715, 0.3482050896, 0.0516687706, 0.1613378227, 0.1043185741, -0.2260720581, 0.0543430485, 0.5339519978, 0.1073641106, -0.0646229461, 0.0745336339, 0.0793801695, 0.5198206306, -0.0296128374, -0.0402054824, -0.2337758541, -0.0487769172, -0.1448587775, -0.1129095852, 0.4528779685, -0.3941110969, -0.3187660575, 0.2627509236, -0.4356750846, -0.0382255167, 0.1603557318, 0.4267040193, -0.0415274277, 0.4907931089, 0.2890571058, 0.362033993, 0.0117226001, 0.1405922323, -0.1951083541, 0.0639988184, -0.0529604442, -0.0929266661, 0.1831151843, 0.1631579697, 0.1911187619, -0.0758847371, -0.0173967741, -0.1847347021, -0.21623604, 0.0817060545, -0.117841363, 0.2371090502, 0.1023428291, 0.1257826239, 0.2100936472, -0.1883968264, -0.2573605478, -0.0501628034, -0.2659563422, -0.1070376411, -0.0492235832, 0.0865137354, -0.2419670522, 0.0421999767, -0.6630194187, -0.1053636372, 0.0012047441, 0.0026788544, 0.0476041958, -0.17051135, 0.2703713477, -0.2308910638, 0.1184273139, 0.3342461586, -0.1978952289, -0.1069838479, -0.1328889877, -0.0868329629, 0.2841022015, 0.3354697526, -0.314974159, 0.3115192056, -0.1510192752, 0.2302299291, 0.1985109895, -0.1078664958, -0.3168272674, 0.3766026795, 0.1159515157, 0.4211958349, 0.1875960231, -0.1109471172, 0.2210973501, 0.0574074723, 0.0656336993, 0.4336670637, 0.0251353197, 0.151732713, -0.2819083035, -0.2880397141, 0.0161619429, 0.1849740148, 0.1061122939, 0.2082674205, 0.0661370456, 0.4525853992, 0.3530706763, -0.1095713601, -0.0313441865, 0.2982584536, 0.008723503, 0.1096554697, -0.0160200987, -0.2828072309, -0.361767441, 0.0373040177, 0.0792271197, 0.0482543185, -0.3007805943, -0.2145830542, -0.466922313, 0.1430499703, -0.0170012154, 0.0824254975, 0.0808491409, -0.0262317695, 0.0357583202, -0.0136147412, -0.2273828536, 0.3854262233, -0.0392466187, 0.0527988859, -0.3350836039, 0.59430933, 0.0339027904, -0.1328179985, 0.1310597062, 0.2340800762, -0.0081725251, -0.1459140927, -0.2191982418, 0.0569653623, 0.0718330443, -0.121367462, 0.0456142649, 0.2117891759, 0.0988474488, -0.064233385, -0.1028448045, 0.1945106238, 0.1439255029, 0.0080828117, -0.0056004967, 0.4861291945, -0.3273335695, 0.4124231637, 0.0553850308, -0.036175251, 0.3704101145, 0.0886541754, -0.1819517612, -0.1625489444, 0.1414507478, 0.1647377908, 0.316264987, 0.062500909, -0.3500742614, 0.166198805, 0.4788582921, -0.1133030653, -0.0089867394, 0.1843746454, 0.094041355, 0.0037382506, 0.0713818222, 0.0540813878, 0.2124794275, 0.1124172285, -0.0267868992, 0.0345435254, -0.1336926818, -0.1356705427, 0.1111840084, 0.2120061964, 0.1027932316, -0.110871017, 0.0721662119, 0.0769233853, -0.3014945984, -0.1932435632, -0.2302248478, 0.2306894511, -0.5577504039, 0.2543384731, -0.4477495849, -0.106255874, -0.1119475067, -0.1162652448, -0.1584258378, -0.3696021438, -0.3457587659, 0.1036253199, -0.2485157549, 0.0584166162, -0.1589832008, 0.3131405115, 0.1099694669, -0.0202595349, -0.1929341108, 0.0442022979, -0.0121296588, 0.0135155013, 0.4791281819, 0.1433266401, 0.2285074145, -0.1178405657, 0.0981684104, -0.0482419357, -0.0546511859, -0.0053595416, 0.0041046827, 0.1908531487, 0.3854111433, 0.5826600194, -0.0693759024, -0.3032046556, 0.2546190917, -0.125120014, -0.1720173061, 0.1961242259, -0.0431593135, -0.0881243199, -0.1345498115, -0.0127542419, -0.0794926584, -0.5506626368, 0.4509369135, -0.0443823226, 0.0257018711, -0.1100879312, 0.1703069061, 0.3367564678, 0.0135363424, 0.2070689201, -0.1416760683, -0.2518294454, 0.0570571795, -0.038679678, -0.3429826498, -0.1030459255, -0.0532400981, 0.2181973606, -0.1152980477, -0.5638253093, 0.0494284742, -0.1129122004, 0.2226750106, 0.030936094, -0.1644445509, 0.1530499756, -0.1596442908, 0.0608240105, -0.1119983271, -0.0226335209, -0.0062943478, -0.1480901539, 0.0625779629, 0.0717455223, 0.6046343446, -0.0198422298, -0.075841181, 0.3419668078, 0.0611217879, 0.5457173586, 0.0157763381, 0.1968664974, -0.3442949653, -0.3486700654, -0.1388030946, -0.0335636213, -0.1513290703, 0.1241150051, 0.0793558657, -0.236205861, -0.0191760194, -0.2980383337, -0.2507124841, -0.2978022099, 0.1447055936, -0.0089853536, -0.1719448864, -0.0582075827, 0.0680009276, -0.3034321666, 0.0124712642, -0.0895487294, 0.2791939974, 0.2686023116, 0.0070628971, -0.2365033776, -0.245593518, -0.2776131928, 0.1775868535, 0.1067939773, 0.3316356838, -0.0196053609, 0.0865599439, 0.1982302368, -0.2066594511, 0.7147003412, 0.1388627738, 0.1000190303, 0.2515511811, -0.0117868213, -0.599899292, 0.0467018597, 0.0206320994, 0.1352597773, 0.2989675403, 0.3307742178, -0.5607883334, -0.1561578065, 0.3962579966, 0.2233475894, 0.0016721473, -0.019450048, -0.1584550291, -0.5940133929, -0.3501380682, -0.0684260651, 0.1985144168, 0.5351093411, 0.1134686694, 0.0227801148, -0.0063773622, -0.2124571353, 0.0244221147, 0.1050581113, 0.30434376, -0.0629066154, 0.2069973201, -0.0174391977, 0.1364241093, 0.2359998226, 0.8077700138, 0.192636773, -0.3842868209, 0.1828573644, 0.1018216759, 0.1959570348, 0.4134192765, -0.0888987109, -0.0286527332, 0.2057141066, 0.2799426317, -0.0399960093, 0.0416694582, 0.2730499208, -0.0232331175, -0.4346365929, -0.6030516028, 0.4115702212, 0.0519000851, 0.1314615458, 0.0294521973, 0.352581054, -0.3001448214, 0.5416631103, -0.0919429362, 1.0248291492, -0.0939274281, 0.1859486997, 0.6502363086, -0.2371462435, 0.4745682478, -0.2558227777, -0.2248121053, -0.1200039983, 0.3329185545, -0.0462847911, -0.1377179027, 0.2935529947, -0.0050293938, -0.079294391, -0.1206854135, -0.2991280258, 0.1222978011, -0.1317783594, 0.162476629, -0.2173336595, -0.227661252, -0.8174952865, 0.0686441585, -0.0840746239, -0.1356595457, 0.0423726514, -0.294808805, -0.247386083, -0.283505559, -0.466403842, -0.0385988876, 0.068955034, 0.1632574052, 0.2133697569, 0.1084025651, 0.0712449849, 0.0048329071, 0.2708230019, 0.0460479893, -0.2502574027, 0.1047303081, -0.3947634995, -0.1143788472, 0.0303999502, 0.1067242175, 0.5527318716, -0.1170944721, -0.2832678854, -0.05958049, -0.1651171446, -0.4310738146, -0.271902591, 0.108200483, -0.4537885189, -0.5515284538, -0.4314302206, -0.0239533093, 0.1837866455, -0.1530716568, 0.1081172377, 0.225721702, -0.051522851, -0.0339499116, 0.1939133257, -0.1551588774, -0.1756785214, 0.2677134573, 0.0777661204, 0.2060585171, 0.4291045964, 0.3901554644, -0.3126751781, -0.1196501479, 0.0609272234, 0.7278572321, -0.4979390204, 0.3132478297, -0.2753388286, -0.3109047413, -0.183673054, 0.2458113283, 0.0506575331, -0.1123362184, -0.0367372744, -0.5353932977, -0.2427263558, 0.5239756703, 0.0427728668, 0.1936250031, 0.0091312267, 0.4382413328, -0.2171899527, -0.3140538931, -0.2359315455, 0.0283277053, -0.3747353554, -0.0454939343, -0.2202460021, -0.1553143114, 0.3532834053, -0.1162405536, 0.1077599302, 0.0727702752, -0.2326545864, -0.1586008966, -0.1815256625, 0.1542714089, 0.0292607155, -0.1614267081, -0.0053428519, -0.06593097, -0.3190839291, -0.1936540902, 0.2097886503, 0.2019110471, 0.040939305, -0.0673810616, 0.1250699759, -0.0991223231, -0.0306315571, 0.2561270893, 0.0470515154, 0.4385828674, -0.0577228107, 0.13554129, -0.2216351777, 0.1280828714, -0.1450942159, 0.2374389619, 0.0786861703, 0.2103669494, 0.4507401884, -0.3477011919, 0.0356839746, 0.3337413669, 0.3269037902, 0.1621334404, -0.1170437261, 0.2221976668, -0.2336482108, 0.0706761107, -0.0892844126, -0.0635040477, 0.3714568317, -0.0663980618, -0.0631450489, 0.2462813109, -0.0877719969, 0.0486793965, -0.1118177846, 0.1165608838, 0.9509932995, 0.1026754007, 0.1147949547, 0.2353594452, -0.1869144291, -0.0144487498, -0.31388852, 0.1958550662, 0.2902896404, -0.0274248496, -0.202016741, 0.0292111635, -0.0190411601, 0.1809358597, 0.094060719, -0.3085102141, 0.0320656933, 0.3188290894, -0.1174117103, 0.1728664041, -0.1265417039, 0.167700246, -0.2865893841, -0.2343309671, -0.2466818839, 0.1770096421, -0.2655584812, -0.0239681266, -0.1773562878, -0.2016571015, -0.2947571278, -0.149724707, -0.1027824432, -0.1052350476, -0.1192082018, -0.0155367171, 0.0580889173, -0.3445177674, 0.1267956197, -0.1958098859, 0.1852990836, -0.1606145054, 0.2815127671, 0.1156155914, -0.0963625088, 0.2441669554, 0.2372916043, 0.4612085223, 0.2264383584, 0.1551490277, -0.2279923856, -0.1547732055, -0.1213706285, -0.1433190554, 0.1120640486, 0.1936481446, 0.2507255673, 0.0702997595, 0.1361896992, -0.1506579965, 0.1957843602, -0.047563985, 0.3252950311, -0.3453631103, 0.4531562626, -0.7168781757, -0.1382814199, -0.081316717, -0.2885453105, -0.4052877724, -0.2720572352, 0.053125266, -0.1993276179, 0.21731399, -0.0405165181, 0.0517409258, -0.1668081731, 0.4617671371, 0.2921942472, 0.1614529788, 0.0208119843, 0.1778672487, -0.4220238924, -0.0067937076, -0.0096452264, -0.105726324, 0.4566340148, 0.1029757559, 0.0134745911, 0.0429326668, 0.1080679372, 0.0766722336, -0.1595614702, -0.0419355966, -0.2161105424, -0.2473629862, 0.2026028782, -0.0965277553, -0.1292320937, -0.2528898716, 0.2755572796, -0.1390898526, -0.0019164009, 0.1183002219, 0.0822768956, 0.0152600696, -0.1037884206, -0.0846045539, 0.063576594, 0.2716118395, -0.0327656455, -0.3097324967, -0.3446771801, -0.5347603559, 0.0138708716, 0.443969667, -0.22694619, 0.6151975989, -0.2317780405, -0.0395191871, -0.1431591809, -0.0113797737, -0.1589504927, -0.1372874379, -0.3897293508, 0.1925295889, -0.4617519379, 0.1016601399, -0.0682424158, 0.2290524393, 0.0254060291, 0.2628054023, 0.0880156383, -0.2854237258, 0.6634764671, -0.1973749101, -0.33965379, 0.242400527, -0.0042977929, 0.0096904049, -0.1997223645, -0.7850676775, 0.0094482005, 0.1464908272, 0.0888321102, -0.139474079, 0.1560805142, 0.0291486718, -0.0773796216, -0.1252909899, 0.2539974749, -0.0507526472, -0.1525145471, 0.3644723594, -0.0641722456 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: ```python >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') ``` Let us know if that resolves the issue.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
40
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: ```python >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') ``` Let us know if that resolves the issue.
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: > > ```python > >>> from datasets import load_dataset > >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} > >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') > ``` > > Let us know if that resolves the issue. Sorry, replied late. Thanks a lot! It's worked for me. But it seems much slower than before, and now gets stuck..... ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1281167/1281167 [00:02<00:00, 437283.97it/s] Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 50001/50001 [00:00<00:00, 89094.29it/s] Using custom data configuration default-baebca6347576b33 Downloading and preparing dataset image_folder/default to ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091... Downloading data files #0: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 82289.56obj/s] Downloading data files #1: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 73559.11obj/s] Downloading data files #2: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 81600.46obj/s] Downloading data files #3: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 79691.56obj/s] Downloading data files #4: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 82341.37obj/s] Downloading data files #5: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 75784.46obj/s] Downloading data files #6: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 81466.18obj/s] Downloading data files #7: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 82320.27obj/s] Downloading data files #8: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 78094.00obj/s] Downloading data files #9: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 84057.59obj/s] Downloading data files #10: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 83082.31obj/s] Downloading data files #11: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 79944.21obj/s] Downloading data files #12: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 84569.77obj/s] Downloading data files #13: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 84949.63obj/s] Downloading data files #14: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 80666.53obj/s] Downloading data files #15: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80072/80072 [00:01<00:00, 76723.20obj/s] ^[[Bloading data files #8: 94%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 75061/80073 [00:00<00:00, 82609.89obj/s] Downloading data files #9: 85%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 68120/80073 [00:00<00:00, 83868.54obj/s] Downloading data files #9: 96%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 76784/80073 [00:00<00:00, 84722.34obj/s] Downloading data files #10: 75%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 59995/80073 [00:00<00:00, 84148.19obj/s] Downloading data files #10: 97%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 77412/80073 [00:00<00:00, 85724.53obj/s] Downloading data files #11: 71%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž | 57032/80073 [00:00<00:00, 79930.58obj/s] Downloading data files #11: 92%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 73277/80073 [00:00<00:00, 78091.27obj/s] Downloading data files #12: 86%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 69125/80073 [00:00<00:00, 84723.02obj/s] Downloading data files #12: 97%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 77803/80073 [00:00<00:00, 85351.59obj/s] Downloading data files #13: 75%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 60356/80073 [00:00<00:00, 84833.35obj/s] Downloading data files #13: 97%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 77368/80073 [00:00<00:00, 84475.10obj/s] Downloading data files #14: 72%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 57751/80073 [00:00<00:00, 80727.33obj/s] Downloading data files #14: 92%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 74022/80073 [00:00<00:00, 78703.16obj/s] Downloading data files #15: 78%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 62724/80072 [00:00<00:00, 78387.33obj/s] Downloading data files #15: 99%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž | 78933/80072 [00:01<00:00, 79353.63obj/s] ```
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
378
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: > > ```python > >>> from datasets import load_dataset > >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} > >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') > ``` > > Let us know if that resolves the issue. Sorry, replied late. Thanks a lot! It's worked for me. But it seems much slower than before, and now gets stuck..... ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1281167/1281167 [00:02<00:00, 437283.97it/s] Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 50001/50001 [00:00<00:00, 89094.29it/s] Using custom data configuration default-baebca6347576b33 Downloading and preparing dataset image_folder/default to ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091... Downloading data files #0: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 82289.56obj/s] Downloading data files #1: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 73559.11obj/s] Downloading data files #2: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 81600.46obj/s] Downloading data files #3: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 79691.56obj/s] Downloading data files #4: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 82341.37obj/s] Downloading data files #5: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 75784.46obj/s] Downloading data files #6: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 81466.18obj/s] Downloading data files #7: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 82320.27obj/s] Downloading data files #8: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 78094.00obj/s] Downloading data files #9: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 84057.59obj/s] Downloading data files #10: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 83082.31obj/s] Downloading data files #11: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:01<00:00, 79944.21obj/s] Downloading data files #12: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 84569.77obj/s] Downloading data files #13: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 84949.63obj/s] Downloading data files #14: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80073/80073 [00:00<00:00, 80666.53obj/s] Downloading data files #15: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 80072/80072 [00:01<00:00, 76723.20obj/s] ^[[Bloading data files #8: 94%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 75061/80073 [00:00<00:00, 82609.89obj/s] Downloading data files #9: 85%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 68120/80073 [00:00<00:00, 83868.54obj/s] Downloading data files #9: 96%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 76784/80073 [00:00<00:00, 84722.34obj/s] Downloading data files #10: 75%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 59995/80073 [00:00<00:00, 84148.19obj/s] Downloading data files #10: 97%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 77412/80073 [00:00<00:00, 85724.53obj/s] Downloading data files #11: 71%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž | 57032/80073 [00:00<00:00, 79930.58obj/s] Downloading data files #11: 92%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 73277/80073 [00:00<00:00, 78091.27obj/s] Downloading data files #12: 86%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 69125/80073 [00:00<00:00, 84723.02obj/s] Downloading data files #12: 97%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 77803/80073 [00:00<00:00, 85351.59obj/s] Downloading data files #13: 75%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 60356/80073 [00:00<00:00, 84833.35obj/s] Downloading data files #13: 97%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 77368/80073 [00:00<00:00, 84475.10obj/s] Downloading data files #14: 72%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 57751/80073 [00:00<00:00, 80727.33obj/s] Downloading data files #14: 92%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 74022/80073 [00:00<00:00, 78703.16obj/s] Downloading data files #15: 78%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 62724/80072 [00:00<00:00, 78387.33obj/s] Downloading data files #15: 99%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž | 78933/80072 [00:01<00:00, 79353.63obj/s] ```
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
21
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs.
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. Thanks!It's worked well.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
25
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. Thanks!It's worked well.
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. I find current `load_dataset` loads ImageNet still slowly, even add `ignore_verifications=True`. First loading, it costs about 20 min in my servers. ``` real 19m23.023s user 21m18.360s sys 7m59.080s ``` Second reusing, it costs about 15 min in my servers. ``` real 15m20.735s user 12m22.979s sys 5m46.960s ``` I think it's too much slow, is there other method to make it faster?
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
83
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. I find current `load_dataset` loads ImageNet still slowly, even add `ignore_verifications=True`. First loading, it costs about 20 min in my servers. ``` real 19m23.023s user 21m18.360s sys 7m59.080s ``` Second reusing, it costs about 15 min in my servers. ``` real 15m20.735s user 12m22.979s sys 5m46.960s ``` I think it's too much slow, is there other method to make it faster?
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` ```python def collate_fn(examples): pixel_values = torch.stack([example["pixel_values"] for example in examples]) labels = torch.tensor([example["labels"] for example in examples]) return {"pixel_values": pixel_values, "labels": labels} ``` How to know the keys of example?
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
45
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` ```python def collate_fn(examples): pixel_values = torch.stack([example["pixel_values"] for example in examples]) labels = torch.tensor([example["labels"] for example in examples]) return {"pixel_values": pixel_values, "labels": labels} ``` How to know the keys of example?
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Loading the image files slowly, is it because the multiple processes load files at the same time?
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
17
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Loading the image files slowly, is it because the multiple processes load files at the same time?
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > def collate_fn(examples): > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > labels = torch.tensor([example["labels"] for example in examples]) > return {"pixel_values": pixel_values, "labels": labels} > ``` > > How to know the keys of example? What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
125
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > def collate_fn(examples): > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > labels = torch.tensor([example["labels"] for example in examples]) > return {"pixel_values": pixel_values, "labels": labels} > ``` > > How to know the keys of example? What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset.
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > > > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > > def collate_fn(examples): > > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > > labels = torch.tensor([example["labels"] for example in examples]) > > return {"pixel_values": pixel_values, "labels": labels} > > ``` > > > > > > > > > > > > > > > > > > > > > > > > How to know the keys of example? > > What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset. Thanks for your reply! 1. I did not record the second output, so I run it again. ``` (merak) txacs@master:/dat/txacs/test$ time python test.py Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1281167/1281167 [00:02<00:00, 469497.89it/s] Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 50001/50001 [00:00<00:00, 70123.73it/s] Using custom data configuration default-baebca6347576b33 Reusing dataset image_folder (./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091) 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:10<00:00, 5.37s/it] Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-cd3fbdc025e03f8c.arrow Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-b5a9de701bbdbb2b.arrow DatasetDict({ train: Dataset({ features: ['image', 'labels'], num_rows: 1281167 }) validation: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) }) real 10m10.413s user 9m33.195s sys 2m47.528s ``` Although it cost less time than the last, but still slowly. 2. Sorry, forgive my poor statement. I solved it, updating to new script 'run_image_classification.py'.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
269
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > > > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > > def collate_fn(examples): > > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > > labels = torch.tensor([example["labels"] for example in examples]) > > return {"pixel_values": pixel_values, "labels": labels} > > ``` > > > > > > > > > > > > > > > > > > > > > > > > How to know the keys of example? > > What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset. Thanks for your reply! 1. I did not record the second output, so I run it again. ``` (merak) txacs@master:/dat/txacs/test$ time python test.py Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1281167/1281167 [00:02<00:00, 469497.89it/s] Resolving data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 50001/50001 [00:00<00:00, 70123.73it/s] Using custom data configuration default-baebca6347576b33 Reusing dataset image_folder (./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091) 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:10<00:00, 5.37s/it] Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-cd3fbdc025e03f8c.arrow Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-b5a9de701bbdbb2b.arrow DatasetDict({ train: Dataset({ features: ['image', 'labels'], num_rows: 1281167 }) validation: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) }) real 10m10.413s user 9m33.195s sys 2m47.528s ``` Although it cost less time than the last, but still slowly. 2. Sorry, forgive my poor statement. I solved it, updating to new script 'run_image_classification.py'.
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."Λ™`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
64
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."Λ™`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue.
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."Λ™`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue. Sounds good! The main position, which costs long time, is from program starting to `"Resolving data files"`. I hope you can solve it early, thanks!
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
90
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."Λ™`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue. Sounds good! The main position, which costs long time, is from program starting to `"Resolving data files"`. I hope you can solve it early, thanks!
[ -0.3380221426, -0.114140518, -0.0211975258, 0.2390869856, 0.4253338575, -0.0225406811, 0.1771001816, 0.3576569557, 0.0669663846, 0.1895558685, -0.1314771473, 0.1565935761, -0.0968024284, 0.1201882288, -0.0979677886, -0.2962186337, -0.0579133257, 0.1971372515, -0.1178744361, -0.1511338502, -0.2569163442, 0.1787684411, -0.1400124878, 0.1847216189, -0.2956005633, 0.0831509084, -0.1054894105, 0.2142813504, -0.0965182334, -0.4482677877, 0.4221603274, -0.0895106494, 0.4329843223, 0.4966249168, -0.0001023157, 0.1722510457, 0.4993551672, -0.0267603286, -0.1251296401, -0.4663236141, -0.1383085996, -0.1904053241, 0.3075008094, -0.118567057, -0.2022633255, -0.4111452103, 0.0497762412, -0.1912934929, 0.4004451334, 0.3993338943, 0.3264054656, 0.2485882938, 0.0299533568, -0.324580282, -0.163542524, 0.1704918742, -0.1472794861, 0.3505591154, 0.2566411197, -0.1538982391, 0.1403169036, 0.3131353855, -0.055146832, 0.1936383843, 0.3182662427, -0.1083029285, -0.061524272, -0.1487925351, 0.3644403517, 0.0928641185, 0.5512081385, -0.1445957422, -0.3069012761, 0.0421254896, 0.1144745946, -0.4257177413, 0.2398095131, 0.1540402472, -0.1403725743, 0.2098690122, -0.2887390852, -0.0676202103, -0.2394703031, 0.3054099381, -0.1165478528, 0.1363252699, -0.1642613709, 0.1148759425, 0.2302119285, -0.0888860822, 0.1679835171, 0.1112335324, 0.181036666, 0.2592581511, -0.3870077133, 0.2529419661, -0.0058412491, -0.0745952502, -0.0328732692, -0.1497272998, -0.0505559407, -0.1193765998, -0.1094886363, 0.2907733023, 0.1241554618, 0.2429411113, 0.218616724, 0.3857803345, 0.0354061723, 0.0724388584, -0.1684982479, -0.0520528257, -0.3046114147, -0.3428444862, 0.1724547893, 0.0338621885, 0.2183430046, -0.2477737665, -0.1875056922, 0.0529685766, -0.0264609102, 0.1310577989, 0.0048449775, 0.397429049, -0.0720018893, 0.1078412831, 0.1135706156, 0.210572809, -0.2100156695, 0.08049988, -0.3218247294, 0.0064725438, -0.1483470052, -0.0503720343, 0.1498717815, -0.3902210295, 0.3461686969, -0.1646033078, -0.102721408, 0.0681311786, 0.1059609726, -0.161960423, -0.0051337513, 0.5106235147, -0.1675311774, 0.1022219062, 0.2465299219, 0.0278732404, -0.0904967561, 0.1305613816, -0.2611618936, -0.5131599307, -0.3502134383, 0.2658131719, 0.035602916, -0.0744616017, -0.2554309368, 0.0156030525, 0.0914216787, 0.2082774341, -0.2133509517, -0.2529437244, -0.3055506349, -0.0327626318, 0.2802281082, 0.3274256289, -0.3259848952, 0.0016578733, -0.1004468426, -0.2188027352, 0.0414023437, 0.2085920721, -0.3016656935, 0.2088795453, -0.1044514701, 0.1096085012, 0.1563941687, -0.4672549665, -0.2618285716, 0.224924013, 0.0080283396, -0.202775985, -0.1378241181, -0.0121524502, -0.0589223355, 0.1817509085, 0.0981099084, 0.3021397889, -0.0610940382, 0.0481857285, -0.2115161717, -0.1976689696, -0.1029630005, 0.3457715511, 0.0422714017, 0.1390027255, 0.2000287175, -0.2314844728, 0.0671963096, -0.1334646493, -0.0854794011, 0.2596312165, 0.1707966179, 0.0681163967, 0.0315435492, -0.0460765138, -0.5464984775, 0.2385165989, 0.1520847976, 0.2741985023, -0.2650348246, -0.0512847044, -0.4634174109, 0.0776332989, -0.3745076954, -0.0832189992, 0.1788614392, 0.0678444356, 0.0669406131, 0.144449532, -0.1919216216, 0.2888279259, -0.3069469333, 0.0401097909, -0.1483056694, 0.1855936348, -0.1667276919, -0.135254547, 0.1729491651, -0.1038794816, 0.0582590252, -0.2966476381, -0.2748552859, 0.4825041592, 0.0012199403, 0.2237782776, 0.0026748064, 0.05394933, 0.1286352873, -0.2424883395, -0.0404470228, -0.0502865389, 0.0433804728, 0.0840272531, -0.0127479509, 0.1394747943, 0.079203397, 0.1023016348, 0.0895431787, 0.0503308736, 0.3731085956, -0.063099362, 0.0525550805, -0.207174778, 0.164010644, 0.0410338044, 0.2085024714, 0.0219007619, -0.2507739365, -0.2435824126, 0.2033375204, 0.0275659636, -0.0100003937, 0.2371492982, -0.0452145934, 0.2026248872, 0.2026035488, 0.3036542833, 0.3462532759, 0.1128005013, -0.2387436628, 0.2949955761, -0.1616530269, -0.0559893176, 0.0445133373, -0.0829126611, 0.3669479489, 0.2743317187, 0.0693970546, 0.0740833655, -0.4737313688, -0.0784992725, -0.0236860514, 0.4904204309, -0.1245586202, 0.1172455773, -0.2653999031, -0.2774952352, -0.24197267, -0.0375763997, -0.1377547532, -0.1387422532, -0.1552968323, 0.0666961521, -0.0139741655, 0.2876709402, -0.2312740982, 0.0697481558, 0.1242870912, -0.2204564661, -0.1328822672, -0.211271733, -0.3053149581, 0.0875388831, 0.3674652278, 0.0579069443, 0.3674758673, -0.3410926759, 0.0082327919, -0.0165079255, -0.3201085925, 0.084408775, -0.1093900427, 0.1559102833, 0.0705004856, 0.2237525582, -0.170076102, -0.2264109254, 0.6276733875, -0.313683331, -0.132890895, 0.0429500602, -0.0383521356, -0.2057214826, -0.1820734739, -0.5400705338, -0.3777372837, -0.2573295534, 0.0813767985, 0.210951373, 0.2434430867, 0.4190810621, 0.3446767032, 0.1439473331, -0.1057143956, -0.1207183748, -0.1763256192, -0.3949630558, 0.1005407199, -0.2491055578, -0.4323081672, -0.0686041042, 0.0622902848, 0.5364882946, 0.0186182093, -0.349542439, -0.2764159441, -0.1668322831, 0.1295654625, -0.1216556877, 0.0708089024, 0.3206847608, -0.0917441919, -0.1171272919, -0.0888183117, -0.1010692641, 0.1604622453, -0.0386744849, -0.0627673715, 0.0926693901, 0.3357467651, -0.0903459862, 0.5322235227, -0.0121131092, -0.3363131881, 0.455791533, -0.1320488453, 0.2421813905, -0.3542270064, -0.5656894445, 0.0709299743, 0.1588245332, 0.0466173738, -0.0892006457, 0.0433331095, -0.1022948846, -0.3485794663, -0.0869212821, -0.3494552672, 0.0353452265, 0.0770684332, 0.0982694551, 0.336664319, -0.0608089939, -0.090790987, -0.149973169, 0.0000457621, 0.1556255668, 0.3872843683, 0.0513738953, 0.1347044706, -0.2912992239, 0.1288104951, -0.3537066281, 0.2920505404, 0.0504256673, 0.4000320733, -0.0664480999, -0.006877393, 0.1397615522, -0.0126543166, 0.3901391923, -0.1633497924, -0.0790519267, 0.131967485, -0.1838365495, -0.3492085636, -0.0698147938, 0.0587398522, 0.0006449043, -0.0774241313, 0.6436386108, 0.0331002511, -0.3739010692, 0.1939788759, 0.1273454428, -0.1982406378, -0.3113645017, -0.2847265899, -0.3292041421, -0.3079222739, -0.1673281938, -0.0330284275, 0.3518638015, 0.219110921, 0.0196077228, -0.1298908144, -0.0052581225, -0.1280582547, 0.1828182191, 0.0681170076, -0.007876778, 0.1463281661, 0.2076084912, 0.1599251181, 0.336904794, 0.5942883492, -0.2568457723, -0.500207901, -0.0695151091, 0.0515007153, 0.2141078413, -0.0290655233, -0.1419431418, -0.2385216355, 0.0311556645, 0.0931199938, -0.2454930097, 0.2862405479, 0.3770497143, -0.0355012156, 0.0286730118, -0.3413777351, 0.4341712594, 0.0984894782, 0.0444134213, 0.4365956187, -0.0393639356, -0.139576003, 0.1474698782, 0.1455248147, 0.5746571422, -0.389690578, -0.076549679, 0.2728121579, 0.0444199108, 0.251324296, 0.2226637304, 0.1271219254, -0.346357286, -0.2068240196, 0.0074644499, -0.0592940785, 0.3179741204, 0.0313767642, 0.0469737016, 0.1733577102, -0.0565873943, 0.3133538663, 0.0275610536, 0.3283925354, -0.1047911346, -0.2355477214, -0.427683413, 0.253148675, -0.1058828905, 0.3252013624, -0.0521181412, -0.0042738412, -0.0242896657, -0.1516680419, -0.0210353453, 0.1194074228, -0.396678865, 0.1917486638, 0.2279842198, -0.1549522281, -0.0864308178, 0.3514221609, 0.2543947697, -0.0126119936, -0.1975797117, 0.1596453041, -0.1878485978, -0.167450875, -0.1328981817, -0.058627028, 0.3143925369, -0.1815695614, -0.1954333484, 0.020110352, 0.007479067, -0.2071649134, 0.162832126, -0.1547804624, 0.2652644515, -0.0332611613, -0.2878685892, -0.1409373432, 0.0792952478, 0.0478116311, 0.2261353731, -0.0548365638, 0.0920920596, -0.0670452639, -0.0501904935, -0.2933434844, 0.0186876357, 0.4964328408, 0.0749053955, -0.1944493055, 0.4649343789, 0.1185266003, 0.090302296, -0.2560773194, 0.041345153, 0.30662027, -0.4442827404, 0.0396260768, 0.1673023105, 0.1089711413, 0.1367330104, 0.3644803166, 0.1428599507, -0.3083028793, 0.0590526983, -0.3313955963, -0.4534533322, 0.0311848111, -0.2731129825, 0.1910056323, -0.0076500718, 0.3160253167, 0.1021527871, -0.0591334216, -0.3865191042, 0.0673088953, -0.1160153672, 0.0489229821, 0.3310282528, 0.0735162497, 0.2032900751, -0.0891226679, 0.1981628388, 0.0538370945, -0.2468806207, -0.3302775621, -0.0684814379, 0.0612502806, 0.1746398956, -0.256259948, -0.0762538388, -0.2349612564, -0.2529824972, 0.0114955427, 0.1098113209, 0.1728821546, -0.2346857041, 0.3075318336, 0.0471810102, 0.08588925, 0.2790688276, 0.0373313762, -0.1641240418, 0.1747580022, 0.0125613445, -0.0096493391, 0.0996068269, -0.0931539536, -0.0869721472, -0.0447308086, -0.2208998799, 0.0441734567, 0.1923548132, -0.2863118052, 0.0854950249, 0.0788562074, 0.4498386681, 0.1056024581, -0.2949086428, -0.0408126675, 0.3862756789, 0.3174155056, -0.3185020089, -0.1613311172, 0.1336794496, 0.1227294579, -0.1282102466, 0.0181630123, 0.2363960594, -0.067522563, -0.045181267, 0.1025685295, 0.4315913916, -0.2455123365, 0.2176320255, 0.469501853, 0.0235086456, 0.0516938344, 0.1395694166, 0.1381314099, 0.1342354566, 0.4555004835, -0.3275703788, 0.2404288054, -0.1570794284, 0.2462372184, 0.0463298, -0.5383797288, 0.0199324787, 0.010830828, -0.2100811601, -0.0080193235, -0.2629567981, 0.4218583405, -0.0279815104, -0.2109267861, -0.1749639213, 0.2452015579, -0.1166814193, -0.0991653502, -0.3662567735, -0.0919810608, -0.0586568266, 0.018078737, 0.0055132657, -0.0437010713, 0.3798262179, 0.0126414318, -0.2145302147, -0.227799654, -0.1313636601, 0.2539505959, 0.0252389088, -0.081241034, 0.4247590601, 0.2110423893, -0.0581699237, -0.0259132348, 0.4645786583, 0.4278826118, 0.5090797544, 0.1331224442, 0.0994669944, -0.1434780061, -0.0065317345, -0.0212682653, 0.2234339714, -0.1036676392, 0.045436684, 0.2647252977, 0.2319950014, -0.1170496196, 0.2423410565, -0.133437559, 0.3304158449, -0.1318805516, 0.0945730954, -0.0495401137, -0.0016097401, -0.1866305321, 0.3291614652, -0.3130427301, 0.1827825159, 0.4592874646, -0.0043394011, 0.1730354577, -0.1894545555, 0.1190744787, -0.1630673856, 0.6306004524, 0.3805582821, 0.0664861426, -0.4218458533, -0.291012615, -0.7276152372, 0.1564408094, -0.082587257, 0.0610881709, 0.0619005524, -0.1140158921, -0.0383042134, 0.1475936919, -0.0285246614, 0.0744954273, 0.0371431634, -0.072193794, -0.2592316866, -0.0801675469, -0.196553573, -0.0701803938, 0.0204681642, -0.4052913189, 0.2177489251, -0.5241702199, 0.1381393969, -0.1299021095, 0.0569436476, 0.0506628826, 0.1010555923, 0.3395439386, 0.0200698692, 0.2591453195, 0.0223065261, -0.0705283806, -0.2663029432, -0.330578655, -0.2319778651, 0.284098655, 0.1264579743, 0.391877085, -0.2800572217, -0.0921155289, -0.4638872445, 0.1544592381, -0.0375985503, 0.0087620458, -0.0498855263, 0.0706938505, 0.0008184147, -0.0333774276, 0.2279958278, 0.1686287969, 0.0579311997, 0.0951406211, -0.4258275926, -0.4247073531, 0.5030216575, -0.2724658847, -0.1122212484, -0.0142014073, -0.1198402047, 0.1248238906, -0.0938104317, -0.6387228966, 0.3685269356, 0.3740671873, -0.0311846044, -0.2184460163, 0.2790356874, 0.0766234323, 0.0881784633, 0.0055373791, 0.1160704345, 0.0205676071, -0.1049905941, -0.0778699815, -0.1569487453 ]
https://github.com/huggingface/datasets/issues/3959
Medium-sized dataset conversion from pandas causes a crash
Hi ! It looks like an issue with pyarrow, could you try updating pyarrow and try again ?
Hi, I am suffering from the following issue: ## Describe the bug Conversion to arrow dataset from pandas dataframe of a certain size deterministically causes the following crash: ``` File "/home/datasets_crash.py", line 7, in <module> arrow=datasets.Dataset.from_pandas(d) File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 783, in from_pandas table = InMemoryTable.from_pandas( File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/table.py", line 379, in from_pandas return cls(pa.Table.from_pandas(*args, **kwargs)) File "pyarrow/table.pxi", line 1487, in pyarrow.lib.Table.from_pandas File "pyarrow/table.pxi", line 1532, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 1181, in pyarrow.lib.Table.validate File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458) ``` ## Steps to reproduce the bug I have a dataset made from replicated single example mocking a dict representation of a publication. I copy over this example 140k times and create a pandas frame. I use 'Dataset.from_pandas' and boom ```python # Sample code to reproduce the bug import copy import datasets import pandas # serialized dict is quite long to be realistic representation of a publication content paper_as_dict=eval("{'article_id': '2020-11-05T14:25:05.321Z02bc3286-91b7-486a-9c74-4f457fbc586a', 'sections': [{'section_id': 'body.0', 'paragraphs': [{'sentences': ['11010111001000000011010011110011101110111011000100001010011100101001111010110111101011101111101010101110001111011110111010111', '1101100110110010010101010100110011000111001100100000011100010111010000011100001101111000000011010111001111001010101111110011010010111011000110100110010', '101011011000010100000010011001011011000000110011011110000101001110110000010001100110111100011100110101010010110000101', '1101101110101010101000000010101011111001111000101000110001110100111000100000011001110100110000110100111011001010110011101001001110']}]}, {'section_id': 'body.1', 'paragraphs': [{'sentences': ['11111100100100111000101001011110100110011001011011001001100110100111011010000110011000010001010100101110001001101011110111110101111100001001001000011110110010110011100110110111110011100011111000101010111010101011001110000100000001001010010010011101111100011010', '10101000110000110111110011101111000101010010001001010000001111001100000010001000001110111110010011101000000111011', '111010011111101111110011111110110001000111100101001000100110101111110000111000111111110000101001101000110011010111011101001010110110001000100000001110001111100110110001110001001100011010100110100010100111000110110100010010100101011110000110000101010010001110101100000']}, {'sentences': ['111110011110110110001111001101011110010110100011101010110101011001101110110111100000111101010110011110111101001111000101110001001010010101100111111001001000011101000100110000101', '011101101101111101001100101010000010111101100101110100101000001100010100110011010010100001101001110111100011010011011111000111111101110001010111010011010110001000010101100110000100010110101110110011001010011001100111101100001001', '1110001011011010101001100001110001110001000111111111101110100001011101101001110100000110000011010001101010101110101110101101001010100100010000000010110010010010', '11101111000111111100111110010000111101110010010101001111011001111110011000011100110001010010000100101010', '111000110110110010101100010010100001100100110010101000001000011101000100101011011010000011001011011111001101100001110010100001111110111001001010101100100110001011011100000101010010000000001100010000101100110110111101110010100010011101110110111010011011000011001010111011100000000010101001011000100000011010100011101001011001010010011110100100']}, {'sentences': ['001101111100001101001001001110000110010101011101001001111111011000111001111011101011110111000000100001110110101110001010001111110100010', '0000110010110101001100011011000011001101001110001000000110010101000011101011110110000000100111000001010000101011111011110001001100001110101010101110101011111000000011001111011110001010010111010000100100000001111001011100101111010101111001001101100101001101111000111011010110010001010010010111010000001101101111100101000111101011001000101', '00000101100101100111101010000101011100101100001100011001100100001100001010001010010011001001111001000010100010000110100111110000001000101000111100010111110011000100000111100010000100010111100010101', '111100110010100110000010010101010101110011110100000101110000000111010101111001011110010101001110000001001000010110010010011110111110010110100101110011001101110111001111100011100100011110010010100101011111111']}, {'sentences': ['1100001110101111000001011001100110001011100011110110010011001000101000011110010101010011011000111010000101010011010000000111011001000010100101000011111101000000000101111000', '1110101000100110001111000011000101110111001100101010011001100011010011111111111010101011010101010011000101001100100000110010100110110110110001101100', '00010001100100101100100111111110111111101000100110101111101111110101110001010001011100000000000011010101101001111010001110101101110011001011111101110100010000111101', '011100011101011001000110010110100100000010100010010110011000000010101110011111111101010010010001100110101010010001100010110011110001011011101010111111100100110110010111101001100101010111001', '10111000011010101111110110011010101011111001000001010010111111010010111111100100010100110100101101110100110011001000110100000111000100110000001000111010', '0010011111111011100111010001111001011101001010000010110000010111000101001101000011101110100100000000100100010010101010100011100101001000100110110000010111111110000011011101111000111010']}]}, {'section_id': 'body.2.0', 'paragraphs': [{'sentences': ['110010010011001110100100011001111100010011110111101011011011001010010010010011101011', '000110101110011011101011000000100011111000001100011011110101101011000110011010001010001101101100000111100101001011111001001101111', '1000011100100000100100100010010000111011000100110010000011110111100110110001101001010100011111010100101000111', '11110111111000110010000000000100010010110001100010001010000111011000101100011010010101110110011010110101001101110011101011101100000001000100101011010110110100101011101010010101101000011110000010101011001011000001000000001010110000100010000100011110101001111100001000100000111000001010011111111110101010100011011000010000111000110', '1001000111011000111110001111111001100001000000101000111011101101100101010110001101000000001111010111100011111000000100001001110', '100110010111010101111010100000010001110101111001010010001100001110100100100101110011010101001000100101000100100011001110001100111000010010011011000010011010010000110001000000100011110010110110011010001100111010111110011']}, {'sentences': ['10010101011100010111011111001001001010100011001001111101101001000000001111101110000111101011000001001011101110101001100010010001101111001110000100010010001001101111011111110010011011110011', '110001110010110000101111000000110010010010100000010100001111101101000101100000000110000000011111011001111000010110110001011010011011101100100110011000100110101010111010111111000111001111010110010001001110100001011011000110000000111101110000001111011011101110100000100010000110001000000110100000', '101010000000010000110110111000110000100111000001110100101101101010001010010010101010100111010110001001000101011110010011001001001110111001101101100100011110011011110101100010110111001010000001000110100000001010011111111110111010011110001001110100011011000101011000110110011011010110100100011111111011100111110110000110011011110110110011101010101111001101010110101000000001100101111010000101110', '1010100110111111111000110110111110010100000100001110101110111001011000010001110110001111111110000101001001110010001110000111010101111010111111011100100011100111111101101111000010001100101000010001100110110100110111111100100011001011000001111110010100110111000010011110111011001101100000101011111110101000011000010', '00000001110000101001110101110011101001110011000111111101111101111000010011100000101000001011001110', '101000111010010000011010011010011010010010100010110100011100100111011101010100101110100111010001000000', '01101000110001101011001101100010100011011010000000001010101000010101000110100010000000110001110001010010000000101101000011000100000110011101100001010100011111101010010110001101110101010111101100001110000011001101', '0010010111000011110010011110001010100000111100001011010100100010101010010011101101100110001001111001000110000111011110010000110101010110111111010110100000011010001001010001000110001101101000101110001011110000101101110000110010110010111001100010011011100011', '00110111110000000100110111101011000100100110001000001001101011001000010100100001100111100110000110110101111010000010101000000101000011001011101001', '0100100001000111001110110110000001000100111001101101110100100111010111110001110010110111100110011111001001000011101110100101111011000110100000111010011101']}, {'sentences': ['100001001011101111111100110111011110001101111101100001000110110000100101011000000100000', '10101001001111110101001010100110011110101101001']}]}, {'section_id': 'body.2.0.0', 'paragraphs': [{'sentences': ['1110101100001100011000101000010000100010101101010110101011100101110110110111010101001100100000000111011001000100011110101011111010100101001010000010001001101010100011110010101110011001100010000100110011000011101010001000111001000001100', '101000000011001001110101000100101010000111000111100010010001111111100110001100000100011010011010010101101111010101010000110011101001111001111011111001110001010000110101101011101111010000001100', '01100001011110010100000101001101111101010011100010011001011110110010010011100101000', '0011100111000101111000010001111100000111000101110001111010001100001000111010000101100001110101100111111', '00001100000011110001011010010110000000111110110001111000110000011011001110000000100011001010110000010000010001101010101100000010011011000101011111100010010', '1011101011101111000001100100111000011000010010011110011000110111010010111100111101100110011010000110000111000110111110101111000001000010011101111000110000100011110101101101001101000110010000001000010011011010101100', '1000010011100011100000010011011111111110101101111011101010010111000000101011000000110101111000010011', '01100000110011001110101111101101011001011101000010001100101010100011010101010100111011011110100010100111', '011011010100011011110010101000110001111110110']}]}, {'section_id': 'body.2.0.1', 'paragraphs': [{'sentences': ['00111011011101000100100111000001101001011000111100100010101001010011001011000010011111001100000100010001100101110011001000110001101011010111011111011000010011010010111010011111101000110111011100010011100111111110110111011', '011011010101101101010000001011010110011111011110100111010101010110001101000010011111000011100', '110001000110010000000111101110111110101110111000101000010001110101000101001000111000010001011101010000110001010001101001001110111110111010111010011101000101101010000', '001000111110100110000001111100000111001110111001110111001000111010001001100111001101000001001001010111000111011100001111011001111110001011000111110011111101011101000100101001111011100001000110101010101111111110011111111011000101110001000000000100111011111011001100111', '11010101100010010100010010010101001011001011000001100010101111111101001101110011001010010100000111010101', '01110000110011111000110010011010000011100000010010001111100010010100100001011011111110001100', '011101111100011101100111110101111001101010010001001110101100001101000000111000']}]}, {'section_id': 'body.2.0.2', 'paragraphs': [{'sentences': ['0111011000110100110000001011001110111000011110100111011000000001000010001111111001101111011100101110101101000111000101000010000111011010110000011101111110111110100111000111000011', '00100110111000110101100111000110100010011010010101001010011000000101000110100110011010011111000100000011000000010001010000100111101011111111101010001111010000001011100001110100000101001101101010011011101000', '000001110001010010100101010100010101001100011001001101101101110111011111101010010111010110110111011110101100001000011110111011001', '0001110010111110100110110011000001111100100100110101011010010101010100101000010101000100101000011011', '1000010010010101001100101110010111010100000110101110000000111001111111001011111010000011110001011001001001000101', '0001111100111010010100010111010110011011000000001111010010110001000011010001100111101110001110000011010101111100001000011010110100000100100001111011110110000000101000010001111001010010110101110111101101110111000100', '1000101100001000100001101110111110000100000001000010101111010011010010010111011010100011001000100100001010001100110']}]}, {'section_id': 'body.2.0.3', 'paragraphs': [{'sentences': ['1010100111100011110110101011100001011010011010100100010011000110111000001010010110111001001101111000010100100110101001010001010001000110010000001', '100010101010100111000011111101010100101110011000100011100100100111000010000011001010010111011010000101010011011110111001010110', '0110000110110110110011011000011010010000001010011000010001011110110010000100011111010100110111111010010111000101111', '10100100000011100010110110011111011011101101111000001001010100001001011010000011001010101100000', '1011111111100001001100000010000100110010101000010100111111110010110011101110000101101011101', '10001111110000011100100000101100000000010000100000011100110000011110111010011101010111101001111000100000000110000011010010001100110111100001001011101011001111110010100111001001010001010011010010010111001101110101110000101011', '101101111111101101010010000110111110000110000111001001010011111101011001011010101100010100110101101011100111100100110010001011110001110010000011101100100100001001110010000010011111100110101']}]}, {'section_id': 'body.2.1', 'paragraphs': [{'sentences': ['1010010011010011001111111001000110010001101111101011001011011000101001010101010001000110100011110101110001110110111010010010100100111000101100100101111110100000011111001101010111101010100101011011110111111110', '000010101101111100000110010110011001111100001101011101000100010001001001000000101101000001110000011010111100000010010000010101110101100010011000101110110111111001000101000111000110100001001100001010101010100011', '0000000011101110111100100010111100101010110001111101110110010000100100010000101001101111001111001001100110010011010000101001110010000000100101011101001010100100011101101001011000010111110100101010110110011001110000110010010111110110101100001011101001100111010001000010111010001010000100010010011110111100110011100011111101101000011100111110101010100110001100100000100011011010111000111110010110100010111101001001101000001100100010000111110000011101111100111101000000000']}, {'sentences': ['01011000010110011000000101101000110101011010100111011001001001100001101101111101111001101111100101111001101011011001011110110110110100001100111111010100101110111111101000101100101010110011111011100101101010100110111001111100100011001110011101000110100000001100001100110001110101001000011010000110101011010000001111100100000100101110011000001001010011011101100011000001100000011', '1001100000101000000011110100110001100001101001100011010000111111010110101111001000100111000011010100100000110110001', '10010011000110110111010110000010010000000111101000100101100111101101001100111110101001001111100001110011110000010101000001000000010100011011110011000100110101001100110111111001101000011010100110000000011110001000101010101000110010010']}]}, {'section_id': 'body.2.2', 'paragraphs': [{'sentences': ['000011000000010011000001101111000101000111111111111010001011110000011001010111010101010110001111110000010', '10101001101011101010001111011000110100000100011110010001100111111101101100010010111110110101101011000011000001101110010111011111100111110000000101110010111', '100001011110010111010110001101101001100000000001000010110101011001111100101101101111010010111111000000111001111010011111000100010001111011110001010000110010101010111110100101011011100001010101000001011011111111101', '1000110111111011101000110101001111111111000100011001000011010100001010011110001111010011011111000111011100101001011111001000010101110110101000111011111111010010001101001010110111000011110101011000010000110', '1011100000100000010101101111001001100110111000010001011010111111000000001010101001111011101011010101101001111101101100101001011101000011011010001001101100100111101111111100010011010101111011100001100001000100101100100110101000010000011000000011001100000110000001', '0001001101111001111111010000001101010110110110100110110100000100110101101010010101011000010010111011000010111110000001110101110111000010011000100110111001000111011000100101110111111', '0110010010011000011010001111001100101001100001001000010100101100010110000000101010110001001010001100111101010001110010010000111011100101101010111111101001100010001011100110010100110111010101000100001110000101110011111011111000010101010110101100010010111100100010010100111110111100101010100011101001110110010000011110001010101010000100010000100111001111011101', '000001010000010001100000101011000000110101000100010111111100101111111000110111001001110110101111110011100001001000011001010000011011', '0101101001010101001101010100011000111011001000100001110100110011100000001001010110001101010110011100111111100101101111101111011001111111110010111010011011011111011011110000101011010', '11000001110111000001100100001110000111001010000101011011101010111001011100010010010111111111000011111110010111100011100110001001100011111010100111110111001110010', '0100010110100001010101110111100011100100010111111011101001100101111110101011010010101111001000101001111000001110001100011001110010100110101100110100100000001010101101011110011001000101100111001001001110100', '100000100010011111001101010000100110011110001100000010010110110100000111111011010100101111010111001110101000100001111101001110000011010110000010100', '00100110000011100101000110110001000011101000011010101000010001111011100001111111001011100111101000001000000110110001000101111010010010001100111', '0110110100011001110011001111100010101001011111011001011001101101010010101101110101010100001000100100000111101110001001110111000110011101101010100000101', '0011111010010011011101010110100110000011000011100100101011011001110110001110001111000011010111011000110100111111011101110111000010010000011011010011011100000011101100110110100100000010110101110100110101001100111011101001010111011011110100110101110010011011010001010111110011001000010100010101010010110010010110000100110001000011010011000100101011010100100111010']}]}]}") d=pandas.DataFrame.from_records(copy.deepcopy(paper_as_dict) for _ in range(140_100)) arrow=datasets.Dataset.from_pandas(d) ``` ## Expected results The dataset should be converted without error. ## Actual results Error `pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458)` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.18.4 pandas==1.3.5 - Platform: macOS 11.6 or CentOS Linux 7 (Core) - Python version: Python 3.9.7 - PyArrow version: pyarrow==3.0.0
18
Medium-sized dataset conversion from pandas causes a crash Hi, I am suffering from the following issue: ## Describe the bug Conversion to arrow dataset from pandas dataframe of a certain size deterministically causes the following crash: ``` File "/home/datasets_crash.py", line 7, in <module> arrow=datasets.Dataset.from_pandas(d) File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 783, in from_pandas table = InMemoryTable.from_pandas( File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/table.py", line 379, in from_pandas return cls(pa.Table.from_pandas(*args, **kwargs)) File "pyarrow/table.pxi", line 1487, in pyarrow.lib.Table.from_pandas File "pyarrow/table.pxi", line 1532, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 1181, in pyarrow.lib.Table.validate File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458) ``` ## Steps to reproduce the bug I have a dataset made from replicated single example mocking a dict representation of a publication. I copy over this example 140k times and create a pandas frame. I use 'Dataset.from_pandas' and boom ```python # Sample code to reproduce the bug import copy import datasets import pandas # serialized dict is quite long to be realistic representation of a publication content paper_as_dict=eval("{'article_id': '2020-11-05T14:25:05.321Z02bc3286-91b7-486a-9c74-4f457fbc586a', 'sections': [{'section_id': 'body.0', 'paragraphs': [{'sentences': ['11010111001000000011010011110011101110111011000100001010011100101001111010110111101011101111101010101110001111011110111010111', '1101100110110010010101010100110011000111001100100000011100010111010000011100001101111000000011010111001111001010101111110011010010111011000110100110010', '101011011000010100000010011001011011000000110011011110000101001110110000010001100110111100011100110101010010110000101', '1101101110101010101000000010101011111001111000101000110001110100111000100000011001110100110000110100111011001010110011101001001110']}]}, {'section_id': 'body.1', 'paragraphs': [{'sentences': ['11111100100100111000101001011110100110011001011011001001100110100111011010000110011000010001010100101110001001101011110111110101111100001001001000011110110010110011100110110111110011100011111000101010111010101011001110000100000001001010010010011101111100011010', '10101000110000110111110011101111000101010010001001010000001111001100000010001000001110111110010011101000000111011', '111010011111101111110011111110110001000111100101001000100110101111110000111000111111110000101001101000110011010111011101001010110110001000100000001110001111100110110001110001001100011010100110100010100111000110110100010010100101011110000110000101010010001110101100000']}, {'sentences': ['111110011110110110001111001101011110010110100011101010110101011001101110110111100000111101010110011110111101001111000101110001001010010101100111111001001000011101000100110000101', '011101101101111101001100101010000010111101100101110100101000001100010100110011010010100001101001110111100011010011011111000111111101110001010111010011010110001000010101100110000100010110101110110011001010011001100111101100001001', '1110001011011010101001100001110001110001000111111111101110100001011101101001110100000110000011010001101010101110101110101101001010100100010000000010110010010010', '11101111000111111100111110010000111101110010010101001111011001111110011000011100110001010010000100101010', '111000110110110010101100010010100001100100110010101000001000011101000100101011011010000011001011011111001101100001110010100001111110111001001010101100100110001011011100000101010010000000001100010000101100110110111101110010100010011101110110111010011011000011001010111011100000000010101001011000100000011010100011101001011001010010011110100100']}, {'sentences': ['001101111100001101001001001110000110010101011101001001111111011000111001111011101011110111000000100001110110101110001010001111110100010', '0000110010110101001100011011000011001101001110001000000110010101000011101011110110000000100111000001010000101011111011110001001100001110101010101110101011111000000011001111011110001010010111010000100100000001111001011100101111010101111001001101100101001101111000111011010110010001010010010111010000001101101111100101000111101011001000101', '00000101100101100111101010000101011100101100001100011001100100001100001010001010010011001001111001000010100010000110100111110000001000101000111100010111110011000100000111100010000100010111100010101', '111100110010100110000010010101010101110011110100000101110000000111010101111001011110010101001110000001001000010110010010011110111110010110100101110011001101110111001111100011100100011110010010100101011111111']}, {'sentences': ['1100001110101111000001011001100110001011100011110110010011001000101000011110010101010011011000111010000101010011010000000111011001000010100101000011111101000000000101111000', '1110101000100110001111000011000101110111001100101010011001100011010011111111111010101011010101010011000101001100100000110010100110110110110001101100', '00010001100100101100100111111110111111101000100110101111101111110101110001010001011100000000000011010101101001111010001110101101110011001011111101110100010000111101', '011100011101011001000110010110100100000010100010010110011000000010101110011111111101010010010001100110101010010001100010110011110001011011101010111111100100110110010111101001100101010111001', '10111000011010101111110110011010101011111001000001010010111111010010111111100100010100110100101101110100110011001000110100000111000100110000001000111010', '0010011111111011100111010001111001011101001010000010110000010111000101001101000011101110100100000000100100010010101010100011100101001000100110110000010111111110000011011101111000111010']}]}, {'section_id': 'body.2.0', 'paragraphs': [{'sentences': ['110010010011001110100100011001111100010011110111101011011011001010010010010011101011', '000110101110011011101011000000100011111000001100011011110101101011000110011010001010001101101100000111100101001011111001001101111', '1000011100100000100100100010010000111011000100110010000011110111100110110001101001010100011111010100101000111', '11110111111000110010000000000100010010110001100010001010000111011000101100011010010101110110011010110101001101110011101011101100000001000100101011010110110100101011101010010101101000011110000010101011001011000001000000001010110000100010000100011110101001111100001000100000111000001010011111111110101010100011011000010000111000110', '1001000111011000111110001111111001100001000000101000111011101101100101010110001101000000001111010111100011111000000100001001110', '100110010111010101111010100000010001110101111001010010001100001110100100100101110011010101001000100101000100100011001110001100111000010010011011000010011010010000110001000000100011110010110110011010001100111010111110011']}, {'sentences': ['10010101011100010111011111001001001010100011001001111101101001000000001111101110000111101011000001001011101110101001100010010001101111001110000100010010001001101111011111110010011011110011', '110001110010110000101111000000110010010010100000010100001111101101000101100000000110000000011111011001111000010110110001011010011011101100100110011000100110101010111010111111000111001111010110010001001110100001011011000110000000111101110000001111011011101110100000100010000110001000000110100000', '101010000000010000110110111000110000100111000001110100101101101010001010010010101010100111010110001001000101011110010011001001001110111001101101100100011110011011110101100010110111001010000001000110100000001010011111111110111010011110001001110100011011000101011000110110011011010110100100011111111011100111110110000110011011110110110011101010101111001101010110101000000001100101111010000101110', '1010100110111111111000110110111110010100000100001110101110111001011000010001110110001111111110000101001001110010001110000111010101111010111111011100100011100111111101101111000010001100101000010001100110110100110111111100100011001011000001111110010100110111000010011110111011001101100000101011111110101000011000010', '00000001110000101001110101110011101001110011000111111101111101111000010011100000101000001011001110', '101000111010010000011010011010011010010010100010110100011100100111011101010100101110100111010001000000', '01101000110001101011001101100010100011011010000000001010101000010101000110100010000000110001110001010010000000101101000011000100000110011101100001010100011111101010010110001101110101010111101100001110000011001101', '0010010111000011110010011110001010100000111100001011010100100010101010010011101101100110001001111001000110000111011110010000110101010110111111010110100000011010001001010001000110001101101000101110001011110000101101110000110010110010111001100010011011100011', '00110111110000000100110111101011000100100110001000001001101011001000010100100001100111100110000110110101111010000010101000000101000011001011101001', '0100100001000111001110110110000001000100111001101101110100100111010111110001110010110111100110011111001001000011101110100101111011000110100000111010011101']}, {'sentences': ['100001001011101111111100110111011110001101111101100001000110110000100101011000000100000', '10101001001111110101001010100110011110101101001']}]}, {'section_id': 'body.2.0.0', 'paragraphs': [{'sentences': ['1110101100001100011000101000010000100010101101010110101011100101110110110111010101001100100000000111011001000100011110101011111010100101001010000010001001101010100011110010101110011001100010000100110011000011101010001000111001000001100', '101000000011001001110101000100101010000111000111100010010001111111100110001100000100011010011010010101101111010101010000110011101001111001111011111001110001010000110101101011101111010000001100', '01100001011110010100000101001101111101010011100010011001011110110010010011100101000', '0011100111000101111000010001111100000111000101110001111010001100001000111010000101100001110101100111111', '00001100000011110001011010010110000000111110110001111000110000011011001110000000100011001010110000010000010001101010101100000010011011000101011111100010010', '1011101011101111000001100100111000011000010010011110011000110111010010111100111101100110011010000110000111000110111110101111000001000010011101111000110000100011110101101101001101000110010000001000010011011010101100', '1000010011100011100000010011011111111110101101111011101010010111000000101011000000110101111000010011', '01100000110011001110101111101101011001011101000010001100101010100011010101010100111011011110100010100111', '011011010100011011110010101000110001111110110']}]}, {'section_id': 'body.2.0.1', 'paragraphs': [{'sentences': ['00111011011101000100100111000001101001011000111100100010101001010011001011000010011111001100000100010001100101110011001000110001101011010111011111011000010011010010111010011111101000110111011100010011100111111110110111011', '011011010101101101010000001011010110011111011110100111010101010110001101000010011111000011100', '110001000110010000000111101110111110101110111000101000010001110101000101001000111000010001011101010000110001010001101001001110111110111010111010011101000101101010000', '001000111110100110000001111100000111001110111001110111001000111010001001100111001101000001001001010111000111011100001111011001111110001011000111110011111101011101000100101001111011100001000110101010101111111110011111111011000101110001000000000100111011111011001100111', '11010101100010010100010010010101001011001011000001100010101111111101001101110011001010010100000111010101', '01110000110011111000110010011010000011100000010010001111100010010100100001011011111110001100', '011101111100011101100111110101111001101010010001001110101100001101000000111000']}]}, {'section_id': 'body.2.0.2', 'paragraphs': [{'sentences': ['0111011000110100110000001011001110111000011110100111011000000001000010001111111001101111011100101110101101000111000101000010000111011010110000011101111110111110100111000111000011', '00100110111000110101100111000110100010011010010101001010011000000101000110100110011010011111000100000011000000010001010000100111101011111111101010001111010000001011100001110100000101001101101010011011101000', '000001110001010010100101010100010101001100011001001101101101110111011111101010010111010110110111011110101100001000011110111011001', '0001110010111110100110110011000001111100100100110101011010010101010100101000010101000100101000011011', '1000010010010101001100101110010111010100000110101110000000111001111111001011111010000011110001011001001001000101', '0001111100111010010100010111010110011011000000001111010010110001000011010001100111101110001110000011010101111100001000011010110100000100100001111011110110000000101000010001111001010010110101110111101101110111000100', '1000101100001000100001101110111110000100000001000010101111010011010010010111011010100011001000100100001010001100110']}]}, {'section_id': 'body.2.0.3', 'paragraphs': [{'sentences': ['1010100111100011110110101011100001011010011010100100010011000110111000001010010110111001001101111000010100100110101001010001010001000110010000001', '100010101010100111000011111101010100101110011000100011100100100111000010000011001010010111011010000101010011011110111001010110', '0110000110110110110011011000011010010000001010011000010001011110110010000100011111010100110111111010010111000101111', '10100100000011100010110110011111011011101101111000001001010100001001011010000011001010101100000', '1011111111100001001100000010000100110010101000010100111111110010110011101110000101101011101', '10001111110000011100100000101100000000010000100000011100110000011110111010011101010111101001111000100000000110000011010010001100110111100001001011101011001111110010100111001001010001010011010010010111001101110101110000101011', '101101111111101101010010000110111110000110000111001001010011111101011001011010101100010100110101101011100111100100110010001011110001110010000011101100100100001001110010000010011111100110101']}]}, {'section_id': 'body.2.1', 'paragraphs': [{'sentences': ['1010010011010011001111111001000110010001101111101011001011011000101001010101010001000110100011110101110001110110111010010010100100111000101100100101111110100000011111001101010111101010100101011011110111111110', '000010101101111100000110010110011001111100001101011101000100010001001001000000101101000001110000011010111100000010010000010101110101100010011000101110110111111001000101000111000110100001001100001010101010100011', '0000000011101110111100100010111100101010110001111101110110010000100100010000101001101111001111001001100110010011010000101001110010000000100101011101001010100100011101101001011000010111110100101010110110011001110000110010010111110110101100001011101001100111010001000010111010001010000100010010011110111100110011100011111101101000011100111110101010100110001100100000100011011010111000111110010110100010111101001001101000001100100010000111110000011101111100111101000000000']}, {'sentences': ['01011000010110011000000101101000110101011010100111011001001001100001101101111101111001101111100101111001101011011001011110110110110100001100111111010100101110111111101000101100101010110011111011100101101010100110111001111100100011001110011101000110100000001100001100110001110101001000011010000110101011010000001111100100000100101110011000001001010011011101100011000001100000011', '1001100000101000000011110100110001100001101001100011010000111111010110101111001000100111000011010100100000110110001', '10010011000110110111010110000010010000000111101000100101100111101101001100111110101001001111100001110011110000010101000001000000010100011011110011000100110101001100110111111001101000011010100110000000011110001000101010101000110010010']}]}, {'section_id': 'body.2.2', 'paragraphs': [{'sentences': ['000011000000010011000001101111000101000111111111111010001011110000011001010111010101010110001111110000010', '10101001101011101010001111011000110100000100011110010001100111111101101100010010111110110101101011000011000001101110010111011111100111110000000101110010111', '100001011110010111010110001101101001100000000001000010110101011001111100101101101111010010111111000000111001111010011111000100010001111011110001010000110010101010111110100101011011100001010101000001011011111111101', '1000110111111011101000110101001111111111000100011001000011010100001010011110001111010011011111000111011100101001011111001000010101110110101000111011111111010010001101001010110111000011110101011000010000110', '1011100000100000010101101111001001100110111000010001011010111111000000001010101001111011101011010101101001111101101100101001011101000011011010001001101100100111101111111100010011010101111011100001100001000100101100100110101000010000011000000011001100000110000001', '0001001101111001111111010000001101010110110110100110110100000100110101101010010101011000010010111011000010111110000001110101110111000010011000100110111001000111011000100101110111111', '0110010010011000011010001111001100101001100001001000010100101100010110000000101010110001001010001100111101010001110010010000111011100101101010111111101001100010001011100110010100110111010101000100001110000101110011111011111000010101010110101100010010111100100010010100111110111100101010100011101001110110010000011110001010101010000100010000100111001111011101', '000001010000010001100000101011000000110101000100010111111100101111111000110111001001110110101111110011100001001000011001010000011011', '0101101001010101001101010100011000111011001000100001110100110011100000001001010110001101010110011100111111100101101111101111011001111111110010111010011011011111011011110000101011010', '11000001110111000001100100001110000111001010000101011011101010111001011100010010010111111111000011111110010111100011100110001001100011111010100111110111001110010', '0100010110100001010101110111100011100100010111111011101001100101111110101011010010101111001000101001111000001110001100011001110010100110101100110100100000001010101101011110011001000101100111001001001110100', '100000100010011111001101010000100110011110001100000010010110110100000111111011010100101111010111001110101000100001111101001110000011010110000010100', '00100110000011100101000110110001000011101000011010101000010001111011100001111111001011100111101000001000000110110001000101111010010010001100111', '0110110100011001110011001111100010101001011111011001011001101101010010101101110101010100001000100100000111101110001001110111000110011101101010100000101', '0011111010010011011101010110100110000011000011100100101011011001110110001110001111000011010111011000110100111111011101110111000010010000011011010011011100000011101100110110100100000010110101110100110101001100111011101001010111011011110100110101110010011011010001010111110011001000010100010101010010110010010110000100110001000011010011000100101011010100100111010']}]}]}") d=pandas.DataFrame.from_records(copy.deepcopy(paper_as_dict) for _ in range(140_100)) arrow=datasets.Dataset.from_pandas(d) ``` ## Expected results The dataset should be converted without error. ## Actual results Error `pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458)` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.18.4 pandas==1.3.5 - Platform: macOS 11.6 or CentOS Linux 7 (Core) - Python version: Python 3.9.7 - PyArrow version: pyarrow==3.0.0 Hi ! It looks like an issue with pyarrow, could you try updating pyarrow and try again ?
[ -0.3885252178, 0.055236578, 0.0980944559, 0.4302076697, 0.5165883303, 0.0892649516, 0.2436548024, 0.3483604193, -0.1818013042, 0.0568672642, 0.0694642514, 0.4911386073, -0.0399589539, -0.0660407469, -0.0872594267, -0.3226374686, 0.2678995132, 0.0140860081, -0.1913530678, 0.0735106319, -0.0385163799, -0.3121049106, -0.197405979, 0.2098265588, -0.0418290868, -0.2598298788, -0.1783131212, 0.2024016231, -0.2359373868, -0.4499857426, 0.1777077466, -0.3208854795, 0.0681644082, 0.4956086874, -0.0001150527, 0.0049877684, 0.3335277438, 0.0149239888, -0.2826345265, 0.1411154121, -0.0122533645, -0.2384083718, 0.1377356648, -0.1019871533, 0.2485780716, -0.4006042778, -0.3003136814, -0.2839364111, 0.4013547897, 0.39700526, 0.1972447187, 0.1089954823, 0.1619370729, 0.0217968598, 0.06348975, 0.1979067177, -0.1437851489, 0.4253344536, 0.2138195187, -0.0365459882, -0.1753312349, -0.0857432261, -0.0722226873, -0.0989106223, 0.0893168151, -0.1785142869, -0.0602496453, -0.1485144645, 0.0723026991, 0.3800055087, 0.2819412947, -0.5241828561, -0.35588938, -0.2461519837, 0.0227549095, -0.0585849173, -0.2482135743, 0.1137179658, -0.2111260593, 0.2071510702, 0.0790600851, 0.0576887205, -0.330021143, 0.0057920883, -0.3957045674, -0.1532071382, 0.0618795529, 0.1684900522, 0.044787392, -0.2786203325, 0.0731443241, 0.0549463741, -0.2350214124, 0.0406251438, -0.2948726118, -0.1083028764, -0.0825740546, -0.3151488304, 0.172300756, -0.0233841669, 0.0287432522, 0.1163321137, 0.1424847096, -0.0680817887, 0.4316392243, 0.0484470092, -0.2875414491, 0.3029620945, 0.1190160066, 0.0909504369, 0.0786519498, 0.1830457002, -0.079611592, -0.2315152287, 0.1699891537, -0.2203419209, 0.2676585317, -0.2670355141, -0.4461145997, 0.2292247117, -0.450538069, 0.4397847652, -0.0107356887, 0.2753645778, 0.0502927154, 0.4217758179, 0.0267340876, 0.1541557461, -0.0066746012, 0.0777783468, -0.1387264431, 0.0974246338, -0.0561405346, -0.0467208885, -0.039062202, 0.1383390278, -0.0365525521, 0.1076600477, 0.0191926714, -0.2798460126, -0.1371139884, -0.2315682471, 0.0887773782, 0.1399362683, -0.2136141956, 0.1266117692, 0.0635221303, 0.0412342288, -0.0310677532, 0.2599393725, 0.2556866109, -0.0428981669, -0.2741625905, 0.1762544066, -0.2004587203, 0.020429641, -0.1984545887, 0.2015583664, 0.2463888526, 0.1249338984, 0.2026449144, -0.3493028283, -0.0020961375, -0.2658123374, -0.062684007, 0.392236948, -0.6538008451, 0.1685088277, 0.0373156108, 0.0461286604, 0.1952433586, 0.4270581603, -0.2139809281, 0.0013466947, 0.0237921625, -0.0147032971, 0.0913785324, 0.0984589085, -0.6465850472, 0.279855758, -0.1755776405, 0.0500716157, -0.1931007802, 0.067697987, 0.0959791392, -0.1100695431, 0.0091313208, 0.3211950362, -0.2184299529, 0.2620376647, -0.2677800953, -0.243369326, 0.0770427287, -0.0185991134, 0.1770032048, -0.1727033854, 0.1676348597, -0.0368194506, 0.1817197353, -0.1540309787, 0.0355825275, 0.3575213552, 0.3488966525, -0.3499831259, 0.1564604491, -0.1136917695, -0.2002433389, 0.1865972728, 0.1414072961, -0.0832664594, -0.33993119, -0.1637130678, -0.4276748896, 0.3482881188, 0.0635898933, 0.2219668478, 0.1180231124, -0.223255977, 0.1422463357, 0.060057506, 0.0365457684, -0.0600655153, -0.4722118974, 0.1720079929, -0.0388490371, 0.203076452, 0.0733725503, -0.1914622486, 0.1410380304, 0.11396043, 0.0176244453, -0.0275477003, -0.1992473304, 0.4192456007, 0.2441350371, 0.2961620092, -0.3323594332, -0.2304169983, 0.2835316658, -0.2486687005, 0.2489651889, 0.1493944675, 0.1483903229, -0.0169789381, -0.0215447377, 0.2704018056, -0.212700218, 0.0638131127, 0.0309772398, 0.1267228276, 0.1475236267, 0.0043403613, 0.0833631307, -0.1232634038, -0.2487773597, 0.1502282172, 0.2707176208, 0.1132627279, -0.4505311251, -0.0045681144, 0.1626444608, -0.179429993, 0.2406515926, 0.1840562969, -0.4005487263, -0.0361260027, 0.3320991695, 0.387111038, 0.3530366123, 0.2065514922, 0.3666045964, 0.0953402221, -0.2340364009, 0.0150739318, 0.3064131141, 0.130788967, 0.5739151239, -0.0132644819, 0.3194466829, 0.142378673, -0.3266946673, -0.0166664794, 0.1071190611, 0.392940104, -0.3286624849, 0.1737274379, -0.296025008, -0.1950193644, -0.2197655588, -0.2775232792, 0.1286766827, -0.2970522046, -0.1049730033, 0.019055957, -0.3035254478, 0.1782580018, -0.158419475, -0.0517057776, 0.2624289393, 0.0742975995, 0.0309989396, -0.2560712993, -0.3476938307, 0.094123438, 0.4853466451, 0.1913883686, 0.2262050062, 0.2723966539, -0.0606305934, -0.277879566, -0.2434612513, -0.0575552732, -0.13176094, 0.1871198565, 0.1129228696, 0.2183457613, -0.2054513693, -0.0464348607, 0.0031859011, 0.1114965305, -0.2431588173, 0.2981401086, -0.1765681356, -0.0397511683, -0.0758459121, 0.016085308, -0.1006825939, -0.3247885406, 0.2118660212, -0.0923239514, 0.0502635576, 0.1330835223, 0.4688136578, 0.2599003315, 0.2512618005, -0.0856669694, -0.0527286939, 0.4170237184, 0.2673110664, 0.0258893669, -0.3570969403, -0.2630179524, -0.2370251119, 0.0980525017, 0.3528616428, -0.5645747185, 0.0257283375, -0.3222922981, -0.0419905633, -0.2048663199, -0.1079450548, 0.0630166605, 0.1056100056, -0.0451418236, 0.0600774102, 0.1219651327, -0.0645021349, -0.0418812782, 0.1055825055, -0.1630310714, 0.685575664, 0.2560943663, 0.532217443, 0.2994856536, -0.4177567959, 0.066219613, -0.0911190063, 0.3315949738, -0.1069660783, -0.0435649604, -0.0012655728, -0.185245961, -0.2171926498, -0.1528034359, -0.2204193771, -0.3380315006, 0.1132595241, -0.0270505752, 0.1616459042, -0.2580347359, 0.0840323046, -0.5991690755, 0.0364914462, -0.0138578126, 0.1274291575, -0.050531473, 0.0425062589, 0.2157526463, -0.3841483891, -0.0828102082, -0.105089657, 0.008878978, -0.0472628623, -0.4176768064, 0.1515782177, 0.1891756058, 0.609183073, 0.3055748343, -0.3205709457, -0.0827829763, -0.026992986, 0.3933980763, -0.0036929806, -0.1524090618, 0.0009757379, 0.2738248408, -0.8665076494, 0.0719667077, -0.1681419611, 0.3016652763, 0.0089225555, 0.0820345432, -0.2899980843, 0.0644449592, 0.1273903251, 0.4193398654, 0.1389348954, 0.1119202822, -0.0318914726, -0.2220942825, -0.157838881, 0.3290961385, 0.2468285263, 0.102014266, -0.189577058, -0.4004460871, -0.4385953546, -0.2274922282, 0.0630140379, 0.4054960907, 0.3498131633, -0.3931424618, 0.3500831723, -0.3094840646, 0.022765575, 0.7161825299, 0.5175675154, 0.1035107598, -0.3750324249, -0.0524155423, 0.1009679064, 0.2215061039, 0.3786042333, -0.1668842435, -0.0436308682, -0.2475839704, 0.0049316753, -0.0610463545, -0.1265176684, 0.0302320123, -0.0683151111, -0.2214452326, 0.2464231402, 0.5124070644, 0.1375385523, 0.0062622759, 0.420502305, 0.2633768022, -0.2514770031, 0.4689323306, 0.3891201019, 0.7829783559, -0.0801278725, -0.0859495625, 0.4282099605, -0.152721554, 0.2775720358, 0.5069597363, -0.1380063444, -0.4892115891, -0.1459615976, 0.0442870297, -0.2773566246, 0.1293068975, 0.0671594813, -0.2271764725, 0.0294410586, -0.1716463566, 0.0427665636, -0.0282282457, 0.0955615714, -0.3547977507, -0.2303010076, -0.4009614587, 0.11602965, -0.052025713, -0.3358427584, 0.0352154262, -0.0209287908, -0.5503200293, 0.0377991609, -0.5280416012, 0.1110397279, -0.4671599865, 0.2822170556, 0.2200684249, -0.3321880698, 0.2102824897, 0.097465612, 0.0375097618, 0.0892442539, -0.1136297286, 0.126633957, 0.0996819064, 0.022109624, 0.246904254, -0.1763040721, 0.3419579566, 0.218320787, -0.0246380046, 0.1215138808, -0.1445349604, 0.0647473037, 0.1171031073, 0.0143723879, -0.0094759325, -0.3091661334, -0.2754361928, -0.2775586545, -0.0976129994, -0.2725474834, 0.1057908684, -0.0231112018, 0.0400075763, 0.2122615576, -0.0862850323, -0.1076657996, -0.0069179162, 0.197836563, 0.0657371506, 0.2160745412, 0.3591236174, 0.1965273023, -0.1510561407, -0.1085460335, 0.2928984463, 0.1305278391, -0.4943594933, 0.2517836392, -0.4642937183, -0.1291217506, 0.115172185, -0.0040886388, 0.2571489811, 0.120399192, -0.345369041, -0.2235379219, -0.42892766, 0.2893996537, 0.0876398236, 0.3588415384, -0.2279136926, 0.0062465188, -0.2765206695, 0.0408010297, -0.2367560714, 0.2502933741, -0.1890525073, 0.1844567209, -0.3076978028, -0.0771695375, -0.2294019014, -0.2514237165, 0.0871003941, 0.4606266022, 0.149290666, -0.1845989823, -0.0241793543, 0.0339916423, 0.0784787461, -0.0579577163, 0.022417888, -0.0987880975, -0.109319739, -0.0708733276, 0.1187908947, 0.1704205424, -0.2362174094, -0.1614703387, 0.4188926816, 0.0737689883, -0.1041836515, 0.2002164871, -0.316519022, 0.3172489703, 0.0545043796, 0.3849176764, 0.2338217795, -0.0805894136, -0.0631201342, 0.1532452554, -0.1105889976, -0.1711219698, 0.4006921649, -0.1641342938, -0.3723888099, 0.2084538192, 0.278197974, 0.6031712294, -0.3753552139, -0.0958638489, 0.0795064792, 0.1777345389, -0.2882614136, -0.1623317748, -0.0121655893, -0.2178522199, 0.0183843393, 0.3932245076, 0.1924741268, -0.316008836, -0.0495710745, 0.045778133, 0.0892105103, 0.0877818689, -0.0408395268, 0.5765804052, -0.1116322801, -0.2236168087, 0.2209212333, 0.0106642302, 0.697376132, 0.4334191978, 0.1221761033, 0.3315836191, -0.0401918106, -0.0187072344, 0.1804600358, -0.2060780078, 0.1166077852, 0.174669534, -0.2248262912, -0.0603425652, 0.2474056631, 0.3017654419, 0.0993075445, -0.0693991557, -0.0439811721, -0.0770853013, -0.3140105605, -0.0118970443, 0.0383615196, -0.1000518352, -0.1495516896, -0.1331786066, -0.1825140119, -0.3085255623, 0.2217934132, 0.074014619, -0.0341994688, -0.2961219549, 0.2245833725, 0.3675847948, 0.1463960707, -0.2335623056, 0.0254382938, 0.3013012409, -0.2424123585, -0.2300695777, 0.146405682, 0.4870893061, 0.2521285117, -0.3529073, 0.153610155, 0.4857375622, -0.2879091799, 0.1544395685, -0.004207795, -0.0234700646, 0.2051729411, 0.4668526351, 0.1054249629, -0.0734408498, -0.2587609589, 0.1472361982, 0.1511920691, -0.218444705, 0.1801692545, -0.2484560907, -0.3354803324, -0.0446210578, -0.0664710477, -0.147222206, -0.142846331, 0.3533338308, -0.3449611664, 0.097304143, -0.0957046822, 0.0552965291, -0.0816001296, 0.4515334666, 0.4117721915, 0.1384326667, -0.0760767683, -0.1874236465, -0.3873208761, 0.342019558, -0.1844539493, -0.0283747073, 0.2601719797, 0.2130874246, 0.0665486157, 0.1908739954, 0.116847679, 0.4342322648, -0.2310209125, 0.4537533522, -0.3086169362, -0.3866288662, -0.0257196594, -0.3007904887, -0.0488103144, -0.4385181069, 0.299295187, -0.1124951392, 0.0507392995, 0.0154966014, -0.1823547035, -0.0489760488, 0.1166784093, 0.4271291494, 0.0833886042, 0.0630065128, 0.1136319488, -0.1514832079, -0.1408733726, -0.1488992423, -0.2716709673, 0.63037467, -0.0393633321, 0.3425814211, 0.0687792376, -0.1104298308, 0.1099702641, -0.095982179, 0.1533964425, 0.0976305753, -0.3591247499, 0.1181285456, -0.2882041037, 0.1769336015, 0.0344546065, 0.1269856393, 0.0493374951, 0.3901363611, -0.0198872667, -0.4324981868, 0.3553690612, -0.1813383847, -0.158200264, 0.0767935067, -0.0480786487, 0.0824383274, -0.2379655987, -0.4685941935, -0.0523856319, 0.2293919623, -0.1855980605, 0.0233917143, -0.0876729712, 0.0286968499, 0.178573072, -0.2490776628, 0.6088383198, -0.2562525868, 0.0008446765, 0.0894776583, -0.2673683763 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
Hi @amirj, thanks for reporting. At first sight, your issue seems a version incompatibility between your Elasticsearch client and your Elasticsearch server. Feel free to have a look at Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility > Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
66
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } Hi @amirj, thanks for reporting. At first sight, your issue seems a version incompatibility between your Elasticsearch client and your Elasticsearch server. Feel free to have a look at Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility > Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.
[ -0.2016848028, -0.3632028997, -0.0670635998, -0.1154991388, -0.0156478528, 0.2479979247, 0.2341080308, 0.2877423763, 0.0638613626, 0.0936896205, -0.0358452164, 0.3917693198, -0.0215825103, -0.1523345411, 0.1281494349, -0.230913952, 0.1210855693, 0.0874325931, 0.1187864989, -0.0516795292, -0.2244481593, 0.2019564956, -0.2399698496, -0.1863757521, 0.0260685366, 0.0416943766, -0.2811266482, 0.0370435938, -0.2842973173, -0.5741451383, 0.5656747818, -0.3205860257, -0.0054033566, 0.3283087909, -0.0001174942, 0.2588955164, 0.618111968, -0.0708708167, -0.1365977675, -0.3066092134, -0.2747554779, -0.1212203577, 0.3674223423, -0.3745525777, -0.0447418317, 0.0033116706, 0.0528510213, -0.3770343959, 0.542247355, 0.4741775692, 0.1803840995, 0.1715568602, 0.4112609625, -0.5131979585, 0.1866669208, 0.068609193, -0.186274156, 0.0758130476, -0.0755473524, 0.3040466309, 0.2885065973, 0.1322865635, 0.0819440633, -0.099072732, 0.0131784733, 0.1307260394, 0.13668558, -0.1495371908, -0.2264218777, -0.1947409064, 0.2292090207, -0.1556190997, -0.430876255, 0.1329661608, 0.1585822552, -0.2405285537, 0.1471444964, -0.0151981851, -0.0127602285, 0.1177388728, 0.3022181094, -0.1775995046, -0.3475019634, 0.5092260242, 0.0847174078, 0.1819158494, -0.0808772817, 0.0391934589, 0.1065988392, -0.1730142981, 0.002013131, 0.3552635014, 0.0788009614, 0.2527101636, -0.2984150946, -0.0282035246, 0.1122641191, -0.2461926639, 0.0884467214, -0.1922889352, -0.1135173589, -0.1603744328, 0.5498576164, 0.1669119, -0.0451066568, 0.1012823805, 0.1200138405, 0.1737443954, -0.0490081869, -0.0631368533, 0.2725942433, -0.0562144145, 0.0272712577, -0.3945189416, 0.1915054768, -0.0452346429, 0.4555639327, -0.1275631636, -0.243079409, -0.0585776158, -0.3170815408, -0.0847006887, 0.0372950695, 0.1921497583, 0.2321964353, -0.4963363409, 0.4507415295, 0.3782168031, -0.1459136903, 0.1989921033, -0.2593502998, 0.1355431378, -0.0163130388, -0.0615730844, 0.1132288426, -0.5844497085, 0.4247125685, 0.2325559556, -0.0374884792, 0.0610242672, 0.2157833427, 0.0300101005, -0.2533140481, 0.1263981313, -0.0347202532, -0.2597735226, 0.1583046615, 0.0415073, -0.147116676, -0.0897270069, -0.2763338089, -0.5810436606, -0.6209133267, 0.1893596649, 0.0445201099, -0.0496433228, -0.1614019275, 0.0976205394, 0.2085874677, -0.0586838424, -0.1142823845, -0.1084865853, -0.1068546548, 0.0529944077, 0.2593816221, 0.2752767503, -0.1447115839, -0.210515514, -0.2179666907, 0.3615582287, -0.1270295829, 0.0429476276, -0.3336134255, 0.3303680718, -0.0799251273, 0.0909019783, 0.6981772184, -0.547475338, -0.0536416546, -0.2091813236, -0.0626362711, -0.2886888683, 0.0518558472, -0.0723179355, 0.1295567453, 0.2020721585, 0.0836896971, 0.0188741758, 0.1568586379, -0.1904109269, -0.3010769486, -0.0207560975, -0.2133551687, 0.2194907367, 0.068867743, 0.0743889064, 0.1130571738, -0.0949402526, -0.0289150421, 0.0968275666, -0.0160932541, 0.3530189693, 0.4477268159, 0.0474989042, 0.1451192945, -0.2445709407, -0.1861452162, 0.0887332037, 0.1305079013, 0.4066126049, -0.2754702866, -0.0054869209, -0.455758214, -0.0125354165, -0.1999203116, -0.0404613689, 0.04769025, -0.1804458201, 0.0655059442, 0.0815155208, -0.3663468361, 0.0903835967, -0.224010244, 0.0874164104, -0.4838055074, 0.3780785203, -0.3399510682, -0.2848974168, -0.1005498096, -0.1272819191, 0.1625959724, -0.2289760709, -0.252905637, 0.3170166314, 0.1585818529, -0.1993493885, -0.0094237737, -0.2196143568, 0.068793796, -0.3717125356, -0.160118714, 0.1146564633, 0.0060174139, 0.0075711841, -0.1409526616, 0.0491281301, -0.0276781302, 0.1236102134, -0.1865461469, 0.0244979113, 0.1674750298, 0.0128471889, -0.2148428559, -0.1568403244, 0.0762600526, 0.0110405199, 0.0965335295, -0.2560920119, -0.080621697, -0.2556482852, 0.1009650752, 0.1908092052, 0.0109876869, 0.3315633833, 0.0306277517, -0.0241761282, 0.0200199578, -0.2649320364, 0.5081578493, 0.1863699406, -0.2549332976, 0.1788084209, -0.195134446, 0.0434971601, 0.354672581, 0.0776068494, 0.2782560587, -0.0410642512, 0.2114386261, 0.2027512789, -0.3051765263, -0.4304825664, -0.063166067, 0.2208942026, -0.3955520988, 0.1845765859, 0.0268657431, 0.0299320444, -0.0677972734, 0.0289352741, 0.1407727152, -0.2932100594, -0.0042729308, 0.287345618, -0.0005066379, 0.2911942005, -0.2152978629, 0.1278512478, 0.4924535751, -0.2807106674, -0.1180759966, 0.0015202942, -0.1466071159, 0.0087547284, 0.0437355116, 0.2254187614, 0.253878504, -0.2099377066, 0.0073480736, -0.1291220039, -0.5952879786, 0.0757838711, -0.0007682359, 0.442419827, 0.41091609, 0.1672627777, -0.5368112922, -0.4164038301, 0.3792357445, -0.0472385176, -0.2670030296, 0.0130980387, -0.243299827, -0.1095608622, -0.0610100254, -0.6315125823, -0.1218555719, -0.4427922368, 0.092821151, 0.0293397792, 0.0403709002, 0.4282229245, 0.2001369596, 0.1551536024, -0.0561068729, 0.0692988336, -0.1925012916, -0.0702749714, 0.3183071613, -0.3651521504, -0.2466862649, -0.1141716614, -0.1642147452, 0.268699348, 0.2605502307, -0.0881299004, -0.2447289079, -0.012627353, 0.1801124215, -0.3956001699, 0.1502331197, 0.5313316584, 0.0224417895, 0.0291624386, -0.064780511, -0.2079589218, 0.4208350182, 0.3675065339, 0.1470501423, 0.0251938123, 0.5940634012, -0.0903485194, 0.6092326045, 0.1436548382, -0.2190538943, 0.4205082357, -0.2054324895, 0.1942408383, -0.3542345464, -0.4843164086, -0.2542825937, 0.2180969566, -0.0551192909, -0.2035239339, -0.0939923301, -0.2704293132, -0.1703051925, -0.1012980267, -0.1212012917, -0.0208712742, 0.0046931081, 0.1887578815, 0.3433676958, -0.0443464257, 0.0575900264, -0.3259446025, 0.0016672112, -0.0683993101, 0.2338469625, 0.1319116801, 0.115097791, -0.2470534444, -0.0795558989, -0.1544698477, 0.32566607, 0.116955407, 0.2916451693, 0.1058446616, 0.0895662904, 0.144397378, 0.2772260904, 0.3966251612, -0.2045558095, -0.4413913786, 0.0668893754, 0.1947993189, -0.7750585675, -0.0795959532, -0.0787117779, 0.418264538, 0.3315995038, 0.4458384216, -0.2620029747, 0.004422274, 0.3199791014, -0.0602933988, 0.1058493555, -0.1303464025, -0.3335364163, -0.5129055381, -0.134139657, 0.370028913, 0.236570254, 0.1251823753, 0.507093668, 0.0274128802, -0.3214965463, 0.0636708885, -0.2171640992, 0.1923188716, 0.3074098825, -0.009890262, 0.1243944615, 0.2359701693, 0.1119829491, 0.3207924366, 0.2626963556, -0.0883229747, -0.0588469356, 0.0378892608, -0.1546802074, 0.224717319, 0.2169944793, 0.0971576869, 0.0400169492, -0.3238067925, 0.0872084349, 0.0957222357, -0.1948005259, 0.5735220909, -0.0429390147, -0.0428069718, -0.3231019676, 0.4523455203, -0.1763374358, -0.0094864406, 0.4108851254, 0.5747951865, -0.3028597534, 0.6433289647, 0.0456538796, 0.7333818078, 0.3419997692, -0.0309456382, 0.5441730618, 0.275074482, 0.4632301927, 0.2398340851, 0.3763032556, -0.1720002741, -0.0170595534, 0.025094185, -0.3377427161, 0.1853721738, -0.1375250965, -0.4986565411, 0.1609333009, -0.3430401087, 0.3382045627, -0.0463482402, 0.2973492444, 0.0624627694, -0.1024165601, -0.4516428411, 0.1494491398, 0.1401234269, 0.233862713, -0.0219748579, -0.1225460395, -0.1575864702, -0.2577483952, -0.214915961, 0.0575772785, -0.0520628318, 0.7435444593, -0.073839128, 0.042595461, 0.2508414984, 0.1905160099, 0.1567668617, 0.0009728245, -0.1411322355, 0.1702787131, 0.1179479435, -0.2572279274, 0.1557989568, -0.1950740814, 0.1639709622, -0.1295972764, -0.3142545521, 0.0328380093, -0.0778963417, -0.5886421204, -0.1574214846, 0.0573742054, -0.328889817, -0.3205674291, -0.3472573161, 0.0106518585, -0.1085042655, -0.1940377951, 0.1245110631, 0.0390042551, -0.0308055039, 0.1210401878, 0.1650292128, -0.2093928754, 0.0741488487, 0.4086773396, -0.0280675162, 0.0270404685, 0.5184391141, -0.1926459521, -0.2022656947, -0.0208795443, -0.0876592994, 0.126249671, -0.3552738726, -0.0897452161, -0.1950103492, 0.101148136, 0.1576727778, 0.0477471277, 0.279578656, 0.2151694298, 0.0041167382, -0.0937474966, 0.0672172755, 0.1836231947, 0.117528826, 0.1098426357, -0.2728894353, 0.1238470823, -0.0096152239, -0.2254436016, -0.2934090495, 0.1597344875, 0.0452329554, 0.1199346632, -0.0889204964, -0.0278152451, 0.3200848103, -0.2754374146, 0.1265542507, 0.0370215587, -0.227404654, -0.1628856063, -0.2106008679, 0.1217701808, -0.0909653604, -0.0027845856, 0.0258365404, -0.3257215917, -0.2259399742, -0.1212367639, -0.2047732472, 0.2418257594, 0.1094351411, -0.1233031154, 0.0161564425, -0.2745510638, 0.194089815, -0.015984688, 0.0197212361, -0.0510535091, -0.1457766593, 0.3629446924, 0.0059732576, 0.0136802616, 0.0033070354, 0.2253976315, 0.0292957239, 0.2606135309, 0.1041987836, -0.3508844674, -0.1931653023, 0.0578507148, 0.1273362637, 0.398671478, -0.2369803339, 0.0844108909, -0.2320036888, 0.2227541655, -0.2696213722, 0.13045156, 0.3413186073, 0.0784644485, 0.1504232883, 0.1456758678, 0.2320813984, -0.0270159859, -0.0238604266, 0.1386246681, 0.3045576513, -0.1886591762, 0.2423168123, 0.0842221826, -0.0891970024, 0.0379267633, 0.2449094057, 0.158885479, 0.378572017, 0.2312902361, -0.1024157107, 0.2956626713, 0.0735330358, -0.0640370697, 0.1487511098, 0.1546941698, 0.1372424215, 0.2593191266, 0.0812721252, -0.0683136135, 0.1351339072, 0.6648651958, -0.0897037089, -0.2023630738, -0.3087386787, -0.0687492788, -0.1276204735, 0.0604704991, -0.0668834448, -0.0928230882, -0.2992691696, -0.3756155074, 0.0479045659, 0.0159338303, 0.0976261348, 0.1030437425, 0.0444531217, -0.1930872351, -0.0323370583, 0.3514099717, 0.281871438, -0.1771688163, 0.229828015, 0.2399115413, -0.3965554535, -0.1253994107, 0.5719942451, 0.4920841753, 0.2387234122, 0.0214505363, 0.223481968, 0.145584166, -0.2435921729, 0.1587707698, 0.0200721994, 0.0140650244, -0.123902753, 0.0497766659, 0.1379078478, -0.0613913685, 0.0984875783, -0.0411081985, 0.3550564647, -0.2144328803, -0.0778073668, -0.3696308732, 0.0789560527, 0.2608808577, 0.0933272839, -0.3634059727, 0.057208579, 0.3693161905, 0.0985733494, -0.016547801, 0.1355313212, 0.077909328, -0.0598511919, 0.0760094076, 0.3370358646, 0.0100277662, -0.1337284595, -0.1390438229, -0.3820652366, 0.2383609861, -0.2254508734, -0.0263435636, 0.3816801012, 0.3424426913, 0.1084227636, 0.1420034468, 0.170090422, -0.4230798483, -0.1864345819, 0.0039459951, -0.4493269622, -0.0621818863, 0.1194181219, 0.0107768942, 0.0882928148, -0.1244893074, -0.1562020779, -0.138951391, 0.073008731, -0.3757880628, -0.0365572982, 0.159863919, -0.3747066855, 0.1987203211, 0.0218825154, 0.3247469366, -0.1163715795, -0.1917252541, -0.1699685752, -0.5526601076, -0.1476726085, 0.4530312419, 0.1776517183, 0.45456478, -0.104246825, -0.5818839669, -0.2607059479, 0.4505542219, -0.0936072692, -0.4287993312, -0.4480636716, 0.2468057424, -0.2083478719, 0.1132244617, -0.1332437992, 0.1204762012, -0.0437508449, 0.3304931223, -0.1141429916, -0.4131429791, 0.5429111719, -0.3857057989, -0.1052615196, -0.0648511723, 0.0815550834, 0.7078866363, 0.2600468099, -0.3298381269, -0.0870915204, 0.2487341762, -0.1293995678, -0.1544713974, 0.2363632768, 0.3838101327, 0.1634610295, -0.1271197349, 0.1128420383, 0.0083056036, -0.0023452067, -0.1084635183, -0.2304190248 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
@albertvillanova It doesn't seem a version incompatibility between the client and server, since the following code is working: ``` from elasticsearch import Elasticsearch es_client = Elasticsearch("http://localhost:9200") dataset.add_elasticsearch_index(column="e1", es_client=es_client, es_index_name="e1_index") ```
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
30
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } @albertvillanova It doesn't seem a version incompatibility between the client and server, since the following code is working: ``` from elasticsearch import Elasticsearch es_client = Elasticsearch("http://localhost:9200") dataset.add_elasticsearch_index(column="e1", es_client=es_client, es_index_name="e1_index") ```
[ -0.2016848028, -0.3632028997, -0.0670635998, -0.1154991388, -0.0156478528, 0.2479979247, 0.2341080308, 0.2877423763, 0.0638613626, 0.0936896205, -0.0358452164, 0.3917693198, -0.0215825103, -0.1523345411, 0.1281494349, -0.230913952, 0.1210855693, 0.0874325931, 0.1187864989, -0.0516795292, -0.2244481593, 0.2019564956, -0.2399698496, -0.1863757521, 0.0260685366, 0.0416943766, -0.2811266482, 0.0370435938, -0.2842973173, -0.5741451383, 0.5656747818, -0.3205860257, -0.0054033566, 0.3283087909, -0.0001174942, 0.2588955164, 0.618111968, -0.0708708167, -0.1365977675, -0.3066092134, -0.2747554779, -0.1212203577, 0.3674223423, -0.3745525777, -0.0447418317, 0.0033116706, 0.0528510213, -0.3770343959, 0.542247355, 0.4741775692, 0.1803840995, 0.1715568602, 0.4112609625, -0.5131979585, 0.1866669208, 0.068609193, -0.186274156, 0.0758130476, -0.0755473524, 0.3040466309, 0.2885065973, 0.1322865635, 0.0819440633, -0.099072732, 0.0131784733, 0.1307260394, 0.13668558, -0.1495371908, -0.2264218777, -0.1947409064, 0.2292090207, -0.1556190997, -0.430876255, 0.1329661608, 0.1585822552, -0.2405285537, 0.1471444964, -0.0151981851, -0.0127602285, 0.1177388728, 0.3022181094, -0.1775995046, -0.3475019634, 0.5092260242, 0.0847174078, 0.1819158494, -0.0808772817, 0.0391934589, 0.1065988392, -0.1730142981, 0.002013131, 0.3552635014, 0.0788009614, 0.2527101636, -0.2984150946, -0.0282035246, 0.1122641191, -0.2461926639, 0.0884467214, -0.1922889352, -0.1135173589, -0.1603744328, 0.5498576164, 0.1669119, -0.0451066568, 0.1012823805, 0.1200138405, 0.1737443954, -0.0490081869, -0.0631368533, 0.2725942433, -0.0562144145, 0.0272712577, -0.3945189416, 0.1915054768, -0.0452346429, 0.4555639327, -0.1275631636, -0.243079409, -0.0585776158, -0.3170815408, -0.0847006887, 0.0372950695, 0.1921497583, 0.2321964353, -0.4963363409, 0.4507415295, 0.3782168031, -0.1459136903, 0.1989921033, -0.2593502998, 0.1355431378, -0.0163130388, -0.0615730844, 0.1132288426, -0.5844497085, 0.4247125685, 0.2325559556, -0.0374884792, 0.0610242672, 0.2157833427, 0.0300101005, -0.2533140481, 0.1263981313, -0.0347202532, -0.2597735226, 0.1583046615, 0.0415073, -0.147116676, -0.0897270069, -0.2763338089, -0.5810436606, -0.6209133267, 0.1893596649, 0.0445201099, -0.0496433228, -0.1614019275, 0.0976205394, 0.2085874677, -0.0586838424, -0.1142823845, -0.1084865853, -0.1068546548, 0.0529944077, 0.2593816221, 0.2752767503, -0.1447115839, -0.210515514, -0.2179666907, 0.3615582287, -0.1270295829, 0.0429476276, -0.3336134255, 0.3303680718, -0.0799251273, 0.0909019783, 0.6981772184, -0.547475338, -0.0536416546, -0.2091813236, -0.0626362711, -0.2886888683, 0.0518558472, -0.0723179355, 0.1295567453, 0.2020721585, 0.0836896971, 0.0188741758, 0.1568586379, -0.1904109269, -0.3010769486, -0.0207560975, -0.2133551687, 0.2194907367, 0.068867743, 0.0743889064, 0.1130571738, -0.0949402526, -0.0289150421, 0.0968275666, -0.0160932541, 0.3530189693, 0.4477268159, 0.0474989042, 0.1451192945, -0.2445709407, -0.1861452162, 0.0887332037, 0.1305079013, 0.4066126049, -0.2754702866, -0.0054869209, -0.455758214, -0.0125354165, -0.1999203116, -0.0404613689, 0.04769025, -0.1804458201, 0.0655059442, 0.0815155208, -0.3663468361, 0.0903835967, -0.224010244, 0.0874164104, -0.4838055074, 0.3780785203, -0.3399510682, -0.2848974168, -0.1005498096, -0.1272819191, 0.1625959724, -0.2289760709, -0.252905637, 0.3170166314, 0.1585818529, -0.1993493885, -0.0094237737, -0.2196143568, 0.068793796, -0.3717125356, -0.160118714, 0.1146564633, 0.0060174139, 0.0075711841, -0.1409526616, 0.0491281301, -0.0276781302, 0.1236102134, -0.1865461469, 0.0244979113, 0.1674750298, 0.0128471889, -0.2148428559, -0.1568403244, 0.0762600526, 0.0110405199, 0.0965335295, -0.2560920119, -0.080621697, -0.2556482852, 0.1009650752, 0.1908092052, 0.0109876869, 0.3315633833, 0.0306277517, -0.0241761282, 0.0200199578, -0.2649320364, 0.5081578493, 0.1863699406, -0.2549332976, 0.1788084209, -0.195134446, 0.0434971601, 0.354672581, 0.0776068494, 0.2782560587, -0.0410642512, 0.2114386261, 0.2027512789, -0.3051765263, -0.4304825664, -0.063166067, 0.2208942026, -0.3955520988, 0.1845765859, 0.0268657431, 0.0299320444, -0.0677972734, 0.0289352741, 0.1407727152, -0.2932100594, -0.0042729308, 0.287345618, -0.0005066379, 0.2911942005, -0.2152978629, 0.1278512478, 0.4924535751, -0.2807106674, -0.1180759966, 0.0015202942, -0.1466071159, 0.0087547284, 0.0437355116, 0.2254187614, 0.253878504, -0.2099377066, 0.0073480736, -0.1291220039, -0.5952879786, 0.0757838711, -0.0007682359, 0.442419827, 0.41091609, 0.1672627777, -0.5368112922, -0.4164038301, 0.3792357445, -0.0472385176, -0.2670030296, 0.0130980387, -0.243299827, -0.1095608622, -0.0610100254, -0.6315125823, -0.1218555719, -0.4427922368, 0.092821151, 0.0293397792, 0.0403709002, 0.4282229245, 0.2001369596, 0.1551536024, -0.0561068729, 0.0692988336, -0.1925012916, -0.0702749714, 0.3183071613, -0.3651521504, -0.2466862649, -0.1141716614, -0.1642147452, 0.268699348, 0.2605502307, -0.0881299004, -0.2447289079, -0.012627353, 0.1801124215, -0.3956001699, 0.1502331197, 0.5313316584, 0.0224417895, 0.0291624386, -0.064780511, -0.2079589218, 0.4208350182, 0.3675065339, 0.1470501423, 0.0251938123, 0.5940634012, -0.0903485194, 0.6092326045, 0.1436548382, -0.2190538943, 0.4205082357, -0.2054324895, 0.1942408383, -0.3542345464, -0.4843164086, -0.2542825937, 0.2180969566, -0.0551192909, -0.2035239339, -0.0939923301, -0.2704293132, -0.1703051925, -0.1012980267, -0.1212012917, -0.0208712742, 0.0046931081, 0.1887578815, 0.3433676958, -0.0443464257, 0.0575900264, -0.3259446025, 0.0016672112, -0.0683993101, 0.2338469625, 0.1319116801, 0.115097791, -0.2470534444, -0.0795558989, -0.1544698477, 0.32566607, 0.116955407, 0.2916451693, 0.1058446616, 0.0895662904, 0.144397378, 0.2772260904, 0.3966251612, -0.2045558095, -0.4413913786, 0.0668893754, 0.1947993189, -0.7750585675, -0.0795959532, -0.0787117779, 0.418264538, 0.3315995038, 0.4458384216, -0.2620029747, 0.004422274, 0.3199791014, -0.0602933988, 0.1058493555, -0.1303464025, -0.3335364163, -0.5129055381, -0.134139657, 0.370028913, 0.236570254, 0.1251823753, 0.507093668, 0.0274128802, -0.3214965463, 0.0636708885, -0.2171640992, 0.1923188716, 0.3074098825, -0.009890262, 0.1243944615, 0.2359701693, 0.1119829491, 0.3207924366, 0.2626963556, -0.0883229747, -0.0588469356, 0.0378892608, -0.1546802074, 0.224717319, 0.2169944793, 0.0971576869, 0.0400169492, -0.3238067925, 0.0872084349, 0.0957222357, -0.1948005259, 0.5735220909, -0.0429390147, -0.0428069718, -0.3231019676, 0.4523455203, -0.1763374358, -0.0094864406, 0.4108851254, 0.5747951865, -0.3028597534, 0.6433289647, 0.0456538796, 0.7333818078, 0.3419997692, -0.0309456382, 0.5441730618, 0.275074482, 0.4632301927, 0.2398340851, 0.3763032556, -0.1720002741, -0.0170595534, 0.025094185, -0.3377427161, 0.1853721738, -0.1375250965, -0.4986565411, 0.1609333009, -0.3430401087, 0.3382045627, -0.0463482402, 0.2973492444, 0.0624627694, -0.1024165601, -0.4516428411, 0.1494491398, 0.1401234269, 0.233862713, -0.0219748579, -0.1225460395, -0.1575864702, -0.2577483952, -0.214915961, 0.0575772785, -0.0520628318, 0.7435444593, -0.073839128, 0.042595461, 0.2508414984, 0.1905160099, 0.1567668617, 0.0009728245, -0.1411322355, 0.1702787131, 0.1179479435, -0.2572279274, 0.1557989568, -0.1950740814, 0.1639709622, -0.1295972764, -0.3142545521, 0.0328380093, -0.0778963417, -0.5886421204, -0.1574214846, 0.0573742054, -0.328889817, -0.3205674291, -0.3472573161, 0.0106518585, -0.1085042655, -0.1940377951, 0.1245110631, 0.0390042551, -0.0308055039, 0.1210401878, 0.1650292128, -0.2093928754, 0.0741488487, 0.4086773396, -0.0280675162, 0.0270404685, 0.5184391141, -0.1926459521, -0.2022656947, -0.0208795443, -0.0876592994, 0.126249671, -0.3552738726, -0.0897452161, -0.1950103492, 0.101148136, 0.1576727778, 0.0477471277, 0.279578656, 0.2151694298, 0.0041167382, -0.0937474966, 0.0672172755, 0.1836231947, 0.117528826, 0.1098426357, -0.2728894353, 0.1238470823, -0.0096152239, -0.2254436016, -0.2934090495, 0.1597344875, 0.0452329554, 0.1199346632, -0.0889204964, -0.0278152451, 0.3200848103, -0.2754374146, 0.1265542507, 0.0370215587, -0.227404654, -0.1628856063, -0.2106008679, 0.1217701808, -0.0909653604, -0.0027845856, 0.0258365404, -0.3257215917, -0.2259399742, -0.1212367639, -0.2047732472, 0.2418257594, 0.1094351411, -0.1233031154, 0.0161564425, -0.2745510638, 0.194089815, -0.015984688, 0.0197212361, -0.0510535091, -0.1457766593, 0.3629446924, 0.0059732576, 0.0136802616, 0.0033070354, 0.2253976315, 0.0292957239, 0.2606135309, 0.1041987836, -0.3508844674, -0.1931653023, 0.0578507148, 0.1273362637, 0.398671478, -0.2369803339, 0.0844108909, -0.2320036888, 0.2227541655, -0.2696213722, 0.13045156, 0.3413186073, 0.0784644485, 0.1504232883, 0.1456758678, 0.2320813984, -0.0270159859, -0.0238604266, 0.1386246681, 0.3045576513, -0.1886591762, 0.2423168123, 0.0842221826, -0.0891970024, 0.0379267633, 0.2449094057, 0.158885479, 0.378572017, 0.2312902361, -0.1024157107, 0.2956626713, 0.0735330358, -0.0640370697, 0.1487511098, 0.1546941698, 0.1372424215, 0.2593191266, 0.0812721252, -0.0683136135, 0.1351339072, 0.6648651958, -0.0897037089, -0.2023630738, -0.3087386787, -0.0687492788, -0.1276204735, 0.0604704991, -0.0668834448, -0.0928230882, -0.2992691696, -0.3756155074, 0.0479045659, 0.0159338303, 0.0976261348, 0.1030437425, 0.0444531217, -0.1930872351, -0.0323370583, 0.3514099717, 0.281871438, -0.1771688163, 0.229828015, 0.2399115413, -0.3965554535, -0.1253994107, 0.5719942451, 0.4920841753, 0.2387234122, 0.0214505363, 0.223481968, 0.145584166, -0.2435921729, 0.1587707698, 0.0200721994, 0.0140650244, -0.123902753, 0.0497766659, 0.1379078478, -0.0613913685, 0.0984875783, -0.0411081985, 0.3550564647, -0.2144328803, -0.0778073668, -0.3696308732, 0.0789560527, 0.2608808577, 0.0933272839, -0.3634059727, 0.057208579, 0.3693161905, 0.0985733494, -0.016547801, 0.1355313212, 0.077909328, -0.0598511919, 0.0760094076, 0.3370358646, 0.0100277662, -0.1337284595, -0.1390438229, -0.3820652366, 0.2383609861, -0.2254508734, -0.0263435636, 0.3816801012, 0.3424426913, 0.1084227636, 0.1420034468, 0.170090422, -0.4230798483, -0.1864345819, 0.0039459951, -0.4493269622, -0.0621818863, 0.1194181219, 0.0107768942, 0.0882928148, -0.1244893074, -0.1562020779, -0.138951391, 0.073008731, -0.3757880628, -0.0365572982, 0.159863919, -0.3747066855, 0.1987203211, 0.0218825154, 0.3247469366, -0.1163715795, -0.1917252541, -0.1699685752, -0.5526601076, -0.1476726085, 0.4530312419, 0.1776517183, 0.45456478, -0.104246825, -0.5818839669, -0.2607059479, 0.4505542219, -0.0936072692, -0.4287993312, -0.4480636716, 0.2468057424, -0.2083478719, 0.1132244617, -0.1332437992, 0.1204762012, -0.0437508449, 0.3304931223, -0.1141429916, -0.4131429791, 0.5429111719, -0.3857057989, -0.1052615196, -0.0648511723, 0.0815550834, 0.7078866363, 0.2600468099, -0.3298381269, -0.0870915204, 0.2487341762, -0.1293995678, -0.1544713974, 0.2363632768, 0.3838101327, 0.1634610295, -0.1271197349, 0.1128420383, 0.0083056036, -0.0023452067, -0.1084635183, -0.2304190248 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
Hi @amirj, I really think it is a version incompatibility issue between your Elasticsearch client and server: - Your Elasticsearch server NodeConfig expects a positional argument named 'scheme' - Whereas your Elasticsearch client passes only keyword arguments: `NodeConfig(**options)` Moreover: - Looking at your stack trace, I deduce you are using Elasticsearch client **"8"** major version: - the Elasticsearch file "elasticsearch/_sync/client/utils.py" was created in version "8.0.0a1": https://github.com/elastic/elasticsearch-py/commit/21fa13b0f03b7b27ace9e19a1f763d40bd2e2ba4 - you can check your Elasticsearch client version by running this Python code: ```python import elasticsearch print(elasticsearch.__version__) ``` - However, in the *Environment info*, you informed that the major version of your Eleasticsearch cluster server is **"7"** ("7.10.2-SNAPSHOT") Could you please align the Elasticsearch client/server major versions (as pointed out in Elasticsearch docs) and check if the problem persists?
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
125
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } Hi @amirj, I really think it is a version incompatibility issue between your Elasticsearch client and server: - Your Elasticsearch server NodeConfig expects a positional argument named 'scheme' - Whereas your Elasticsearch client passes only keyword arguments: `NodeConfig(**options)` Moreover: - Looking at your stack trace, I deduce you are using Elasticsearch client **"8"** major version: - the Elasticsearch file "elasticsearch/_sync/client/utils.py" was created in version "8.0.0a1": https://github.com/elastic/elasticsearch-py/commit/21fa13b0f03b7b27ace9e19a1f763d40bd2e2ba4 - you can check your Elasticsearch client version by running this Python code: ```python import elasticsearch print(elasticsearch.__version__) ``` - However, in the *Environment info*, you informed that the major version of your Eleasticsearch cluster server is **"7"** ("7.10.2-SNAPSHOT") Could you please align the Elasticsearch client/server major versions (as pointed out in Elasticsearch docs) and check if the problem persists?
[ -0.2016848028, -0.3632028997, -0.0670635998, -0.1154991388, -0.0156478528, 0.2479979247, 0.2341080308, 0.2877423763, 0.0638613626, 0.0936896205, -0.0358452164, 0.3917693198, -0.0215825103, -0.1523345411, 0.1281494349, -0.230913952, 0.1210855693, 0.0874325931, 0.1187864989, -0.0516795292, -0.2244481593, 0.2019564956, -0.2399698496, -0.1863757521, 0.0260685366, 0.0416943766, -0.2811266482, 0.0370435938, -0.2842973173, -0.5741451383, 0.5656747818, -0.3205860257, -0.0054033566, 0.3283087909, -0.0001174942, 0.2588955164, 0.618111968, -0.0708708167, -0.1365977675, -0.3066092134, -0.2747554779, -0.1212203577, 0.3674223423, -0.3745525777, -0.0447418317, 0.0033116706, 0.0528510213, -0.3770343959, 0.542247355, 0.4741775692, 0.1803840995, 0.1715568602, 0.4112609625, -0.5131979585, 0.1866669208, 0.068609193, -0.186274156, 0.0758130476, -0.0755473524, 0.3040466309, 0.2885065973, 0.1322865635, 0.0819440633, -0.099072732, 0.0131784733, 0.1307260394, 0.13668558, -0.1495371908, -0.2264218777, -0.1947409064, 0.2292090207, -0.1556190997, -0.430876255, 0.1329661608, 0.1585822552, -0.2405285537, 0.1471444964, -0.0151981851, -0.0127602285, 0.1177388728, 0.3022181094, -0.1775995046, -0.3475019634, 0.5092260242, 0.0847174078, 0.1819158494, -0.0808772817, 0.0391934589, 0.1065988392, -0.1730142981, 0.002013131, 0.3552635014, 0.0788009614, 0.2527101636, -0.2984150946, -0.0282035246, 0.1122641191, -0.2461926639, 0.0884467214, -0.1922889352, -0.1135173589, -0.1603744328, 0.5498576164, 0.1669119, -0.0451066568, 0.1012823805, 0.1200138405, 0.1737443954, -0.0490081869, -0.0631368533, 0.2725942433, -0.0562144145, 0.0272712577, -0.3945189416, 0.1915054768, -0.0452346429, 0.4555639327, -0.1275631636, -0.243079409, -0.0585776158, -0.3170815408, -0.0847006887, 0.0372950695, 0.1921497583, 0.2321964353, -0.4963363409, 0.4507415295, 0.3782168031, -0.1459136903, 0.1989921033, -0.2593502998, 0.1355431378, -0.0163130388, -0.0615730844, 0.1132288426, -0.5844497085, 0.4247125685, 0.2325559556, -0.0374884792, 0.0610242672, 0.2157833427, 0.0300101005, -0.2533140481, 0.1263981313, -0.0347202532, -0.2597735226, 0.1583046615, 0.0415073, -0.147116676, -0.0897270069, -0.2763338089, -0.5810436606, -0.6209133267, 0.1893596649, 0.0445201099, -0.0496433228, -0.1614019275, 0.0976205394, 0.2085874677, -0.0586838424, -0.1142823845, -0.1084865853, -0.1068546548, 0.0529944077, 0.2593816221, 0.2752767503, -0.1447115839, -0.210515514, -0.2179666907, 0.3615582287, -0.1270295829, 0.0429476276, -0.3336134255, 0.3303680718, -0.0799251273, 0.0909019783, 0.6981772184, -0.547475338, -0.0536416546, -0.2091813236, -0.0626362711, -0.2886888683, 0.0518558472, -0.0723179355, 0.1295567453, 0.2020721585, 0.0836896971, 0.0188741758, 0.1568586379, -0.1904109269, -0.3010769486, -0.0207560975, -0.2133551687, 0.2194907367, 0.068867743, 0.0743889064, 0.1130571738, -0.0949402526, -0.0289150421, 0.0968275666, -0.0160932541, 0.3530189693, 0.4477268159, 0.0474989042, 0.1451192945, -0.2445709407, -0.1861452162, 0.0887332037, 0.1305079013, 0.4066126049, -0.2754702866, -0.0054869209, -0.455758214, -0.0125354165, -0.1999203116, -0.0404613689, 0.04769025, -0.1804458201, 0.0655059442, 0.0815155208, -0.3663468361, 0.0903835967, -0.224010244, 0.0874164104, -0.4838055074, 0.3780785203, -0.3399510682, -0.2848974168, -0.1005498096, -0.1272819191, 0.1625959724, -0.2289760709, -0.252905637, 0.3170166314, 0.1585818529, -0.1993493885, -0.0094237737, -0.2196143568, 0.068793796, -0.3717125356, -0.160118714, 0.1146564633, 0.0060174139, 0.0075711841, -0.1409526616, 0.0491281301, -0.0276781302, 0.1236102134, -0.1865461469, 0.0244979113, 0.1674750298, 0.0128471889, -0.2148428559, -0.1568403244, 0.0762600526, 0.0110405199, 0.0965335295, -0.2560920119, -0.080621697, -0.2556482852, 0.1009650752, 0.1908092052, 0.0109876869, 0.3315633833, 0.0306277517, -0.0241761282, 0.0200199578, -0.2649320364, 0.5081578493, 0.1863699406, -0.2549332976, 0.1788084209, -0.195134446, 0.0434971601, 0.354672581, 0.0776068494, 0.2782560587, -0.0410642512, 0.2114386261, 0.2027512789, -0.3051765263, -0.4304825664, -0.063166067, 0.2208942026, -0.3955520988, 0.1845765859, 0.0268657431, 0.0299320444, -0.0677972734, 0.0289352741, 0.1407727152, -0.2932100594, -0.0042729308, 0.287345618, -0.0005066379, 0.2911942005, -0.2152978629, 0.1278512478, 0.4924535751, -0.2807106674, -0.1180759966, 0.0015202942, -0.1466071159, 0.0087547284, 0.0437355116, 0.2254187614, 0.253878504, -0.2099377066, 0.0073480736, -0.1291220039, -0.5952879786, 0.0757838711, -0.0007682359, 0.442419827, 0.41091609, 0.1672627777, -0.5368112922, -0.4164038301, 0.3792357445, -0.0472385176, -0.2670030296, 0.0130980387, -0.243299827, -0.1095608622, -0.0610100254, -0.6315125823, -0.1218555719, -0.4427922368, 0.092821151, 0.0293397792, 0.0403709002, 0.4282229245, 0.2001369596, 0.1551536024, -0.0561068729, 0.0692988336, -0.1925012916, -0.0702749714, 0.3183071613, -0.3651521504, -0.2466862649, -0.1141716614, -0.1642147452, 0.268699348, 0.2605502307, -0.0881299004, -0.2447289079, -0.012627353, 0.1801124215, -0.3956001699, 0.1502331197, 0.5313316584, 0.0224417895, 0.0291624386, -0.064780511, -0.2079589218, 0.4208350182, 0.3675065339, 0.1470501423, 0.0251938123, 0.5940634012, -0.0903485194, 0.6092326045, 0.1436548382, -0.2190538943, 0.4205082357, -0.2054324895, 0.1942408383, -0.3542345464, -0.4843164086, -0.2542825937, 0.2180969566, -0.0551192909, -0.2035239339, -0.0939923301, -0.2704293132, -0.1703051925, -0.1012980267, -0.1212012917, -0.0208712742, 0.0046931081, 0.1887578815, 0.3433676958, -0.0443464257, 0.0575900264, -0.3259446025, 0.0016672112, -0.0683993101, 0.2338469625, 0.1319116801, 0.115097791, -0.2470534444, -0.0795558989, -0.1544698477, 0.32566607, 0.116955407, 0.2916451693, 0.1058446616, 0.0895662904, 0.144397378, 0.2772260904, 0.3966251612, -0.2045558095, -0.4413913786, 0.0668893754, 0.1947993189, -0.7750585675, -0.0795959532, -0.0787117779, 0.418264538, 0.3315995038, 0.4458384216, -0.2620029747, 0.004422274, 0.3199791014, -0.0602933988, 0.1058493555, -0.1303464025, -0.3335364163, -0.5129055381, -0.134139657, 0.370028913, 0.236570254, 0.1251823753, 0.507093668, 0.0274128802, -0.3214965463, 0.0636708885, -0.2171640992, 0.1923188716, 0.3074098825, -0.009890262, 0.1243944615, 0.2359701693, 0.1119829491, 0.3207924366, 0.2626963556, -0.0883229747, -0.0588469356, 0.0378892608, -0.1546802074, 0.224717319, 0.2169944793, 0.0971576869, 0.0400169492, -0.3238067925, 0.0872084349, 0.0957222357, -0.1948005259, 0.5735220909, -0.0429390147, -0.0428069718, -0.3231019676, 0.4523455203, -0.1763374358, -0.0094864406, 0.4108851254, 0.5747951865, -0.3028597534, 0.6433289647, 0.0456538796, 0.7333818078, 0.3419997692, -0.0309456382, 0.5441730618, 0.275074482, 0.4632301927, 0.2398340851, 0.3763032556, -0.1720002741, -0.0170595534, 0.025094185, -0.3377427161, 0.1853721738, -0.1375250965, -0.4986565411, 0.1609333009, -0.3430401087, 0.3382045627, -0.0463482402, 0.2973492444, 0.0624627694, -0.1024165601, -0.4516428411, 0.1494491398, 0.1401234269, 0.233862713, -0.0219748579, -0.1225460395, -0.1575864702, -0.2577483952, -0.214915961, 0.0575772785, -0.0520628318, 0.7435444593, -0.073839128, 0.042595461, 0.2508414984, 0.1905160099, 0.1567668617, 0.0009728245, -0.1411322355, 0.1702787131, 0.1179479435, -0.2572279274, 0.1557989568, -0.1950740814, 0.1639709622, -0.1295972764, -0.3142545521, 0.0328380093, -0.0778963417, -0.5886421204, -0.1574214846, 0.0573742054, -0.328889817, -0.3205674291, -0.3472573161, 0.0106518585, -0.1085042655, -0.1940377951, 0.1245110631, 0.0390042551, -0.0308055039, 0.1210401878, 0.1650292128, -0.2093928754, 0.0741488487, 0.4086773396, -0.0280675162, 0.0270404685, 0.5184391141, -0.1926459521, -0.2022656947, -0.0208795443, -0.0876592994, 0.126249671, -0.3552738726, -0.0897452161, -0.1950103492, 0.101148136, 0.1576727778, 0.0477471277, 0.279578656, 0.2151694298, 0.0041167382, -0.0937474966, 0.0672172755, 0.1836231947, 0.117528826, 0.1098426357, -0.2728894353, 0.1238470823, -0.0096152239, -0.2254436016, -0.2934090495, 0.1597344875, 0.0452329554, 0.1199346632, -0.0889204964, -0.0278152451, 0.3200848103, -0.2754374146, 0.1265542507, 0.0370215587, -0.227404654, -0.1628856063, -0.2106008679, 0.1217701808, -0.0909653604, -0.0027845856, 0.0258365404, -0.3257215917, -0.2259399742, -0.1212367639, -0.2047732472, 0.2418257594, 0.1094351411, -0.1233031154, 0.0161564425, -0.2745510638, 0.194089815, -0.015984688, 0.0197212361, -0.0510535091, -0.1457766593, 0.3629446924, 0.0059732576, 0.0136802616, 0.0033070354, 0.2253976315, 0.0292957239, 0.2606135309, 0.1041987836, -0.3508844674, -0.1931653023, 0.0578507148, 0.1273362637, 0.398671478, -0.2369803339, 0.0844108909, -0.2320036888, 0.2227541655, -0.2696213722, 0.13045156, 0.3413186073, 0.0784644485, 0.1504232883, 0.1456758678, 0.2320813984, -0.0270159859, -0.0238604266, 0.1386246681, 0.3045576513, -0.1886591762, 0.2423168123, 0.0842221826, -0.0891970024, 0.0379267633, 0.2449094057, 0.158885479, 0.378572017, 0.2312902361, -0.1024157107, 0.2956626713, 0.0735330358, -0.0640370697, 0.1487511098, 0.1546941698, 0.1372424215, 0.2593191266, 0.0812721252, -0.0683136135, 0.1351339072, 0.6648651958, -0.0897037089, -0.2023630738, -0.3087386787, -0.0687492788, -0.1276204735, 0.0604704991, -0.0668834448, -0.0928230882, -0.2992691696, -0.3756155074, 0.0479045659, 0.0159338303, 0.0976261348, 0.1030437425, 0.0444531217, -0.1930872351, -0.0323370583, 0.3514099717, 0.281871438, -0.1771688163, 0.229828015, 0.2399115413, -0.3965554535, -0.1253994107, 0.5719942451, 0.4920841753, 0.2387234122, 0.0214505363, 0.223481968, 0.145584166, -0.2435921729, 0.1587707698, 0.0200721994, 0.0140650244, -0.123902753, 0.0497766659, 0.1379078478, -0.0613913685, 0.0984875783, -0.0411081985, 0.3550564647, -0.2144328803, -0.0778073668, -0.3696308732, 0.0789560527, 0.2608808577, 0.0933272839, -0.3634059727, 0.057208579, 0.3693161905, 0.0985733494, -0.016547801, 0.1355313212, 0.077909328, -0.0598511919, 0.0760094076, 0.3370358646, 0.0100277662, -0.1337284595, -0.1390438229, -0.3820652366, 0.2383609861, -0.2254508734, -0.0263435636, 0.3816801012, 0.3424426913, 0.1084227636, 0.1420034468, 0.170090422, -0.4230798483, -0.1864345819, 0.0039459951, -0.4493269622, -0.0621818863, 0.1194181219, 0.0107768942, 0.0882928148, -0.1244893074, -0.1562020779, -0.138951391, 0.073008731, -0.3757880628, -0.0365572982, 0.159863919, -0.3747066855, 0.1987203211, 0.0218825154, 0.3247469366, -0.1163715795, -0.1917252541, -0.1699685752, -0.5526601076, -0.1476726085, 0.4530312419, 0.1776517183, 0.45456478, -0.104246825, -0.5818839669, -0.2607059479, 0.4505542219, -0.0936072692, -0.4287993312, -0.4480636716, 0.2468057424, -0.2083478719, 0.1132244617, -0.1332437992, 0.1204762012, -0.0437508449, 0.3304931223, -0.1141429916, -0.4131429791, 0.5429111719, -0.3857057989, -0.1052615196, -0.0648511723, 0.0815550834, 0.7078866363, 0.2600468099, -0.3298381269, -0.0870915204, 0.2487341762, -0.1293995678, -0.1544713974, 0.2363632768, 0.3838101327, 0.1634610295, -0.1271197349, 0.1128420383, 0.0083056036, -0.0023452067, -0.1084635183, -0.2304190248 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
``` from elasticsearch import Elasticsearch es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) ``` ``` TypeError Traceback (most recent call last) <ipython-input-8-675c6ffe5293> in <module> 1 #es = Elasticsearch([{'host':'localhost', 'port':9200}]) 2 from elasticsearch import Elasticsearch ----> 3 es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ```
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
179
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } ``` from elasticsearch import Elasticsearch es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) ``` ``` TypeError Traceback (most recent call last) <ipython-input-8-675c6ffe5293> in <module> 1 #es = Elasticsearch([{'host':'localhost', 'port':9200}]) 2 from elasticsearch import Elasticsearch ----> 3 es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ```
[ -0.2016848028, -0.3632028997, -0.0670635998, -0.1154991388, -0.0156478528, 0.2479979247, 0.2341080308, 0.2877423763, 0.0638613626, 0.0936896205, -0.0358452164, 0.3917693198, -0.0215825103, -0.1523345411, 0.1281494349, -0.230913952, 0.1210855693, 0.0874325931, 0.1187864989, -0.0516795292, -0.2244481593, 0.2019564956, -0.2399698496, -0.1863757521, 0.0260685366, 0.0416943766, -0.2811266482, 0.0370435938, -0.2842973173, -0.5741451383, 0.5656747818, -0.3205860257, -0.0054033566, 0.3283087909, -0.0001174942, 0.2588955164, 0.618111968, -0.0708708167, -0.1365977675, -0.3066092134, -0.2747554779, -0.1212203577, 0.3674223423, -0.3745525777, -0.0447418317, 0.0033116706, 0.0528510213, -0.3770343959, 0.542247355, 0.4741775692, 0.1803840995, 0.1715568602, 0.4112609625, -0.5131979585, 0.1866669208, 0.068609193, -0.186274156, 0.0758130476, -0.0755473524, 0.3040466309, 0.2885065973, 0.1322865635, 0.0819440633, -0.099072732, 0.0131784733, 0.1307260394, 0.13668558, -0.1495371908, -0.2264218777, -0.1947409064, 0.2292090207, -0.1556190997, -0.430876255, 0.1329661608, 0.1585822552, -0.2405285537, 0.1471444964, -0.0151981851, -0.0127602285, 0.1177388728, 0.3022181094, -0.1775995046, -0.3475019634, 0.5092260242, 0.0847174078, 0.1819158494, -0.0808772817, 0.0391934589, 0.1065988392, -0.1730142981, 0.002013131, 0.3552635014, 0.0788009614, 0.2527101636, -0.2984150946, -0.0282035246, 0.1122641191, -0.2461926639, 0.0884467214, -0.1922889352, -0.1135173589, -0.1603744328, 0.5498576164, 0.1669119, -0.0451066568, 0.1012823805, 0.1200138405, 0.1737443954, -0.0490081869, -0.0631368533, 0.2725942433, -0.0562144145, 0.0272712577, -0.3945189416, 0.1915054768, -0.0452346429, 0.4555639327, -0.1275631636, -0.243079409, -0.0585776158, -0.3170815408, -0.0847006887, 0.0372950695, 0.1921497583, 0.2321964353, -0.4963363409, 0.4507415295, 0.3782168031, -0.1459136903, 0.1989921033, -0.2593502998, 0.1355431378, -0.0163130388, -0.0615730844, 0.1132288426, -0.5844497085, 0.4247125685, 0.2325559556, -0.0374884792, 0.0610242672, 0.2157833427, 0.0300101005, -0.2533140481, 0.1263981313, -0.0347202532, -0.2597735226, 0.1583046615, 0.0415073, -0.147116676, -0.0897270069, -0.2763338089, -0.5810436606, -0.6209133267, 0.1893596649, 0.0445201099, -0.0496433228, -0.1614019275, 0.0976205394, 0.2085874677, -0.0586838424, -0.1142823845, -0.1084865853, -0.1068546548, 0.0529944077, 0.2593816221, 0.2752767503, -0.1447115839, -0.210515514, -0.2179666907, 0.3615582287, -0.1270295829, 0.0429476276, -0.3336134255, 0.3303680718, -0.0799251273, 0.0909019783, 0.6981772184, -0.547475338, -0.0536416546, -0.2091813236, -0.0626362711, -0.2886888683, 0.0518558472, -0.0723179355, 0.1295567453, 0.2020721585, 0.0836896971, 0.0188741758, 0.1568586379, -0.1904109269, -0.3010769486, -0.0207560975, -0.2133551687, 0.2194907367, 0.068867743, 0.0743889064, 0.1130571738, -0.0949402526, -0.0289150421, 0.0968275666, -0.0160932541, 0.3530189693, 0.4477268159, 0.0474989042, 0.1451192945, -0.2445709407, -0.1861452162, 0.0887332037, 0.1305079013, 0.4066126049, -0.2754702866, -0.0054869209, -0.455758214, -0.0125354165, -0.1999203116, -0.0404613689, 0.04769025, -0.1804458201, 0.0655059442, 0.0815155208, -0.3663468361, 0.0903835967, -0.224010244, 0.0874164104, -0.4838055074, 0.3780785203, -0.3399510682, -0.2848974168, -0.1005498096, -0.1272819191, 0.1625959724, -0.2289760709, -0.252905637, 0.3170166314, 0.1585818529, -0.1993493885, -0.0094237737, -0.2196143568, 0.068793796, -0.3717125356, -0.160118714, 0.1146564633, 0.0060174139, 0.0075711841, -0.1409526616, 0.0491281301, -0.0276781302, 0.1236102134, -0.1865461469, 0.0244979113, 0.1674750298, 0.0128471889, -0.2148428559, -0.1568403244, 0.0762600526, 0.0110405199, 0.0965335295, -0.2560920119, -0.080621697, -0.2556482852, 0.1009650752, 0.1908092052, 0.0109876869, 0.3315633833, 0.0306277517, -0.0241761282, 0.0200199578, -0.2649320364, 0.5081578493, 0.1863699406, -0.2549332976, 0.1788084209, -0.195134446, 0.0434971601, 0.354672581, 0.0776068494, 0.2782560587, -0.0410642512, 0.2114386261, 0.2027512789, -0.3051765263, -0.4304825664, -0.063166067, 0.2208942026, -0.3955520988, 0.1845765859, 0.0268657431, 0.0299320444, -0.0677972734, 0.0289352741, 0.1407727152, -0.2932100594, -0.0042729308, 0.287345618, -0.0005066379, 0.2911942005, -0.2152978629, 0.1278512478, 0.4924535751, -0.2807106674, -0.1180759966, 0.0015202942, -0.1466071159, 0.0087547284, 0.0437355116, 0.2254187614, 0.253878504, -0.2099377066, 0.0073480736, -0.1291220039, -0.5952879786, 0.0757838711, -0.0007682359, 0.442419827, 0.41091609, 0.1672627777, -0.5368112922, -0.4164038301, 0.3792357445, -0.0472385176, -0.2670030296, 0.0130980387, -0.243299827, -0.1095608622, -0.0610100254, -0.6315125823, -0.1218555719, -0.4427922368, 0.092821151, 0.0293397792, 0.0403709002, 0.4282229245, 0.2001369596, 0.1551536024, -0.0561068729, 0.0692988336, -0.1925012916, -0.0702749714, 0.3183071613, -0.3651521504, -0.2466862649, -0.1141716614, -0.1642147452, 0.268699348, 0.2605502307, -0.0881299004, -0.2447289079, -0.012627353, 0.1801124215, -0.3956001699, 0.1502331197, 0.5313316584, 0.0224417895, 0.0291624386, -0.064780511, -0.2079589218, 0.4208350182, 0.3675065339, 0.1470501423, 0.0251938123, 0.5940634012, -0.0903485194, 0.6092326045, 0.1436548382, -0.2190538943, 0.4205082357, -0.2054324895, 0.1942408383, -0.3542345464, -0.4843164086, -0.2542825937, 0.2180969566, -0.0551192909, -0.2035239339, -0.0939923301, -0.2704293132, -0.1703051925, -0.1012980267, -0.1212012917, -0.0208712742, 0.0046931081, 0.1887578815, 0.3433676958, -0.0443464257, 0.0575900264, -0.3259446025, 0.0016672112, -0.0683993101, 0.2338469625, 0.1319116801, 0.115097791, -0.2470534444, -0.0795558989, -0.1544698477, 0.32566607, 0.116955407, 0.2916451693, 0.1058446616, 0.0895662904, 0.144397378, 0.2772260904, 0.3966251612, -0.2045558095, -0.4413913786, 0.0668893754, 0.1947993189, -0.7750585675, -0.0795959532, -0.0787117779, 0.418264538, 0.3315995038, 0.4458384216, -0.2620029747, 0.004422274, 0.3199791014, -0.0602933988, 0.1058493555, -0.1303464025, -0.3335364163, -0.5129055381, -0.134139657, 0.370028913, 0.236570254, 0.1251823753, 0.507093668, 0.0274128802, -0.3214965463, 0.0636708885, -0.2171640992, 0.1923188716, 0.3074098825, -0.009890262, 0.1243944615, 0.2359701693, 0.1119829491, 0.3207924366, 0.2626963556, -0.0883229747, -0.0588469356, 0.0378892608, -0.1546802074, 0.224717319, 0.2169944793, 0.0971576869, 0.0400169492, -0.3238067925, 0.0872084349, 0.0957222357, -0.1948005259, 0.5735220909, -0.0429390147, -0.0428069718, -0.3231019676, 0.4523455203, -0.1763374358, -0.0094864406, 0.4108851254, 0.5747951865, -0.3028597534, 0.6433289647, 0.0456538796, 0.7333818078, 0.3419997692, -0.0309456382, 0.5441730618, 0.275074482, 0.4632301927, 0.2398340851, 0.3763032556, -0.1720002741, -0.0170595534, 0.025094185, -0.3377427161, 0.1853721738, -0.1375250965, -0.4986565411, 0.1609333009, -0.3430401087, 0.3382045627, -0.0463482402, 0.2973492444, 0.0624627694, -0.1024165601, -0.4516428411, 0.1494491398, 0.1401234269, 0.233862713, -0.0219748579, -0.1225460395, -0.1575864702, -0.2577483952, -0.214915961, 0.0575772785, -0.0520628318, 0.7435444593, -0.073839128, 0.042595461, 0.2508414984, 0.1905160099, 0.1567668617, 0.0009728245, -0.1411322355, 0.1702787131, 0.1179479435, -0.2572279274, 0.1557989568, -0.1950740814, 0.1639709622, -0.1295972764, -0.3142545521, 0.0328380093, -0.0778963417, -0.5886421204, -0.1574214846, 0.0573742054, -0.328889817, -0.3205674291, -0.3472573161, 0.0106518585, -0.1085042655, -0.1940377951, 0.1245110631, 0.0390042551, -0.0308055039, 0.1210401878, 0.1650292128, -0.2093928754, 0.0741488487, 0.4086773396, -0.0280675162, 0.0270404685, 0.5184391141, -0.1926459521, -0.2022656947, -0.0208795443, -0.0876592994, 0.126249671, -0.3552738726, -0.0897452161, -0.1950103492, 0.101148136, 0.1576727778, 0.0477471277, 0.279578656, 0.2151694298, 0.0041167382, -0.0937474966, 0.0672172755, 0.1836231947, 0.117528826, 0.1098426357, -0.2728894353, 0.1238470823, -0.0096152239, -0.2254436016, -0.2934090495, 0.1597344875, 0.0452329554, 0.1199346632, -0.0889204964, -0.0278152451, 0.3200848103, -0.2754374146, 0.1265542507, 0.0370215587, -0.227404654, -0.1628856063, -0.2106008679, 0.1217701808, -0.0909653604, -0.0027845856, 0.0258365404, -0.3257215917, -0.2259399742, -0.1212367639, -0.2047732472, 0.2418257594, 0.1094351411, -0.1233031154, 0.0161564425, -0.2745510638, 0.194089815, -0.015984688, 0.0197212361, -0.0510535091, -0.1457766593, 0.3629446924, 0.0059732576, 0.0136802616, 0.0033070354, 0.2253976315, 0.0292957239, 0.2606135309, 0.1041987836, -0.3508844674, -0.1931653023, 0.0578507148, 0.1273362637, 0.398671478, -0.2369803339, 0.0844108909, -0.2320036888, 0.2227541655, -0.2696213722, 0.13045156, 0.3413186073, 0.0784644485, 0.1504232883, 0.1456758678, 0.2320813984, -0.0270159859, -0.0238604266, 0.1386246681, 0.3045576513, -0.1886591762, 0.2423168123, 0.0842221826, -0.0891970024, 0.0379267633, 0.2449094057, 0.158885479, 0.378572017, 0.2312902361, -0.1024157107, 0.2956626713, 0.0735330358, -0.0640370697, 0.1487511098, 0.1546941698, 0.1372424215, 0.2593191266, 0.0812721252, -0.0683136135, 0.1351339072, 0.6648651958, -0.0897037089, -0.2023630738, -0.3087386787, -0.0687492788, -0.1276204735, 0.0604704991, -0.0668834448, -0.0928230882, -0.2992691696, -0.3756155074, 0.0479045659, 0.0159338303, 0.0976261348, 0.1030437425, 0.0444531217, -0.1930872351, -0.0323370583, 0.3514099717, 0.281871438, -0.1771688163, 0.229828015, 0.2399115413, -0.3965554535, -0.1253994107, 0.5719942451, 0.4920841753, 0.2387234122, 0.0214505363, 0.223481968, 0.145584166, -0.2435921729, 0.1587707698, 0.0200721994, 0.0140650244, -0.123902753, 0.0497766659, 0.1379078478, -0.0613913685, 0.0984875783, -0.0411081985, 0.3550564647, -0.2144328803, -0.0778073668, -0.3696308732, 0.0789560527, 0.2608808577, 0.0933272839, -0.3634059727, 0.057208579, 0.3693161905, 0.0985733494, -0.016547801, 0.1355313212, 0.077909328, -0.0598511919, 0.0760094076, 0.3370358646, 0.0100277662, -0.1337284595, -0.1390438229, -0.3820652366, 0.2383609861, -0.2254508734, -0.0263435636, 0.3816801012, 0.3424426913, 0.1084227636, 0.1420034468, 0.170090422, -0.4230798483, -0.1864345819, 0.0039459951, -0.4493269622, -0.0621818863, 0.1194181219, 0.0107768942, 0.0882928148, -0.1244893074, -0.1562020779, -0.138951391, 0.073008731, -0.3757880628, -0.0365572982, 0.159863919, -0.3747066855, 0.1987203211, 0.0218825154, 0.3247469366, -0.1163715795, -0.1917252541, -0.1699685752, -0.5526601076, -0.1476726085, 0.4530312419, 0.1776517183, 0.45456478, -0.104246825, -0.5818839669, -0.2607059479, 0.4505542219, -0.0936072692, -0.4287993312, -0.4480636716, 0.2468057424, -0.2083478719, 0.1132244617, -0.1332437992, 0.1204762012, -0.0437508449, 0.3304931223, -0.1141429916, -0.4131429791, 0.5429111719, -0.3857057989, -0.1052615196, -0.0648511723, 0.0815550834, 0.7078866363, 0.2600468099, -0.3298381269, -0.0870915204, 0.2487341762, -0.1293995678, -0.1544713974, 0.2363632768, 0.3838101327, 0.1634610295, -0.1271197349, 0.1128420383, 0.0083056036, -0.0023452067, -0.1084635183, -0.2304190248 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
@raj713335, thanks for reporting. Please note that in your code example, you are not using our `datasets` library. Thus, I think you should report that issue to `elasticsearch` library: https://github.com/elastic/elasticsearch-py
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
30
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } @raj713335, thanks for reporting. Please note that in your code example, you are not using our `datasets` library. Thus, I think you should report that issue to `elasticsearch` library: https://github.com/elastic/elasticsearch-py
[ -0.2016848028, -0.3632028997, -0.0670635998, -0.1154991388, -0.0156478528, 0.2479979247, 0.2341080308, 0.2877423763, 0.0638613626, 0.0936896205, -0.0358452164, 0.3917693198, -0.0215825103, -0.1523345411, 0.1281494349, -0.230913952, 0.1210855693, 0.0874325931, 0.1187864989, -0.0516795292, -0.2244481593, 0.2019564956, -0.2399698496, -0.1863757521, 0.0260685366, 0.0416943766, -0.2811266482, 0.0370435938, -0.2842973173, -0.5741451383, 0.5656747818, -0.3205860257, -0.0054033566, 0.3283087909, -0.0001174942, 0.2588955164, 0.618111968, -0.0708708167, -0.1365977675, -0.3066092134, -0.2747554779, -0.1212203577, 0.3674223423, -0.3745525777, -0.0447418317, 0.0033116706, 0.0528510213, -0.3770343959, 0.542247355, 0.4741775692, 0.1803840995, 0.1715568602, 0.4112609625, -0.5131979585, 0.1866669208, 0.068609193, -0.186274156, 0.0758130476, -0.0755473524, 0.3040466309, 0.2885065973, 0.1322865635, 0.0819440633, -0.099072732, 0.0131784733, 0.1307260394, 0.13668558, -0.1495371908, -0.2264218777, -0.1947409064, 0.2292090207, -0.1556190997, -0.430876255, 0.1329661608, 0.1585822552, -0.2405285537, 0.1471444964, -0.0151981851, -0.0127602285, 0.1177388728, 0.3022181094, -0.1775995046, -0.3475019634, 0.5092260242, 0.0847174078, 0.1819158494, -0.0808772817, 0.0391934589, 0.1065988392, -0.1730142981, 0.002013131, 0.3552635014, 0.0788009614, 0.2527101636, -0.2984150946, -0.0282035246, 0.1122641191, -0.2461926639, 0.0884467214, -0.1922889352, -0.1135173589, -0.1603744328, 0.5498576164, 0.1669119, -0.0451066568, 0.1012823805, 0.1200138405, 0.1737443954, -0.0490081869, -0.0631368533, 0.2725942433, -0.0562144145, 0.0272712577, -0.3945189416, 0.1915054768, -0.0452346429, 0.4555639327, -0.1275631636, -0.243079409, -0.0585776158, -0.3170815408, -0.0847006887, 0.0372950695, 0.1921497583, 0.2321964353, -0.4963363409, 0.4507415295, 0.3782168031, -0.1459136903, 0.1989921033, -0.2593502998, 0.1355431378, -0.0163130388, -0.0615730844, 0.1132288426, -0.5844497085, 0.4247125685, 0.2325559556, -0.0374884792, 0.0610242672, 0.2157833427, 0.0300101005, -0.2533140481, 0.1263981313, -0.0347202532, -0.2597735226, 0.1583046615, 0.0415073, -0.147116676, -0.0897270069, -0.2763338089, -0.5810436606, -0.6209133267, 0.1893596649, 0.0445201099, -0.0496433228, -0.1614019275, 0.0976205394, 0.2085874677, -0.0586838424, -0.1142823845, -0.1084865853, -0.1068546548, 0.0529944077, 0.2593816221, 0.2752767503, -0.1447115839, -0.210515514, -0.2179666907, 0.3615582287, -0.1270295829, 0.0429476276, -0.3336134255, 0.3303680718, -0.0799251273, 0.0909019783, 0.6981772184, -0.547475338, -0.0536416546, -0.2091813236, -0.0626362711, -0.2886888683, 0.0518558472, -0.0723179355, 0.1295567453, 0.2020721585, 0.0836896971, 0.0188741758, 0.1568586379, -0.1904109269, -0.3010769486, -0.0207560975, -0.2133551687, 0.2194907367, 0.068867743, 0.0743889064, 0.1130571738, -0.0949402526, -0.0289150421, 0.0968275666, -0.0160932541, 0.3530189693, 0.4477268159, 0.0474989042, 0.1451192945, -0.2445709407, -0.1861452162, 0.0887332037, 0.1305079013, 0.4066126049, -0.2754702866, -0.0054869209, -0.455758214, -0.0125354165, -0.1999203116, -0.0404613689, 0.04769025, -0.1804458201, 0.0655059442, 0.0815155208, -0.3663468361, 0.0903835967, -0.224010244, 0.0874164104, -0.4838055074, 0.3780785203, -0.3399510682, -0.2848974168, -0.1005498096, -0.1272819191, 0.1625959724, -0.2289760709, -0.252905637, 0.3170166314, 0.1585818529, -0.1993493885, -0.0094237737, -0.2196143568, 0.068793796, -0.3717125356, -0.160118714, 0.1146564633, 0.0060174139, 0.0075711841, -0.1409526616, 0.0491281301, -0.0276781302, 0.1236102134, -0.1865461469, 0.0244979113, 0.1674750298, 0.0128471889, -0.2148428559, -0.1568403244, 0.0762600526, 0.0110405199, 0.0965335295, -0.2560920119, -0.080621697, -0.2556482852, 0.1009650752, 0.1908092052, 0.0109876869, 0.3315633833, 0.0306277517, -0.0241761282, 0.0200199578, -0.2649320364, 0.5081578493, 0.1863699406, -0.2549332976, 0.1788084209, -0.195134446, 0.0434971601, 0.354672581, 0.0776068494, 0.2782560587, -0.0410642512, 0.2114386261, 0.2027512789, -0.3051765263, -0.4304825664, -0.063166067, 0.2208942026, -0.3955520988, 0.1845765859, 0.0268657431, 0.0299320444, -0.0677972734, 0.0289352741, 0.1407727152, -0.2932100594, -0.0042729308, 0.287345618, -0.0005066379, 0.2911942005, -0.2152978629, 0.1278512478, 0.4924535751, -0.2807106674, -0.1180759966, 0.0015202942, -0.1466071159, 0.0087547284, 0.0437355116, 0.2254187614, 0.253878504, -0.2099377066, 0.0073480736, -0.1291220039, -0.5952879786, 0.0757838711, -0.0007682359, 0.442419827, 0.41091609, 0.1672627777, -0.5368112922, -0.4164038301, 0.3792357445, -0.0472385176, -0.2670030296, 0.0130980387, -0.243299827, -0.1095608622, -0.0610100254, -0.6315125823, -0.1218555719, -0.4427922368, 0.092821151, 0.0293397792, 0.0403709002, 0.4282229245, 0.2001369596, 0.1551536024, -0.0561068729, 0.0692988336, -0.1925012916, -0.0702749714, 0.3183071613, -0.3651521504, -0.2466862649, -0.1141716614, -0.1642147452, 0.268699348, 0.2605502307, -0.0881299004, -0.2447289079, -0.012627353, 0.1801124215, -0.3956001699, 0.1502331197, 0.5313316584, 0.0224417895, 0.0291624386, -0.064780511, -0.2079589218, 0.4208350182, 0.3675065339, 0.1470501423, 0.0251938123, 0.5940634012, -0.0903485194, 0.6092326045, 0.1436548382, -0.2190538943, 0.4205082357, -0.2054324895, 0.1942408383, -0.3542345464, -0.4843164086, -0.2542825937, 0.2180969566, -0.0551192909, -0.2035239339, -0.0939923301, -0.2704293132, -0.1703051925, -0.1012980267, -0.1212012917, -0.0208712742, 0.0046931081, 0.1887578815, 0.3433676958, -0.0443464257, 0.0575900264, -0.3259446025, 0.0016672112, -0.0683993101, 0.2338469625, 0.1319116801, 0.115097791, -0.2470534444, -0.0795558989, -0.1544698477, 0.32566607, 0.116955407, 0.2916451693, 0.1058446616, 0.0895662904, 0.144397378, 0.2772260904, 0.3966251612, -0.2045558095, -0.4413913786, 0.0668893754, 0.1947993189, -0.7750585675, -0.0795959532, -0.0787117779, 0.418264538, 0.3315995038, 0.4458384216, -0.2620029747, 0.004422274, 0.3199791014, -0.0602933988, 0.1058493555, -0.1303464025, -0.3335364163, -0.5129055381, -0.134139657, 0.370028913, 0.236570254, 0.1251823753, 0.507093668, 0.0274128802, -0.3214965463, 0.0636708885, -0.2171640992, 0.1923188716, 0.3074098825, -0.009890262, 0.1243944615, 0.2359701693, 0.1119829491, 0.3207924366, 0.2626963556, -0.0883229747, -0.0588469356, 0.0378892608, -0.1546802074, 0.224717319, 0.2169944793, 0.0971576869, 0.0400169492, -0.3238067925, 0.0872084349, 0.0957222357, -0.1948005259, 0.5735220909, -0.0429390147, -0.0428069718, -0.3231019676, 0.4523455203, -0.1763374358, -0.0094864406, 0.4108851254, 0.5747951865, -0.3028597534, 0.6433289647, 0.0456538796, 0.7333818078, 0.3419997692, -0.0309456382, 0.5441730618, 0.275074482, 0.4632301927, 0.2398340851, 0.3763032556, -0.1720002741, -0.0170595534, 0.025094185, -0.3377427161, 0.1853721738, -0.1375250965, -0.4986565411, 0.1609333009, -0.3430401087, 0.3382045627, -0.0463482402, 0.2973492444, 0.0624627694, -0.1024165601, -0.4516428411, 0.1494491398, 0.1401234269, 0.233862713, -0.0219748579, -0.1225460395, -0.1575864702, -0.2577483952, -0.214915961, 0.0575772785, -0.0520628318, 0.7435444593, -0.073839128, 0.042595461, 0.2508414984, 0.1905160099, 0.1567668617, 0.0009728245, -0.1411322355, 0.1702787131, 0.1179479435, -0.2572279274, 0.1557989568, -0.1950740814, 0.1639709622, -0.1295972764, -0.3142545521, 0.0328380093, -0.0778963417, -0.5886421204, -0.1574214846, 0.0573742054, -0.328889817, -0.3205674291, -0.3472573161, 0.0106518585, -0.1085042655, -0.1940377951, 0.1245110631, 0.0390042551, -0.0308055039, 0.1210401878, 0.1650292128, -0.2093928754, 0.0741488487, 0.4086773396, -0.0280675162, 0.0270404685, 0.5184391141, -0.1926459521, -0.2022656947, -0.0208795443, -0.0876592994, 0.126249671, -0.3552738726, -0.0897452161, -0.1950103492, 0.101148136, 0.1576727778, 0.0477471277, 0.279578656, 0.2151694298, 0.0041167382, -0.0937474966, 0.0672172755, 0.1836231947, 0.117528826, 0.1098426357, -0.2728894353, 0.1238470823, -0.0096152239, -0.2254436016, -0.2934090495, 0.1597344875, 0.0452329554, 0.1199346632, -0.0889204964, -0.0278152451, 0.3200848103, -0.2754374146, 0.1265542507, 0.0370215587, -0.227404654, -0.1628856063, -0.2106008679, 0.1217701808, -0.0909653604, -0.0027845856, 0.0258365404, -0.3257215917, -0.2259399742, -0.1212367639, -0.2047732472, 0.2418257594, 0.1094351411, -0.1233031154, 0.0161564425, -0.2745510638, 0.194089815, -0.015984688, 0.0197212361, -0.0510535091, -0.1457766593, 0.3629446924, 0.0059732576, 0.0136802616, 0.0033070354, 0.2253976315, 0.0292957239, 0.2606135309, 0.1041987836, -0.3508844674, -0.1931653023, 0.0578507148, 0.1273362637, 0.398671478, -0.2369803339, 0.0844108909, -0.2320036888, 0.2227541655, -0.2696213722, 0.13045156, 0.3413186073, 0.0784644485, 0.1504232883, 0.1456758678, 0.2320813984, -0.0270159859, -0.0238604266, 0.1386246681, 0.3045576513, -0.1886591762, 0.2423168123, 0.0842221826, -0.0891970024, 0.0379267633, 0.2449094057, 0.158885479, 0.378572017, 0.2312902361, -0.1024157107, 0.2956626713, 0.0735330358, -0.0640370697, 0.1487511098, 0.1546941698, 0.1372424215, 0.2593191266, 0.0812721252, -0.0683136135, 0.1351339072, 0.6648651958, -0.0897037089, -0.2023630738, -0.3087386787, -0.0687492788, -0.1276204735, 0.0604704991, -0.0668834448, -0.0928230882, -0.2992691696, -0.3756155074, 0.0479045659, 0.0159338303, 0.0976261348, 0.1030437425, 0.0444531217, -0.1930872351, -0.0323370583, 0.3514099717, 0.281871438, -0.1771688163, 0.229828015, 0.2399115413, -0.3965554535, -0.1253994107, 0.5719942451, 0.4920841753, 0.2387234122, 0.0214505363, 0.223481968, 0.145584166, -0.2435921729, 0.1587707698, 0.0200721994, 0.0140650244, -0.123902753, 0.0497766659, 0.1379078478, -0.0613913685, 0.0984875783, -0.0411081985, 0.3550564647, -0.2144328803, -0.0778073668, -0.3696308732, 0.0789560527, 0.2608808577, 0.0933272839, -0.3634059727, 0.057208579, 0.3693161905, 0.0985733494, -0.016547801, 0.1355313212, 0.077909328, -0.0598511919, 0.0760094076, 0.3370358646, 0.0100277662, -0.1337284595, -0.1390438229, -0.3820652366, 0.2383609861, -0.2254508734, -0.0263435636, 0.3816801012, 0.3424426913, 0.1084227636, 0.1420034468, 0.170090422, -0.4230798483, -0.1864345819, 0.0039459951, -0.4493269622, -0.0621818863, 0.1194181219, 0.0107768942, 0.0882928148, -0.1244893074, -0.1562020779, -0.138951391, 0.073008731, -0.3757880628, -0.0365572982, 0.159863919, -0.3747066855, 0.1987203211, 0.0218825154, 0.3247469366, -0.1163715795, -0.1917252541, -0.1699685752, -0.5526601076, -0.1476726085, 0.4530312419, 0.1776517183, 0.45456478, -0.104246825, -0.5818839669, -0.2607059479, 0.4505542219, -0.0936072692, -0.4287993312, -0.4480636716, 0.2468057424, -0.2083478719, 0.1132244617, -0.1332437992, 0.1204762012, -0.0437508449, 0.3304931223, -0.1141429916, -0.4131429791, 0.5429111719, -0.3857057989, -0.1052615196, -0.0648511723, 0.0815550834, 0.7078866363, 0.2600468099, -0.3298381269, -0.0870915204, 0.2487341762, -0.1293995678, -0.1544713974, 0.2363632768, 0.3838101327, 0.1634610295, -0.1271197349, 0.1128420383, 0.0083056036, -0.0023452067, -0.1084635183, -0.2304190248 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
Hi @MatanBenChorin, thanks for reporting. Please, take into account that the preview may take some time until it properly renders (we are working to reduce this time). Maybe @severo can give more details on this.
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
35
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes Hi @MatanBenChorin, thanks for reporting. Please, take into account that the preview may take some time until it properly renders (we are working to reduce this time). Maybe @severo can give more details on this.
[ -0.311417073, -0.4014884233, -0.0658437833, 0.2669587731, 0.0838583782, 0.111631304, 0.2829137444, 0.2667754292, -0.086287193, 0.3120711148, -0.159604758, -0.0146394474, 0.0534691848, 0.1740650982, 0.1613072902, -0.171547398, 0.035972476, 0.1212246642, -0.0750992522, -0.04022808, -0.2085525692, 0.2721412778, -0.1961265355, 0.081179373, -0.2160776556, -0.0268842578, -0.072832413, -0.0551238731, -0.289419353, -0.2867643535, 0.2907398641, -0.0514760986, 0.285179168, 0.139846608, -0.0001113655, 0.0937947035, 0.261030376, -0.0603732057, -0.2673738003, -0.1547254473, 0.0836875066, -0.25159958, 0.0806362554, -0.0030502384, -0.4502524436, -0.2254160494, 0.1948545128, -0.203159973, 0.387470603, 0.1095742807, 0.2613074481, 0.5152112842, 0.0199664682, -0.325984329, 0.1277088821, 0.1748391539, -0.452855736, -0.0725079328, 0.1961440742, 0.0952183679, 0.1359422803, 0.3663333654, 0.3392030299, 0.0849601477, 0.0812112764, 0.201837182, -0.0015252531, -0.4241367579, 0.2338889688, 0.0842059404, 0.7123063803, -0.0491919518, -0.201416716, 0.1472205371, 0.2774581611, 0.0545282662, 0.1342966259, 0.0669682622, -0.1154623851, 0.144525215, -0.2964588404, -0.1811362952, 0.0075478978, 0.2059747279, 0.0780537203, -0.0244395155, -0.2773792446, 0.092208989, -0.1193280444, 0.1183667704, 0.130457148, -0.0257303771, -0.1497564614, 0.3428984284, -0.2063555568, -0.1538840383, 0.0097940862, 0.0488987081, 0.0551646724, 0.1905862987, 0.1900174618, 0.071469225, -0.1487376541, -0.0124955289, 0.1132701114, 0.1042583808, 0.3729870021, 0.2126194239, 0.3135803938, 0.2581317425, 0.464790374, -0.0146930907, -0.0998043641, -0.0669217929, -0.2137874514, -0.1548792571, 0.2970795631, -0.0986101478, -0.2546586692, -0.0499979556, -0.0585315451, 0.0071908692, -0.0907533094, 0.4044859707, -0.1182070673, -0.4784183204, 0.1883210838, 0.1282233894, -0.1205224991, -0.4043057263, -0.3268053234, -0.0342101753, 0.0190723743, 0.2060569376, 0.1323946118, -0.2404391766, 0.2090865523, 0.1146895587, 0.2104791105, 0.1642151624, -0.2199818939, 0.1174655482, -0.0739345253, 0.0999155566, 0.1455449611, 0.2429647446, 0.0810943842, 0.0341250002, 0.0242818054, 0.2605353892, -0.1091806814, -0.1396047473, -0.3876103163, 0.1073496267, -0.393030256, -0.0526123643, -0.4856952131, 0.4448401928, -0.1612168103, -0.1029471904, 0.0858736858, 0.1520813257, -0.3201355338, -0.0759901702, 0.3708458543, 0.5224621892, -0.5629888177, -0.3431326151, 0.0393032841, -0.3624465168, 0.0630800799, 0.3338087499, -0.1874684989, -0.12352667, -0.3934742808, 0.1184410602, 0.2422901839, -0.402025789, -0.6250222921, 0.1326607913, -0.1800152063, 0.0502876081, 0.0214501545, 0.0848656073, 0.443311125, 0.0520145707, -0.3218518198, 0.1607805192, 0.1733345538, -0.1198525056, -0.2461255044, -0.1002230942, 0.2543725967, 0.1884289235, -0.0266238134, 0.1197135895, 0.0648285151, -0.0185181499, 0.4133197963, 0.2739726305, 0.2073927522, 0.1438470334, 0.2722544968, 0.002725292, 0.0078779086, -0.1696539521, -0.4984526634, 0.0623761937, 0.0823322013, 0.2828384936, -0.0431732908, -0.2127303779, -0.4552211463, 0.0258192327, -0.4027037024, -0.3439930975, 0.1304974705, 0.1178735793, 0.0500581041, 0.1583378166, 0.0825508833, 0.0865713507, -0.1460717469, 0.0256741308, -0.1625359505, 0.381080389, -0.027523376, 0.0165363774, 0.1925340146, 0.0511125699, 0.0506218374, -0.2914512753, -0.0400963314, 0.2824090123, -0.1210744604, -0.0040254276, 0.3039685488, -0.2232210338, 0.248491168, -0.3490482867, 0.1128164306, -0.081154272, -0.0760091767, 0.0095009767, -0.0848273337, 0.3645382822, 0.2695688307, 0.0028183397, -0.2322319001, 0.0730642825, 0.2107011825, 0.2549849153, -0.04265064, -0.1491949558, 0.0997673497, 0.09878546, 0.3478738368, -0.2881270945, -0.1279271841, 0.233292982, 0.351185143, -0.2120281756, -0.0606020801, 0.0380414762, -0.1264582127, -0.0016076057, 0.1337206662, -0.1474856287, 0.1726688743, 0.1064743474, 0.0235909633, -0.0679188669, 0.1411974132, -0.0272674095, 0.0557224005, -0.1213869527, 0.0044170469, 0.0701379701, 0.2100198567, -0.1460221559, -0.6160929203, 0.2807808518, 0.1974074841, 0.2429200113, -0.1518465579, -0.1309157461, -0.1582819372, -0.1487354934, 0.0251722541, -0.2747640312, -0.3882993162, -0.1599144042, 0.2342511415, -0.0912190527, 0.3873553276, 0.4110916555, 0.2234783769, 0.3818228543, -0.0442446023, 0.3038652837, -0.1901389211, 0.1711224318, -0.1916801035, 0.1673666984, 0.1117504984, -0.1602659672, 0.2302404642, -0.1125579476, 0.0615531728, -0.4709752798, -0.2829721272, 0.1865495443, -0.1716092825, 0.4791975617, 0.008564733, 0.3409078717, -0.2217847854, 0.0791377947, 0.2285400927, -0.1378616691, -0.5370669961, -0.1701668054, -0.2172560394, -0.0694934949, -0.0172635503, -0.3079887629, -0.4341334999, -0.1596808583, 0.2873238921, 0.0122506209, -0.1503363401, -0.2549524009, 0.0039485656, 0.0893701464, -0.0356410742, -0.1369199306, -0.4273115993, -0.3670597374, 0.3611657321, -0.4547727108, -0.5265396833, 0.2312302291, 0.1999773681, 0.2124432772, -0.3956668377, -0.6403865814, -0.2156408876, -0.0392022803, 0.1284008026, -0.0259771496, -0.1352204382, 0.3031501174, -0.2349166721, -0.0528987162, -0.1281714588, -0.3473534882, -0.2101455182, -0.2186275274, 0.4514725208, -0.224667415, 0.2805479765, 0.0188513156, 0.7145484686, 0.401753962, 0.1220459342, 0.1135825068, -0.3372508287, 0.3376704752, -0.1450765133, -0.3311551213, 0.0114810867, -0.1413027793, 0.2859894037, 0.3115135729, 0.0788193345, -0.0127556454, -0.1403438151, -0.0219491981, -0.325920701, -0.2125088125, -0.2277957499, 0.0321957394, 0.1000405401, 0.1373353004, 0.1967113316, -0.1643692851, -0.2928965986, 0.1214161217, 0.4918362498, 0.1481318325, 0.1022294611, -0.401871562, 0.2029370666, -0.5260801911, 0.2535169423, -0.109869495, 0.4310534298, -0.1769822687, 0.1312238574, 0.3792921007, 0.0428023823, 0.6549632549, 0.0287854131, -0.0438058786, -0.1517617702, -0.3540394902, -0.255531162, -0.0593090914, -0.1328014433, 0.155357033, -0.0192511566, 0.3293310702, -0.0641998574, -0.1458954662, 0.4562268853, -0.2395382971, -0.4554584026, -0.2277906537, -0.3311229646, -0.1356213242, -0.1770583391, -0.0655247942, -0.01675798, 0.1246801987, 0.0715007633, -0.0918993205, 0.1193222553, -0.205030337, -0.0164641496, 0.1349767745, 0.0813947022, 0.3680872917, 0.2318726033, 0.5400983095, -0.1583386213, 0.0336718932, 0.4782575369, -0.0124123292, -0.6159335375, 0.1818154305, -0.089461945, 0.1971377581, 0.5047101974, -0.1744830161, 0.1902248561, -0.0884800553, 0.0596998148, -0.2229912132, -0.0750023648, 0.5580000877, -0.130960077, -0.1266243905, -0.2879205346, 0.4157576859, -0.0776949823, 0.0015034867, 0.3244598508, 0.4434554577, -0.0180812683, -0.0040596952, -0.1083972603, 0.8796592951, 0.0210776646, 0.1245238483, 0.2823740542, 0.0547830723, 0.2928509116, -0.1024185121, 0.1055499688, -0.2197519094, -0.3395221233, -0.0862650797, 0.0148555906, 0.1027241126, 0.0075190286, 0.1685284972, -0.1606185138, 0.1288843155, 0.5418011546, -0.065008752, 0.1223992258, -0.0617271103, 0.0331285074, -0.2585826814, 0.2011478841, -0.0069547137, 0.4034201801, -0.0600280054, -0.1897844523, -0.1876130253, -0.2132642865, -0.4891670346, 0.0690732077, -0.4010767639, 0.215650633, 0.2503484488, -0.3522453606, 0.3691204786, 0.4614587128, 0.0964838192, 0.031950824, -0.3496309817, 0.2279993296, -0.0131757082, -0.1704094112, -0.3415643573, 0.1633519828, -0.0151204718, -0.1222897023, -0.313490659, 0.1787709743, 0.1143853441, -0.0317585133, -0.3772247136, 0.0340865292, -0.0620752946, -0.3407729864, 0.0251603667, -0.0834268779, 0.1435433626, -0.3307787776, 0.1617472023, 0.0225582812, -0.1345757991, -0.2658218741, 0.39027372, -0.1064001098, -0.0817261711, 0.5700673461, -0.1103987172, -0.1793564558, 0.5454645753, 0.2138492167, -0.241741851, -0.197452426, 0.1823330075, 0.4442590475, -0.4288133383, -0.0016600365, -0.0008616452, 0.2911465168, 0.0148617458, 0.5367534757, 0.2767793536, -0.446970731, -0.1467949599, -0.339676559, -0.166599378, 0.3289378881, -0.0012977732, 0.2229073793, -0.067844063, 0.2268241197, 0.1739138216, 0.4181136489, -0.3185132742, 0.0652857944, 0.0843320563, -0.008712545, 0.2526441216, 0.0149883665, 0.4136195183, -0.0144758448, 0.0659524277, 0.2772757113, -0.4419011474, -0.1875723898, 0.0265159085, 0.1493798345, 0.0989336818, -0.1921005994, -0.103436254, -0.1175580695, -0.0896144509, 0.0952684805, 0.3399131298, 0.1520821303, 0.1084803864, 0.1240056306, 0.1886838377, -0.0726418421, 0.0062550483, -0.0773266777, 0.0900265872, 0.407975316, 0.2141347229, 0.0475308523, 0.0484258682, -0.0006456496, -0.0032267813, 0.1417012513, 0.1662945598, 0.3370445371, -0.035087198, -0.2697989047, 0.334131211, -0.0438843183, 0.2694772482, 0.0385230072, -0.3206008673, 0.0780991539, 0.0750674978, 0.1175082773, -0.4562378824, -0.1660987437, 0.2042491287, 0.0801032931, 0.0056312289, 0.1167617366, 0.1105143502, 0.4444063306, 0.0853168741, -0.0390936248, 0.1631419659, -0.2710760534, 0.2268987745, 0.3114502728, -0.3355244994, 0.1749677956, 0.3829720616, 0.0335452706, -0.3177874386, 0.5321747065, -0.0768657327, 0.2140376419, -0.28214553, 0.2730310857, 0.1581823826, -0.3580094278, 0.1330334246, -0.0381173156, -0.0987231582, 0.0424487963, 0.0863441005, 0.7233071923, -0.1459151059, 0.0309517886, -0.4757105112, 0.1377507001, -0.1903466731, -0.0574654378, -0.0074289949, -0.1875297278, -0.2446201593, 0.1177741811, -0.0621434338, -0.2799877822, 0.1304376125, -0.0164542962, -0.182411775, 0.0036705011, -0.0098172445, 0.1312513053, 0.050470192, -0.1335861087, 0.3099605441, -0.0939938799, 0.1768362224, 0.2045339793, 0.180503726, 0.0796526372, -0.0367440097, 0.1600188613, -0.0352451205, -0.1813963056, -0.0863071382, 0.1682590544, 0.3383859694, 0.2357933968, -0.1633842587, 0.1474674493, 0.1322845072, -0.1489907652, 0.0957915559, 0.2140499502, 0.0425880998, -0.215554595, 0.3341031075, -0.8482708335, -0.0601708516, -0.411095798, -0.0435737185, -0.0121329892, -0.0401641689, -0.0252941642, -0.0087361336, 0.0087212902, -0.3693110347, 0.1037369892, -0.1304450482, 0.4975922108, 0.1075600013, 0.0094192727, -0.116819866, -0.3745403886, -0.4318159521, 0.233638674, 0.0636102185, 0.0914750919, -0.0256112386, 0.1372282356, 0.1318347752, 0.1585088521, 0.3590973318, -0.0464946032, -0.0146746589, 0.1826622039, -0.2102534622, -0.0700988844, 0.002591446, 0.2107064724, 0.0304664057, -0.1472706497, 0.2202957273, 0.0834668651, -0.0820710734, -0.2418019325, -0.0045401799, -0.1452548951, -0.1877065897, 0.363374114, -0.0381120145, 0.3846711814, -0.0818539858, -0.1043772325, -0.1150966212, -0.3365880251, -0.0778204948, 0.5023623109, 0.1627589166, 0.2432513535, 0.0288705733, -0.4662916064, -0.1675975025, 0.0745715946, 0.1058356017, 0.2910448611, -0.4481278062, 0.0149309058, -0.2699217498, -0.1150730848, 0.2605735958, 0.1433086693, -0.1582289636, -0.089958258, -0.2519111335, -0.2932339013, 0.4567334652, -0.2791830897, -0.0417196974, -0.161811024, 0.0805235878, 0.2657986879, -0.4545987844, -0.6781048179, 0.1265432537, 0.269875586, -0.0358056463, 0.1540571451, 0.4748883545, -0.1696855873, 0.0866232291, -0.0179644264, 0.7829416394, 0.0596148111, -0.0425587334, 0.1892218888, -0.3135465086 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
I imagine the dataset has been moved to https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1, which still has an issue: ``` Server Error Status code: 400 Exception: NameError Message: name 'HebrewSquad' is not defined ```
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
29
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes I imagine the dataset has been moved to https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1, which still has an issue: ``` Server Error Status code: 400 Exception: NameError Message: name 'HebrewSquad' is not defined ```
[ -0.2194945514, -0.1446341723, -0.073166877, 0.2411449552, 0.1175788715, 0.0581992008, 0.2833602428, 0.245520696, -0.1701327413, 0.3784975111, -0.1162924618, -0.0477871522, -0.0005150448, -0.0234557446, 0.0869764686, -0.0409863181, 0.1532171965, 0.1132068858, -0.0374043807, 0.0838597864, -0.2701846957, 0.3187866211, -0.1939614713, 0.1597985774, -0.1933703125, 0.0590590499, -0.1698186696, -0.048840221, -0.2652766407, -0.382081598, 0.1662111878, 0.0447334275, 0.1527936012, 0.4104062021, -0.000121024, 0.0588317104, 0.1696055233, -0.0764454976, -0.4459679723, -0.2458489984, 0.1262607574, -0.2778343558, 0.1699609756, -0.1295397282, -0.3080386519, -0.2294167131, 0.2501928806, -0.3196453452, 0.2603803277, 0.0875547081, 0.1988838464, 0.3883706629, 0.0977767035, -0.3040709198, 0.0737658739, -0.0039311456, -0.4839439988, 0.0432205312, 0.1795552671, 0.1267469525, 0.25980407, 0.3969782889, 0.3435787261, 0.0924438238, 0.0902211368, 0.099087134, -0.1900739223, -0.4174932241, 0.2204996198, 0.1206533387, 0.6765865088, -0.1289998293, -0.3536780179, 0.1086934954, 0.2766567469, 0.1021048054, 0.2826473117, -0.1386422813, -0.0772158802, 0.1307732165, -0.2702972293, -0.3329844773, 0.0618999675, 0.24973692, 0.0003481664, 0.0949871615, -0.2957220078, 0.1638332307, -0.1243083179, -0.0544950366, 0.0651001036, -0.0425353274, -0.0809413344, 0.378675878, -0.2377726436, -0.1752333343, -0.0344152823, 0.1276797503, -0.2052941173, 0.26879251, 0.2222528756, 0.0889327005, -0.0708869174, -0.0097482353, 0.1521112919, 0.2095294744, 0.4613801837, 0.1595866829, 0.373155266, 0.3069849014, 0.4620529115, 0.0283707157, -0.2418619096, -0.1039670557, -0.2275134772, -0.2097782344, 0.4401781857, 0.0052280482, -0.2246059626, 0.0499419309, -0.1461532861, -0.0704804808, -0.0040799729, 0.3496778011, -0.0594450012, -0.4387343526, 0.1251831502, 0.048698917, -0.1329476386, -0.2789268494, -0.2060106248, 0.0483997911, 0.0205494706, 0.1494030207, 0.0410823971, -0.1867920607, 0.2394839227, -0.1260721684, 0.2520654202, 0.0990528613, -0.2822029293, 0.1512948424, -0.1001259685, 0.088514857, 0.1351622641, 0.3016209304, 0.0262717791, -0.1493702382, 0.0439011939, 0.1385287195, -0.1994217932, -0.0394751802, -0.3668963611, 0.0462824665, -0.3796007931, -0.0117443213, -0.3361295462, 0.4011513591, -0.0808899626, -0.222983107, 0.1130299121, 0.1968785077, -0.2192535847, -0.1048012376, 0.1760918349, 0.5377519131, -0.5764010549, -0.4551903605, -0.0503926575, -0.2702189982, -0.1939108372, 0.2611501515, -0.1972652078, -0.1312766522, -0.3223400116, 0.095585078, 0.3135204613, -0.4777802527, -0.564176321, 0.0113785854, -0.1703666002, -0.026248008, 0.0559293777, -0.0665599927, 0.4020448029, -0.0111314682, -0.2518379092, -0.100059092, 0.1475094557, -0.2609864771, -0.1142746359, -0.2241027653, 0.1815730184, 0.0814004019, -0.0136279296, 0.1730703115, 0.1636664271, 0.0681770369, 0.286614567, 0.222294569, 0.309075743, 0.2086475939, 0.2881523669, 0.038326405, 0.1049368978, -0.2811740935, -0.5561711192, 0.0645149052, 0.0355956517, 0.3041838408, -0.2397503257, -0.1466041207, -0.3731178343, -0.0466893651, -0.3468735218, -0.1620086879, 0.0613397397, 0.1804679036, 0.0617338866, 0.0452064946, -0.0862269625, 0.0253124237, -0.1301223636, 0.151957348, -0.2816606164, 0.2314968407, -0.005426819, 0.0823573545, -0.0400846899, 0.0972571447, 0.1173475385, -0.4210635126, -0.0829446167, 0.3802161217, -0.1062210351, -0.0149677349, 0.5267100334, -0.1731295884, 0.1584089994, -0.2092569768, 0.1138707027, -0.0382030867, -0.0601013787, 0.0854120925, 0.0448480472, 0.3470874727, 0.2198602557, 0.1190238968, -0.2079115361, 0.0745567381, 0.2836712301, 0.173712641, -0.0999771208, -0.2624450624, 0.2306174785, 0.2053733766, 0.4968128502, -0.267432034, 0.0154059483, 0.0245402437, 0.3386995196, -0.1805146486, -0.0553081073, 0.1107783169, -0.0588781536, 0.052377075, 0.0639733523, 0.0135914925, 0.3775400519, 0.0115201566, -0.0277417991, -0.0682999492, 0.2341344953, -0.0441200137, 0.1657629311, 0.1294198185, 0.0584235005, 0.0674210787, 0.0984034911, -0.0562658496, -0.5610324144, 0.13629888, 0.2475361377, 0.2515510917, -0.1353933811, 0.0021708559, -0.2279936075, -0.0987298638, -0.02977686, -0.285056442, -0.5805882215, -0.2323244065, 0.1411299258, -0.1182099283, 0.2913322151, 0.3895171285, 0.1325905323, 0.3597283959, -0.1680122465, 0.2171508074, -0.1777164191, 0.1385767311, -0.1688811779, 0.0538136996, 0.0823069438, -0.3834996819, 0.2518334985, -0.0396825448, 0.1200325936, -0.4863351285, -0.2805308402, 0.1624951661, -0.124683015, 0.5278940797, 0.1113252267, 0.340231657, -0.2290671617, 0.0050529339, 0.1976266354, -0.122150816, -0.4684065282, -0.2839088142, -0.1765326709, -0.1110695824, 0.0562907755, -0.2117079943, -0.5416398644, -0.1396333426, 0.3180111051, -0.0143976016, -0.1038980037, -0.2725174725, -0.0980178937, 0.0851446241, -0.0999265388, -0.1659632623, -0.4258797169, -0.2959752083, 0.3375728726, -0.3799958229, -0.2262183726, 0.2415172458, 0.1813353002, 0.3955928385, -0.380209595, -0.5040516257, -0.2989560962, 0.0589161105, 0.1355210394, 0.1273781359, -0.1408701688, 0.4437849522, -0.1457575858, -0.0563300587, -0.1503167599, -0.3275497258, -0.2663036287, -0.2287617773, 0.5647086501, -0.036917191, 0.2696143985, -0.0302321296, 0.6665754318, 0.450037092, 0.2410481423, 0.2477560788, -0.1916880012, 0.3756331503, -0.0771455616, -0.3717046678, -0.077986531, -0.1563220024, 0.1601939499, 0.3517720401, 0.1014371216, -0.0489559136, -0.241491735, -0.0186585691, -0.3859397471, -0.1991252005, -0.3508746326, -0.1347097456, 0.1211506948, 0.12723203, 0.1792376637, -0.2548036277, -0.3089038432, 0.0103400042, 0.5455588102, -0.0043006777, 0.0402725264, -0.5432646275, 0.0884994194, -0.4548124373, 0.4179477394, -0.0639083013, 0.5273139477, -0.0769733489, 0.1924740225, 0.3693181872, -0.0002267657, 0.638151288, 0.0113737732, -0.2179283351, -0.1240247265, -0.1861005574, -0.1078254208, -0.0566256866, 0.0136259831, 0.1947663873, 0.0239692647, 0.3570151925, -0.1450277567, -0.1098011881, 0.4710935354, -0.2746327817, -0.4337356985, -0.1396966577, -0.3613210917, -0.1554189473, -0.1920250654, -0.2040234655, -0.0919725522, 0.134518981, 0.1760666519, 0.1395023763, 0.2213852108, -0.2778651416, 0.1111099795, 0.1251462251, 0.0802495778, 0.3749727607, 0.0965131372, 0.6328033805, -0.047180526, 0.1098657027, 0.558742404, -0.1165988967, -0.6847667098, 0.2365138531, 0.0665883571, 0.282093972, 0.6491950154, -0.1092301011, 0.2409621924, 0.030391451, 0.1735290885, -0.14375332, -0.130998835, 0.6404578686, -0.1803695709, -0.2455143183, -0.3080481589, 0.4824347794, -0.0952975079, -0.031623736, 0.4720113873, 0.4843761027, -0.0794523358, 0.0065138759, -0.1975758821, 1.0419148207, 0.0938996449, 0.1571382433, 0.2098366022, -0.1135517061, 0.4359432161, -0.0813253522, -0.0309084821, -0.2547006905, -0.1238687411, -0.1439042985, 0.0522142947, 0.2943434119, 0.036965996, 0.1172677055, -0.021799583, 0.0401668921, 0.6541773677, -0.0230619181, 0.1724506766, -0.0707446858, 0.0079897586, -0.2423152477, 0.1198075563, -0.0728551894, 0.4128446877, -0.1130711883, -0.1515254676, -0.2822460234, -0.1588498056, -0.4720559418, -0.1081411988, -0.3604954481, 0.2516594827, 0.1464400887, -0.3401827812, 0.3326036036, 0.3459122181, 0.257256031, 0.0125598609, -0.3415035605, 0.3910620809, 0.0338236429, -0.1066451147, -0.2761718929, 0.1272925436, 0.0056596654, -0.0530628748, -0.2334772497, 0.1891537458, 0.0602480955, -0.1898777336, -0.5703040957, 0.0957118496, -0.0323204845, -0.3992762864, 0.1122818217, -0.118938081, 0.1887517869, -0.4122252762, 0.085031271, 0.0337970145, -0.068871133, -0.2828643024, 0.3699131906, -0.176676631, -0.1523307413, 0.5622905493, -0.0828053206, -0.3378439248, 0.6104656458, 0.0298089981, -0.265905261, -0.0892948955, 0.2455340028, 0.3897391856, -0.4946715534, 0.051168818, 0.1293528378, 0.1700054705, -0.018626295, 0.38829422, 0.2227484584, -0.2521980703, -0.1681784838, -0.2487946451, -0.0579219274, 0.4032357037, 0.1308258027, 0.2538822293, -0.0828297585, 0.1817138046, 0.0960804299, 0.2215423882, -0.2142855078, 0.0401862152, 0.0386216305, 0.0058589657, 0.2546605766, -0.0082665673, 0.3619790077, -0.0440910012, 0.0253737196, 0.2176522613, -0.3750714958, -0.0779950172, -0.0740920678, 0.1914624572, 0.0694931298, -0.187369287, -0.1345337331, -0.2062826455, 0.0850226134, 0.0057339044, 0.1758722961, 0.1739699394, 0.2283261269, 0.1238434389, 0.2783930302, -0.2247772813, 0.1650471091, 0.1125992835, 0.1594905853, 0.615643084, 0.1269293576, 0.1376671642, -0.0767802671, 0.0185649525, -0.165347442, 0.1625150144, 0.1139435172, 0.2898521721, -0.075765878, -0.3018307388, 0.2923430502, 0.0004815342, 0.3143242598, 0.3363416195, -0.3346500993, -0.0600527227, 0.1159830168, 0.0036371418, -0.357852906, -0.2264149189, 0.3197669685, 0.0614237152, -0.0169622079, 0.2100812197, 0.1019047052, 0.3668265641, 0.1442468017, -0.1240824983, 0.2658695877, -0.2794020772, 0.3648000956, 0.2943282127, -0.2316764444, 0.2399392128, 0.4709619284, 0.0363926105, -0.3138985336, 0.6545712948, -0.1081345677, 0.1821467131, -0.1442657709, 0.2243981808, 0.2117334902, -0.2600904405, 0.1772426963, -0.0912828892, -0.171472922, 0.1729365289, 0.1304045469, 0.7063385248, -0.3824164867, 0.04149618, -0.4691152573, 0.1209677607, -0.2360394001, -0.1709934175, 0.0204113964, -0.2415735275, -0.2158001512, 0.1306329072, -0.0506475754, -0.3203924894, 0.1028079391, -0.0367607288, -0.273106873, -0.0724466369, 0.0320188999, 0.046945978, 0.1622998416, -0.2581711411, 0.2460574806, 0.0040049339, 0.1718095541, 0.1743523479, 0.1705671549, 0.2026019692, -0.0370980166, 0.1460417062, -0.091876857, -0.2051344514, -0.0973470807, 0.1472802162, 0.2929306626, 0.2201807499, -0.1331491619, 0.1087051183, 0.0474910103, -0.1214380339, 0.1099395752, 0.29433918, 0.0701271668, -0.2171091139, 0.3603358567, -0.9142707586, 0.0055608666, -0.3657950759, 0.0706884041, -0.178924337, -0.0190490279, -0.0275685452, -0.0967261642, -0.0660458058, -0.3752624691, 0.0406920239, -0.0021719071, 0.4685465693, 0.1463247687, -0.0390988141, -0.1462783664, -0.4794144034, -0.491630435, 0.1928628981, 0.1145381331, 0.2758013606, -0.1195520908, 0.1251631677, 0.0471002869, 0.0639986917, 0.354917556, -0.1654582024, -0.0688856691, 0.2464237958, -0.2877244055, -0.0845348984, 0.0491871573, 0.343575418, 0.1062500179, -0.1408982724, 0.2048157305, 0.0220903419, -0.2371384799, -0.2273614407, -0.0711266398, -0.0484176911, -0.2704646885, 0.2856555879, -0.0807241797, 0.3943685889, -0.0906861201, -0.2170793414, -0.1030247733, -0.3672995865, -0.1037130281, 0.6144370437, 0.153003633, 0.2554058135, -0.0354293101, -0.4780125618, -0.0752644315, 0.0762980357, 0.0146065699, 0.4272101521, -0.4044741392, -0.0530542172, -0.1126429066, 0.06637761, 0.2759086788, 0.1921350658, -0.1082559079, 0.0754595995, -0.2382589877, -0.2816666365, 0.5607572794, -0.1872686744, -0.0183771551, -0.114898324, 0.1206203029, 0.2008344084, -0.546682775, -0.6681913733, 0.0508602299, 0.4248983562, 0.0268727187, 0.118085146, 0.4545183182, -0.2228419632, -0.0101435538, -0.0284560546, 0.7592359185, 0.0120087573, -0.0718163624, 0.3527516127, -0.2007320076 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
The issue is not related to the dataset viewer but to the loading script (cc @albertvillanova @lhoestq @mariosasko) ```python >>> import datasets as ds >>> hf_token = "hf_..." # <- required because the dataset is gated >>> d = ds.load_dataset('tdklab/Hebrew_Squad_v1', use_auth_token=hf_token) ... NameError: name 'HebrewSquad' is not defined ```
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
49
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes The issue is not related to the dataset viewer but to the loading script (cc @albertvillanova @lhoestq @mariosasko) ```python >>> import datasets as ds >>> hf_token = "hf_..." # <- required because the dataset is gated >>> d = ds.load_dataset('tdklab/Hebrew_Squad_v1', use_auth_token=hf_token) ... NameError: name 'HebrewSquad' is not defined ```
[ -0.4161965251, -0.1798671931, -0.0500068367, 0.2247761935, 0.1178972796, 0.1464484036, 0.5444728732, 0.274169147, 0.0705037415, 0.3551025093, -0.1659320891, -0.046967227, -0.0536280423, 0.0518665612, 0.0828287229, -0.0479781404, 0.1451770365, 0.1372269988, -0.0814927071, 0.0857134685, -0.238292262, 0.2115850151, -0.3065702021, 0.1486413777, -0.1864606142, 0.0677822828, -0.107264705, -0.0944353268, -0.153986603, -0.5097658038, 0.2196460366, 0.0510974824, 0.3203545511, 0.317997098, -0.0001186715, 0.1246076301, 0.2639892697, -0.0527582727, -0.3945882618, -0.2932575941, 0.0922852233, -0.3224959075, 0.242042616, -0.2598907948, -0.3127675056, -0.4119301736, 0.236321792, -0.3286177814, 0.3663330376, 0.1241832823, 0.2280312479, 0.482375145, 0.1375173479, -0.2566950619, -0.0214726273, -0.0356230028, -0.3736253977, 0.0939873382, 0.0149201229, 0.1043046266, 0.1449477226, 0.2411353886, 0.1534982473, 0.1092737913, 0.1888926774, 0.0729980469, -0.074945271, -0.498396337, 0.1125294194, 0.0961422771, 0.6637201905, -0.2095230073, -0.3418719172, 0.0356309339, 0.243732959, 0.0969870389, 0.2204606682, 0.0217293371, -0.1253394634, 0.2322641462, -0.2997302413, -0.1758245081, 0.0075768027, 0.2133203149, 0.0084038172, 0.164243117, -0.2461491078, 0.2474416047, -0.1839817762, -0.0048719561, 0.2752811611, -0.1804638803, -0.0550627112, 0.3877568841, -0.3413962424, -0.1293103844, -0.0296610054, 0.0429309234, -0.1502262801, 0.2504197061, 0.1072625741, 0.0620419979, -0.0051068105, 0.0513901152, 0.1750241518, 0.1291729957, 0.3847887516, 0.293918252, 0.340993017, 0.2941398323, 0.466794014, 0.0836287513, -0.3232109845, -0.1671217382, 0.0155436173, -0.191302985, 0.4573526084, -0.0000234665, -0.3218843341, -0.0391790755, -0.0994799808, 0.0027708844, -0.0313242525, 0.405285418, -0.1035732254, -0.4733546376, 0.1023891345, 0.1118913889, -0.1218138039, -0.3132180274, -0.2549068034, 0.0126868421, 0.0706970096, 0.151968807, 0.0886740535, -0.1942952871, 0.2495934367, -0.0647245198, 0.0786532611, 0.0319773145, -0.2004953325, 0.0964456722, -0.1522623301, 0.2084849179, 0.3287572563, 0.214955762, 0.0585343577, -0.1413826942, 0.0060729454, 0.234052673, -0.1206210107, -0.058435645, -0.3157461584, 0.0899877846, -0.5409633517, 0.0147972833, -0.3985832036, 0.3201523125, -0.0710713416, -0.1311695576, 0.01092037, 0.0670905113, -0.2103239, -0.1770880967, 0.299478054, 0.6654546261, -0.5375422239, -0.357907474, -0.0436429605, -0.4257735014, -0.1145899221, 0.2386268973, -0.233543992, -0.0192790776, -0.394854486, 0.1379867792, 0.3351359963, -0.5305601954, -0.5888717771, 0.149196282, -0.1309304237, 0.1471535414, 0.1658480018, 0.0023296769, 0.4658774436, -0.0819308534, -0.3138567209, 0.0815181434, 0.1426569372, -0.2644884884, -0.0676129386, -0.1630062461, 0.2651240528, 0.1852783412, 0.0969808251, 0.260958463, 0.2079782486, 0.1225026399, 0.4088822007, 0.2032619715, 0.2567212582, 0.1558079869, 0.1817194968, 0.0229444746, 0.0187809803, -0.3123440444, -0.524623394, 0.1089991778, 0.1160690635, 0.2111966312, -0.2031716853, -0.2273159474, -0.3599025905, 0.0545414761, -0.4280931354, -0.1662164778, 0.1083514765, 0.2285125554, 0.0008228979, 0.0505438149, 0.0152847394, 0.1107905656, -0.1350895464, 0.1393830925, -0.1437656283, 0.2167839557, 0.0114599289, -0.0236861166, 0.1196860746, 0.0785722584, 0.2152784318, -0.3734225333, -0.0879539251, 0.3802247047, 0.0036182024, -0.0550883487, 0.2510706782, -0.1774546355, 0.1055360362, -0.3337083161, 0.125999704, 0.0219996553, -0.0112515185, 0.0445521139, 0.0570073687, 0.3191562593, 0.238655597, 0.0312072858, -0.1684141308, 0.0701488405, 0.2066922337, 0.1590729356, -0.1255205721, -0.20621562, 0.1331345886, 0.117576994, 0.3228366077, -0.1774733365, 0.0448013172, 0.0218942929, 0.240933612, -0.2790467143, -0.0583260022, 0.0491825007, -0.0904425383, 0.0302370843, 0.0763842687, 0.0497418866, 0.4002770782, 0.0366176218, 0.0061143748, 0.00455066, 0.1683051735, -0.0317318439, 0.1259385794, 0.065998286, 0.0193763804, 0.1408981532, 0.048422996, -0.0848858505, -0.4261253476, 0.0693677962, 0.2345765233, 0.2842162251, -0.2402727306, -0.0254352484, -0.181073159, -0.1028800383, 0.007328887, -0.2082558125, -0.3621988595, -0.1712323129, -0.0444030091, 0.0573198497, 0.3575330377, 0.4174646735, 0.0151982363, 0.2026192844, -0.0546936505, 0.2082865238, -0.0318826623, 0.1065248773, -0.1888446063, 0.0711459443, 0.2013338953, -0.2966157496, 0.2630391419, -0.1011151075, -0.0321428366, -0.5437710285, -0.1558603793, 0.0589281358, -0.1376574039, 0.6657156348, 0.080664143, 0.2712715268, -0.1210121661, -0.0247312691, 0.1031232551, -0.0462438166, -0.3683357835, -0.1972626001, -0.1967572272, -0.2313551456, 0.0360268615, -0.2356438339, -0.6018238664, -0.2213177979, 0.2526877522, 0.0549045615, -0.060102433, -0.1858084947, -0.0669877827, 0.0322646126, 0.0408698097, -0.089945212, -0.3376863897, -0.2377548814, 0.4245756865, -0.4343362153, -0.3915873766, 0.2370034605, 0.0074233417, 0.3968881071, -0.3447407782, -0.6613998413, -0.1008651406, 0.0349786319, 0.1918565035, 0.0226058681, -0.204141289, 0.2734237909, -0.1285286993, 0.0120663103, -0.1414061189, -0.3076224923, -0.2236165702, -0.3928741813, 0.3807627559, 0.0192423742, 0.338751018, -0.0911139622, 0.6539976001, 0.4157341719, 0.2388549894, 0.2456128895, -0.2434656024, 0.3403973877, -0.059995126, -0.4008063078, -0.0629736483, -0.1364578754, 0.1926895082, 0.317771703, -0.029471118, -0.1060597673, -0.2360100597, -0.1372966468, -0.4178409278, -0.2153903991, -0.3830798566, -0.0814937279, 0.2060185522, 0.1619755775, 0.2353352755, -0.2081150264, -0.3160533309, -0.0055546034, 0.6187508702, 0.1576665938, 0.0970100388, -0.4732891321, 0.1413532346, -0.3704361618, 0.2758667767, -0.1474092156, 0.6051356792, -0.1060118675, 0.1750718802, 0.3661352694, 0.0181492567, 0.6329277158, 0.103756547, -0.0004644066, -0.0884213448, -0.2077029347, -0.2761442959, -0.1437648088, 0.0019512906, 0.0992904827, -0.0304656327, 0.2835506499, -0.1197971702, -0.1573011428, 0.5373985767, -0.1240422502, -0.4821054637, -0.3256923556, -0.3162444532, -0.1461955905, -0.2690078318, -0.2301520556, -0.073036097, 0.1618699878, 0.0684465095, 0.0489179045, 0.0685981363, -0.2191613466, 0.099379465, 0.1349116415, 0.0674734265, 0.332495898, 0.3232935667, 0.5260098577, -0.1580013931, 0.0325419307, 0.5238622427, 0.0609075613, -0.7443230748, 0.2881958783, 0.0693232045, 0.1685390323, 0.5154665112, -0.2228272259, 0.1925700158, 0.0270898938, 0.1481059045, -0.184206754, -0.0187174883, 0.576394558, -0.144131422, -0.3225845098, -0.4570174813, 0.3381294012, -0.0666722432, -0.0672051385, 0.3373593688, 0.3723025918, -0.10192357, 0.0822236538, -0.2002149522, 0.8819054961, 0.0120994709, 0.1660909802, 0.3568588495, -0.0576683022, 0.2841311991, -0.0675821528, -0.051216498, -0.2524750531, -0.1880912781, -0.097239159, -0.0068403105, 0.283457756, 0.0670654029, 0.1288518012, 0.0219115447, 0.007706651, 0.4529666901, -0.006737642, 0.244296208, -0.0629717633, 0.0578329302, -0.1391836852, 0.1332511604, -0.0721539259, 0.3711833954, -0.0838002414, -0.0811657086, -0.1580899656, -0.148083359, -0.5062115192, -0.0240173675, -0.2523887753, 0.2404738516, 0.0622756928, -0.2633119226, 0.3670319319, 0.4402301311, 0.132572934, 0.1328642964, -0.2792482078, 0.2835634053, -0.0027476139, -0.1392246038, -0.2913804054, 0.2083943784, 0.1534204483, -0.0777290165, -0.3050301671, 0.2309774756, 0.0540225096, -0.1010585055, -0.5149483681, 0.0785352066, 0.1606068015, -0.4654434025, -0.039431598, -0.2994401455, 0.1645208895, -0.3573899865, 0.1123509854, 0.0012585203, -0.0789592117, -0.2599571049, 0.2741833925, -0.2102517039, -0.1670053303, 0.5705630779, -0.0103292912, -0.232972458, 0.6566419005, 0.0580091141, -0.2975609004, -0.0990652367, 0.1813620478, 0.3120859265, -0.3470049202, 0.0174304564, 0.1020043343, 0.3216626644, -0.0835477188, 0.3575578034, 0.2905367315, -0.2915234268, -0.0814994201, -0.4179543257, -0.1458854377, 0.2684914172, 0.0148503799, 0.2483139634, 0.0238103736, 0.1663606018, -0.0085314438, 0.2331035733, -0.2414612323, -0.0453636348, 0.0329732858, 0.0248671565, 0.3179916441, 0.0709991232, 0.2138608992, 0.0102733718, 0.1185820028, 0.1323438585, -0.3345277011, -0.1326099485, -0.107906878, 0.184473455, 0.109369576, -0.2819365859, -0.1285200417, -0.3084204793, 0.0304134265, 0.001323081, 0.2974723279, 0.2549527884, 0.1987547874, 0.1014206484, 0.245529145, -0.1154994965, -0.0060034865, 0.0874806643, 0.0416752473, 0.4421592355, 0.0918792486, 0.1716615707, -0.0069596414, 0.0604446456, -0.2498303801, 0.0977677256, 0.1436327845, 0.2513310611, 0.0176726282, -0.3435838521, 0.3474814892, -0.0439949445, 0.3228711486, 0.266859144, -0.3956031799, 0.0035281568, 0.1667191982, 0.0444864854, -0.4275804758, -0.1340932846, 0.2340167612, 0.0636261553, 0.0088446354, 0.1874132156, 0.0215743259, 0.3209158778, 0.0766336843, -0.0470368154, 0.2954324782, -0.1137629673, 0.290941447, 0.3897050917, -0.2583377361, 0.2513754666, 0.4401604533, 0.0943971351, -0.3273821473, 0.7607388496, -0.2050259262, 0.189997375, -0.2486549467, 0.2514567375, 0.1069957763, -0.3926802576, 0.1627260596, -0.1969044507, -0.2724962533, 0.0477435254, 0.0224233493, 0.5111359954, -0.2242346555, 0.0936034173, -0.3584043384, 0.1625309885, -0.2211849838, -0.1322040707, 0.106471397, -0.1589512676, -0.1884471774, 0.0792717561, -0.0021445085, -0.4139020741, -0.0704667419, 0.0578203648, -0.3112936318, 0.0043850974, 0.1446053535, 0.1080788374, 0.0828467309, -0.2540676892, 0.247303769, -0.0251762923, 0.290799737, 0.202903986, 0.1348359287, 0.2694586515, 0.0651519373, 0.1666303128, -0.1065580323, -0.179757297, -0.0819279402, 0.1703304052, 0.3616695702, 0.1594555676, 0.1262764037, 0.1598985344, 0.085835658, -0.1068148166, 0.0885977373, 0.3721381724, -0.1044994667, -0.3143390417, 0.4397405982, -0.8139006495, -0.0283500776, -0.262963146, 0.0775756165, -0.1874727011, -0.0845730156, 0.0820659995, 0.0358470269, 0.0507840477, -0.4474399984, 0.0469987541, -0.0923055485, 0.3946449459, 0.1017491594, 0.1213502139, -0.1755257845, -0.3014757037, -0.574254632, 0.2539072633, 0.0472061969, -0.0544534102, 0.0436281525, -0.0167860147, -0.0260395668, 0.1468373835, 0.2543395162, 0.0430494659, 0.0067617171, 0.3453992009, -0.142413646, -0.1553176492, -0.0378026813, 0.3234410286, -0.0264708195, -0.3019377887, 0.2565016448, -0.1277300715, -0.1785956025, -0.188747853, -0.0228092596, 0.1304027289, -0.1928344667, 0.4372803569, -0.1713327467, 0.622985065, -0.0839275792, -0.0553521886, -0.2353432924, -0.30611673, -0.137965709, 0.5692187548, 0.112887226, 0.2160831839, -0.061629951, -0.4521499872, -0.0695841685, 0.1791698039, 0.0078874398, 0.1933438331, -0.352114886, 0.0154405925, -0.2233388871, 0.0513429902, 0.3028326333, 0.0899211913, -0.1412072033, 0.1401317567, -0.1846521497, -0.2741224766, 0.6016010642, -0.344250828, -0.0442161709, -0.1774039119, 0.1307498068, 0.1748798937, -0.5128007531, -0.5787436366, 0.160448432, 0.4764450192, -0.057915125, 0.1235580146, 0.5039461255, -0.2568614483, 0.0571020022, -0.0081619127, 0.6422566772, -0.0857252702, -0.1067370698, 0.2628574073, -0.2937579751 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
Yes indeed there is an error in [Hebrew_Squad_v1.py:L40](https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1/blob/main/Hebrew_Squad_v1.py#L40) Here is the fix @MatanBenChorin : ```diff - HebrewSquad( + HebrewSquadConfig( ```
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
20
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes Yes indeed there is an error in [Hebrew_Squad_v1.py:L40](https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1/blob/main/Hebrew_Squad_v1.py#L40) Here is the fix @MatanBenChorin : ```diff - HebrewSquad( + HebrewSquadConfig( ```
[ -0.4104549289, -0.3167884648, -0.0494650342, 0.2509036064, 0.2194038033, 0.1013826877, 0.2151305676, 0.2923053205, -0.1613927037, 0.3173691928, -0.1991312355, -0.0747280121, 0.0283092465, 0.0332928114, -0.0106849736, -0.0282152146, 0.0587945022, 0.1388985813, -0.0157679282, 0.0308224391, -0.2528804541, 0.2718429565, -0.270229578, 0.129094094, -0.1820217371, -0.0479505211, -0.0533413738, 0.0399933495, -0.2499187589, -0.4773534536, 0.3117405176, -0.0180274472, 0.1809162199, 0.212673232, -0.0001155671, 0.1300686598, 0.2235947698, -0.0968008414, -0.3156301677, -0.2444502711, 0.2327677161, -0.2844880223, 0.1151503399, -0.1482871771, -0.3162750006, -0.2742231488, 0.1374584585, -0.2474633604, 0.4535288215, 0.1898740381, 0.2451237291, 0.4832462668, 0.1453765035, -0.3252186775, 0.1237399504, -0.0777276605, -0.3696990311, 0.0449682288, 0.1733278036, 0.1091577932, 0.2620806098, 0.4223322272, 0.1375334412, 0.0401378013, 0.0563094318, 0.0969501808, -0.0178776756, -0.4226773679, 0.1774392873, 0.0674423203, 0.5455457568, -0.3286966085, -0.3151623905, 0.0738736168, 0.2904440761, 0.0606786162, 0.1446697116, 0.0127139073, -0.1665157974, 0.2187371403, -0.1936997324, -0.2586326599, 0.0583105646, 0.2126579732, 0.1010086909, -0.0853971913, -0.2111997902, 0.1032787785, -0.0837665796, 0.0877889469, 0.0765985176, -0.0269209146, -0.1821426898, 0.4297842681, -0.273565501, -0.2790742517, -0.0294758976, 0.0277148541, -0.0708101019, 0.2196935415, 0.2008495033, 0.0861930847, -0.175104782, 0.1028869078, 0.1657784432, 0.2044990212, 0.4406811595, 0.2926548123, 0.2219249457, 0.2428607643, 0.4222407639, 0.0216647238, -0.0967451781, -0.3091507852, -0.2062703818, -0.0958925039, 0.3893690109, -0.0862768143, -0.3858979046, 0.0189057793, -0.1057440415, -0.0019277117, 0.0112632634, 0.4185495079, -0.0091127511, -0.4399209321, 0.0937929973, 0.1621538252, -0.1756312549, -0.3005019128, -0.2718043625, 0.1228625476, 0.0865392461, 0.0959940404, 0.0200500749, -0.2875140607, 0.1739385277, 0.0430124402, 0.2679671645, 0.0563996881, -0.1787300259, 0.0557895899, -0.1029356718, 0.0828923583, 0.1134890839, 0.2113331258, 0.1220501885, -0.0669788569, -0.0191212203, 0.1667260975, -0.1103157103, -0.1460621357, -0.3124558628, 0.1110299379, -0.3605422676, 0.0590535551, -0.2312151492, 0.3268052936, -0.1663824916, -0.3327669799, 0.0919535905, 0.0488553606, -0.1762461066, -0.2267330736, 0.3614429832, 0.5884122252, -0.5333830714, -0.3845393956, 0.1264031976, -0.4003175199, -0.0527763404, 0.3526650071, -0.2277397811, -0.1339853704, -0.3304742873, 0.0395285599, 0.3140380085, -0.5978004932, -0.7494129539, 0.1205661744, -0.1243422106, 0.078583777, 0.0341170393, 0.180099383, 0.3590036333, -0.0420140289, -0.2673478127, 0.0294235144, 0.1325182021, -0.2203442901, -0.3033581674, -0.1473237425, 0.287679255, 0.1375992894, -0.0281152241, 0.1161340103, 0.1929190904, 0.1299346089, 0.404628545, 0.2105176747, 0.1877193749, 0.0924313217, 0.3291696906, 0.0337361731, 0.0572995804, -0.3533324003, -0.5480647087, 0.1096924841, -0.0746235996, 0.3029616177, -0.2580946982, -0.2285460681, -0.3814335167, 0.010369705, -0.4808434248, -0.3668324947, 0.1689890027, 0.0139846606, 0.1277717203, 0.0911499336, 0.0743590295, 0.0023552869, -0.1411259174, 0.1897099316, -0.1216604188, 0.2892808318, -0.1402537078, 0.0062303669, 0.0779254436, 0.1811097711, 0.0541839339, -0.3752587438, -0.1060085073, 0.4217176139, -0.0719608441, 0.083918564, 0.4071854055, -0.222914204, 0.154825896, -0.3578599691, 0.1049769372, 0.039889019, -0.0859503075, 0.0446702652, 0.068855457, 0.4270280004, 0.2219980508, 0.0549050085, -0.1982311755, 0.127647087, 0.2163533568, 0.2245826721, -0.0856607482, -0.2427111566, 0.1721586883, 0.291344285, 0.4446983337, -0.2006416917, 0.0097249728, 0.013689464, 0.3230081499, -0.1573807895, 0.0185752437, 0.0062602703, -0.0648542419, 0.003686233, 0.0183155462, -0.0187548827, 0.2788937092, 0.0580010712, -0.128779158, 0.0767329708, 0.0464692973, 0.0130295167, 0.1539828479, -0.0212345757, 0.0309239719, 0.1526676863, 0.0971985385, 0.0409003794, -0.4996258914, 0.1885822117, 0.0193624645, 0.2889707983, -0.0919079557, -0.1377515644, -0.1166660562, -0.0101694139, -0.1185112447, -0.3591278791, -0.5012978911, -0.1695597172, 0.2327217311, -0.1894080788, 0.3007568419, 0.3986406922, 0.1864696294, 0.2329452336, -0.0277953986, 0.1821514517, -0.1103156433, 0.0181758851, -0.2004804015, 0.0928797349, 0.2140369713, -0.280095607, 0.2968482077, -0.1091369465, -0.0557781979, -0.3955535591, -0.2613513172, 0.1288128346, -0.1287567765, 0.5433508158, 0.141066134, 0.3055947125, -0.0961969867, -0.0302206594, 0.3391644657, -0.0889238194, -0.399848938, -0.1229126155, -0.1217413843, -0.1106680334, -0.0004882091, -0.3389754593, -0.5372869968, -0.2051829845, 0.2016648352, 0.040185567, -0.090495877, -0.3048400283, 0.0680967271, 0.0104893325, -0.0837515742, -0.1000754014, -0.3576008379, -0.1905800551, 0.2431108356, -0.3466060162, -0.4183574915, 0.2203255743, 0.2165909559, 0.362889111, -0.2728363276, -0.5204876065, -0.308339268, 0.014948721, 0.0664504468, -0.0595163964, -0.084507525, 0.3397868276, -0.0963697955, -0.038317699, -0.0979179367, -0.234973073, -0.2148628831, -0.369374156, 0.4491558969, -0.1816815585, 0.2786704302, 0.0427186936, 0.6374414563, 0.563305974, 0.1659816355, 0.1002810374, -0.2938014567, 0.4362478554, -0.1437049806, -0.4222372174, -0.0405875184, -0.1160443351, 0.1446584016, 0.3227173388, 0.0229211636, 0.1142232716, -0.2504553795, -0.0486375801, -0.4081129432, -0.2477879524, -0.3125155568, -0.1122523621, 0.1201305762, 0.1102769449, 0.2265782803, -0.2271255851, -0.1540395766, 0.0842009559, 0.5022850633, 0.0001713694, 0.1628528833, -0.460406214, -0.0054567014, -0.3717859983, 0.3905860782, -0.0231461283, 0.4488960505, -0.0609637089, 0.2029552013, 0.3324772418, 0.0097546345, 0.673807621, 0.0592498817, -0.1556188911, -0.1669998169, -0.1768338978, -0.2614706159, -0.0800782964, -0.1578469723, 0.1913845241, 0.0422717705, 0.2745198309, -0.1910715252, -0.0961466581, 0.4004104733, -0.184106499, -0.396392554, -0.2021477968, -0.2773647904, -0.1504277438, -0.3853245676, -0.1161748841, -0.0565759949, 0.1115546972, 0.0868257508, 0.0524357222, 0.2637267113, -0.2283260375, 0.1319348812, 0.1077260301, 0.1676820815, 0.2539482415, 0.1299703419, 0.4885106385, -0.1317791343, 0.1474881321, 0.5667511821, 0.0469068103, -0.6731206775, -0.0181247387, -0.0212588552, 0.1474421322, 0.5170366168, -0.1709553003, 0.1919338703, -0.194248423, 0.1114842594, -0.1234544218, -0.150076434, 0.6807949543, -0.1150588691, -0.1763877571, -0.3048305511, 0.3850846291, -0.1737276614, -0.0433194675, 0.3330561221, 0.3182587028, -0.0217593182, 0.1243140325, -0.1050251946, 0.9112207294, 0.1201491281, 0.2083533853, 0.3133926094, -0.0470835008, 0.4444881678, -0.0060718483, 0.015671799, -0.2612516284, -0.1535353959, -0.0375244655, -0.0318513252, 0.1904705614, 0.0777926669, 0.0503398031, -0.0457850061, -0.0559879914, 0.4559716582, -0.0817290321, 0.0863861442, -0.1781891435, 0.1893839538, -0.2739075124, 0.1543234885, 0.0284952633, 0.4149605334, -0.1277172714, -0.136172086, -0.2409736067, -0.2520520091, -0.5719162226, 0.0179956499, -0.4365095794, 0.2714219391, 0.1495900303, -0.2568646669, 0.3810406625, 0.5281837583, 0.2874056697, 0.0828295648, -0.3023020327, 0.1877733469, 0.0585527979, -0.181521371, -0.1987962574, 0.1813455522, 0.0360513851, -0.1143333018, -0.2827194631, 0.246894598, 0.0387797877, -0.0406823158, -0.465572536, -0.0039847987, 0.0950903818, -0.393661797, -0.0806331933, -0.2257558107, 0.0414804444, -0.391049087, 0.144667685, 0.0415344834, -0.102113165, -0.2132480145, 0.1706935912, -0.113597773, -0.0431330092, 0.4346370995, -0.0127967335, -0.3840824366, 0.6547751427, 0.0700487718, -0.2780730426, -0.1580767632, 0.1088199541, 0.303932339, -0.3954705894, 0.1182807609, 0.1341749132, 0.2375946194, -0.0424065329, 0.4538884163, 0.3603847623, -0.2333386093, -0.1462567151, -0.3861100972, -0.0802718699, 0.3859263062, 0.1429761052, 0.2866920233, -0.0184444245, 0.3639810383, 0.0807746276, 0.3636067808, -0.2916695774, 0.1238223463, 0.0658455864, 0.0055110892, 0.1545861065, -0.0032435062, 0.3070398569, 0.031830363, 0.0719449893, 0.2343746871, -0.4306604266, -0.1525143832, 0.0094488868, 0.1627278626, 0.0582078993, -0.1610642821, -0.1020718142, -0.1740547568, 0.0878754035, 0.0294501577, 0.2420414537, 0.2974666357, 0.1703735739, 0.1823061258, 0.352199316, -0.0940852016, -0.0008827396, 0.0532907508, 0.0554098524, 0.3725815713, 0.1616150439, 0.1482372135, -0.0921776444, -0.0291882195, -0.0469314903, 0.1714248657, 0.1793953031, 0.3713233769, -0.0157463215, -0.2326951027, 0.3195191324, 0.0036607634, 0.4072705507, 0.2284102291, -0.4033738971, 0.0451122224, 0.0503020659, 0.0819026157, -0.5254381895, -0.1558968872, 0.2441251129, -0.0699196532, 0.0623181984, 0.1306620091, 0.1093179956, 0.3916524649, 0.2159377187, -0.0935026333, 0.2575841248, -0.3769112825, 0.3267017007, 0.3598335087, -0.2574655414, 0.1216171384, 0.3474386632, -0.0553591326, -0.1996722519, 0.6099564433, -0.2469272017, 0.1948240548, -0.2389719784, 0.1199486032, 0.2054173946, -0.2726415396, 0.1702350676, 0.0317233577, -0.1266701669, 0.0191814713, 0.0210284516, 0.7551050186, -0.2530945837, 0.1032055691, -0.2779280543, 0.1533357352, -0.2203543782, -0.120831877, 0.0426387042, -0.2625305355, -0.2723568082, 0.0130202444, -0.0820961446, -0.2990115285, -0.0076619298, -0.0323932208, -0.2602051198, 0.0549240932, 0.1144756451, 0.083897531, 0.0019240325, -0.2129182816, 0.2603434622, 0.0103850905, 0.210256204, 0.2226710171, 0.1789885163, 0.3333219588, 0.1041192636, 0.11238686, -0.0814263076, -0.1598253399, -0.0060618874, 0.1309705228, 0.2446330339, 0.1601870805, -0.1025606692, 0.1956026852, 0.1217368916, -0.1704570502, -0.0362055972, 0.1757401079, -0.0181227159, -0.1954322606, 0.4052528739, -0.8613062501, -0.0828012824, -0.3628158271, 0.0728384927, -0.1670185775, -0.1234435141, -0.1155568659, -0.0338924043, 0.0101643652, -0.3647830486, 0.0944242179, -0.0008378207, 0.4306947291, 0.2508539557, 0.0399253555, -0.1561281085, -0.4195434749, -0.598644197, 0.3111340404, 0.1415499002, 0.1980803162, -0.0220259763, 0.0985712633, 0.0794792026, 0.1836226434, 0.4247409105, 0.0149322255, -0.0940006524, 0.1646972597, -0.1715811044, -0.0342652872, -0.0166288801, 0.1539578885, 0.1306528151, -0.2125739455, 0.2291101962, 0.0522524454, -0.1156927869, -0.1887672693, 0.0663167983, -0.0760385171, -0.3296333253, 0.2723739445, 0.0388586447, 0.4467518628, -0.1225125864, -0.1782890558, -0.0936446115, -0.3313732147, -0.0995511413, 0.5298048258, 0.1232993603, 0.2962005734, -0.0867888704, -0.5480322838, -0.1270999163, 0.1085521504, 0.1327723265, 0.2201081514, -0.473849088, -0.0204175431, -0.1430407763, -0.0090691885, 0.2223155946, 0.1867270917, -0.1403375119, 0.1601219475, -0.2624346912, -0.3679656982, 0.5288370848, -0.1248371825, 0.011382373, -0.0627689138, 0.1580920219, 0.1961274445, -0.5072522759, -0.6277361512, 0.1224931851, 0.4021444917, 0.0693399608, 0.1041973308, 0.3906593323, -0.3111686707, -0.0504126959, 0.0561098456, 0.6638247371, 0.0055202958, -0.0233392268, 0.3375025392, -0.3140865862 ]
https://github.com/huggingface/datasets/issues/3952
Checksum error for glue sst2, stsb, rte etc datasets
Hi, @ravindra-ut. I'm sorry but I can't reproduce your problem: ```python In [1]: from datasets import load_dataset In [2]: ds = load_dataset("glue", "sst2") Downloading builder script: 28.8kB [00:00, 11.6MB/s] Downloading metadata: 28.7kB [00:00, 12.9MB/s] Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown size, total: 11.90 MiB) to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad... Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 7.44M/7.44M [00:01<00:00, 5.82MB/s] Dataset glue downloaded and prepared to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad. Subsequent calls will reuse this data. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3/3 [00:00<00:00, 895.96it/s] In [3]: ds Out[2]: DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 67349 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 872 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1821 }) }) ``` Moreover, I see in your traceback that your error was for an URL at https://firebasestorage.googleapis.com However, the URLs were updated on Sep 16, 2020 (`datasets` version 1.0.2) to https://dl.fbaipublicfiles.com: https://github.com/huggingface/datasets/commit/2f03041a21c03abaececb911760c3fe4f420c229 Could you please try to update `datasets` ```shell pip install -U datasets ``` and then force redownload ```python ds = load_dataset("glue", "sst2", download_mode="force_redownload") ``` to update the cache? Please, feel free to reopen this issue if the problem persists.
## Describe the bug Checksum error for glue sst2, stsb, rte etc datasets ## Steps to reproduce the bug ```python >>> nlp.load_dataset('glue', 'sst2') Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown sizetotal: 11.90 MiB) to Downloading: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 73.0/73.0 [00:00<00:00, 18.2kB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Expected results dataset load should succeed without checksum error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Environment info - `datasets` version: '1.18.3' - Platform: Mac OS - Python version: Python 3.8.9 - PyArrow version: '7.0.0'
179
Checksum error for glue sst2, stsb, rte etc datasets ## Describe the bug Checksum error for glue sst2, stsb, rte etc datasets ## Steps to reproduce the bug ```python >>> nlp.load_dataset('glue', 'sst2') Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown sizetotal: 11.90 MiB) to Downloading: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 73.0/73.0 [00:00<00:00, 18.2kB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Expected results dataset load should succeed without checksum error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Environment info - `datasets` version: '1.18.3' - Platform: Mac OS - Python version: Python 3.8.9 - PyArrow version: '7.0.0' Hi, @ravindra-ut. I'm sorry but I can't reproduce your problem: ```python In [1]: from datasets import load_dataset In [2]: ds = load_dataset("glue", "sst2") Downloading builder script: 28.8kB [00:00, 11.6MB/s] Downloading metadata: 28.7kB [00:00, 12.9MB/s] Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown size, total: 11.90 MiB) to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad... Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 7.44M/7.44M [00:01<00:00, 5.82MB/s] Dataset glue downloaded and prepared to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad. Subsequent calls will reuse this data. 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3/3 [00:00<00:00, 895.96it/s] In [3]: ds Out[2]: DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 67349 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 872 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1821 }) }) ``` Moreover, I see in your traceback that your error was for an URL at https://firebasestorage.googleapis.com However, the URLs were updated on Sep 16, 2020 (`datasets` version 1.0.2) to https://dl.fbaipublicfiles.com: https://github.com/huggingface/datasets/commit/2f03041a21c03abaececb911760c3fe4f420c229 Could you please try to update `datasets` ```shell pip install -U datasets ``` and then force redownload ```python ds = load_dataset("glue", "sst2", download_mode="force_redownload") ``` to update the cache? Please, feel free to reopen this issue if the problem persists.
[ -0.0671884269, 0.1787162572, -0.0147207007, 0.2622029185, 0.2177488953, -0.1340348721, 0.1646665037, 0.3809954524, 0.2130874395, -0.0059030103, -0.0861569941, 0.0618883483, 0.0476297215, 0.2141877562, 0.0418718122, -0.0405455232, -0.0152418138, -0.0524373092, -0.2798446715, 0.1639459729, -0.1584367454, 0.3463347554, -0.1569362432, -0.1800523698, -0.1639239937, 0.0982373133, 0.0486513153, 0.1676202267, -0.1455791593, -0.306702733, 0.0553165302, 0.0415741391, 0.0050719171, 0.2880762815, -0.0001127217, 0.0792040825, 0.5285391808, -0.1051177233, -0.2609041035, 0.1533358991, -0.0594282337, -0.2938540876, -0.0908590332, -0.273142457, 0.0386816971, 0.2741304636, -0.0576672927, -0.1645521075, -0.0207885783, 0.1585751176, 0.2541364431, 0.5122371316, 0.2858025134, 0.2648346424, 0.4789223075, -0.4634755552, -0.066945985, 0.4398517013, 0.1693460345, -0.1131617501, -0.0695995092, 0.2199506164, -0.207542643, 0.0165759157, -0.0173022635, -0.0878706202, -0.088362813, -0.1281587481, -0.0380855948, 0.2778962553, 0.1849637628, -0.4158976972, -0.3692349195, -0.1844171286, -0.008718973, 0.2744036615, 0.3993844688, 0.4050830305, -0.0587355271, -0.0569900721, -0.2348704934, 0.2480698228, 0.1788450778, 0.0079565225, 0.1866066158, 0.1626895964, 0.0539451614, 0.0292243939, 0.1087218821, -0.184432894, -0.295438379, -0.090671435, -0.2178563923, 0.0153783001, -0.5871677995, -0.1529459655, 0.0650215, 0.3687285483, 0.1272166967, 0.3131500483, 0.0500432104, 0.0376669429, 0.0620285198, 0.0887449607, -0.0481866039, 0.1607342809, 0.0232841168, 0.0993209705, 0.3288431168, 0.1968703568, -0.0617859885, 0.0808815509, 0.0559894405, -0.2374122739, 0.0807486773, 0.1429014653, 0.1524629593, -0.2870586514, -0.4671035409, 0.2998576164, 0.0216794815, 0.0492880195, 0.0984915644, 0.1967431605, -0.302246362, 0.0059603611, 0.1782278121, 0.0296936594, -0.1722764373, -0.1047387421, -0.1682981253, 0.1819141805, -0.1995644122, -0.0942768753, 0.244140625, -0.3175604641, 0.3001100421, -0.0926741585, -0.0644676611, -0.0700123832, 0.005962214, -0.2478691787, -0.0336705148, 0.2952058613, -0.0610092245, 0.0594496392, 0.0245097671, -0.1238793582, -0.0652924404, -0.0366829224, -0.2259283513, -0.1059476957, -0.4280589521, 0.212384969, -0.5210896134, 0.0187126826, -0.0374259539, -0.3463672101, 0.2859887183, -0.1537164748, 0.1475516111, -0.209332794, -0.3316104114, -0.3552059531, 0.1609103978, 0.2788502574, -0.1164489165, -0.0097813457, -0.0360124856, -0.3200136423, 0.1861367375, 0.2783740759, 0.215325743, 0.2464402318, -0.3957542777, 0.1882582158, 0.2193168253, -0.2674518526, -0.5852255225, 0.2623680234, 0.0679157004, 0.0631839335, 0.045910608, 0.0869377404, 0.0410213992, -0.2004757375, 0.1557481736, 0.3058225513, 0.0642992556, 0.3108572066, -0.551122129, -0.2260422558, 0.2275690138, 0.1600198895, -0.1308975369, -0.1657431722, 0.2566594481, 0.1216819137, 0.0984170064, 0.1289338171, 0.0304950047, 0.178243503, 0.2857559621, -0.2077769041, 0.0670331642, -0.4600883722, -0.4718078375, 0.2749315202, -0.2038859278, 0.2327619642, -0.1857413203, -0.0186841302, -0.3012112081, -0.1335270852, -0.0225117467, -0.0725781694, 0.2280361652, 0.2757359147, 0.2199953794, 0.1239233539, -0.0314604044, 0.3188431859, -0.203610763, 0.0596894883, -0.1580877453, 0.5122646093, -0.0626792908, -0.3088286519, 0.1730993688, 0.3362633586, 0.0206827801, -0.0567379929, -0.2537503242, 0.6166081429, 0.0516575649, 0.0743112862, -0.0870449394, 0.1346782744, 0.020300813, -0.2407771498, -0.0202232711, 0.2986131907, 0.1002101153, -0.0104842037, 0.1652026027, 0.2439778, -0.2789331675, -0.0458984077, 0.0711231679, 0.0134814344, 0.1265434772, -0.3125063479, -0.1915133893, -0.2765544355, 0.2906631231, 0.1425997913, 0.1591898799, 0.154539153, 0.0036097944, 0.0135528585, 0.5171050429, 0.0430106334, 0.1855410337, -0.010092603, 0.0480356812, -0.0127973007, 0.061853379, 0.484942317, 0.4015760422, 0.066055879, 0.1122706085, 0.1525214612, -0.1818078607, -0.0266306698, 0.1443310082, -0.0386357121, -0.0555517562, 0.4007840157, 0.1236713156, 0.1513871402, -0.2084617615, 0.0684619173, 0.0351408646, 0.2023370415, -0.4411249757, -0.2767030895, -0.3105101883, -0.4415131509, -0.3549076915, 0.1376702338, -0.3330469429, -0.3065845966, -0.0426151641, 0.1029880196, -0.2490517497, 0.0909170657, -0.409011662, -0.0086507909, 0.2510764301, -0.2254995257, 0.2640662789, 0.097663179, -0.1357088834, 0.0797717124, 0.5637332797, 0.3094775379, 0.4695548713, -0.1877488792, -0.0889443234, -0.368277669, -0.2777638137, 0.1689400971, -0.1807104647, 0.3127718568, 0.439666748, 0.0727532655, 0.0740081742, -0.3028743565, 0.2637736797, -0.1146066785, -0.388048768, 0.3122305274, -0.0413790569, -0.1285752356, -0.2759370804, -0.0168488584, -0.0973510966, -0.4028921425, -0.0106554627, -0.1630794108, 0.2472699881, 0.0730063319, -0.1938679963, 0.219988063, -0.1373535991, 0.3438788056, -0.111646682, -0.4498355389, 0.3288370967, 0.0327136852, -0.4012392163, -0.0856252611, -0.0997944325, -0.0702848285, 0.0490832254, -0.5313175321, -0.3595403135, -0.415871501, 0.0363899171, 0.1391942054, 0.0933343098, 0.0729347616, -0.1139890403, -0.0269024875, -0.3220072389, -0.2428337634, 0.1113381982, 0.1950953007, 0.3938701153, 0.0438043065, 0.2344284505, 0.1719081104, 0.005307368, 0.5169698596, -0.1140006259, 0.4752206206, 0.1185994074, 0.3399910033, -0.0184927098, -0.235123679, 0.2634163499, -0.0155122792, 0.1688658893, 0.2353582084, -0.0539694652, 0.0114368768, -0.1807580888, 0.0038752712, -0.2956874967, -0.2446224988, 0.1001681015, -0.3998335898, 0.2036003917, -0.1168571636, -0.2411451042, 0.063956961, -0.2269168198, 0.1561281085, 0.2127524614, -0.0622440912, 0.0084996438, -0.5113781691, -0.1456171125, -0.0198566243, 0.1936825663, 0.3519090414, 0.6147302389, -0.0229208283, -0.2153008878, -0.1089105159, -0.0608054362, 0.226526767, -0.4343607724, 0.4192256331, 0.1166336313, 0.2193747163, -0.3808985054, -0.250175029, -0.2579206228, -0.0840819329, 0.6861388683, 0.1579570025, -0.521494925, 0.0245845877, 0.3652639985, 0.2029580623, 0.0175510645, -0.198063314, -0.3866924345, -0.1877592504, -0.2662118971, 0.0700213015, 0.1242728978, 0.3120658398, 0.0020984116, 0.0208609942, 0.1101869866, -0.1362661719, 0.0502409302, -0.0296543445, 0.3451433778, 0.0414056778, 0.3867711127, -0.3080473244, 0.1677709073, -0.1601118892, 0.8061738014, -0.1973908842, 0.2461155951, 0.1065203026, -0.08675313, 0.0069012539, 0.1476027369, -0.1769328415, 0.052221708, -0.065037176, 0.1318974793, 0.0991497636, -0.0157273803, 0.0438723452, 0.0157795716, -0.0370845459, 0.0532869436, 0.0181720629, -0.0915769786, 0.0735703334, -0.0079844939, 0.0451152995, -0.2149579823, 0.3160795271, 0.0076000262, 0.6805048585, 0.145584181, -0.1935416609, 0.1063760296, -0.0926237032, 0.2584163845, 0.1321800053, -0.1665464491, -0.429874599, -0.513841033, 0.1064195707, -0.1926729232, 0.0547238886, -0.1302087009, -0.2719285786, 0.2535785139, 0.3267375231, 0.3031525314, 0.1172899902, 0.4138940871, -0.2994174063, 0.0989783108, -0.1570074856, 0.1695716977, -0.1671591252, 0.1111707613, -0.0733098015, -0.0849759057, 0.1214045137, -0.2465945929, -0.5065399408, 0.1938320398, -0.3129301667, 0.0062041376, 0.4702194333, 0.2282437682, -0.0150344726, -0.0465217791, 0.2879865766, 0.3689441085, -0.1970766932, -0.0942712724, 0.2973201871, 0.1889048666, 0.2350233644, 0.0626608133, 0.5235114694, -0.2184564769, -0.1756021231, -0.2347709835, -0.0525577329, -0.3625360131, 0.2506167591, -0.1479134858, -0.1694025546, -0.2482113391, -0.1472798437, -0.087371327, -0.1018586606, -0.0974305198, 0.1780957431, 0.2320171744, -0.102678895, 0.3495878279, 0.1024907678, -0.3164367378, -0.0005446583, 0.4319514632, -0.1861515939, 0.0382864028, 0.2244018167, 0.0294461492, -0.2645074129, -0.1698270589, -0.1774072647, -0.4137502611, -0.3327895701, 0.1157561839, -0.3050934672, -0.0574946553, -0.0507936217, 0.1977875233, 0.2916071415, 0.2298579216, 0.0269006006, -0.6651597619, -0.0497067273, 0.258271724, 0.1077687144, 0.328225404, -0.3763077557, 0.3069141805, 0.0522926599, 0.00132145, -0.3556439281, 0.0674003512, -0.354483515, 0.1974737495, 0.165174976, -0.0704750568, -0.0796090588, -0.0500935875, 0.1449734569, 0.178664878, -0.1547445506, -0.2485942543, -0.1042463481, 0.1226804107, 0.1072422266, -0.0989276171, 0.06626039, -0.1728489101, -0.0940236896, -0.1148279384, 0.0553298034, -0.0710924789, -0.2051967531, 0.2805666924, 0.3270482123, -0.1300320327, 0.1625773758, 0.177151233, -0.4183608592, -0.0673101619, 0.0300518051, 0.2220700532, -0.1026613116, 0.0342918709, 0.0526461899, 0.0834020376, -0.1717394143, 0.2136404663, 0.1228518113, -0.0812122747, -0.3181112111, 0.0847118422, 0.3731804192, 0.2852009535, -0.3322401941, -0.1893791407, 0.2628583014, 0.2594854236, -0.3488404453, 0.154352814, 0.164709121, 0.1121841967, 0.1005295962, 0.2143286914, 0.3067062199, -0.2958471179, 0.1885896623, 0.0203305222, 0.2798493207, 0.0977291316, -0.1023573205, 0.2398057878, 0.0540305711, -0.1440458894, 0.088205114, -0.6670595407, -0.0923028067, -0.143434912, 0.2576385736, 0.206525594, -0.0500351451, 0.1859739423, 0.0789371282, -0.2398812473, 0.3622363508, 0.3721350431, 0.0026816167, 0.0358342044, 0.0766103491, 0.3489763439, 0.0020526233, 0.0353465602, -0.3632799983, 0.3016093671, -0.0658970773, -0.0915954486, -0.1511942744, -0.1208811626, -0.306578666, 0.1836931258, 0.0134424893, 0.148127079, 0.3279654682, 0.2135237455, -0.0842358023, -0.4465109706, -0.1528283507, 0.2110643536, 0.0622847863, -0.4452368915, 0.4017426074, 0.2116856575, -0.0165036004, -0.0756608695, 0.6375486851, 0.3867806792, 0.3736794889, -0.0373149998, -0.238965258, 0.107610777, 0.1628593355, -0.1709814966, 0.5656094551, -0.0528409146, -0.0984809399, 0.465369463, 0.1199005619, -0.1591745615, -0.147108376, -0.2410643846, -0.3202635944, -0.0555790849, 0.5560545325, -0.0140923327, 0.0976328105, -0.1698482484, 0.1379299313, -0.4571796954, -0.4514973462, 0.2076003104, -0.0816714317, 0.2814083695, -0.186842218, 0.1126420721, -0.0447660908, 0.552149415, 0.3094764352, 0.1394037008, -0.0895555392, -0.4337483943, -0.5978022814, 0.2270231247, -0.0526902862, -0.0472698584, 0.0534558818, 0.1914737076, -0.2225260139, 0.2241144031, 0.1751440912, 0.2219579965, -0.2595817745, -0.0486316048, -0.387044847, -0.0731805936, -0.0332031623, -0.1720261276, -0.0093689431, -0.5157327652, 0.0987216234, -0.0635470524, 0.1462345719, 0.0348950624, -0.245480448, 0.0316530466, 0.0593115315, 0.2612817585, 0.1583230048, 0.5676758885, -0.1291759908, -0.1305196881, -0.2507053018, -0.2135343552, -0.0932487696, 0.1127106845, -0.0638596043, 0.4340497255, 0.203885749, 0.1647671014, -0.1227575466, 0.2358613014, -0.0210035238, 0.140322119, -0.2057474405, -0.0195237938, -0.1190892905, 0.0483809225, -0.054860685, -0.0404799655, -0.1020195261, 0.3314634562, -0.1427889615, -0.6168128252, 0.3792296946, -0.0402347893, -0.0192732327, -0.010826014, 0.3548794985, -0.288374871, -0.1035207212, -0.7209509015, -0.0574400239, 0.319144398, 0.1289780736, -0.1252451241, 0.3884679675, -0.1163342968, 0.2696098983, 0.0702374876, -0.0285386946, -0.0103832129, -0.2392731905, -0.0763641223, -0.2572534978 ]
https://github.com/huggingface/datasets/issues/3951
Forked streaming datasets try to `open` data urls rather than use network
Thanks for reporting this second issue as well. We definitely want to make streaming datasets fully working in a distributed setup and with the best performance. Right now it only supports single process. In this issue it seems that the streaming capabilities that we offer to dataset builders are not transferred to the forked process (so it fails to open remote files and start streaming data from them). In particular `open` is supposed to be mocked by our `xopen` function that is an extended open that supports remote files. Let me try to fix this
## Describe the bug Building on #3950, if you bypass the pickling problem you still can't use the dataset. Somehow something gets confused and the forked processes try to `open` urls rather than anything else. ## Steps to reproduce the bug ```python from multiprocessing import freeze_support import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets import torch.utils.data # work around #3950 class TorchIterableDataset(datasets.IterableDataset, torch.utils.data.IterableDataset): pass def _ensure_format(v: datasets.IterableDataset) -> datasets.IterableDataset: return TorchIterableDataset(v._ex_iterable, v.info, v.split, "torch", v._shuffling) if __name__ == '__main__': freeze_support() ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) ds = _ensure_format(ds) model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results I'd expect the dataset to load the url correctly and produce examples. ## Actual results ``` warnings.warn( ***** Running training ***** Num examples = 8000 Num Epochs = 9223372036854775807 Instantaneous batch size per device = 8 Total train batch size (w. parallel, distributed & accumulation) = 8 Gradient Accumulation steps = 1 Total optimization steps = 1000 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 22, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in __next__ data = self._next_data() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data return self._process_data(data) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data data.reraise() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/_utils.py", line 434, in reraise raise exception FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0. Original Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop data = fetcher.fetch(index) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 32, in fetch data.append(next(self.dataset_iter)) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 497, in __iter__ for key, example in self._iter(): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 494, in _iter yield from ex_iterable File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 87, in __iter__ yield from self.generate_examples_fn(**self.kwargs) File "/Users/dlwh/.cache/huggingface/modules/datasets_modules/datasets/oscar/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2/oscar.py", line 358, in _generate_examples with gzip.open(open(filepath, "rb"), "rt", encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: 'https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/en/en_part_1.txt.gz' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 27, in poll pid, sts = os.waitpid(self.pid, flag) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler _error_if_any_worker_fails() RuntimeError: DataLoader worker (pid 6932) is killed by signal: Terminated: 15. 0%| | 0/1000 [00:02<?, ?it/s] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
95
Forked streaming datasets try to `open` data urls rather than use network ## Describe the bug Building on #3950, if you bypass the pickling problem you still can't use the dataset. Somehow something gets confused and the forked processes try to `open` urls rather than anything else. ## Steps to reproduce the bug ```python from multiprocessing import freeze_support import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets import torch.utils.data # work around #3950 class TorchIterableDataset(datasets.IterableDataset, torch.utils.data.IterableDataset): pass def _ensure_format(v: datasets.IterableDataset) -> datasets.IterableDataset: return TorchIterableDataset(v._ex_iterable, v.info, v.split, "torch", v._shuffling) if __name__ == '__main__': freeze_support() ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) ds = _ensure_format(ds) model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results I'd expect the dataset to load the url correctly and produce examples. ## Actual results ``` warnings.warn( ***** Running training ***** Num examples = 8000 Num Epochs = 9223372036854775807 Instantaneous batch size per device = 8 Total train batch size (w. parallel, distributed & accumulation) = 8 Gradient Accumulation steps = 1 Total optimization steps = 1000 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 22, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in __next__ data = self._next_data() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data return self._process_data(data) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data data.reraise() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/_utils.py", line 434, in reraise raise exception FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0. Original Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop data = fetcher.fetch(index) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 32, in fetch data.append(next(self.dataset_iter)) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 497, in __iter__ for key, example in self._iter(): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 494, in _iter yield from ex_iterable File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 87, in __iter__ yield from self.generate_examples_fn(**self.kwargs) File "/Users/dlwh/.cache/huggingface/modules/datasets_modules/datasets/oscar/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2/oscar.py", line 358, in _generate_examples with gzip.open(open(filepath, "rb"), "rt", encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: 'https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/en/en_part_1.txt.gz' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 27, in poll pid, sts = os.waitpid(self.pid, flag) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler _error_if_any_worker_fails() RuntimeError: DataLoader worker (pid 6932) is killed by signal: Terminated: 15. 0%| | 0/1000 [00:02<?, ?it/s] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Thanks for reporting this second issue as well. We definitely want to make streaming datasets fully working in a distributed setup and with the best performance. Right now it only supports single process. In this issue it seems that the streaming capabilities that we offer to dataset builders are not transferred to the forked process (so it fails to open remote files and start streaming data from them). In particular `open` is supposed to be mocked by our `xopen` function that is an extended open that supports remote files. Let me try to fix this
[ -0.2870965898, -0.5631282926, 0.0720065162, 0.2570628524, 0.0303519052, -0.1619096547, 0.2698484361, 0.1394547522, -0.2965719104, 0.1078559384, -0.1819486618, 0.3537836969, -0.1617898494, -0.164617002, -0.0302211326, -0.2005798072, -0.1129440665, -0.3893051744, -0.0884459093, 0.0187961627, -0.1773915589, 0.121495083, -0.1350803077, -0.0599633865, -0.4820871055, 0.0023100877, 0.1904230118, 0.358984679, 0.222457394, -0.3466113508, 0.0885848254, 0.0752565712, 0.1442524791, 0.6337682009, -0.0001134737, 0.1943347156, 0.2620246708, 0.040805459, -0.5643596053, -0.074941963, 0.4333417714, 0.0865067691, 0.1597342044, 0.0586149618, -0.2583885193, -0.0587732568, 0.1690476537, -0.2873458266, 0.404671371, 0.1014300138, 0.1623076946, 0.2826907635, -0.060688775, -0.0798823014, -0.0214814078, -0.1863978356, -0.1825695485, 0.3996267319, 0.3351539969, 0.489954263, -0.2080135792, 0.2411509603, -0.118230246, 0.0372100323, -0.1786325723, 0.0104727587, -0.2469743192, -0.2918773592, 0.2357307673, 0.2047274262, 0.0856957957, -0.2227982134, -0.1039275378, -0.4514977038, -0.2592012882, -0.5185244083, 0.1607551426, 0.2118049115, -0.1077570468, 0.3553254902, -0.0274612792, -0.12173298, -0.0398899503, 0.1024639234, 0.1833175123, 0.5171038508, 0.0345720164, 0.2528187931, 0.2269564718, 0.2511652708, 0.5346295238, -0.1035880968, 0.0488183759, -0.2840174735, -0.185924992, 0.1549339443, 0.0100023812, -0.3665381372, 0.0448316671, 0.5970572829, 0.1879024953, 0.2373394519, -0.2093815506, -0.0131010059, 0.0124098426, -0.1814303845, -0.4221513867, 0.5087376237, 0.2991478443, 0.1309565455, -0.1107273623, -0.0132313715, -0.0433245525, -0.229955256, -0.2799779475, 0.0127869304, 0.3704043627, 0.042345576, -0.2662470639, -0.1015282348, -0.3517967165, 0.1443018913, 0.2517871559, 0.3908139467, -0.332043767, 0.343069613, 0.0167831089, 0.1355471909, -0.2647653818, -0.0253935829, -0.2270781547, -0.2870771885, -0.1375330538, 0.1537860781, 0.1446015388, -0.023668481, 0.2045024782, 0.0721865818, -0.0784843713, -0.0565692261, 0.241883263, -0.177652657, 0.4081071317, 0.1918094754, 0.1061062068, 0.194511801, 0.1278273314, 0.1103060097, 0.098303549, 0.2641662061, -0.214008972, -0.53309834, 0.0228160005, 0.1447576135, -0.0116793085, -0.0871268511, -0.065712519, 0.1787025779, 0.1787838936, -0.0636337399, 0.0435405411, -0.1093472317, -0.1625621021, -0.1573069394, 0.3594925106, 0.3454940617, -0.1518588513, -0.1391093582, -0.0080923494, -0.0029587199, 0.4498915076, 0.390629679, -0.3132078648, -0.1816820353, -0.1388423443, -0.0270687062, 0.0933199376, -0.2461149693, -0.2997510135, 0.115039967, -0.2636758089, 0.3652556539, 0.141094476, -0.1039148867, 0.1370261908, 0.1123225316, 0.0737768486, 0.351880908, -0.0076680286, 0.1006370932, -0.5596889257, -0.1515762955, 0.1470392793, 0.1377109885, 0.0915559083, -0.0358399227, -0.1351518035, -0.0884352028, 0.3987066448, -0.0607229061, 0.2349464595, -0.193233788, 0.2199248075, 0.2043254226, 0.0431906395, 0.1155527383, -0.3554562032, 0.2734995484, 0.2151586413, 0.0025724012, -0.0737035945, 0.068096526, -0.0479245223, 0.0058528255, -0.3648362458, -0.4331073463, 0.0622030497, 0.4082137644, -0.232137233, -0.1551721245, -0.270237118, 0.0662769675, -0.2947775126, 0.1944502741, -0.162016809, 0.4063767493, -0.011488203, -0.1746576428, -0.3785019815, 0.0283310153, 0.0529450178, -0.1033524573, -0.1729181558, 0.4249451458, -0.0595153719, 0.1230588406, 0.225105837, 0.0682825148, 0.1581526697, -0.613601923, -0.0889028981, 0.438336581, 0.1014891192, 0.0260615144, -0.0306431893, 0.242634207, 0.0567742363, 0.1376371086, 0.1585642546, 0.1076619625, 0.2813820839, 0.0453043878, -0.0749849156, 0.179725036, -0.0364610292, -0.2472739965, 0.7129151821, -0.1325658262, -0.5776299834, 0.1322023422, 0.099034369, -0.0096149566, 0.0342473127, 0.0847042352, -0.1821080893, -0.1023910791, -0.0629632026, 0.1478701532, 0.1769316941, 0.0884115323, 0.1944230199, 0.1137367487, -0.2454302311, -0.3310787082, 0.2949771881, 0.2056519687, -0.0974295884, 0.2715381086, 0.0969125554, -0.0595852099, -0.3467158973, -0.3484866321, 0.1190290898, 0.0543306507, -0.290718019, 0.3410308957, -0.2922622263, 0.1621411145, -0.4496282041, -0.2983996868, -0.1690266132, -0.3218835592, -0.01976786, 0.6049591899, -0.2085670978, 0.3427560627, 0.0182428621, 0.3077005446, 0.0256080013, -0.0153968614, 0.0629721433, -0.0936800838, -0.302200973, 0.1220193878, 0.2201338112, -0.22256127, 0.1372459382, 0.1489595175, -0.2579112351, -0.2868020535, -0.0782753974, 0.1331385672, 0.1256007999, 0.1362882704, 0.1021271795, 0.2644822896, 0.0886969864, -0.3511514366, 0.1557751298, -0.0384031013, 0.2087235004, -0.1631651223, -0.1000266373, 0.0996644646, -0.1359335035, -0.5946364999, -0.2917331755, -0.4489012063, 0.1770534515, 0.0576130636, 0.1299429834, 0.4917017817, 0.067131795, 0.246233061, 0.2121889144, 0.0218560267, -0.2242528647, -0.2401771396, 0.1131433249, -0.2200054228, -0.1807931662, -0.2044465691, -0.0805071294, 0.0287820157, 0.152164042, -0.3083095551, 0.5777133703, -0.2314187139, 0.1100646406, -0.00684543, -0.2493574768, 0.1407037526, 0.0038824182, -0.0495882034, -0.2155330479, 0.0002065105, 0.1065713391, -0.0667475238, 0.3242482245, 0.0822091624, 0.1071249098, 0.2758023441, 1.1841653585, 0.0227704588, -0.0718183368, 0.2938151956, -0.1275361478, 0.059478078, -0.1782371551, -0.0210758001, -0.0010063594, -0.1209571734, -0.1667878926, 0.2142895162, 0.0940361395, -0.198067829, -0.2091481537, 0.2071353197, -0.0800079256, -0.3559710979, 0.2427863926, -0.4322548807, -0.1004033163, -0.0488633513, 0.2106664479, 0.0074665905, -0.0191869941, -0.1216045916, 0.0722799525, 0.2525748014, -0.0918423459, -0.3701784015, 0.2024657279, -0.3072769642, 0.1938697845, -0.0654343963, 0.2759185135, -0.0805374831, -0.4596850872, 0.2894636691, 0.0333416462, 0.4641453624, -0.2153087109, 0.1789598167, 0.1444218755, -0.2217035294, -0.259378463, -0.1141583323, -0.15110071, 0.1282444, 0.3818031847, -0.0010051698, -0.3946531415, -0.0448053069, 0.0257368516, -0.0919070616, -0.0024295312, 0.1230365708, -0.1996302605, -0.1982259154, -0.1660543233, 0.1466742158, 0.3497002423, 0.1837952733, -0.6167585254, -0.1543399692, -0.1254312545, -0.0109477146, -0.0565043539, 0.1358188838, 0.2139648795, -0.0438916199, 0.1829919219, 0.3079816997, 0.5826582909, 0.1446123868, 0.3847775459, 0.1038784608, -0.2154982239, 0.4354355037, 0.3179256618, -0.1282959431, 0.5396999121, 0.102665253, 0.2178667337, 0.4192938507, 0.2780043483, 0.079447642, 0.1766109914, 0.0848353729, -0.0531613268, -0.3626584113, -0.5456215739, 0.3271625042, 0.1712833345, -0.1344827563, 0.5217847228, -0.4891052544, -0.1904145926, 0.3721849024, -0.0555950888, 1.1153513193, 0.1817892641, 0.1449206024, 0.4965230227, -0.1313188225, 0.0043441579, -0.2108381093, 0.1787972897, -0.3248193264, -0.1971559823, 0.0690519288, -0.1586941928, -0.0120757073, -0.108175166, -0.1066004485, 0.1936173737, -0.108003296, 0.131801635, 0.1128961593, 0.0167252813, -0.0837650672, -0.0786183104, -0.0520474613, 0.0651345775, -0.0628477186, 0.3005725443, -0.0261875559, -0.1882047355, -0.0719884634, -0.1656413972, -0.195296362, 0.2589278221, -0.2511563003, 0.2288087606, 0.0221518595, -0.1979717314, -0.2813266218, 0.1897904873, 0.0293234382, -0.1913691461, -0.1902406365, 0.479827255, 0.0884715244, 0.1978864372, 0.0524507686, -0.113049902, 0.4341120124, -0.0588331446, -0.2328647822, 0.2589103281, 0.0310505331, -0.3732735217, -0.0594790243, 0.0357820243, 0.2030559033, -0.1324855238, 0.0142367836, -0.0177523941, -0.4147071838, -0.4028204381, 0.1044170782, -0.1476765871, -0.1802489161, -0.1204514727, 0.1292872131, -0.3195877969, -0.2441375554, 0.4181803465, -0.026958812, 0.331490308, 0.1791153699, 0.2835175693, -0.1431725919, -0.0918676481, 0.0036302609, -0.0942347944, -0.5788173676, 0.2687128484, -0.1345146596, -0.1515173018, -0.0921670273, 0.007994418, 0.0546343811, 0.268979162, -0.4794100821, -0.1284918785, -0.1982037574, 0.052952636, -0.17829597, 0.1753900647, -0.1952743828, 0.4387317896, 0.1526042372, -0.2233172059, -0.3114153743, 0.2095841616, -0.1035508886, 0.0791195109, -0.2962684631, -0.3716920018, 0.1837111562, 0.1084220186, 0.0600555502, 0.1069139093, -0.2149400264, -0.1125807911, -0.2934931815, 0.1632012278, 0.1512724459, -0.393735081, -0.4737842381, 0.068646349, -0.0268536378, -0.1671645194, 0.1829015911, 0.104929015, 0.0402104147, -0.0523502007, 0.2564119697, 0.1749936789, -0.3481611907, -0.0145578291, -0.0275549646, 0.0635550246, 0.2170066237, 0.0404602624, -0.1301353723, -0.2030023634, -0.3919025064, -0.1868089288, 0.2910284102, 0.3095867932, 0.2701134682, -0.1898624748, -0.2561722994, -0.0183699057, 0.3710175157, 0.5555193424, -0.078802973, -0.2877139449, 0.2046500295, 0.1723532379, 0.0201515295, 0.0774405375, 0.0481957942, -0.0978362188, 0.0148278605, 0.0771981627, 0.0347309001, -0.0853708237, -0.3953562379, 0.268229425, 0.1586364508, -0.3627691269, 0.464574337, 0.3732824922, -0.1129745618, 0.13526164, 0.0615622178, -0.2777759731, 0.2253213525, 0.2782126367, -0.1428821236, 0.507594347, 0.0401277356, -0.0950629115, 0.1274449527, -0.4367529154, -0.337659061, -0.0210044514, -0.452901721, 0.2040390968, -0.0660371408, 0.2601692677, -0.247293517, -0.2478887588, -0.209645614, 0.3626465499, -0.2534755468, -0.3861465752, -0.2369689941, -0.070303373, -0.2502599657, 0.0609530322, -0.0759119764, 0.1365477443, 0.2702250779, 0.0043195896, -0.167234838, -0.3307160437, 0.0165107083, 0.0947356299, 0.3122820556, -0.1290071309, 0.2607941628, 0.3395076394, -0.1971660107, -0.0742711276, 0.0248704366, 0.2414729297, 0.2238813788, -0.2403371483, 0.001253922, 0.0994205922, -0.0182593577, -0.1295904815, 0.1780784875, 0.0691158473, 0.0716128349, 0.3908568323, 0.1538602263, -0.2311540991, 0.2027077079, 0.0208586007, 0.525660038, -0.287078023, 0.3746114075, -0.0668782145, -0.1025938466, 0.0974425972, -0.0935319066, -0.3469080329, 0.093616128, 0.3279793561, -0.2251638323, 0.2144277841, -0.149704352, 0.0545739345, 0.1308980584, 0.6007914543, -0.1141903475, -0.2017163634, -0.0281211697, 0.053977184, -0.3593886793, 0.2167969942, 0.0005960827, 0.0901071355, -0.1499831975, 0.1215366498, -0.0335661769, 0.2139341533, -0.2339757979, 0.0117676565, 0.3640279174, 0.3891940117, -0.2880145609, -0.0520436652, -0.1378553808, 0.34736076, 0.0530021675, -0.3156918883, 0.0627726838, 0.1750426143, 0.0741742775, 0.208873257, -0.3471456766, 0.0929502547, 0.1303215921, 0.211597845, 0.1505340487, 0.4078328609, -0.1743921787, -0.0513430536, -0.5285723209, -0.4279189706, -0.035873659, -0.1290435791, 0.0655334368, 0.503587842, 0.0123374946, 0.028772207, -0.4234367013, 0.163114652, 0.1213013157, 0.093381606, -0.1249497682, -0.0761507973, -0.0572001748, 0.2625153363, 0.0546917133, 0.4720318615, -0.136279285, 0.0700930953, -0.2235399932, -0.5573627949, 0.7304881215, -0.2271576375, -0.0395750366, -0.3128965795, 0.2619408965, 0.5880004168, 0.2372135073, -0.1641643494, 0.0323864631, 0.21282655, -0.0494468212, -0.4006774724, 0.0409407243, 0.1453153789, 0.0359974913, -0.0678447932, 0.5560647249, 0.1708285213, -0.4767466187, 0.2810634673, -0.1294512898 ]
https://github.com/huggingface/datasets/issues/3950
Streaming Datasets don't work with Transformers Trainer when dataloader_num_workers>1
Hi, thanks for reporting. This could be related to https://github.com/huggingface/datasets/issues/3148 too We should definitely make `TorchIterableDataset` picklable by moving it in the main code instead of inside a function. If you'd like to contribute, feel free to open a Pull Request :) I'm also taking a look at your second issue, which is more technical
## Describe the bug Streaming Datasets can't be pickled, so any interaction between them and multiprocessing results in a crash. ## Steps to reproduce the bug ```python import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True).with_format("torch") model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results For this code I'd expect a crash related to not having preprocessed the data, but instead we get a pickling error. ## Actual results ``` 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 7, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 359, in __iter__ return self._get_iterator() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 305, in _get_iterator return _MultiProcessingDataLoaderIter(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 918, in __init__ w.start() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__ super().__init__(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'iterable_dataset.<locals>.TorchIterableDataset' 0%| | 0/1000 [00:00<?, ?it/s] ``` This immediate crash can be fixed by not using a local class to make the `TorchIterableDataset` (Note that you have to do with_format("torch") or you get an exception because the dataset has no len) However, any lambdas etc used as maps will also trigger this crash. A more permanent fix would be to move away from multiprocessing and instead use something like pathos or multiprocessing_on_dill (https://stackoverflow.com/questions/19984152/what-can-multiprocessing-and-dill-do-together) Note that if you bypass this crash you get another crash. (I'll file a separate bug). ## Environment info - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
55
Streaming Datasets don't work with Transformers Trainer when dataloader_num_workers>1 ## Describe the bug Streaming Datasets can't be pickled, so any interaction between them and multiprocessing results in a crash. ## Steps to reproduce the bug ```python import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True).with_format("torch") model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results For this code I'd expect a crash related to not having preprocessed the data, but instead we get a pickling error. ## Actual results ``` 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 7, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 359, in __iter__ return self._get_iterator() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 305, in _get_iterator return _MultiProcessingDataLoaderIter(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 918, in __init__ w.start() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__ super().__init__(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'iterable_dataset.<locals>.TorchIterableDataset' 0%| | 0/1000 [00:00<?, ?it/s] ``` This immediate crash can be fixed by not using a local class to make the `TorchIterableDataset` (Note that you have to do with_format("torch") or you get an exception because the dataset has no len) However, any lambdas etc used as maps will also trigger this crash. A more permanent fix would be to move away from multiprocessing and instead use something like pathos or multiprocessing_on_dill (https://stackoverflow.com/questions/19984152/what-can-multiprocessing-and-dill-do-together) Note that if you bypass this crash you get another crash. (I'll file a separate bug). ## Environment info - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi, thanks for reporting. This could be related to https://github.com/huggingface/datasets/issues/3148 too We should definitely make `TorchIterableDataset` picklable by moving it in the main code instead of inside a function. If you'd like to contribute, feel free to open a Pull Request :) I'm also taking a look at your second issue, which is more technical
[ -0.4724807739, -0.3094196022, 0.0654424131, 0.358529985, 0.2515180707, -0.0702164546, 0.3671468794, 0.1715020239, 0.1068321839, 0.2775303721, 0.0359959863, 0.1637874395, -0.5519855618, 0.046610076, -0.0808157176, -0.3613413274, 0.0512008332, -0.0016889275, -0.1369641274, 0.1102087423, 0.1317983866, 0.0630471334, -0.2177004069, -0.1367768496, -0.5412439108, 0.1996574253, 0.2090530097, 0.2192374766, 0.2022904158, -0.1837635785, 0.4161790609, -0.0436324887, 0.2950183153, 0.7576094866, -0.0001217086, 0.2998617291, 0.2430290133, -0.0965673178, -0.2891518176, -0.3061798215, 0.0731479749, -0.0137359733, 0.1395326257, 0.0453232192, -0.1191100329, 0.054189194, -0.03398351, -0.2505642772, 0.6018667817, 0.2924068272, 0.1457501203, 0.4664660692, 0.0077479165, 0.1255749911, -0.0656284839, 0.0480083823, -0.2438232154, 0.1345208883, 0.3292198181, 0.0206702277, -0.3356772661, 0.1401191503, 0.1192600951, -0.0588649102, 0.0225709993, -0.1032770276, -0.2510985434, -0.4471431375, 0.0159132965, 0.1988379806, 0.0295924433, -0.1177433953, -0.3349140286, -0.4652962685, -0.0968095884, -0.1635706276, 0.1218622029, 0.0564331152, -0.2268055379, 0.1675699353, -0.1032663733, 0.0754790381, -0.1817564815, 0.0961412713, 0.2327490747, 0.6009324789, -0.0801893324, 0.1403072625, 0.3713144064, 0.2391790003, 0.5082740188, 0.0417834818, 0.2118254602, 0.1187116578, -0.5128163695, -0.2890256345, -0.0541988425, -0.3084336817, -0.1354878545, 0.2132348269, 0.127135098, 0.1811612397, -0.083145462, 0.0275804643, 0.2787583768, -0.1433529407, -0.2985647321, 0.4632007182, 0.2477846146, 0.1140177324, -0.0081642242, 0.0291544497, -0.0239491891, -0.1644513905, 0.1126973107, 0.1902947128, 0.1723852605, -0.073172465, -0.1398507059, 0.028324578, -0.1670243889, 0.0616582632, 0.2521898746, 0.2041284889, -0.1559973955, 0.5619664192, -0.1504457444, 0.1225189194, -0.1701788157, -0.3960964382, -0.2280828208, -0.1366131902, -0.1941812932, 0.1038818061, 0.3314923048, -0.1454180479, 0.3284074664, 0.0094501264, 0.0440598279, -0.2921739817, 0.3755530715, -0.3100854158, 0.1188928485, 0.3441241086, -0.0910021514, 0.1485834122, 0.1832921356, 0.1288260072, 0.1780524701, 0.2470744699, -0.1819583327, -0.4142647982, -0.1466706544, 0.0996881053, -0.1390820891, -0.0374467485, -0.3219186962, 0.2116769552, 0.4697729051, -0.0085101919, -0.1393089741, -0.2732354403, -0.085609138, 0.0009699686, 0.1430417746, 0.3188245296, -0.1250785142, -0.1751425266, 0.088528119, -0.0477805547, 0.4669760466, 0.1726218313, -0.4414197803, 0.0132362293, 0.1053652093, 0.0783174708, 0.2831918597, -0.0361612774, -0.3150372803, 0.3068337739, -0.0705577061, 0.337368995, 0.1431309879, 0.1304635108, 0.1137922183, -0.0706183463, -0.100389339, 0.4126878679, -0.0737757161, 0.2948363125, -0.2554886639, -0.2242864072, 0.1207624003, 0.3302234709, 0.4442164898, -0.0333365127, -0.2870499194, 0.2643299103, 0.2967150807, -0.003877362, 0.1389798671, 0.1809004843, 0.0634653494, -0.1018120497, -0.0329104513, -0.2163333297, -0.5028101206, 0.2770106196, 0.077925384, -0.1262173504, 0.0541962534, 0.2286572009, 0.1061554924, -0.0237050932, -0.3560562134, -0.2924015522, 0.0056967121, 0.309864074, 0.0075524999, -0.4361118972, -0.2830583453, 0.285746336, -0.3242256641, 0.0527572036, -0.3216632307, 0.4042118788, -0.0864712149, -0.5062967539, -0.275586158, -0.016931532, 0.038880419, -0.1700281799, -0.2388696373, 0.3959282041, 0.063021183, 0.1537613869, -0.1240847558, -0.1287291199, 0.1872712374, -0.4742254019, -0.251926899, 0.6201216578, 0.0505574197, -0.0249471534, -0.1788994521, 0.1553153396, -0.1069754437, 0.2524297535, -0.0014597464, 0.0262905359, -0.0130215278, 0.1215253025, -0.1588943899, 0.118158862, 0.0628406852, -0.3390766084, 0.3278051019, -0.0787260607, -0.4602660537, -0.0972710252, -0.0105994279, 0.0541906096, -0.0298743788, 0.1214717701, -0.2007026672, -0.0729484931, 0.077193439, 0.135228768, 0.4652863145, 0.0511918031, 0.0486474857, -0.0517787226, -0.2330896556, -0.2477512956, 0.1015202031, 0.302259028, -0.1131993085, 0.305172652, 0.084296912, 0.1231412888, -0.4111554027, -0.4255434275, 0.0499926023, 0.3040566146, -0.4006437361, 0.3517942131, -0.0169871673, 0.1677192301, -0.4736182988, -0.329105556, -0.0234566275, -0.2670372725, -0.1364802569, 0.5369248986, -0.1239350364, 0.2542061508, -0.2587145269, -0.0220575985, 0.0909279808, 0.1478879899, -0.1130715683, 0.0332065374, -0.1985269934, 0.0228993148, 0.2795408666, -0.4921960831, 0.0088755758, 0.34049505, -0.3273732066, 0.0257775579, -0.1335422844, -0.0463895313, 0.0143886786, 0.2082906961, -0.0502661355, 0.2576863766, 0.0401581526, -0.3820951581, -0.0675447211, -0.0492675491, 0.1405001879, -0.0257141702, 0.1669764519, 0.2686497867, -0.1683759689, -0.389183104, -0.3129197359, -0.267609179, -0.234421581, 0.0821987987, 0.0100736395, 0.5381009579, 0.318113327, 0.1147377566, 0.3925558329, -0.1211690158, -0.0245432314, -0.2303474396, 0.2825118303, 0.0143749155, -0.1870643049, -0.2278772891, -0.0547961034, 0.0984503403, 0.0651206151, -0.3834303319, 0.5216373205, -0.2507586777, -0.2084559351, -0.1962289512, -0.0720111579, 0.142172426, 0.165845409, 0.1112259403, -0.1038194895, 0.1347458661, -0.0426088534, -0.0704290718, 0.340690285, -0.1788975745, 0.2388062626, 0.1274525821, 1.1222399473, 0.1668976545, -0.3492902517, 0.2614859641, 0.1339166462, -0.1174888164, -0.0734142363, -0.1646706909, 0.1561112851, -0.1150576845, 0.111368753, 0.0077204104, 0.0041683344, -0.315415293, -0.2988847494, 0.350515455, -0.039470274, -0.1729799956, 0.2955923676, -0.376916796, 0.0267562438, -0.2104394883, 0.2862471342, 0.1173104495, -0.08612746, -0.2363739312, 0.0048553506, 0.1851280332, 0.0361756831, 0.1232860237, 0.0363489315, -0.3464320302, -0.0341790356, -0.1116840094, 0.5566117764, 0.1051994115, -0.3030524254, 0.035163939, -0.0127560794, 0.3140929937, -0.2565094233, 0.0325008221, -0.0386659503, -0.1689931154, -0.2230545878, -0.3223659396, -0.2630614638, 0.2147977948, 0.0507422872, 0.470895499, -0.144773066, 0.0397371463, 0.3341496587, -0.1257851571, -0.0261213556, -0.1828769445, -0.4069906771, 0.0562310405, -0.0613688566, 0.3931516409, 0.2323420495, 0.1536890417, -0.4403792322, -0.2169370055, -0.0263174474, -0.2612350583, 0.1292139441, 0.1120452434, -0.0577664822, 0.1067003012, 0.217860043, 0.1757885367, 0.1734009683, -0.1187878624, 0.1437770426, 0.1244859695, -0.2749131024, 0.4634641707, 0.229267776, 0.1441989094, 0.3328025043, -0.1341891587, 0.2416536659, 0.4976156354, 0.1605243683, 0.0390733853, 0.364018023, 0.1969710886, -0.064348124, -0.4284666181, -0.4296140075, 0.4811255038, 0.1328420788, 0.1675005406, 0.3728922606, -0.4092574716, -0.254322201, 0.1880047023, 0.1052243412, 0.8885509968, 0.0195917003, 0.0455190316, 0.1905163229, -0.2033099532, 0.2212506086, -0.1795842946, 0.147490412, -0.3060733974, -0.3440828025, -0.0244974867, -0.2247745842, 0.1531221122, 0.003041025, -0.3515004516, 0.3210839033, -0.1577019095, 0.2407639921, 0.1201191694, 0.1483347118, 0.077956669, -0.290997982, -0.0461420044, 0.0345023759, -0.1701855212, 0.2415100187, -0.0515601411, -0.1386240572, 0.1942769587, -0.132817775, -0.32863006, 0.2391741872, -0.3521186411, 0.1209262982, 0.2056895792, -0.3209433258, 0.1622814834, 0.1305107474, -0.0818134546, -0.1150773838, -0.2915293574, 0.1725290418, -0.1289194077, 0.2206421494, 0.0473476499, -0.0040049581, 0.3963464499, 0.1038299575, -0.1402685046, 0.3779303432, -0.0420411751, -0.2772463262, 0.0096186753, 0.0533370115, 0.2210282832, -0.1394254416, -0.0983381122, -0.0160134751, -0.4113482535, -0.3527023792, 0.0990972295, 0.0262890458, -0.2818215489, -0.0020642879, 0.0035351885, -0.1521404982, -0.2087124139, 0.6081398129, 0.2781789005, 0.2490954995, 0.400098592, 0.3960867822, -0.1380612701, -0.1292278916, -0.0332550406, 0.0714604035, -0.5262513161, -0.034178298, -0.164700076, -0.1202085614, 0.0283485744, 0.0883628428, 0.0825080052, 0.1894809604, -0.3422525823, -0.0789143518, -0.5488654971, -0.1078375801, -0.0283189416, 0.2612271607, -0.3565849662, 0.2690101862, 0.0766157135, 0.1602222025, -0.2258851677, -0.1117475256, -0.1423476338, 0.1538925022, -0.2539019883, -0.1830061674, 0.020093875, -0.0330218971, 0.0324461944, 0.2630749345, -0.1017069444, -0.1203471199, -0.2101663053, 0.1303965002, 0.1733148992, -0.1391482502, -0.424441874, 0.1261823773, -0.1783711463, -0.0791539401, 0.1356106251, -0.1067408845, 0.0161048565, 0.1535914838, 0.3414543271, 0.1804634035, -0.2408161312, 0.0224237125, -0.1750894785, -0.0057480899, 0.0826141387, 0.0987926871, 0.4159995317, -0.0474519357, -0.4201785326, -0.1207660288, 0.2571184337, 0.218994379, 0.2597762942, -0.4708955884, -0.0376465209, -0.0051405611, 0.2812654078, 0.4639757574, -0.1016526297, -0.2196524143, 0.0646822825, 0.158547312, -0.0307652261, 0.0291852448, -0.0226211753, 0.1811822206, -0.0161264166, 0.235303387, -0.0825358182, -0.1329723001, 0.029162256, 0.4079964161, 0.073618181, -0.0935261771, 0.395917654, 0.4847469032, -0.0523499362, 0.1290441453, -0.0149647277, -0.346758157, 0.1086168289, 0.2139956802, -0.117474325, 0.4394459426, -0.243472442, -0.206656158, -0.1682878435, -0.4012374282, -0.371024996, 0.1567829698, -0.2923347652, 0.2601092756, -0.0387600735, 0.3350964785, -0.2753415108, -0.132253781, -0.2137960941, -0.005937974, -0.2560794652, -0.231350258, 0.0202511344, -0.0056246961, -0.3475451767, 0.0474367477, -0.0207419787, 0.1593543142, 0.2874850333, 0.1269250363, -0.4176234007, -0.201445058, -0.1647059619, 0.3538274467, 0.1128576919, -0.2484829128, 0.3415070772, 0.1456093043, -0.0060911612, -0.3697347939, -0.0017747883, 0.2474746108, 0.3940561116, -0.2951099575, 0.0754521638, 0.3799229264, 0.0108422656, -0.0118503142, 0.284997195, -0.0179453064, 0.2235103399, 0.3420122266, 0.0548954271, -0.1651170403, 0.0402815752, 0.097918056, 0.3362250924, -0.4027528465, 0.4167603552, -0.1194282398, -0.0843272209, 0.1515773088, -0.0251411982, -0.2909607887, 0.2816597521, 0.3355267346, -0.0753035694, 0.1146566421, -0.0578866862, 0.0062412024, 0.0876389369, 0.7724627256, 0.1959308535, -0.1239155158, -0.4452418089, 0.0167962145, -0.210643962, 0.1111172363, 0.020902846, 0.2669536173, -0.0879483745, 0.1212391183, 0.0001884007, 0.2219837308, -0.0243460182, -0.0362708867, 0.3358761668, 0.4901058972, -0.3260503709, -0.2705410123, -0.3030075431, 0.09365125, 0.1894161552, -0.320302397, 0.2062865645, 0.2104254663, 0.0223326907, 0.0545045286, -0.2955064774, 0.0848025382, 0.0259950813, 0.3170592487, -0.1011079922, 0.362798214, -0.0287240241, 0.1937143505, -0.4154396653, -0.2601615191, -0.1412770748, -0.1823600978, 0.1771349758, 0.7214540839, -0.1338928044, 0.1961283535, -0.5098555684, 0.0087682791, 0.2620163858, 0.0605440997, -0.2572728097, -0.1082825959, -0.1225964278, 0.2600851953, -0.0193972941, 0.295112282, -0.1034799367, 0.0131670441, -0.4009585083, -0.37746346, 0.4968213141, -0.1890920699, -0.2925391793, -0.5150380731, 0.0485384017, 0.2054633945, 0.212213099, -0.5291041136, 0.1360635608, 0.132490918, -0.1969006658, -0.2794255614, 0.1539547294, 0.3200851977, 0.2083622068, -0.0695050508, 0.4646431506, 0.1833577007, -0.0533660538, 0.3023158312, -0.1816736013 ]
https://github.com/huggingface/datasets/issues/3942
reddit_tifu dataset: Checksums didn't match for dataset source files
Hi @XingxingZhang, We have already fixed this. You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ``` Duplicate of: - #3773
## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
35
reddit_tifu dataset: Checksums didn't match for dataset source files ## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 Hi @XingxingZhang, We have already fixed this. You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ``` Duplicate of: - #3773
[ -0.3985462189, 0.1268263757, -0.0900790319, 0.1531643271, 0.4119483531, -0.0722520053, 0.1358962655, 0.4609467089, -0.0700394362, -0.0869091526, -0.1713992208, 0.4725554585, 0.2960699201, 0.2216589451, 0.0006657672, 0.1481342018, 0.1132510602, 0.123813048, -0.2147900909, -0.103982076, -0.0518400893, 0.0667044371, -0.0218188036, -0.0644038245, -0.1209835857, 0.2648582458, 0.1094207391, 0.2050814778, -0.1382091045, -0.1935889274, 0.2310244441, 0.0947570354, -0.1716674864, 0.6253606081, -0.0001061642, 0.1178650036, 0.2978493571, -0.0738186017, -0.1075452566, -0.2903147936, -0.2285026759, -0.0266567655, -0.228690967, -0.0157381687, -0.0582639426, -0.050771825, -0.1205494553, -0.1184359789, 0.2054298818, 0.3480328321, 0.2619142532, 0.307844758, 0.2138057798, 0.0326526724, 0.3904975057, 0.1167258173, 0.0546526462, 0.3477865458, -0.0087809656, -0.1265861392, 0.0680851266, 0.0957551301, -0.1524362117, 0.0942631513, -0.0499229692, -0.0878374353, 0.1393564492, -0.1794324815, -0.0653684512, 0.4148213863, 0.3285356462, -0.1959816515, -0.3916215003, 0.1505562663, 0.0181435477, -0.1497636437, 0.2844495475, 0.2377643883, -0.1654652804, 0.2523103654, -0.1200847924, 0.1210446283, 0.0244655795, 0.1731976867, 0.0333454497, -0.0579655282, 0.0493324026, -0.0778757036, -0.1680637151, -0.1206558421, 0.1916185319, -0.0113593256, -0.1268766373, -0.0633240044, -0.3275379837, 0.0152149359, -0.0163261238, -0.0055159065, 0.4443405867, 0.1694614738, 0.1155322269, 0.2310024202, -0.1730133593, 0.2485595196, -0.0294132549, 0.0612542219, -0.089982979, 0.2668082416, 0.2934514284, 0.0272209328, -0.1966457069, 0.1666154563, -0.0261625256, -0.0619118437, 0.349840045, 0.061794959, 0.2732433975, -0.3882814646, -0.3526940644, 0.1378540695, 0.1614841074, -0.2683423162, 0.0340965614, 0.321844399, -0.1196145937, 0.2056095153, -0.2245728076, 0.323906064, -0.1389729828, -0.0496330746, -0.2525368035, -0.0312324837, -0.1228641048, -0.2130516022, 0.158069849, -0.3874782622, 0.5200121403, 0.1329911649, 0.2709818482, -0.1481898576, 0.0089208866, -0.0431148522, 0.0243353248, 0.3802428842, -0.2015052438, 0.0493975244, 0.2550952137, 0.0693127364, -0.0704423413, 0.1141765192, -0.4392615855, -0.1480824649, -0.1808601171, 0.3100426495, -0.250148356, -0.1814905107, -0.263967663, -0.3084102571, 0.2988122404, -0.1891636997, 0.038582895, -0.2646736205, -0.1646651775, -0.2092250437, 0.22253564, 0.1276829094, -0.484705776, 0.1347153783, -0.0505089015, -0.2308935076, 0.2965946198, 0.2197386622, -0.0891326442, 0.0785434693, -0.2169451267, 0.0927088112, 0.3119708002, -0.5282865167, -0.6353449225, -0.2045747191, 0.0392535292, 0.1997504234, 0.1367012113, 0.0489971377, 0.0670532137, -0.1192277223, 0.2003704011, 0.2554531991, 0.1286741942, 0.2997410297, -0.37793082, -0.3374253809, -0.0244524647, 0.1490076184, 0.0705285892, 0.0454094671, 0.1995310485, -0.1780854464, 0.249186635, 0.0048380885, -0.3049611449, 0.0178338215, 0.4241452813, 0.1681172103, 0.0189566687, -0.3989565969, -0.1143225506, 0.2084307969, -0.0606114417, 0.1960173696, 0.0218614228, -0.1804834157, -0.5836139321, -0.0075207963, -0.045009397, -0.0498918742, 0.2237078995, 0.3612639904, 0.1590379477, 0.0346527658, -0.2068696618, 0.2542303801, -0.387337625, 0.078844063, 0.0390755869, 0.5304794312, -0.2218931019, -0.1873176694, 0.2554080486, -0.0189140551, 0.0292930659, -0.1731528342, -0.1209298074, 0.5735871196, 0.2360803038, 0.0379419848, 0.0844285339, 0.0684361234, 0.1769237369, -0.3511032164, -0.2122675627, 0.4654127657, -0.0064160745, 0.025509702, -0.033502534, 0.239033103, -0.089950107, -0.1070553437, -0.1001559645, 0.0067661619, 0.4162749946, -0.0376879051, 0.0151178055, -0.3122469187, 0.2221525162, 0.0327108502, -0.1549660116, 0.0455445871, -0.0278426874, 0.0790930912, 0.4024965465, -0.0163979996, 0.0841483399, 0.0936823338, 0.0919343457, -0.0063489391, -0.0205603149, 0.3857571781, 0.3906045854, 0.2282775939, -0.058557909, 0.0642227307, -0.3530421555, -0.1700581312, 0.086124517, 0.1225317866, 0.1640954465, 0.2246409804, 0.1111245677, 0.1253666133, -0.3292343318, -0.0877722204, -0.0794122368, 0.3189308643, -0.5176075101, -0.1456217766, -0.2637498677, -0.0641046464, 0.0031652707, 0.0768814981, -0.1447909027, -0.2434419692, 0.0333961956, 0.122472696, -0.0742873624, 0.2786253393, -0.149364084, -0.0642518848, 0.2559809983, -0.2241701037, 0.0241988618, -0.1484822482, 0.0180481877, 0.1283251941, 0.3840248287, 0.1761880964, 0.3158916831, -0.4577542543, -0.0718727857, -0.198228091, -0.4003251195, 0.0793984011, -0.2544687986, 0.6606243849, -0.0155502195, 0.3037826717, -0.0083887652, -0.1851839274, 0.1895234585, -0.1135243848, -0.3980983794, 0.1655428559, 0.0319789648, -0.1102651432, -0.010936562, -0.1618319154, -0.0101670846, -0.3741977513, -0.1887766719, 0.2284652591, 0.1455118954, -0.022457635, 0.3033700883, 0.0544429198, 0.0079776607, 0.2186072171, -0.2217545211, -0.6386206746, 0.5002467632, -0.1377890259, -0.4190075994, -0.0380367935, 0.1346494406, 0.0600052848, 0.2178350389, -0.465565145, -0.4032657743, -0.1946603954, 0.1383518577, 0.1413584054, 0.0781810731, 0.0477096327, 0.0300180037, -0.1848482937, -0.1977692693, 0.0490748137, -0.0200141743, -0.2559481561, 0.2273623645, -0.1955223978, 0.2183905989, -0.1937242597, 0.2075271308, 0.3405134678, -0.0777281895, 0.0695840269, -0.0228118617, 0.4099594951, -0.109022975, -0.29519701, -0.0534314252, -0.027029898, 0.0527484231, 0.1401767433, -0.0461434238, 0.1388125122, -0.1981835812, -0.0827076063, -0.3195894361, -0.2045110017, 0.0351480655, -0.3487782776, 0.125888139, 0.0521730781, 0.0861871913, -0.0308633652, -0.316144526, 0.0802092031, 0.1962919086, -0.3162757158, -0.1393228769, -0.7025758624, 0.0088747246, 0.0148405302, 0.1824867427, 0.2260212302, 0.4048421681, 0.0724812672, -0.2318837345, -0.0208227765, 0.0080745695, 0.1935222447, -0.4547174871, 0.2800037563, 0.1534047276, 0.358950913, -0.1981047392, -0.1139492318, -0.1007392183, 0.0884238258, 0.4818373621, 0.2587748468, -0.3039296567, 0.1307593137, 0.3101756871, 0.3351652622, 0.065301165, -0.1188443974, -0.4309216142, -0.0654412061, -0.4093044698, -0.0250437893, 0.042651549, 0.1585056037, -0.3297275603, -0.1047069207, -0.1710818559, -0.0672672167, 0.3492289186, 0.2445821762, 0.3192164898, -0.0880684406, 0.0597871542, -0.2565602362, -0.2433250695, 0.5004041195, 0.5900206566, -0.1735237688, -0.3892453611, -0.2921359539, -0.2742171586, -0.0048191678, -0.001047291, -0.1032110676, -0.2733512223, -0.0534014739, 0.0532021746, 0.0875543058, 0.2183025479, 0.0769103691, -0.0790821016, -0.3087058961, -0.3512862921, 0.1302735209, -0.0139919342, -0.060839247, 0.4609189928, 0.2954375446, -0.0326071233, 0.4726552069, 0.1622206122, 0.8940855861, -0.1653389484, -0.2153729498, 0.2060222775, -0.1995810121, 0.3531934619, -0.1270734966, 0.0395275913, -0.1572190374, -0.3440844417, 0.0689157471, -0.1743617207, 0.0322574079, 0.177901119, -0.1913606524, 0.0895683989, -0.1388449669, 0.021222923, 0.1326430887, 0.2617124021, 0.0366396718, 0.1265444756, -0.0865304396, 0.2470513731, -0.0713188201, 0.1078655347, 0.0073685953, -0.0388337485, -0.3476091623, -0.0578177534, -0.5247454047, 0.1427624375, -0.0910440385, 0.0944457576, -0.0052452809, -0.2470578402, -0.2983825803, 0.1477397382, 0.4577180743, 0.3319060504, -0.1335380673, 0.2183855474, 0.252525866, -0.0182923656, 0.1375441849, -0.0362758711, 0.3966677785, -0.0311344992, -0.4578028917, 0.2706386149, -0.0344570465, -0.3650957048, 0.0345423557, -0.0535933152, 0.0224422775, -0.1930956244, 0.0892198682, -0.1026069671, 0.0570475645, -0.2941965461, 0.2270151526, 0.1125966534, 0.0213579368, 0.2128235996, 0.1570989192, -0.3726329803, -0.1849453747, 0.3968797922, -0.06804616, -0.1556475312, 0.4068840146, -0.0712847263, -0.1414738894, -0.2344626337, -0.0849206224, -0.3111560643, -0.3960671425, 0.0595422238, -0.3921938837, 0.0346820168, 0.0381202474, 0.2226753384, 0.3573678434, 0.2244878709, 0.2851119936, -0.7140569091, -0.2438191026, -0.0825167522, 0.115238443, 0.1542159319, -0.1530712545, -0.0342879295, -0.0724570677, 0.0168888569, -0.4055996835, 0.0172818415, -0.2340280265, 0.0321469754, 0.2626635432, 0.1125457957, 0.1753050387, -0.2145723403, 0.2485172302, -0.1897473037, -0.1293436587, -0.3222902417, -0.1397217065, 0.0445708372, 0.0306562912, -0.2311164588, 0.0158017445, -0.0675854608, -0.0201147944, -0.0722485781, -0.0514064319, 0.0383681506, -0.0444170982, 0.2218193114, 0.0424253158, 0.0290705673, 0.0587594546, -0.1410776973, -0.1539003253, 0.1329213083, 0.0654147416, 0.1138706803, -0.0373486094, -0.0472456738, -0.0500402041, 0.0805736408, -0.0236701332, 0.2732908726, 0.3949912786, -0.1685638577, -0.0332071632, 0.3956672549, 0.2895082235, 0.4175454378, -0.2980003655, -0.0170033984, 0.2076699585, 0.3160575032, -0.3778306246, -0.0500685088, 0.3099752963, 0.189555794, 0.0900666863, 0.1366110891, 0.1350737065, -0.4132269621, 0.2608936727, 0.1653068215, 0.4380656779, -0.1813813448, 0.3426298201, 0.4245541692, -0.0718397051, -0.0611527674, -0.0107764388, -0.0694483444, 0.0049597439, 0.1819546819, 0.1912844777, 0.2643625438, -0.4795336723, 0.0524325445, -0.1810612828, -0.2023154795, 0.3155076504, 0.2392914593, -0.0719398484, 0.040875759, 0.1656959802, 0.265176028, 0.0259459801, 0.1713652015, -0.3057142198, 0.0556749254, 0.0483264178, -0.0538854524, -0.1045843735, -0.221839577, 0.1072844267, -0.0546333641, 0.0120427692, 0.2071602941, -0.0833105147, 0.246979475, -0.3229245842, -0.405336827, 0.1750525683, 0.0214217827, 0.0516536422, -0.2313873619, 0.1332407147, 0.2486109883, -0.1560875177, 0.1784610003, 0.4698497951, 0.5059430599, 0.3805767, 0.2110970914, -0.172998324, -0.089662455, 0.0121808816, -0.1355098635, 0.4119703472, 0.0007017316, -0.1030356362, 0.2919395268, 0.2878909111, -0.2151743025, 0.018215809, 0.0831878111, 0.0240469407, -0.0958770737, 0.1547119915, 0.012074599, -0.1296706349, -0.1860142946, -0.0697835833, -0.2000655234, 0.138784796, 0.3600875139, 0.106085144, 0.1473369002, -0.2459123731, 0.1427752674, 0.0469349548, 0.2669074833, 0.3562189937, -0.1090976745, -0.1322073042, -0.2621222734, -0.7937604785, 0.2000581771, -0.1258478761, -0.0093328655, -0.0519644879, 0.2992973924, -0.0836297944, 0.3115608394, 0.2826454639, -0.3267163336, -0.407502979, 0.1924929917, -0.3363149762, -0.0607919283, -0.3392845988, -0.1294820756, 0.1018281803, -0.3543557227, 0.1504576653, -0.0863256678, 0.1835865527, 0.011570693, -0.1360757053, 0.0002322836, -0.1071547866, 0.344197154, -0.0518819913, 0.3112035692, -0.0226237848, -0.1491352171, -0.3401240408, -0.1342455, -0.095634155, 0.5661025643, 0.0150559833, 0.3465219736, -0.1892587841, -0.2565205097, -0.1574474126, 0.2668757737, 0.0971392244, -0.6565984488, -0.2212449014, -0.0082663931, 0.062154796, -0.1685995758, 0.0602477081, -0.0058339685, -0.1280356944, 0.3474603891, -0.2068222314, -0.3853092492, 0.2480870336, -0.0384501964, -0.0517724268, -0.143634662, 0.2255054116, -0.0360498317, 0.049063243, -0.639782846, 0.3101458549, 0.3638950288, 0.0053942171, -0.1337499321, 0.2429698408, -0.0699524507, 0.2467898279, -0.1045733914, 0.1979914457, -0.0229920968, -0.1068319455, 0.1286115944, -0.1279853582 ]
https://github.com/huggingface/datasets/issues/3942
reddit_tifu dataset: Checksums didn't match for dataset source files
thanks @albertvillanova . by upgrading to 1.18.4 and using `load_dataset("...", download_mode="force_redownload")` fixed the bug. using the following as you suggested in another thread can also fixed the bug ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
33
reddit_tifu dataset: Checksums didn't match for dataset source files ## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 thanks @albertvillanova . by upgrading to 1.18.4 and using `load_dataset("...", download_mode="force_redownload")` fixed the bug. using the following as you suggested in another thread can also fixed the bug ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
[ -0.42410779, 0.1216537654, -0.0851321667, 0.1159741431, 0.4104367197, -0.1015880704, 0.1616488397, 0.4821438193, -0.0676112175, -0.083158277, -0.1715805084, 0.4847015142, 0.2961728573, 0.2609198093, -0.0052189589, 0.1425726861, 0.0813889354, 0.0942178369, -0.1835359782, -0.1239801943, -0.0313980654, 0.0742589086, -0.06559515, -0.0387008451, -0.1272571534, 0.2785610259, 0.0962550789, 0.1958376616, -0.1299276948, -0.201525405, 0.2113578022, 0.1253209412, -0.2219690979, 0.6362916231, -0.0001037592, 0.1130172759, 0.3000632823, -0.0719150454, -0.0833512321, -0.3188895881, -0.1930005699, -0.0129565336, -0.1795530468, -0.0037301357, -0.1156983748, -0.0585102402, -0.0973992273, -0.0671985, 0.2122460902, 0.3174711466, 0.2753219604, 0.3078343272, 0.1872294694, 0.047677774, 0.4358137846, 0.1765982807, 0.0376327075, 0.3537881076, -0.0222575292, -0.1209927946, 0.0615178794, 0.0806412995, -0.1599859148, 0.1010159776, -0.0659195036, -0.0292652342, 0.1396551877, -0.1895994842, -0.0617791526, 0.4400642812, 0.3036539257, -0.2148499042, -0.3998059928, 0.1274028867, 0.0148800276, -0.1722579747, 0.2918679416, 0.2763572037, -0.1804018617, 0.2406668067, -0.1071698964, 0.1765078157, 0.0133623546, 0.1725682765, 0.0295836981, -0.0682587922, 0.0082285516, -0.0568891317, -0.1594715565, -0.1300683469, 0.0715590641, -0.032143563, -0.1241403595, -0.0463437662, -0.3199131191, 0.0060783117, -0.0016882095, -0.0602723174, 0.4826947153, 0.1779183596, 0.1245704964, 0.2734246552, -0.1492733806, 0.2545270622, -0.0060311388, 0.0516926236, -0.0779371932, 0.2043066919, 0.368989706, -0.0066339509, -0.1574362367, 0.1622212082, -0.0393651985, -0.0339072831, 0.3480311334, 0.0346651226, 0.2377378047, -0.3679088652, -0.3306002617, 0.0805596039, 0.1630644053, -0.2645066977, 0.0781539977, 0.3441266716, -0.0992539153, 0.1183926091, -0.2678112388, 0.3250126243, -0.1333275139, -0.0196584854, -0.2575783134, -0.0487826392, -0.1573098153, -0.2214164138, 0.1648216397, -0.376709789, 0.5168346763, 0.0877233744, 0.312597096, -0.1008912325, -0.0099152057, -0.0704084858, 0.0682294369, 0.412920177, -0.1413105279, 0.0304581691, 0.2043717057, 0.0644430816, -0.1120427027, 0.0723028257, -0.3958519399, -0.1151546836, -0.1437645704, 0.3076819479, -0.278662473, -0.1811385006, -0.2636612952, -0.2843514383, 0.2813164294, -0.1981932819, 0.0266531464, -0.2471843362, -0.1655811071, -0.2202340215, 0.2079787254, 0.1195852757, -0.4008604884, 0.1340440661, 0.0400185399, -0.2631472051, 0.2815414965, 0.2382418811, -0.0849270299, -0.0165696163, -0.1842332035, 0.1665840745, 0.295668453, -0.5067377687, -0.5864639282, -0.1960973144, 0.0866029784, 0.1515454501, 0.1235274374, 0.0278245322, 0.0812829062, -0.1529752016, 0.1688821614, 0.2563156188, 0.1470498741, 0.3274722695, -0.3717187643, -0.3467593789, -0.0683315247, 0.1492228508, 0.0407869779, -0.0277121551, 0.1848410815, -0.2665776908, 0.231415987, -0.0082812048, -0.2588585913, -0.0013401083, 0.4629286826, 0.1236617714, 0.0398437418, -0.3934965134, -0.1194253117, 0.1840360165, -0.0369741134, 0.2453461885, 0.0259982068, -0.1655706167, -0.5125530362, 0.0218799859, -0.0250610113, -0.0437117293, 0.2340405136, 0.3688031435, 0.1965872794, 0.0488778204, -0.2205753922, 0.2265207618, -0.3307695389, 0.0873257369, 0.1134688854, 0.5346266627, -0.1987530142, -0.2265468538, 0.2873019576, -0.0440326184, 0.0147067709, -0.1954668462, -0.0823379979, 0.5871124864, 0.2365537435, 0.0200582575, 0.1091152057, 0.1086096838, 0.1948226243, -0.3378282487, -0.2032932341, 0.4442741871, -0.0297805909, 0.0060065873, -0.0732139945, 0.268529892, -0.093285203, -0.07431373, -0.097748667, 0.0180309359, 0.3966170847, -0.0513020344, -0.0106148161, -0.2766392231, 0.2215074152, 0.0249375701, -0.1648726612, 0.0095850686, -0.0790594146, 0.0905130506, 0.4233705103, -0.0349309705, 0.0830274224, 0.1191070154, 0.0372318067, -0.0334914438, -0.0523788072, 0.3563748598, 0.3615182638, 0.2445400655, -0.0381734185, 0.0521736853, -0.3511778116, -0.1828989089, 0.0971593335, 0.1120667085, 0.1718712002, 0.200415507, 0.1687261462, 0.1054349169, -0.3583819568, -0.0585566238, -0.0790712982, 0.2824411392, -0.4575931132, -0.0844144747, -0.2329888046, -0.0539289452, 0.0635258928, 0.0643580556, -0.1851885468, -0.2677811384, 0.0718844086, 0.110640794, -0.0896496028, 0.2830827236, -0.1016328931, -0.0807156935, 0.2854170203, -0.2564378977, -0.0086918855, -0.2279042304, -0.0060237497, 0.1385420561, 0.3668509126, 0.1844958514, 0.3543098867, -0.4349476993, -0.0702897161, -0.1779161096, -0.4401727915, 0.1225637645, -0.2930014431, 0.6666308045, 0.0256096348, 0.2784461677, 0.0197884198, -0.1328680515, 0.2228199095, -0.2012176365, -0.3910886943, 0.186802879, 0.0280622803, -0.1677422822, -0.0636749044, -0.1062939838, -0.0331958644, -0.3610418737, -0.1088984311, 0.2706435323, 0.1203875244, -0.0087132119, 0.3124156594, 0.0328512527, -0.0428840332, 0.1993800402, -0.2519605458, -0.6342232823, 0.5193833113, -0.1657379121, -0.4650087953, -0.0236071292, 0.1615481973, 0.0464696586, 0.2168152332, -0.444470793, -0.441755414, -0.1710698754, 0.1684524566, 0.1845994294, 0.0655674934, 0.0495572425, 0.0156399775, -0.2220024914, -0.2117867619, 0.0459696539, 0.0188330095, -0.2363010794, 0.1901561916, -0.1714880168, 0.1482193619, -0.1550748348, 0.2010552734, 0.2956930995, -0.1250996292, 0.0375275761, -0.0760620162, 0.3984850943, -0.0873212889, -0.2652962506, -0.028558325, -0.0076740137, 0.0787452683, 0.150393948, -0.0134824319, 0.0791862309, -0.240221709, -0.1022455767, -0.2540959716, -0.2434616536, 0.0591911189, -0.2656571865, 0.135848254, 0.0708098263, 0.1209649891, -0.041653309, -0.36599648, 0.0831084922, 0.2015014142, -0.3147862554, -0.1508454978, -0.6925283074, 0.0214481093, -0.0669090748, 0.1795707047, 0.243121177, 0.3036314547, 0.0677216873, -0.2700788081, 0.0180271957, -0.020248903, 0.176306352, -0.4398645461, 0.2481538206, 0.1629374623, 0.3123253286, -0.2253360897, -0.1016727313, -0.1341405362, 0.0966572613, 0.4808394313, 0.2430231571, -0.3737948835, 0.0877716094, 0.3234919608, 0.2908151746, 0.1037030071, -0.1058059856, -0.4368158579, -0.0838398561, -0.4116025567, -0.0218623672, 0.0477550402, 0.132940948, -0.3464704752, -0.0789943263, -0.1632945836, -0.0163994431, 0.3298341036, 0.2809436321, 0.3133350313, -0.1209029034, 0.0561642498, -0.2406427413, -0.218954429, 0.5278022885, 0.52431041, -0.0949546844, -0.395396471, -0.2426303029, -0.3101412952, -0.0008850029, -0.0186158996, -0.1219964996, -0.2761832774, -0.0938952789, 0.0873878077, 0.0644984916, 0.2276549637, 0.0879715607, -0.0859899223, -0.2802527249, -0.3243162334, 0.1384942532, -0.0485262573, -0.0677217469, 0.4197591543, 0.3346054554, -0.0054112077, 0.4944472313, 0.2104493082, 0.8915156126, -0.1867264509, -0.1844786853, 0.2751501799, -0.2237222493, 0.3225424588, -0.1214372888, 0.09053123, -0.1791003793, -0.2957378924, 0.0758068115, -0.1851418912, -0.0121874232, 0.1605651677, -0.2226957232, 0.0581518486, -0.0758058131, 0.0054929671, 0.073039934, 0.2642582953, 0.0487755612, 0.1000888869, -0.0619104579, 0.264613837, -0.0438887477, 0.1189853027, 0.0651264489, -0.0807857066, -0.3411739767, -0.0711807832, -0.5269160867, 0.1258689761, -0.0944898054, 0.0440307818, 0.0128420098, -0.2454001904, -0.3029161692, 0.1230906248, 0.4428368509, 0.3125202656, -0.1358319521, 0.2490577251, 0.2131327838, -0.0383173563, 0.1108751297, -0.0129062859, 0.3555255234, -0.0373259373, -0.4588998258, 0.2665671706, -0.036552377, -0.3206621706, 0.0287982095, -0.0352569744, -0.0106286639, -0.1860821992, 0.1803866178, -0.0707248375, 0.0209509637, -0.2725622356, 0.2378465235, 0.1185284406, 0.0392583162, 0.2015369833, 0.1663017571, -0.3900627792, -0.1969240159, 0.3865080178, -0.0649473816, -0.1278748065, 0.4110040367, -0.0716058537, -0.170067668, -0.2587478161, -0.1273608655, -0.3583266139, -0.3925490677, 0.0810008198, -0.3353018165, 0.0428849496, 0.0480432548, 0.2222223133, 0.2722020149, 0.2163710445, 0.3073505163, -0.6881647706, -0.2321790308, -0.0898739994, 0.1295688301, 0.1261080056, -0.1158964038, -0.0120166959, -0.0864332691, -0.0231079478, -0.4246999323, 0.0470912978, -0.2503703237, 0.0058430675, 0.3080316186, 0.0856135339, 0.2493286133, -0.2033476532, 0.2499194741, -0.1724754572, -0.1639299244, -0.3288722634, -0.1137318984, 0.0353052206, 0.0092821661, -0.23782745, 0.0274184514, -0.0140301175, -0.0602619238, -0.0817010775, -0.0194813572, 0.0055595972, -0.0914739594, 0.222104758, 0.0049058669, 0.0731566176, 0.0882156938, -0.1376208514, -0.1198431179, 0.1319648921, 0.055121664, 0.1049904451, -0.0919756964, -0.0540701672, 0.0117956223, 0.0936942324, 0.0043486771, 0.2338950038, 0.4264317155, -0.1537668854, -0.0510041863, 0.322717458, 0.3222872019, 0.405815959, -0.2812406123, -0.0289193839, 0.1929898709, 0.3290608525, -0.3645991385, -0.0201920122, 0.2974094152, 0.2125615776, 0.1492695212, 0.1214687079, 0.1402863711, -0.3529188335, 0.2465331852, 0.1632951796, 0.4690540135, -0.1532626599, 0.2575383186, 0.3713989258, -0.088068299, -0.0306994319, 0.0036937697, -0.0594504252, 0.0197545625, 0.1649555564, 0.1800246686, 0.2427229583, -0.5114406347, -0.0034249476, -0.1807259619, -0.1700382084, 0.2842651606, 0.2441872656, -0.0307859723, 0.0176319163, 0.164046973, 0.3417392969, 0.0335594714, 0.167870447, -0.3114099801, 0.1584239304, 0.058754798, -0.0651336685, -0.1362535208, -0.2133296579, 0.1071211398, -0.036821615, -0.0005958045, 0.190971911, -0.0462013595, 0.2421550304, -0.2369523197, -0.4358562827, 0.1619287431, -0.0011738078, 0.0818103254, -0.1952543408, 0.142899394, 0.2592631578, -0.1398108453, 0.1648841351, 0.4846403301, 0.5281432867, 0.343889147, 0.1520763785, -0.1600900143, -0.1637826711, 0.0140442802, -0.1550807506, 0.422229737, 0.0585706867, -0.0621178523, 0.3053921461, 0.2841911316, -0.2138370425, -0.0159713756, 0.0650410503, 0.0204408728, -0.0444735885, 0.1286859363, 0.0020236194, -0.1505019218, -0.2098772973, -0.129945457, -0.1517286003, 0.1543202847, 0.3381193578, 0.1111335382, 0.1612068266, -0.284395963, 0.1574998796, 0.0547582917, 0.3455494344, 0.3352212608, -0.1373087168, -0.1104206219, -0.2381723821, -0.7406936884, 0.1863776147, -0.1324735731, -0.027810378, -0.1102126539, 0.3054166436, -0.0670419261, 0.3236747086, 0.2755943239, -0.3410308957, -0.3980622888, 0.1975348741, -0.3713263571, -0.0167346913, -0.3698039651, -0.1473733485, 0.1497358084, -0.3264028132, 0.1253858209, -0.1023037136, 0.1981008202, 0.0111132981, -0.0736751407, -0.0295032468, -0.1358421892, 0.3327485025, -0.0636422113, 0.2786839902, -0.0042929845, -0.1556494236, -0.3237200081, -0.1355899721, -0.0823712945, 0.5634673834, -0.0003954308, 0.2956926823, -0.1838796735, -0.2951936424, -0.1389191151, 0.2453009188, 0.1123828962, -0.6536946297, -0.1769927591, -0.0373460241, 0.0743878558, -0.1549818069, 0.0542134829, 0.0071573886, -0.1465547383, 0.2743239403, -0.2376750112, -0.3513873816, 0.2933762968, -0.0986929163, -0.0317089111, -0.1290172637, 0.1814122796, -0.0037688655, 0.024192214, -0.6241681576, 0.3395778537, 0.3370667398, 0.0026863292, -0.1634980142, 0.2254528552, -0.0739572197, 0.2052481025, -0.1234976351, 0.2057134509, -0.002731818, -0.1280879229, 0.0898658708, -0.1234697104 ]
https://github.com/huggingface/datasets/issues/3942
reddit_tifu dataset: Checksums didn't match for dataset source files
The latter solution (installing from GitHub) was proposed because the fix was not released yet. But last week we made the 1.18.4 patch release (with the fix), so no longer necessary to install from GitHub. You can now install from PyPI, as usual: ```shell pip install -U datasets ```
## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
49
reddit_tifu dataset: Checksums didn't match for dataset source files ## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 The latter solution (installing from GitHub) was proposed because the fix was not released yet. But last week we made the 1.18.4 patch release (with the fix), so no longer necessary to install from GitHub. You can now install from PyPI, as usual: ```shell pip install -U datasets ```
[ -0.3972456455, 0.1158496067, -0.0944008157, 0.0743378922, 0.374297291, -0.1016562209, 0.1341255009, 0.50539428, -0.1505983323, -0.0394883007, -0.1530265063, 0.4913251102, 0.306778878, 0.2183291018, -0.0091936588, 0.1344510317, 0.1148079932, 0.1060604081, -0.1334546655, -0.0572964773, -0.0045511001, -0.009349755, -0.0966602564, -0.0207303911, -0.0583634004, 0.2276358455, 0.0445017293, 0.1359869689, -0.2058944106, -0.2403110564, 0.2638665736, 0.1483818144, -0.2442302853, 0.5590669513, -0.00010491, 0.1271549612, 0.2830677629, -0.0792284161, -0.0613509566, -0.3168374896, -0.2179537416, -0.0706219003, -0.1681920141, -0.0076874779, -0.0552162789, -0.1095386669, -0.0527950451, 0.0503653996, 0.1334971637, 0.3430584669, 0.2658722699, 0.3664406538, 0.158419311, 0.0342424735, 0.3947604895, 0.1645508558, 0.0348792858, 0.3492320478, -0.0626506209, -0.0978888422, 0.1093071252, -0.0030364967, -0.1994204074, 0.0993501842, -0.1013719663, -0.0220339894, 0.0463654213, -0.2138503939, -0.0981155634, 0.4128340483, 0.2350539416, -0.24199754, -0.3816854656, 0.132326439, 0.0004417171, -0.1643335521, 0.2986191511, 0.2788709104, -0.2397134304, 0.2224877477, -0.0347445346, 0.1994899511, -0.0440235324, 0.1778440177, 0.0226802323, 0.0216035359, 0.089849934, -0.0190120786, -0.0786944404, -0.1137214676, 0.1954847127, 0.0554825179, -0.0672692657, -0.037548665, -0.1989172697, 0.0137188453, 0.0118823946, -0.1319634318, 0.4968380332, 0.1359123439, 0.0994016379, 0.2437211275, -0.076168403, 0.3032630682, -0.057310909, 0.0137571134, -0.0470064916, 0.2996733785, 0.3338774145, 0.0164608676, -0.0525903031, 0.1817302853, -0.0304900352, -0.0460693985, 0.3226613104, 0.0743708089, 0.2300563604, -0.3679657876, -0.4308350682, 0.0870578289, 0.1404776871, -0.2431653142, 0.0388299972, 0.3132539988, -0.0599294379, 0.1402358562, -0.2776667774, 0.3079220951, -0.1966087818, 0.051359985, -0.2339681238, 0.0504699163, -0.1148832813, -0.1922037601, 0.126898855, -0.4038241804, 0.4870957434, 0.1144866198, 0.3165703714, -0.0361410491, -0.0162855294, -0.0618912056, 0.0621018708, 0.4958975315, -0.1525309831, 0.0646698698, 0.1975975037, 0.1410728395, -0.1435846686, 0.0806578323, -0.3774162531, -0.1210579574, -0.1983361542, 0.3039909601, -0.3114700615, -0.1928070635, -0.177322045, -0.3383495808, 0.3129970729, -0.2297438383, 0.0489843301, -0.2373639941, -0.0305992942, -0.2500891984, 0.1779904068, 0.1128633544, -0.5220834017, 0.1453722417, 0.0709232166, -0.2602553368, 0.3192375302, 0.2609837949, -0.0720182732, -0.0383886173, -0.1669496596, 0.22831361, 0.2290572822, -0.469109565, -0.6486252546, -0.2247491777, 0.0988691077, 0.0668754801, 0.2018145323, 0.0338724926, 0.1469431072, -0.0930238441, 0.1783117652, 0.1398084015, 0.1675213426, 0.2202979177, -0.3961764276, -0.3666823506, 0.0086009558, 0.1462174803, 0.0928477943, -0.0688958019, 0.1709896922, -0.2168815583, 0.2603479624, -0.0071416646, -0.2701735497, -0.0111233881, 0.5282153487, 0.1565124393, 0.0311640054, -0.4041965008, -0.0382095352, 0.1638696045, 0.0068692863, 0.3009795547, -0.1075073332, -0.1852890998, -0.4991526902, 0.0805610716, -0.0810403079, -0.065817073, 0.2241804898, 0.3235906959, 0.1962800473, 0.0396468341, -0.2381028682, 0.205583483, -0.2923536897, 0.0459837578, 0.1257134974, 0.4918662906, -0.2841661572, -0.1985765845, 0.2238281369, -0.0218979269, 0.0338705704, -0.1906064153, -0.0358100533, 0.5679975748, 0.2216724604, -0.1000773311, 0.0870040357, 0.0638669729, 0.2288838029, -0.4107529223, -0.1380673796, 0.4723102748, -0.0586041287, 0.0738956779, -0.0462405197, 0.3331493139, -0.0237299278, -0.0715221912, -0.1091223285, 0.0491439998, 0.4476815462, -0.0082420558, 0.0055907709, -0.2900725305, 0.2397477478, 0.0696483254, -0.1521417797, 0.0325711891, -0.0163994972, 0.1328953356, 0.4287270904, -0.0898689255, 0.1032358259, 0.0928949565, 0.0883569196, -0.0231867265, 0.0169908479, 0.2769392729, 0.2826451659, 0.2031243891, -0.0718731955, 0.0543082431, -0.4174272418, -0.2200956196, 0.0408665314, 0.1092732176, 0.1560336649, 0.1641886383, 0.1498349458, 0.1108971164, -0.4117977619, -0.0939693525, -0.0563561954, 0.3467801511, -0.4742769599, -0.0733723566, -0.2659903169, -0.0773637146, 0.1014611274, 0.0134020327, -0.1797267497, -0.2796196342, 0.1374926269, 0.0663586408, -0.0962859839, 0.2670506537, -0.1250304878, -0.1017075628, 0.3037339151, -0.3043339849, -0.0180754662, -0.2500354648, 0.009439392, 0.139590621, 0.3336963654, 0.1813612729, 0.3696867824, -0.4134681225, -0.1491149068, -0.173080653, -0.4731229842, 0.1068473235, -0.3054789305, 0.5822450519, 0.0626958236, 0.2942296267, 0.0453651287, -0.2202302516, 0.1857265383, -0.1878201813, -0.3979575634, 0.2523882091, -0.0839365497, -0.1743398905, -0.1055321842, -0.1662877053, -0.0986049473, -0.3010376692, -0.1315668523, 0.2938215137, 0.1701862067, -0.0092076017, 0.3598110378, 0.0320888311, -0.090154916, 0.1556847692, -0.1982464194, -0.546638906, 0.4923823774, -0.1142811328, -0.4728690386, -0.0343177468, 0.1789809316, -0.0162569415, 0.218908757, -0.4828186929, -0.4995723069, -0.1409181952, 0.2771880925, 0.1772968471, 0.0657273084, 0.0828182325, 0.0465374216, -0.2038287967, -0.1848029345, 0.0711308569, 0.0187589098, -0.2359794527, 0.2017393857, -0.1863381565, 0.2289091349, -0.0818559751, 0.2742734253, 0.2685349286, -0.0731106848, 0.0042000865, -0.0805646405, 0.4213830233, -0.0970153734, -0.2580533326, 0.0321566164, 0.0074719787, 0.0010622465, 0.0640459508, -0.0782967433, 0.0572751127, -0.2148898244, -0.0396468639, -0.2577513158, -0.1640780568, 0.0782136694, -0.2497051358, 0.137587741, 0.0745482668, 0.1445203424, -0.100094825, -0.3561764359, 0.0718151405, 0.1678701341, -0.3564076424, -0.0828020126, -0.6201631427, -0.009529274, -0.107890822, 0.1450864971, 0.2663373053, 0.3646346331, 0.026904704, -0.2591595948, 0.0713911429, -0.0707459748, 0.1350907236, -0.3384822607, 0.2357185483, 0.1854176372, 0.3948192298, -0.2168513238, -0.163297385, -0.2289091945, 0.1173865944, 0.4776025712, 0.249945119, -0.4163536429, 0.1265629083, 0.3104329705, 0.2855337262, 0.0547917783, -0.0562632456, -0.4127324522, -0.2453963161, -0.4059746861, 0.0271478947, 0.1017591655, 0.1406415105, -0.3623806834, -0.0689821318, -0.1056007221, -0.0073068547, 0.2432501763, 0.3092826903, 0.329431504, -0.1811475754, -0.0150308311, -0.2408852577, -0.2985728979, 0.5505687594, 0.559597671, -0.0714558139, -0.3666821122, -0.1905134916, -0.3126359284, 0.0389232412, -0.0608572662, -0.1491356641, -0.1976208985, -0.0878147259, 0.110765554, 0.0754226819, 0.1801830679, 0.1102766767, -0.1093125939, -0.2970080078, -0.3380363584, 0.1547785401, -0.0152380774, -0.0545077436, 0.3571558595, 0.2944642901, 0.0565221831, 0.4953758717, 0.228740409, 0.879398644, -0.2072115093, -0.138272956, 0.3400352299, -0.1703361422, 0.3492127061, -0.1519018263, 0.0996118784, -0.2108108252, -0.3150502145, 0.0589027666, -0.1975072622, -0.026974149, 0.1117269993, -0.200507462, 0.0504464023, -0.1318526119, 0.028134333, 0.189217791, 0.168566376, -0.0122897318, 0.1717421114, -0.0938546732, 0.2648225427, -0.0174512621, 0.0704937577, 0.022346789, -0.0443987623, -0.301891923, -0.1205572113, -0.5544407964, 0.1113817915, -0.0872627944, 0.1412532926, 0.0144207198, -0.243510887, -0.39718467, 0.0332230255, 0.3435332179, 0.3083489537, -0.0818185061, 0.2176567465, 0.3240072727, -0.0926815197, 0.2110342979, 0.0434800759, 0.3847121298, -0.0427906737, -0.4293071032, 0.2598583102, -0.0528944992, -0.4126794338, 0.0143871345, -0.0299822874, -0.0005534486, -0.1255360991, 0.1853908896, -0.1328542978, 0.0685493201, -0.286252439, 0.2158443779, 0.1269810498, 0.0013410585, 0.1962780654, 0.0718448237, -0.3511748612, -0.1933488995, 0.3066143394, 0.0076830797, -0.0858834833, 0.3552169204, -0.0434260331, -0.2067450434, -0.2563531995, -0.1187746599, -0.3592043221, -0.3510045111, 0.0350281298, -0.3421965241, 0.0055686454, 0.0497605801, 0.2258633822, 0.3226158619, 0.2213300169, 0.1831490546, -0.7477021813, -0.2691212595, -0.0941526517, 0.1592329592, 0.0861217454, -0.042353753, 0.0303218532, -0.0951907188, -0.0646775067, -0.4064958692, 0.0112581188, -0.2635182142, 0.0152397221, 0.2727998495, 0.1179563776, 0.2582670748, -0.17264162, 0.2367165536, -0.1446910203, -0.1071317494, -0.3076731563, -0.0965495482, 0.0504205413, 0.0368349627, -0.2371984273, 0.0070710373, -0.060816776, -0.0837499276, 0.0080974437, 0.0252519529, 0.0862110853, -0.1070530862, 0.2624216974, 0.0842054412, 0.040935345, 0.1263528168, -0.1100792885, -0.1149442494, 0.0909300223, 0.0985614285, 0.2259891033, -0.1088688299, -0.0047736056, 0.0832227021, 0.0862879381, 0.001997344, 0.2345606536, 0.3654798567, -0.1983353049, 0.0444571339, 0.2279056311, 0.3740683198, 0.4940100014, -0.2413288355, -0.0152866598, 0.2320664376, 0.3025499284, -0.4159161747, -0.0788774788, 0.2219270021, 0.2110092342, 0.1202578172, 0.1041562483, 0.1157811582, -0.402623117, 0.2909772992, 0.1834556758, 0.4261831343, -0.1703821272, 0.2705305517, 0.4526992142, -0.1208642572, -0.0450884402, 0.0496643223, -0.1610078961, 0.0003634679, 0.2064567804, 0.1648960561, 0.2979917526, -0.4540138543, -0.0332204401, -0.1820596606, -0.149141416, 0.2815468311, 0.1633128822, 0.0577552617, -0.0045719775, 0.2115223855, 0.3724373281, -0.0062836884, 0.1580078006, -0.3251010478, 0.140437901, 0.0096289739, -0.0644110739, -0.0981954411, -0.2292635888, 0.158127442, -0.0000691396, 0.033434201, 0.1270032674, 0.0650386438, 0.2272888422, -0.2661880255, -0.4461709559, 0.1931146234, 0.0271809306, 0.0492366627, -0.1763866246, 0.1946042925, 0.2321918756, -0.1393450201, 0.0670800582, 0.4330323637, 0.5893831253, 0.3505116105, 0.1043302417, -0.1365111172, -0.1980603933, 0.0304621048, -0.1322544366, 0.4103343189, 0.0814855322, 0.0126297725, 0.3314887881, 0.2744590938, -0.2160329521, 0.046928633, 0.0901780725, 0.0226985551, 0.0398379155, 0.1662211269, -0.0367264301, -0.1865621656, -0.1409330219, -0.1229185164, -0.1979733258, 0.0937434286, 0.3525641263, 0.1525920779, 0.1518705636, -0.3128837645, 0.1498559415, 0.0633290038, 0.3637518883, 0.3517046869, -0.1261009872, -0.1087929234, -0.1657494009, -0.7760741711, 0.2324803025, -0.1972477287, -0.0424953811, -0.1059002355, 0.2718468904, -0.06180197, 0.2993412316, 0.2625767589, -0.207854405, -0.4152525663, 0.1415928751, -0.3958678544, -0.0268251672, -0.3416541219, -0.1304874718, 0.1216540709, -0.3208860159, 0.1521442682, -0.1585358381, 0.2186917514, 0.0056633591, -0.109464258, 0.0558305271, -0.1769008934, 0.3237533867, -0.023563588, 0.3701157868, 0.0076425243, -0.1561696678, -0.3572146595, -0.1592413932, -0.1057711467, 0.5686353445, 0.0100579569, 0.2729543149, -0.1767220646, -0.3311900198, -0.1452749223, 0.2452328801, 0.0532719344, -0.7246579528, -0.1761369705, 0.0425263122, 0.0272098985, -0.1712470502, 0.0400725193, -0.068995662, -0.1434087753, 0.2425368726, -0.2439650297, -0.41257599, 0.233166784, -0.1467462182, -0.0235791709, -0.0886149928, 0.1438176483, -0.032214582, 0.0307860095, -0.6232926846, 0.3121297061, 0.297667861, -0.0648537353, -0.1999570727, 0.1754175723, -0.0808978975, 0.1580305696, -0.1524669379, 0.2680381835, -0.0177994277, -0.1784968972, 0.0978519469, -0.1491736919 ]
https://github.com/huggingface/datasets/issues/3941
billsum dataset: Checksums didn't match for dataset source files:
Hi @XingxingZhang, thanks for reporting. This was due to a change in Google Drive service: - #3786 We have already fixed it: - #3787 You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ```
## Describe the bug When loading the `billsum` dataset, it throws the exception "Checksums didn't match for dataset source files" ``` File "virtualenv_projects/codex/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx'] ``` ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) load_dataset('billsum') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
48
billsum dataset: Checksums didn't match for dataset source files: ## Describe the bug When loading the `billsum` dataset, it throws the exception "Checksums didn't match for dataset source files" ``` File "virtualenv_projects/codex/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx'] ``` ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) load_dataset('billsum') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 Hi @XingxingZhang, thanks for reporting. This was due to a change in Google Drive service: - #3786 We have already fixed it: - #3787 You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ```
[ -0.4439739883, 0.3979526758, -0.1034803316, 0.1886253357, 0.2277507037, 0.0679107383, 0.2159261554, 0.2985672951, 0.1642131805, 0.1222989783, 0.0958597139, 0.0360738449, 0.1474190056, 0.2202241421, -0.0004790273, 0.177003637, 0.0542054698, -0.0288488287, -0.0223006923, -0.0352692828, -0.3512852788, 0.2289221138, 0.0162224304, -0.2879074216, 0.0853460729, 0.2226156294, 0.1279374361, 0.1907230169, -0.2450844795, -0.1924147159, 0.1991561651, 0.1335768849, -0.0073958524, 0.4593857527, -0.0001127957, 0.1864903867, 0.4848975837, 0.0287230797, -0.4654403031, -0.0840633512, -0.2882367969, -0.2063249201, -0.1947159618, -0.1314371079, 0.1306874156, -0.00708983, -0.1326558739, -0.1516025811, 0.0507392138, 0.2921631634, 0.2098049223, 0.3013038337, 0.182780847, 0.0766990036, 0.5222922564, -0.1602872014, 0.087282151, 0.5475765467, -0.0015222441, -0.0639345795, 0.1201522201, 0.1707803905, -0.2118848115, 0.1150464937, 0.1715529263, 0.1248252243, -0.0369205028, 0.042374365, 0.0630679429, 0.2080622911, 0.301443249, -0.1993892789, -0.3702293932, -0.1017952412, -0.0359057225, -0.2172556967, 0.6341405511, 0.2274867743, 0.0735624507, 0.0263713244, -0.5666074157, 0.0773514509, 0.0355400071, 0.1744487733, -0.146576494, 0.1413701624, 0.0419780575, -0.0547221377, 0.0333677605, -0.0838261843, 0.1557449847, -0.254608959, -0.2240249515, -0.0415011868, -0.2506528199, -0.0584703758, 0.0964478701, 0.228230834, 0.3818089366, 0.2954385281, -0.015584534, 0.1652639657, -0.3365028799, 0.1858890504, 0.0220100563, 0.1599903852, -0.116916053, 0.1511763632, 0.46856758, 0.326490283, 0.2119034082, 0.1329631209, 0.0363321677, -0.1869620234, 0.1759191751, 0.1823224127, 0.1848871708, -0.2980907857, -0.4048726261, 0.1706673056, 0.0492506884, -0.2403172404, 0.1330961138, 0.2846087813, -0.2474856526, -0.1176882088, 0.0318561234, 0.1040348932, -0.0670711622, 0.3422399461, -0.1705227643, -0.0207441654, -0.0911354348, -0.0186962709, 0.3730755746, -0.3438161314, 0.2726408839, 0.0223870818, -0.0123668304, -0.0054005077, 0.1697472632, -0.0315265097, -0.1972257644, 0.3557346165, -0.0210169088, 0.0881231949, 0.1051382869, -0.0027712055, -0.1386391968, 0.0815900266, -0.4535004795, -0.1019150913, -0.0580967106, 0.3123094738, -0.2750692368, -0.1466856152, -0.2939597666, -0.4308349192, 0.0257025305, -0.268402189, -0.0789472312, -0.2064273208, -0.2950768769, -0.2398941964, 0.2672674954, 0.1245109737, -0.1626113355, -0.0424724668, -0.246470511, -0.2725116313, 0.1295038164, 0.2652707398, -0.0469173007, 0.0531800985, -0.4091735184, -0.0250256062, -0.1150031984, -0.3405146301, -0.6405293941, -0.0301493723, 0.1324080676, -0.0595715679, 0.05932533, -0.1188475937, 0.1125445664, 0.0779315233, 0.1620673835, 0.1863936037, 0.13861458, 0.233855933, -0.1820349842, -0.3929367661, 0.0978240222, 0.2020251453, 0.0303068887, 0.02084429, 0.3079658449, -0.3326946497, 0.1134864166, -0.108788982, -0.1471490562, 0.3346654475, 0.5563585758, 0.0699911341, 0.1929026991, -0.0429773703, -0.4167449474, 0.3173341751, -0.2022904158, 0.0091086682, -0.2194197774, -0.1901199818, -0.2889499664, -0.1604915708, -0.0569011904, 0.1140341312, 0.1496286094, 0.3731676936, 0.0378659777, 0.0841124877, 0.1065789759, -0.0757745206, -0.3021619916, -0.0347997583, -0.1180204451, 0.720710814, -0.2065890133, -0.2001563758, 0.3406204283, -0.011209554, 0.1953429133, -0.1817380041, -0.1705874801, 0.4723947048, 0.2709103227, 0.2831822336, 0.1877066344, 0.5614427924, 0.248135075, -0.2821192443, 0.05496208, 0.4969736338, 0.1127732471, 0.0344054252, -0.4433572292, 0.278678447, -0.1827598512, -0.0197715573, 0.0459565558, 0.1223961338, 0.2940053642, -0.1368869394, 0.106502302, -0.3272482753, 0.1007517353, 0.4226843715, 0.1944941729, -0.0070566181, 0.1111247763, -0.022098247, 0.3812298179, -0.046605859, 0.0902649537, 0.0693546459, -0.0583514199, -0.0638910308, 0.1664034724, 0.4466322958, 0.3047540188, 0.1740948558, -0.0056574568, 0.1201591343, -0.1214056015, -0.1634940356, 0.159351632, -0.0082267057, 0.0087777739, 0.3641694188, -0.0013630758, -0.0117340777, -0.4045169055, 0.0039601512, 0.0633196533, 0.2933953106, -0.4859106839, -0.1301017851, -0.2937875986, 0.0642315596, -0.3407526314, 0.0621951297, -0.2707394361, -0.4372273982, 0.0047779875, 0.4343090653, -0.21998927, 0.2267841548, 0.070904769, 0.1152338237, 0.1544796377, -0.4277642369, -0.1055060774, -0.0595619678, 0.0770659447, 0.1029575467, 0.5101454258, 0.1778146774, 0.3525719345, -0.3003238142, -0.1154544055, -0.7003773451, -0.3411552608, 0.0723259822, -0.3449418545, 0.4714396, 0.2795475423, 0.046564579, -0.0035758633, -0.1079635099, 0.0734540224, -0.0575130023, -0.3673726916, 0.1767670959, -0.1280112714, -0.160751909, -0.0486230813, -0.2101785988, 0.0654586703, -0.1770792305, -0.1525554508, 0.2368771136, 0.0918907076, 0.0638815984, 0.1314512789, 0.1555476785, 0.2074466199, 0.1623739749, -0.2662162185, -0.2728481591, 0.4294887483, -0.0594479032, -0.3758268058, 0.0709476545, 0.0414337069, -0.1677161753, 0.3445876241, -0.3872813582, -0.3581336141, -0.41123873, 0.1492064893, 0.2963079512, 0.1123660356, 0.3224452436, 0.1554399878, -0.1202750728, -0.213768214, -0.3296323717, -0.0757039487, -0.0299280845, 0.207879141, 0.0278083421, 0.2335329652, -0.3570571542, 0.3795695007, 0.4104431868, 0.0316884145, 0.1269769371, -0.1509150863, 0.388938725, 0.0216340013, -0.0728933588, 0.0741850287, 0.0432883091, -0.1742744446, 0.1625254303, -0.0563908815, 0.0616695732, -0.0166090149, -0.1418506503, -0.3925761878, -0.1865759939, -0.1133057401, -0.0626733229, 0.4151829481, -0.0505915768, -0.0003206389, 0.0038185879, -0.3997254372, 0.1791950166, 0.2663378119, -0.0703029186, -0.0900448635, -0.3957379162, -0.0934345275, -0.0573008955, 0.2811753154, 0.1363301277, 0.4162115455, 0.0030792884, 0.0304155871, -0.0928371772, -0.2878102958, 0.3115134537, -0.4760925472, 0.4731875956, 0.0075266799, 0.2072416991, 0.0316530876, -0.197198227, -0.2591514885, -0.2739295959, -0.0158570111, 0.4123555124, -0.2954308391, 0.1044483483, 0.3437286615, 0.30221349, -0.0788604915, 0.0013405079, -0.3431760371, -0.2712916136, -0.4994587004, -0.1046104729, -0.2785788178, 0.2330277264, -0.2790483236, -0.0877514556, 0.0530603677, -0.2469317019, 0.2036542892, -0.0737740472, 0.4733853936, -0.0020874422, 0.248105824, 0.0043509626, -0.0350775681, 0.5081506968, 0.804918468, -0.0973274335, -0.01705724, 0.0376266837, -0.2614538372, -0.2597309053, 0.0953178853, -0.2198731601, -0.1036400199, 0.2533917129, -0.0117960768, -0.1632660776, -0.1795198768, 0.0632296056, 0.1761705726, -0.0588480495, -0.1495536417, 0.216621384, 0.0536622554, -0.1825887412, 0.2801711857, 0.391386807, -0.2390327901, 0.2227341533, 0.2481035143, 0.7565478086, -0.0165072363, -0.1011480689, 0.1869613081, -0.1748326868, -0.023605397, -0.0165956486, 0.0244950522, -0.3710542321, -0.3856258392, -0.103890501, -0.2408246696, 0.057974074, -0.0965526998, -0.1635701656, 0.2377521396, -0.1103526726, 0.3662255406, -0.1072879285, 0.3459484279, -0.2809435129, 0.1391905844, 0.1751299649, 0.1916846931, 0.1061004996, 0.1491868347, -0.0845692977, 0.1082695425, -0.2162282169, -0.3280300498, -0.5254528522, 0.1337438077, 0.0136206746, 0.263025403, 0.1377586275, -0.1504713446, -0.1711378545, 0.0693192557, 0.4430789053, 0.3028508127, -0.4484937787, 0.2241178155, -0.0549656302, 0.0274506696, 0.039057672, -0.003679865, 0.2886634767, -0.1481369138, -0.3626861572, -0.0477388725, 0.0105153294, -0.4278810918, -0.1485254914, -0.1949205846, -0.4563024342, -0.2097743154, -0.0337650888, -0.1403976232, -0.1947954893, -0.2225171775, 0.1917886436, 0.0730384439, 0.2262034416, 0.2265050858, 0.0124590369, -0.2850316763, -0.1573968083, 0.4480354488, 0.0205089208, -0.1547304988, 0.4316444099, -0.1129711866, -0.1139376685, -0.2903279066, -0.1255562901, -0.0285677388, -0.033838179, -0.0621508509, -0.3304248452, 0.2021180689, 0.0535309836, 0.3045835793, 0.3380729556, 0.3293816447, 0.1249089316, -0.7097581029, 0.0944051966, 0.1657093316, -0.0525119528, 0.3098420799, -0.2524800599, -0.2048578709, 0.0486089997, -0.3161529899, -0.3720972836, 0.1781813949, -0.2259062976, -0.0016340209, 0.1320988536, 0.1562291235, 0.2540348768, -0.3103534877, 0.240207985, -0.2072667032, -0.2263481319, -0.2313146293, -0.1373516917, 0.0717364922, 0.1404312849, -0.210459739, 0.0899692848, -0.1939226091, -0.1288302541, -0.007438133, 0.1096980721, -0.0574462824, -0.072588712, 0.131371513, 0.1421363503, 0.005479482, -0.0516590662, -0.1187485084, -0.3321790695, 0.0658262372, -0.0596770346, 0.2034735233, -0.0238498468, 0.0245715231, -0.0745412782, 0.1876721084, 0.043195419, 0.2030190378, 0.3733992279, -0.0603629686, -0.1248709261, 0.1654336303, 0.3799568713, 0.2912314534, -0.5166089535, -0.1012460738, 0.2597924173, 0.2816078067, -0.3110102415, -0.1369105726, 0.0074088685, -0.0926159397, 0.1585193872, 0.1284448951, 0.4003267288, -0.089164868, 0.2388209403, 0.0924895555, 0.5047009587, -0.1765022129, 0.2120154649, 0.2475754619, -0.1299914569, -0.0082940022, 0.0474495925, -0.2298317999, -0.0703446642, 0.1507340521, 0.0980407819, 0.2152943313, -0.2681741416, 0.1335069537, -0.0801173449, -0.3586060703, 0.3939141035, 0.0660699159, -0.0733001828, 0.0172922499, 0.1209639013, 0.2454586178, -0.2816681564, 0.3089601398, -0.4304513335, 0.0225382615, 0.0543603487, -0.0578977689, -0.4669311643, -0.2469731122, -0.1170510352, 0.2510414124, 0.0138977086, 0.0174472928, 0.006003561, 0.2227214128, -0.4141454399, -0.3305731714, 0.1717741638, 0.1572505832, 0.0155996419, -0.2376895249, 0.2213190347, 0.0034916769, -0.0229237918, -0.0276261475, 0.5384901762, 0.3396733999, 0.2685191631, 0.2129939944, -0.2461193502, 0.0244511161, 0.0307878405, -0.0278876517, 0.3960123658, -0.1088988408, -0.0329897702, 0.2158075273, 0.2966328263, -0.2127833962, -0.0642053112, -0.1514853835, -0.2345353812, 0.0488998666, 0.1891258061, 0.06259197, 0.1780887991, -0.1401916295, 0.0367870927, -0.2749012113, -0.2027866989, 0.4511965811, 0.337056756, 0.2454805076, 0.008547998, 0.1026205048, 0.1384140104, 0.3631423414, 0.3609623611, 0.1680151671, -0.1427460313, -0.352825731, -0.7317572832, 0.076987423, -0.1342734247, 0.0171518773, 0.0095873354, 0.026145529, -0.1646713167, 0.1295244098, 0.3378495574, 0.04754683, -0.2551509738, -0.3047559261, -0.1641403437, -0.1183290929, -0.00981005, -0.1278884262, -0.2332173139, -0.502874136, 0.2419447154, 0.0086037526, 0.0932587907, -0.1754138321, 0.0700100288, -0.1307867318, -0.1048016623, 0.431653887, 0.1039363295, 0.585300684, -0.236194104, -0.0758427456, -0.2580985129, -0.1416507661, -0.1888704747, 0.1602676362, -0.0392030738, 0.3233668506, 0.0670612901, -0.1632790267, -0.2830113173, 0.5166454315, 0.0845425949, -0.2611247301, -0.1971814632, 0.190453887, -0.0674344674, -0.079114221, 0.0402079299, -0.0740576088, 0.1024937257, 0.2805386186, -0.1901012957, -0.3697452843, 0.1157639101, 0.1334051043, 0.0463840254, 0.0146812694, 0.240624249, -0.1717404574, 0.0707802325, -0.6646109223, 0.2447665632, 0.3214768171, 0.0858693793, -0.1917411536, 0.1413502842, 0.1700867862, 0.2327917665, -0.0127752172, 0.1280985773, 0.0748616159, -0.2049070001, -0.0388956293, -0.0290943608 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
Thanks for reporting @qqaatw. @mishig25 @sgugger do you think this can be tweaked in the new doc framework? - From: https://github.com/huggingface/datasets/blob/v2.0.0/ - To: https://github.com/huggingface/datasets/blob/2.0.0/
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
24
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: Thanks for reporting @qqaatw. @mishig25 @sgugger do you think this can be tweaked in the new doc framework? - From: https://github.com/huggingface/datasets/blob/v2.0.0/ - To: https://github.com/huggingface/datasets/blob/2.0.0/
[ -0.0187268835, -0.0063733449, 0.0506374426, -0.0155852269, 0.1034536809, 0.0018571449, 0.0943081975, 0.4163028896, -0.3947233856, -0.0836842582, -0.0372577347, 0.3179531395, -0.1664931178, 0.2242848426, 0.3080801368, -0.0525296144, 0.0487335697, 0.2238049805, -0.2547570765, -0.0491919257, -0.2380854934, 0.341984272, -0.2553614378, 0.1312545836, -0.3358221948, 0.2073527873, 0.0516711958, 0.273817718, -0.2153958827, -0.5224083662, 0.1666757613, 0.1461389512, -0.0980082452, 0.2974532843, -0.000107693, 0.0006840727, 0.4079021215, 0.1341492236, -0.4486331344, -0.2668800652, -0.1302234381, -0.0143276472, -0.0388931893, 0.0316007398, -0.0917565599, -0.3623393178, -0.0534399115, 0.0620410666, 0.1248964295, 0.4276173711, 0.267146498, 0.2947673202, 0.4018473327, 0.0041193808, 0.316903621, 0.1281164587, -0.1532747746, 0.24328731, 0.2216952145, -0.1291415095, 0.0095917862, 0.4768320024, -0.068078883, -0.3794162571, 0.4865564108, 0.093301706, -0.2182506025, -0.1806529313, 0.1244004518, 0.3217478395, 0.4607048333, -0.1307150275, -0.4646194875, -0.0479648486, -0.1796613783, -0.0997240543, 0.2587277591, 0.166385591, 0.1724097431, 0.3736346364, -0.1632021517, -0.3525306284, -0.1811441779, 0.1615775079, 0.1899353415, 0.0887925997, -0.2247998267, -0.1435864717, 0.2506817877, -0.1272458881, 0.0898873955, 0.0974664465, -0.3128810823, 0.2352752984, 0.302955091, -0.0029524262, 0.2264027447, 0.3986923397, 0.3898894191, 0.0592285655, -0.2539224327, -0.1589945853, -0.2067798674, -0.0257673897, 0.0218974128, 0.0151031604, 0.0302289259, 0.26442644, 0.3953259289, 0.4564843178, 0.1249659806, -0.0697237104, 0.0936109051, -0.2380835116, -0.3510729373, -0.256986171, 0.2673896551, -0.223778531, -0.2147222608, 0.1401657313, -0.3454046845, 0.1268764436, 0.1865185201, 0.1045872644, -0.1278415322, 0.393674314, 0.33380723, 0.0770071, -0.3253526986, -0.3007171452, -0.1939601004, 0.1009992585, -0.2921347022, 0.1147204414, 0.1020905748, -0.2380368263, 0.3687265217, 0.24571082, -0.0103543196, -0.3510750234, -0.1554167271, 0.1139164045, 0.0453463197, 0.1353988349, -0.2145240158, 0.0733348355, 0.0992261171, -0.2943176031, 0.0547439009, 0.0642937571, -0.5767101049, -0.2669721842, -0.240460217, 0.2087737322, -0.0104366904, 0.0827140063, 0.0283075087, 0.1178047061, -0.2028799504, -0.2205187231, -0.03559383, 0.0479942784, -0.2346377671, -0.0446820781, 0.4470427334, 0.6542375684, 0.0038462512, -0.2002675235, 0.4292862415, 0.2077868879, -0.2655270994, 0.04039279, -0.3147583902, 0.077260904, -0.3521563411, -0.0752225146, 0.0158992745, -0.4088334143, -0.1669686437, 0.0403709225, -0.0717752129, 0.1015604883, -0.0398605801, -0.2720074654, 0.0598039553, -0.248656407, 0.176627636, -0.1428522915, 0.1704470962, 0.2542067468, -0.3809666634, -0.353779912, -0.5163024068, -0.2521843612, 0.0608099699, 0.2332406491, 0.0841234699, 0.2405655831, 0.3700610399, -0.2897127271, 0.0099815074, 0.4187982082, 0.2980928421, 0.0733309537, 0.1527807266, -0.1372026652, -0.4137678146, -0.0144114485, -0.0107093966, 0.0819268972, -0.0175857823, -0.1740797609, -0.2825234234, -0.0826973692, -0.0045411275, -0.5523075461, 0.1927149743, -0.0065747057, 0.0429890864, 0.4545125067, -0.2057268769, 0.1456052065, -0.1290304065, 0.3776711822, -0.0913241357, 0.5353218913, 0.0404188409, -0.0633401424, 0.0679044574, 0.3209620714, 0.1796393991, 0.0395848677, -0.0619941168, 0.492131114, 0.0285409745, 0.3934338093, 0.2590906024, 0.3861040175, 0.3593550324, -0.5251441002, -0.1047113836, -0.0206500366, -0.0124322642, 0.050311394, -0.0588683002, 0.0821766481, -0.2177267075, 0.1517745256, 0.2938097417, 0.2612448931, 0.0162394475, -0.1683144122, -0.3037468493, -0.1937560588, 0.0794629455, 0.0578263812, 0.2957596779, 0.0241562556, -0.2348694652, 0.1241553426, 0.2402568012, -0.0183152836, -0.1209777668, 0.1407463551, -0.4795674682, -0.03058693, -0.0607700385, 0.2735624015, -0.0039081224, 0.183672294, -0.0311647207, 0.2403924167, -0.2020030767, -0.1329931319, 0.3040080369, -0.0053363461, -0.0535881855, 0.1049759164, -0.0190360453, -0.0109799514, -0.4027561545, 0.142874226, -0.2491160631, 0.0621053465, -0.6494681239, 0.1374780983, -0.1472736299, 0.0596086606, -0.4010846913, -0.1703275442, -0.2623659372, -0.3202089965, 0.0230200514, 0.4301061034, -0.0993966982, 0.136106059, -0.0358842388, 0.2177262008, -0.0971841514, 0.203785643, -0.0926347673, 0.1618431211, -0.1960625798, 0.0989433005, 0.1447136849, -0.0789839625, 0.0729912221, -0.4703897834, -0.1322035044, -0.3642754555, -0.5722596645, 0.1921440065, 0.0189024657, 0.2950074971, 0.2504946887, 0.1046027616, 0.0247421879, -0.2164059281, 0.3224508762, -0.1098168865, -0.0178800989, -0.1746652275, -0.1186220124, -0.0223937165, -0.1284303665, -0.3466694355, 0.3226672411, -0.2008784562, 0.1291579157, -0.073453933, -0.0414851382, 0.3959859908, 0.1823371947, 0.1815578341, -0.0652908683, 0.1858063191, 0.0362914428, -0.368771106, 0.272369206, -0.4087773561, -0.3658385873, 0.0640074462, 0.1180797219, 0.0521220565, -0.115097262, -0.390871346, -0.2551808059, -0.1362003237, -0.1333206147, 0.1170577258, 0.2899685502, 0.1029920653, 0.2729537487, -0.1398071796, -0.1843680143, -0.127268374, 0.0618502498, -0.2787073553, 0.2006920576, 0.061800357, 0.0590314008, 0.318518132, 0.6017566323, 0.4573518336, 0.1458194405, 0.0502798334, -0.1485455632, 0.578355372, -0.18352063, -0.3250697553, 0.1030639708, -0.0292776991, 0.0898150131, 0.225946486, 0.4197639525, 0.1792355329, -0.2104896903, 0.101720646, -0.3077245653, -0.280903995, -0.3568474054, -0.0041932119, 0.3097524941, 0.0111168129, 0.0159794185, 0.0432868041, -0.112734206, 0.2602273822, 0.2433423549, 0.2835389972, -0.0153279286, -0.2746964693, 0.1359817386, -0.3467881382, -0.1134131998, 0.1433422714, -0.1629950702, 0.0694517642, -0.0917806551, -0.0302899461, -0.0313133448, 0.492392689, 0.044816155, 0.1154821292, 0.0005076133, 0.0527030751, -0.1118141711, 0.0678734928, 0.1039814427, -0.0141839059, 0.3997329175, 0.150864765, -0.1662705243, -0.3040024936, 0.5746484399, -0.1854346097, 0.1441411525, 0.2501487136, 0.0278777182, -0.0817128643, 0.0349069312, -0.2140331566, 0.1014012918, 0.1384950876, -0.2695960402, -0.2430803627, 0.3055337369, -0.320091486, -0.1054976285, 0.001531085, 0.3896712065, 0.0238866862, 0.136043191, 0.4518068433, 0.2230081707, 0.5665260553, 0.4972715974, -0.3418525457, -0.4445136786, -0.244050175, -0.0161106829, -0.0021377683, 0.2556381226, -0.1928796023, -0.0711648762, 0.0505496264, -0.0775012895, -0.243780911, -0.020372346, 0.5912908912, 0.1602550149, -0.1254833937, -0.2589995861, 0.3223149776, 0.0376330242, 0.0069189491, 0.1798499674, 0.65194875, -0.3302474022, -0.3181159794, 0.0934337527, 0.7855854034, 0.1937305182, 0.1396501809, 0.1663988978, -0.2820474803, 0.5491793752, -0.1134475917, -0.0258285087, -0.3375852108, -0.0058018141, -0.091741547, -0.0835353434, 0.1145426407, -0.1069581658, -0.0979832932, 0.1017888337, -0.1561881155, 0.3294481039, 0.1097325683, 0.0009019441, 0.1629470587, -0.0186739136, -0.0811826438, 0.1516368985, 0.0768150911, 0.1375958472, -0.081082426, -0.2508812845, -0.0786718801, -0.242593348, -0.3804849088, 0.2243651152, -0.2327753752, -0.1331326067, 0.333514601, -0.1552473158, 0.1435762793, 0.4690390229, 0.2754200101, 0.2022115886, -0.5634796619, 0.1279901564, -0.2899841666, -0.0058137029, 0.2062734962, 0.1866126359, 0.2261181921, -0.0942803323, -0.1467472911, 0.0264065396, -0.1077122167, -0.140503034, 0.1145196334, -0.3522183895, -0.2395982146, -0.1864173114, 0.2506720424, 0.2529906332, 0.0942964107, -0.3653748333, 0.1849160492, -0.0067568538, -0.0530399531, -0.2462597489, 0.1964194477, -0.1427792609, 0.0659849197, 0.4992576838, -0.2850564122, -0.086232461, 0.2825782001, 0.165087983, -0.2940932512, -0.1621114761, 0.1773680598, 0.0137574393, -0.3952941597, 0.2046752572, 0.0853728354, 0.1564372033, 0.0648707375, 0.311362952, -0.0331802517, 0.2252188623, -0.0140510416, -0.0320210941, -0.0477949865, 0.2423122972, -0.2076844871, -0.0093480311, -0.0310140941, 0.0266167186, 0.2681162059, -0.2500365376, -0.3690493703, 0.1961580366, -0.0387606174, -0.122550115, 0.2163073421, -0.044503957, 0.4123308659, -0.1986512244, 0.1600151211, -0.3214805722, -0.1287168711, -0.115025267, -0.5364832282, 0.0388473943, 0.0300639831, -0.2542650104, -0.0139761297, -0.1700523645, -0.0989795998, -0.191702202, 0.1912286431, 0.3731419146, 0.0356145203, 0.1856218725, -0.1891922206, 0.0250710323, -0.0061950437, 0.1073626652, 0.0132122478, 0.2367616594, 0.0359013639, 0.0947790146, -0.1936173737, -0.2067082822, -0.0407616086, 0.3944603503, -0.1563259661, 0.1539546102, 0.4192512333, -0.2408934683, 0.0468122326, 0.1327966452, 0.4078316689, 0.2151671052, -0.1723599285, 0.1499376744, 0.1290489286, 0.2231355011, -0.0600610077, -0.3067900538, -0.1122603789, -0.1152068302, 0.0896471217, 0.0313203484, 0.2190044969, -0.3470428288, 0.2344120145, 0.0477495976, -0.0559986793, 0.0002748633, 0.3516027331, 0.4157331288, 0.0507883579, 0.1439477652, -0.0140554002, -0.0089165941, 0.1484467089, 0.0955848396, -0.0738015026, -0.1681739092, 0.0483632311, 0.3421969116, 0.0258590933, 0.0467895232, -0.2201744169, -0.0356206745, 0.0395993404, -0.1142970398, -0.2248423249, 0.3117848635, -0.006227605, -0.2496984601, -0.1049207151, 0.3156022429, -0.0050971275, -0.3626659214, -0.1408512294, -0.2275236994, -0.0027469764, -0.132359162, -0.0134320371, -0.0980246663, 0.0278109182, -0.1027692035, -0.091119878, -0.3654918373, -0.1565426886, 0.0640628859, 0.397472024, -0.1133024916, 0.0956876129, -0.2018594593, 0.0197682921, 0.078959465, 0.5777487159, 0.3110855818, 0.2805880904, 0.2596610785, -0.4041692913, -0.0644168034, 0.0345660336, 0.0627174005, 0.1102382317, 0.0133940214, -0.1808309853, 0.1749370098, 0.1109802052, -0.2303209752, 0.0087184869, -0.2700973153, 0.2674710155, -0.2290928066, 0.1559583247, -0.1404705644, -0.0352344476, -0.3502377272, 0.1041342542, -0.1884754747, 0.0230704658, 0.38310045, -0.1726017147, 0.0128920851, -0.02434076, 0.1089542508, 0.4283645749, 0.1680281609, 0.5175718069, -0.0467665792, -0.0243918076, -0.4465382695, -0.119303681, 0.0329849124, 0.0078107282, 0.1034657881, -0.1898274124, -0.0956690833, -0.169640705, 0.0467635915, -0.0660497993, -0.2816055119, 0.0589466169, -0.0937485471, -0.1555976719, 0.0623170696, -0.2821703255, 0.1338619888, -0.0885628015, 0.0764508396, 0.0697386935, -0.05374448, 0.0127165932, 0.1664319187, 0.5708862543, -0.2690404654, -0.1332695484, 0.1947271675, 0.1337013543, 0.0831309557, -0.1034138948, -0.3244404197, -0.5144071579, -0.4508841634, -0.1780311018, 0.162798062, -0.2056999654, 0.2096123695, -0.1672454029, -0.4471986294, -0.2246824056, 0.1841426641, 0.1926489025, 0.3129352927, -0.3379454315, 0.199039191, -0.0081377802, -0.0860577598, 0.2050826102, 0.3229789138, -0.331122756, 0.0197007731, -0.1655487865, -0.425565362, 0.4110206962, -0.3970503211, 0.2084781229, 0.117622517, 0.5874207616, 0.1679944396, -0.3322189152, -0.40916875, -0.0465158857, 0.3095655143, 0.1782368869, -0.5145277977, 0.2017880231, -0.0335181765, 0.1973501444, 0.017256001, 0.1879067421, 0.2927712798, -0.0339686871, 0.3257000148, -0.1006402299 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
@qqaatw thanks a lot for notifying about this issue! in comparison, transformers tags start with `v` like [this one](https://github.com/huggingface/transformers/blob/v4.17.0/src/transformers/models/bert/configuration_bert.py#L54). Therefore, we have to do one of 2 options below: 1. Make necessary changes on doc-builder side OR 2. Make [datasets tags](https://github.com/huggingface/datasets/tags) start with `v`, just like [transformers](https://github.com/huggingface/transformers/tags) (so that tag naming can be consistent amongst hf repos) I'll let you decide @albertvillanova @lhoestq @sgugger
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
64
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: @qqaatw thanks a lot for notifying about this issue! in comparison, transformers tags start with `v` like [this one](https://github.com/huggingface/transformers/blob/v4.17.0/src/transformers/models/bert/configuration_bert.py#L54). Therefore, we have to do one of 2 options below: 1. Make necessary changes on doc-builder side OR 2. Make [datasets tags](https://github.com/huggingface/datasets/tags) start with `v`, just like [transformers](https://github.com/huggingface/transformers/tags) (so that tag naming can be consistent amongst hf repos) I'll let you decide @albertvillanova @lhoestq @sgugger
[ 0.0065730982, -0.0883272514, 0.0552236997, -0.0077055711, 0.2573395669, -0.0714105517, 0.1945634633, 0.3197168112, -0.3424007595, -0.1349500567, -0.1559810191, 0.2802294493, -0.0560551584, 0.1167269498, 0.2147251964, -0.2155793309, 0.0649411231, 0.2920233309, -0.252859056, -0.1506892145, -0.1518757641, 0.3171067238, -0.1790933311, 0.1920591295, -0.3274656832, 0.2798101306, 0.1534016579, 0.153567344, -0.0000363804, -0.4888615012, 0.1965260953, 0.1291305274, -0.0167279858, 0.4670617282, -0.0001063203, 0.125091657, 0.390607059, 0.1282721013, -0.4004870951, -0.2471046746, -0.0733581111, 0.0678505152, -0.0685865209, 0.0454516113, -0.107433185, -0.3432089984, 0.0706475079, 0.107992433, 0.2038636506, 0.2074069232, 0.2728696764, 0.4251799881, 0.3782656789, -0.0129508451, 0.4114501178, 0.193658635, -0.1123418733, 0.1789726913, 0.06014264, -0.1218739524, -0.0465052351, 0.5278462172, 0.0381885916, -0.2677955925, 0.5153679848, 0.0937049165, -0.2443585694, -0.1323922575, 0.0991327763, 0.3012609482, 0.364700675, -0.2112148851, -0.4938211739, 0.0001786476, -0.2358332425, -0.0356833339, 0.2547633946, 0.1025241464, 0.2315013409, 0.302947998, -0.1500965357, -0.3075671494, -0.1629028767, 0.1176503077, 0.169693619, 0.2454029173, -0.1703527272, -0.1339713335, 0.2104124725, -0.1295376271, 0.0309893806, 0.0190344118, -0.2692017555, 0.2128345519, 0.2598642707, 0.0328525417, 0.0882897079, 0.0865632221, 0.3208107352, -0.1182466224, -0.2992314696, -0.1321708113, -0.1913214326, -0.0378233343, 0.0124209207, 0.0790380463, -0.0878917202, 0.4679933786, 0.3743503392, 0.4274028838, 0.0893099755, -0.0859130621, 0.082486555, -0.2319692969, -0.2457861304, -0.1987798214, 0.1591941267, -0.0811115727, -0.014625161, 0.0630473793, -0.3364953697, 0.0528000146, 0.1670987457, 0.2440328002, -0.0962706283, 0.3941834569, 0.202966556, 0.0670626014, -0.2361853123, -0.143816486, -0.2530103326, 0.0159452148, -0.2775613964, -0.0390159041, 0.0857582614, -0.3096704185, 0.2399052829, 0.1473229825, 0.0836973712, -0.2059435844, -0.1974505037, 0.1443755329, 0.1165770516, 0.3383276761, -0.2212701589, 0.2161149681, 0.165544346, -0.202844888, 0.036064256, 0.0140806073, -0.5151786208, -0.1199477389, -0.1774485558, 0.246814996, 0.0051511871, 0.0759172589, -0.0646792576, -0.0419975556, -0.1202492639, -0.1973121613, -0.0368617252, 0.110822767, -0.0767694488, -0.0338977724, 0.4125278294, 0.5208441019, -0.036895629, -0.3935316205, 0.4047833979, 0.1631415784, -0.1775095165, 0.1432861984, -0.3420292735, 0.0085178297, -0.2706590295, -0.1179326624, -0.0765862465, -0.3609603047, -0.2449517399, 0.2227074504, -0.0016612486, 0.0901209936, -0.0753386691, -0.235522598, -0.0116151627, -0.1539641321, 0.0061339671, -0.2622683644, 0.1793740988, 0.3360823393, -0.3664185107, -0.4304911494, -0.3072749078, -0.1846852452, 0.1353423744, 0.2857211232, 0.0003829138, 0.3689422905, 0.3114160299, -0.2469510436, 0.0283996556, 0.505151093, 0.2733092606, 0.0579572804, 0.3165695369, -0.1178044081, -0.4934801757, 0.0083915517, -0.2024810016, 0.1571637988, -0.0004708008, -0.1352407485, -0.3536067605, -0.0600259081, 0.0132397171, -0.4908931553, 0.1913824677, 0.0257924665, -0.111755535, 0.2487559319, -0.1716878563, 0.0651095882, 0.0713541508, 0.2854348421, -0.1842642277, 0.6522875428, -0.1103234589, 0.0413212441, -0.0223401245, 0.2086714059, 0.1980611533, -0.0404364392, -0.1811917126, 0.4635406435, -0.0357700065, 0.4684275389, 0.2434378117, 0.3954514563, 0.4232785106, -0.6769599915, -0.0680814236, 0.237888813, 0.0611645393, 0.0518531613, -0.1533658206, -0.0780314282, -0.2021506727, 0.1272251457, 0.2953221202, 0.1823010892, 0.0999520272, -0.1082381085, -0.3196214437, -0.2014982253, 0.055015102, 0.0901683569, 0.3574031591, 0.1439760476, -0.0922324881, -0.0199551973, 0.4158041477, 0.0083186813, -0.0911448002, 0.242616266, -0.6027891636, 0.0311125536, -0.1330875754, 0.1408789605, -0.0919546559, 0.1593043804, -0.1036194414, 0.0961066559, -0.2534538805, -0.1396684796, 0.3461745977, 0.1941911578, -0.0270994324, 0.1398949623, -0.0043457597, 0.0737230927, -0.3817145228, -0.0596181415, -0.1980962902, -0.0031680847, -0.5729356408, 0.2162649781, -0.117068857, 0.0944560543, -0.4428473115, -0.3303820193, -0.4261094034, -0.2853879631, 0.0058530113, 0.228824988, -0.1748670042, 0.3124575615, 0.1480713785, 0.0711063072, -0.0410974994, 0.0884725824, -0.1559078991, 0.0767932758, -0.1581969857, 0.0760645345, 0.026467124, -0.1489141732, -0.0624827817, -0.357083708, -0.1731151342, -0.2613710165, -0.6772148609, 0.3111252487, -0.0042017675, 0.2139887065, 0.3288147748, 0.0540914647, 0.0116029745, -0.2733727694, 0.3548686802, -0.0530123375, 0.0801071227, -0.0430673063, -0.2086727321, -0.0474377908, -0.1984630227, -0.3403969705, 0.3157745302, -0.3135409355, 0.0766901821, -0.1040459499, -0.0613311492, 0.5684866309, 0.0826461241, 0.1300656497, 0.0688251331, 0.161832422, 0.0684892088, -0.1441925913, 0.3157411516, -0.3044101596, -0.3007643223, -0.0124807656, -0.0619525947, 0.029727038, -0.1800563186, -0.2494423389, -0.0845214799, -0.2803372145, -0.2651455998, 0.1552464664, 0.3613764942, -0.0078293076, 0.2784724534, -0.1168172285, -0.2203996181, -0.052437678, 0.045147758, -0.2366567701, 0.2067115456, 0.0416321754, 0.0248152688, 0.1274091303, 0.7445487976, 0.3744005561, 0.0227510035, 0.0757856891, -0.0784038827, 0.3957833648, -0.1899531186, -0.3510109782, 0.0264800936, -0.015322187, 0.116756171, 0.2378906161, 0.3086256385, 0.148376435, -0.1045911461, 0.0539854839, -0.220097065, -0.3021546006, -0.2529804111, 0.0283051357, 0.3184106648, 0.0419602804, 0.0633933768, -0.0346479006, -0.0342518091, 0.2803482413, 0.2388091087, 0.1891027987, -0.0540582575, -0.1551038325, 0.0914529562, -0.1900847107, -0.1141356379, 0.1344437897, -0.1318707168, 0.1070885062, -0.1674316823, -0.0954465568, -0.0775546357, 0.5738289952, 0.0987146497, 0.2087430507, 0.0513692461, 0.0552439652, -0.0276313815, 0.0092015835, -0.0005108776, -0.2781579494, 0.4202433825, 0.2195717692, -0.3236964047, -0.3355166614, 0.4898747504, -0.2777423859, 0.0694080442, 0.2146122605, -0.1075427979, 0.0117257796, -0.1003113911, -0.3274841607, 0.1199704185, 0.1248682663, -0.3318333924, -0.191640228, 0.2626630962, -0.3710826039, -0.0384662077, 0.1382882595, 0.3959483504, 0.0564571992, 0.1404436827, 0.4067521691, 0.2640852928, 0.4464472532, 0.4217379689, -0.2865972817, -0.5550221801, -0.071895726, 0.0431660414, 0.0015474914, 0.1913660318, -0.1200354844, -0.0396521054, 0.2790412605, 0.0794360414, -0.3537640274, -0.0146990782, 0.4923180938, 0.1145171151, -0.0971996859, -0.2554032505, 0.3727573156, -0.0946270153, -0.0615033954, 0.0602317713, 0.6576160789, -0.3099475801, -0.0362733752, 0.0982819349, 0.820663929, 0.1513769031, 0.1835633814, 0.1358842701, -0.3657957017, 0.4504368305, -0.0858179256, -0.0074446336, -0.3807337284, -0.1300352067, -0.0560219176, -0.0709959567, 0.1193019599, 0.0317837931, -0.2074746788, 0.1414081305, -0.1303903759, 0.3623149693, 0.1049654782, 0.0112633547, 0.2178961933, -0.1973807067, -0.0923836082, 0.1476854533, -0.0087144338, 0.2857821584, -0.0345181897, -0.3050089478, 0.0718259588, -0.3472044468, -0.3434197605, 0.2712067664, -0.1970825195, -0.1050282121, 0.4748391807, 0.0103291962, 0.2291405946, 0.2635144293, 0.3203057349, 0.2762208283, -0.4620064497, 0.2972625792, -0.1829363108, 0.0455523282, 0.0763220862, 0.2973567843, 0.2126032561, -0.0433471277, -0.1583108604, 0.0533268601, -0.1484090239, -0.1055318192, 0.1102721617, -0.3807244301, -0.1644919068, -0.1974048913, 0.4225025177, 0.2515752316, -0.0122454846, -0.3645030558, 0.2014557868, -0.0970324799, -0.0851529539, -0.2982915938, 0.2595801651, -0.1611304879, -0.0438877121, 0.4537913203, -0.2379711419, -0.0415481627, 0.2990227342, 0.2289641351, -0.3229803443, -0.1686019003, 0.0448094718, 0.0264700353, -0.6376497149, 0.1726291329, 0.0508032292, -0.0742414072, 0.098461017, 0.3833658099, 0.0217994321, 0.2394544035, -0.1111395359, 0.0327452011, -0.1776800305, 0.2863346338, -0.1722778976, 0.0329988301, 0.0237004496, 0.0493323132, 0.2473142743, -0.0584156476, -0.3894332647, 0.0775601193, -0.1020672619, -0.0490419343, 0.0270883907, -0.2470385134, 0.4562746882, -0.2413646579, 0.1913222969, -0.2705222368, -0.2254073173, -0.1410516351, -0.6216678023, 0.0210578125, -0.0148379449, -0.2617080808, -0.1974198222, -0.007928241, -0.1067036316, -0.2336681336, 0.3042416573, 0.2600105405, 0.1351160854, 0.3070185781, -0.14960742, -0.028866265, -0.0921696946, -0.0279883966, 0.1553493589, 0.260582149, 0.1012182981, 0.0328283645, -0.2911418974, -0.1865756959, -0.2158434242, 0.3043348491, -0.0303825699, 0.1967886835, 0.5015547276, -0.2432555109, 0.0256117284, 0.1417425424, 0.4004733264, 0.0250729602, -0.0723735616, 0.0639518946, 0.1091265157, 0.2383465916, -0.1504670233, -0.3286904991, -0.1849858463, -0.1320259124, 0.1151460186, 0.0655584261, 0.1882505864, -0.0231885724, 0.3061773181, 0.1608326435, 0.1388208419, -0.0253484435, 0.3115018308, 0.5027980208, 0.0598069392, 0.236740455, 0.0626190007, 0.0053742123, 0.2240903676, 0.1337331831, -0.0872110426, -0.238962546, -0.0474176034, 0.3242660165, 0.2234245688, 0.0348693766, -0.4290312827, -0.0095880562, 0.0468172878, 0.0021247691, -0.1751195639, 0.2028441578, 0.0044504097, -0.2747330666, -0.1369954646, 0.3185069263, -0.0183607172, -0.4083237648, -0.1175251976, -0.1188916788, -0.1525907069, -0.1394827515, -0.0467438065, -0.0643775612, 0.1647508293, -0.0099897264, -0.0202543195, -0.2531701624, -0.0786969736, 0.0897430554, 0.379235208, -0.136733219, 0.1348532885, -0.0595386066, -0.0807768777, -0.0315273181, 0.4621851444, 0.2279634774, 0.1837764382, 0.2093246281, -0.3050137162, 0.0271217935, -0.0127357608, 0.0391979218, 0.0306587666, -0.0792090446, -0.0798472688, 0.1630887836, 0.1344316006, -0.2688139975, -0.1177104637, -0.2920818925, 0.4007501006, -0.0696868151, 0.3741434216, -0.2174252272, -0.0056079477, -0.2877032161, 0.1019308195, -0.2786145806, 0.1063357815, 0.3893366456, -0.0943624526, 0.0478154495, -0.0896098763, 0.1214947328, 0.4160805047, 0.2746144533, 0.4815483093, -0.0108939325, -0.1389800757, -0.2372523993, -0.1002819687, 0.0312261637, 0.0431708954, 0.168446824, -0.0377153382, -0.0870701596, -0.0849598497, -0.0318696648, 0.0041106651, -0.3557837605, 0.0069809621, -0.0224391241, -0.0498589836, 0.1196041256, -0.2719651461, 0.1485418528, -0.0395163558, -0.0710731372, 0.1014474183, 0.179389134, 0.0341467708, 0.0935984105, 0.4311004281, -0.0943966806, -0.2619920373, 0.1252227277, -0.0032109858, -0.0237022229, -0.180371359, -0.3040222824, -0.4099143744, -0.5458900928, -0.0913139209, 0.0314928703, -0.1568245888, 0.3712515533, -0.1308711767, -0.3182941079, -0.3569455445, 0.0521673225, 0.2099488676, 0.1788144112, -0.3711500168, 0.2741205096, -0.106806837, -0.1408313066, 0.2295223624, 0.364847064, -0.1950660646, -0.0706284195, -0.1876826286, -0.5193626881, 0.4849521816, -0.3982322216, 0.023398906, 0.0220144074, 0.4077369869, 0.3193827271, -0.2438468635, -0.4457653463, 0.0022869492, 0.2340791076, 0.124888733, -0.592769146, -0.0081830258, 0.0874785557, 0.1356586814, -0.0635806099, 0.2302103937, 0.283072114, -0.1197610945, 0.2006835639, -0.0412349291 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
I think option 2 is the easiest and would provide harmony in the HF ecosystem but we can also add a doc config parameter to decide whether the default version has a v or not if `datasets` folks prefer their tags without a v :-)
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
45
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: I think option 2 is the easiest and would provide harmony in the HF ecosystem but we can also add a doc config parameter to decide whether the default version has a v or not if `datasets` folks prefer their tags without a v :-)
[ -0.0938097313, -0.0260814503, 0.0604206808, -0.0434884988, 0.1273476481, 0.0210941676, 0.0481097512, 0.4152699113, -0.2235424668, -0.0596477427, -0.1113163456, 0.2980242074, -0.0862368792, 0.2317366898, 0.230434373, -0.0245843213, 0.0244480316, 0.2727003694, -0.2373473942, -0.1196464971, -0.2088506222, 0.3087248802, -0.1478630602, 0.1997593492, -0.2349734008, 0.1833888888, 0.0328279957, 0.2585004568, -0.1615206599, -0.5289617777, 0.1182913557, 0.2092945874, 0.0116788065, 0.3349639475, -0.0001067179, 0.0589266904, 0.31700629, 0.1626366824, -0.4697594345, -0.2691062689, -0.0687212273, 0.0060924352, -0.0742266253, 0.0837398022, -0.1293406188, -0.4473069906, -0.0449471697, 0.0349628925, 0.0986831784, 0.2601935267, 0.2783134282, 0.3367938697, 0.3182222843, -0.0664458945, 0.4235326648, 0.1754714102, -0.1066083536, 0.2765164375, 0.0671097189, -0.2146502733, -0.0356652439, 0.5221790075, -0.0374240987, -0.2294418514, 0.5925667882, 0.0748160109, -0.2306540757, -0.1428270191, 0.1135228872, 0.358900249, 0.4462854862, -0.2040632218, -0.4455934465, -0.0123269362, -0.1961635649, -0.1439749449, 0.2808187902, 0.1324788928, 0.1828143746, 0.3789464235, -0.026702201, -0.3251271248, -0.141697824, 0.187694177, 0.1829236597, 0.0478198193, -0.1587760746, -0.120446682, 0.2193215191, -0.0920727924, 0.0035389687, 0.0445808955, -0.3210739791, 0.1806870252, 0.2929236889, 0.0594239607, 0.2188919336, 0.2279132605, 0.5009384751, -0.0982243046, -0.3371444643, -0.1453030258, -0.1811874956, 0.0198491011, 0.0221251957, -0.0441700742, 0.071696721, 0.2743437588, 0.4242252707, 0.4228812456, 0.0947222635, -0.0924699828, 0.1771945655, -0.2170592844, -0.256916225, -0.2759924531, 0.2077211291, -0.2495431602, -0.1821803153, 0.1464057714, -0.3560431302, 0.0826753974, 0.0774417147, 0.2412797511, -0.0906751901, 0.3241420388, 0.2872466743, 0.0734793991, -0.3544256091, -0.3064899147, -0.2401584089, 0.0418642573, -0.2801042795, 0.0955258906, 0.051074896, -0.3497385085, 0.3087667823, 0.2611151338, 0.0672059134, -0.2071349472, -0.1649256945, 0.0901018232, -0.0084888116, 0.2701132894, -0.1356534064, 0.114080295, 0.167982623, -0.2783729434, 0.0206444412, 0.0129679963, -0.5031889677, -0.1793836653, -0.2505916059, 0.2505785823, 0.0378323831, 0.0840974972, -0.0226694196, 0.0678058267, -0.2331816554, -0.2102110833, -0.0148822796, 0.0146442335, -0.1627742201, -0.1056719124, 0.4456664026, 0.6114689708, -0.1278374642, -0.2162666172, 0.446718365, 0.1495575905, -0.2754493952, 0.0898848623, -0.2896929085, 0.0201837998, -0.3396971226, -0.037140768, 0.0179260671, -0.3582271934, -0.2336692959, 0.1740300357, 0.0296202693, 0.076154694, -0.099812232, -0.2329989225, 0.055563122, -0.1966964602, 0.1627615839, -0.1780530959, 0.1555103511, 0.1953393817, -0.4192004502, -0.3424871266, -0.4184399545, -0.1906796545, 0.1042633131, 0.2388810664, 0.1120269373, 0.1496872604, 0.3964487314, -0.2935855687, 0.0016189585, 0.4799331725, 0.3468309343, 0.236527428, 0.2016327381, -0.1711110026, -0.4050754011, -0.0027985163, -0.0923234671, 0.129082948, 0.0436500199, -0.2718532085, -0.2950779796, -0.0758377984, 0.0052123363, -0.4897663891, 0.1882068664, 0.0040581436, -0.084153384, 0.3724142909, -0.2133318037, 0.2431943119, -0.0639811307, 0.3611893952, -0.0516377091, 0.6402115226, -0.0565841384, -0.0539174341, 0.0988237113, 0.2673920989, 0.2247013152, 0.0055342466, -0.1258656532, 0.474206984, -0.0502568148, 0.3249876797, 0.3134181499, 0.3151767254, 0.3843261302, -0.5301799178, -0.035846509, 0.0382780991, -0.0142953619, 0.0624508932, -0.0424060337, 0.0758526549, -0.1177838445, 0.1185570061, 0.2384510487, 0.2068023831, 0.0174186435, -0.1224516481, -0.2819073498, -0.1586687714, 0.1379287392, -0.0250324532, 0.2805365324, 0.0665385351, -0.2582452297, 0.1283424944, 0.4364573956, -0.0032926796, -0.1276252419, 0.2597483099, -0.5415123701, 0.0132140443, 0.0497160666, 0.1019373611, -0.0276826862, 0.2440483123, -0.0807025135, 0.2209554017, -0.3232033849, -0.080190368, 0.2584236562, -0.0073658251, 0.0107589848, 0.0914253592, 0.0046744547, 0.0482405052, -0.4385219812, 0.0348988287, -0.3234514594, 0.0315580443, -0.6536998153, 0.1626315117, -0.2634989917, 0.012103904, -0.2666702867, -0.1537078768, -0.4200260043, -0.3341841698, 0.0612796769, 0.3405524194, -0.1169092804, 0.1726608276, -0.0413606912, 0.1315208673, -0.1105313897, 0.1321493089, -0.0888548568, 0.1297263056, -0.2626480758, 0.0790102556, 0.0484266803, -0.0453156345, 0.1310915947, -0.3703796268, -0.2198640853, -0.3529173732, -0.6234229207, 0.2463834584, -0.0101767601, 0.3135118484, 0.3105319142, 0.092178233, -0.0213551149, -0.1409446895, 0.3786444068, -0.1201012731, -0.0056826244, -0.1051734164, -0.1794445515, -0.0618380345, -0.1545273215, -0.3004794419, 0.2768150568, -0.309365958, 0.0564941056, -0.1263273805, -0.0340291746, 0.4534700513, 0.1551069766, 0.1416776925, -0.0414743833, 0.1296431422, -0.0529723838, -0.2394368649, 0.2339755893, -0.3955615461, -0.4028537273, 0.10190285, 0.0771368966, 0.0092871338, -0.0916308761, -0.4671471417, -0.2465721369, -0.127595976, -0.0153950844, 0.0862768963, 0.300709039, 0.0404298268, 0.2357815951, -0.1616265029, -0.2027635425, -0.1491240263, 0.0937604755, -0.2770643532, 0.1706626415, 0.0628296137, 0.1472319514, 0.3029622436, 0.6238442659, 0.4332585037, 0.1605638117, 0.1675800085, -0.1096340269, 0.5632909536, -0.1981727034, -0.3579517305, 0.1097211689, -0.0129498122, 0.1556569934, 0.2498666197, 0.3302145004, 0.1945933402, -0.1982151568, 0.0450406484, -0.2043873221, -0.2863024473, -0.2914910018, 0.0084826918, 0.3005152345, 0.032799527, 0.0419832096, 0.0025834329, -0.0676640794, 0.343285054, 0.3429279625, 0.1866391003, 0.079324767, -0.237640366, 0.1767175794, -0.2379762977, 0.0025850632, 0.0394260548, -0.1871114224, -0.0353535526, -0.0650054663, -0.0459686369, -0.0959647968, 0.5105568767, 0.0219007693, 0.1396620721, 0.0241177678, 0.0669474602, -0.1039437726, 0.016843969, 0.0900532156, -0.087418735, 0.3198081851, 0.1886124313, -0.3022344112, -0.3603185415, 0.5360911489, -0.2362302542, 0.1131877527, 0.1769534498, -0.0605889931, -0.1358152181, -0.0271520782, -0.2856934369, 0.0505618528, 0.0871537924, -0.2598602474, -0.2206462622, 0.277058363, -0.3358317912, -0.0167274512, 0.0668118969, 0.3722629845, -0.0122211613, 0.1151869223, 0.4290468693, 0.3365401626, 0.5713501573, 0.4864063263, -0.3246357739, -0.4982227385, -0.2009928674, -0.0242457222, 0.0748163015, 0.2516953349, -0.1754578799, -0.0162444264, 0.1650733501, 0.0233640522, -0.3080782592, -0.0299876463, 0.5820737481, 0.1167641729, -0.1333883107, -0.2442776859, 0.38098526, -0.0068034446, -0.0252573099, 0.2295657247, 0.7350907922, -0.2789329588, -0.1444198638, 0.0621294826, 0.8639345765, 0.207676515, 0.1768388152, 0.2517291903, -0.3787847161, 0.4886271954, -0.1721020937, -0.1086631641, -0.3633347452, -0.1201509088, -0.1033308059, -0.0770197362, 0.1843206733, -0.0505405962, -0.1112760454, 0.1884798706, -0.0853756964, 0.2654908597, 0.145243004, 0.0627694577, 0.1056208834, -0.0716957971, -0.1252238005, 0.1735765785, -0.0503350161, 0.2442570478, -0.1027075201, -0.2809778154, -0.0069933091, -0.2800596356, -0.3366470337, 0.2054430246, -0.2202555537, -0.1656247377, 0.357064873, -0.0502496734, 0.1908334941, 0.1684897542, 0.2639710307, 0.2441769987, -0.4172578454, 0.1145854741, -0.2094805241, 0.0580187477, 0.1285939515, 0.203266412, 0.3143283129, -0.1034525707, -0.2083992511, 0.057688307, -0.0937010124, -0.138934657, 0.1153036207, -0.4125866294, -0.3023763597, -0.1849692017, 0.3421132863, 0.2477545142, 0.1524529904, -0.3444870114, 0.1875866205, -0.0471207276, -0.0326961651, -0.2432629317, 0.2757342458, -0.1253369302, -0.0757419318, 0.4334534705, -0.3151337802, -0.0001482143, 0.2342901677, 0.2397303134, -0.3701955676, -0.1617270708, 0.0957183093, 0.0631939545, -0.3943467438, 0.171307385, 0.0447481349, 0.0448412113, 0.0324312821, 0.3154701293, 0.060876783, 0.1107949167, 0.0096969455, -0.0520026423, -0.0540973693, 0.3109970391, -0.2490205318, -0.0160243902, 0.0287983362, 0.0554015338, 0.237143144, -0.1646815538, -0.4020210207, 0.0929057151, -0.0032726892, -0.0918148458, 0.1528424472, -0.0621125549, 0.4317509234, -0.2689685225, 0.1843348891, -0.3016476929, -0.2320345044, -0.1449885666, -0.5727108121, 0.049187392, -0.0376556627, -0.2308504432, -0.0027735559, -0.188123107, -0.120360665, -0.2148164064, 0.3004638255, 0.3123693168, 0.0233241841, 0.2225175649, -0.1857291162, -0.0682842135, 0.0034654762, 0.0989158824, 0.1290744543, 0.2573725879, 0.011782865, 0.0438630767, -0.2610111535, -0.207557857, -0.1158575043, 0.3426484764, -0.185308665, 0.1423807442, 0.4913384616, -0.2742848694, 0.0786194801, 0.1211423576, 0.5221430659, 0.0933529064, -0.1368582994, 0.1238242388, 0.1624059975, 0.2421745807, -0.1843290776, -0.2415527999, -0.0861729756, -0.091383338, 0.1328665018, 0.0169427413, 0.2620761395, -0.0964106843, 0.1942178905, 0.10953594, 0.045214843, -0.045504801, 0.2419626564, 0.4247084558, 0.036295481, 0.2278439701, 0.0457734875, 0.0685509518, 0.1370723695, 0.1743280739, -0.0330088548, -0.2181605548, 0.1121593565, 0.3249340653, 0.096568957, -0.0589054115, -0.2388463616, 0.0589313731, 0.0821236372, -0.0880815312, -0.2041772753, 0.3019961715, -0.0603906214, -0.4134874642, -0.0206200685, 0.3359728456, -0.0098261852, -0.2472676933, -0.1368498504, -0.1635976136, -0.1480585635, -0.1123413593, -0.0376701914, -0.1004453599, 0.1365635246, -0.0225004256, -0.0114435488, -0.4132922292, -0.0732219368, 0.0334430486, 0.4008609653, -0.0496828631, 0.1276899874, -0.2001137882, 0.0207711738, 0.0578959174, 0.5146752, 0.3084948957, 0.2143529803, 0.1696754247, -0.3964858949, -0.0534614921, 0.0226391293, 0.0171981975, -0.0400020182, -0.0294799432, -0.1672346294, 0.2017725557, 0.1200780198, -0.2452926636, -0.0321043991, -0.3444381952, 0.2764934897, -0.2159712315, 0.2820574939, -0.1461116821, -0.0209272634, -0.2426106781, 0.0472194739, -0.1918854117, 0.0455700457, 0.4850758314, -0.085848555, 0.0339120701, -0.0934215784, 0.1176094264, 0.3938858509, 0.1561932862, 0.5331164598, 0.0043121111, -0.0495942198, -0.2791769803, -0.243296504, 0.0201395303, -0.1414406896, 0.0480188988, -0.0600267835, -0.0555463731, -0.0146998111, -0.0010010477, 0.0880213529, -0.2618251145, 0.078286007, -0.120649077, -0.136959821, 0.0229161996, -0.3294656277, 0.0943849906, -0.0710687786, -0.0061211856, 0.1335519999, 0.0259690322, 0.0173318591, 0.116104424, 0.5133123398, -0.0914288834, -0.2896348834, 0.2170962095, 0.0613113604, 0.0434146374, -0.133522138, -0.3484779298, -0.3721036911, -0.4678597748, -0.1660576165, 0.154239282, -0.2642556429, 0.2903946638, -0.1145644784, -0.5081779361, -0.2719099522, 0.2005206496, 0.1967576295, 0.2211483568, -0.3457773626, 0.3326295316, -0.0450641476, -0.1149596646, 0.2055460066, 0.3438919187, -0.2626472712, -0.0108818738, -0.2408201396, -0.4680542648, 0.4570284486, -0.3942187726, 0.1349316984, 0.1047527194, 0.5356261134, 0.3176354766, -0.3511956334, -0.3826901317, -0.0713415816, 0.2912703753, 0.1439184994, -0.5351693034, 0.1411283761, -0.0442689806, 0.1605009139, -0.0387160368, 0.2088245302, 0.1904911548, -0.1499004811, 0.3096002638, -0.0524013117 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
For me it is OK to conform to the rest of libraries and tag/release with a preceding "v", rather than adding an extra argument to the doc builder just for `datasets`. Let me know if it is also OK for you @lhoestq.
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
42
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: For me it is OK to conform to the rest of libraries and tag/release with a preceding "v", rather than adding an extra argument to the doc builder just for `datasets`. Let me know if it is also OK for you @lhoestq.
[ -0.0685728416, -0.0409824587, 0.0370725356, 0.0277262218, 0.1149328724, -0.0037942776, 0.0967352986, 0.3829962015, -0.2840083241, -0.089750126, 0.0138481259, 0.4365793169, -0.169669956, 0.20860897, 0.2725096643, -0.0154741993, 0.0271024127, 0.261585623, -0.2352999151, -0.055762995, -0.1919090748, 0.324064523, -0.2042725235, 0.1535977423, -0.27034235, 0.1670076698, 0.0591966622, 0.2288028747, -0.2103214115, -0.5422207117, 0.1276173741, 0.0995094255, -0.0961302221, 0.331127733, -0.0001048419, 0.0140946144, 0.3476297259, 0.1178831607, -0.4699021578, -0.3233717084, -0.0719064623, -0.0451742373, -0.0146120256, 0.00785127, -0.1258244216, -0.3826374412, -0.0499859974, 0.0405696295, 0.2052532434, 0.3482362628, 0.2992414832, 0.3699873686, 0.4004204869, -0.025439756, 0.3198843002, 0.0917932242, -0.1380611658, 0.2120723426, 0.2295103073, -0.0849450901, 0.0254172664, 0.4892385304, -0.0946066752, -0.3265686035, 0.5314123034, 0.0472240373, -0.1797264963, -0.1714303493, 0.1635299176, 0.2425530553, 0.4872799814, -0.208337903, -0.4699008763, -0.1115891412, -0.1643899083, -0.1052348465, 0.2728014886, 0.1579301208, 0.1723017991, 0.377941072, -0.1109150797, -0.3061343729, -0.1432870924, 0.1541997641, 0.2263975888, 0.0862177461, -0.2519297898, -0.0910816789, 0.2400526702, -0.1448470801, 0.006196863, 0.0436424688, -0.2441788614, 0.2308585942, 0.3039606512, 0.0491375402, 0.2462482303, 0.3164340854, 0.4329480529, 0.0338296518, -0.2457193136, -0.166847989, -0.1582171172, 0.0229931362, 0.050647933, 0.0370646007, 0.0473358892, 0.2774551511, 0.3622593582, 0.4133018553, 0.1221867204, -0.0997295082, 0.0932665765, -0.2681900561, -0.2848245203, -0.2462034971, 0.2989389896, -0.239561215, -0.1656820476, 0.117219694, -0.3065184355, 0.1030090973, 0.1287199706, 0.1242081448, -0.1266869456, 0.293651849, 0.2503077686, 0.1115966067, -0.2978446186, -0.2746068537, -0.2528053522, 0.092332609, -0.3332327902, 0.0945024863, 0.0475189835, -0.3274155259, 0.4279167652, 0.2757471204, -0.0310623087, -0.3162453473, -0.1458656788, 0.1568716168, 0.0288281552, 0.1769444942, -0.1847193837, 0.1315235645, 0.112543568, -0.337904036, 0.0357897505, 0.0728592724, -0.5392189622, -0.2632758319, -0.257291913, 0.2365236431, -0.0768182725, 0.0864177197, 0.0214080848, 0.0864851698, -0.1273857951, -0.2415638119, -0.0340795815, 0.0287946239, -0.1553217769, -0.1024574488, 0.472312361, 0.5689954758, -0.044200398, -0.2052333653, 0.3962597549, 0.1763758063, -0.2838981152, 0.0653103068, -0.2998725474, 0.0272607356, -0.3317912817, -0.0661914349, 0.0586566851, -0.3485058844, -0.2532409728, 0.0527340733, -0.0621044151, 0.0943613499, -0.0569325387, -0.2265861332, 0.0805432424, -0.1994694769, 0.1513413042, -0.1567263454, 0.1360406131, 0.2221135199, -0.3629013598, -0.335586518, -0.4271739125, -0.2099135518, 0.0224175099, 0.1930695623, 0.0678268969, 0.1926305592, 0.349704653, -0.2855260372, 0.0078576785, 0.4326567948, 0.268876344, 0.1413195133, 0.162760362, -0.214135915, -0.4543483257, 0.0231123008, 0.014628998, 0.1195432097, -0.0603120551, -0.1925930381, -0.311224848, -0.0447108485, -0.0067014773, -0.5698429942, 0.1987469494, 0.032017462, 0.0520300046, 0.4144055247, -0.2403134555, 0.0619450137, -0.0891733095, 0.3533377051, -0.187086463, 0.5101243854, -0.0286797062, -0.105062671, 0.0740636438, 0.2977663279, 0.1748443544, -0.0047646766, -0.0990904644, 0.4398885667, 0.016254697, 0.3992919028, 0.242174685, 0.3241462708, 0.3334953189, -0.5155148506, -0.0325593725, 0.0449223071, 0.0130153727, 0.0474819243, -0.0744668394, 0.1051925644, -0.1802470088, 0.1218770817, 0.2652024329, 0.245111987, 0.058310058, -0.1385032535, -0.3420464396, -0.1812264472, 0.1253895164, 0.0041581891, 0.3356534839, 0.0525419563, -0.2468471676, 0.0754539296, 0.3265894651, -0.0208846815, -0.0877408832, 0.1604851484, -0.5521725416, 0.0183592401, -0.0404054746, 0.2213100642, -0.0264408085, 0.2166309059, -0.0545881577, 0.2147457153, -0.1993698776, -0.1552651823, 0.2608474493, 0.010920167, -0.0694989115, 0.1070065573, -0.0503518842, 0.034260232, -0.4041564763, 0.1318606883, -0.2834663391, 0.0659086555, -0.6127709746, 0.1465355605, -0.1851168275, -0.0047337501, -0.3498645723, -0.1750106514, -0.3272969127, -0.2826775908, 0.0005330223, 0.3473081291, -0.1142515093, 0.21968171, 0.0180214942, 0.1574604809, -0.0930364057, 0.1211267263, -0.0602990538, 0.1002468765, -0.1909245402, 0.1053308547, 0.1274120212, -0.0375291407, 0.1316758841, -0.4064319134, -0.1415069401, -0.3676317632, -0.6100158691, 0.2057239711, -0.0532578491, 0.3561293185, 0.2965407073, 0.0979157984, 0.0346049666, -0.1877556592, 0.3916503489, -0.1664042324, -0.0030589039, -0.2027031183, -0.1246370897, -0.1398957819, -0.1913454533, -0.3227806389, 0.3065453768, -0.2672925889, 0.1486292928, 0.0013128398, -0.0670372471, 0.4120712876, 0.1694311947, 0.2076503336, -0.0297993273, 0.2086593658, -0.0214457009, -0.3043401837, 0.2605179846, -0.3829050064, -0.3795229197, 0.085438326, 0.1012189686, 0.1016204357, -0.1315391064, -0.3894679248, -0.2188655138, -0.1357191354, -0.0973914191, 0.1385203302, 0.3174735308, 0.0887503326, 0.2532123923, -0.138240546, -0.2035430223, -0.2159437239, 0.0634637251, -0.2660446763, 0.1867198646, 0.0770585909, 0.1234538853, 0.2745437324, 0.6042420864, 0.4831819534, 0.0778900161, 0.077663362, -0.1537485272, 0.5702137351, -0.1834569722, -0.3768288195, 0.1007938683, -0.0127220554, 0.0910808444, 0.2515844703, 0.3735178709, 0.1984059662, -0.2324849814, 0.0800390393, -0.3127259016, -0.2807957828, -0.3015071154, 0.0819139555, 0.2696903944, 0.0076257531, 0.0331630036, -0.0065734866, -0.0678566396, 0.2335631102, 0.267652154, 0.2308115959, 0.0151096024, -0.3017248213, 0.1781283319, -0.354860574, -0.0499082431, 0.0698739663, -0.2517779171, 0.0348267965, -0.0862045363, -0.0616164431, -0.0754944161, 0.4569785297, 0.0180896111, 0.126684621, 0.0187367108, 0.0176598001, -0.1800356358, 0.0676822662, 0.0801743567, 0.0420371108, 0.368809998, 0.2117553055, -0.2709815502, -0.268563211, 0.5095070601, -0.1043362916, 0.1398439556, 0.1678107083, -0.0124878138, -0.1253205389, -0.0777197182, -0.2327526808, 0.0668607652, 0.1233049035, -0.1826304048, -0.2268898189, 0.2782963514, -0.3110482097, -0.0777590051, 0.057807643, 0.4068001211, -0.0272627044, 0.1336739659, 0.4225406945, 0.2806119025, 0.504550755, 0.5588103533, -0.3416956663, -0.4583446383, -0.236480087, -0.0849059373, 0.0264807381, 0.2522545755, -0.2128704637, -0.0393379293, 0.1097931415, -0.0619872026, -0.2466839254, -0.0907389298, 0.6485928297, 0.1728542298, -0.095002979, -0.3257957697, 0.3233039677, 0.0544849336, -0.0168351866, 0.2428046167, 0.6123129725, -0.3001172543, -0.2387822717, 0.0532237627, 0.8434714079, 0.1897286177, 0.1447426677, 0.2288277894, -0.2172963321, 0.5947753191, 0.0115413852, -0.0784428045, -0.3559032679, -0.079439126, -0.0613660328, -0.0717519894, 0.1380377561, -0.0838772357, -0.1309478283, 0.1572730839, -0.1356244087, 0.3036978245, 0.093633309, 0.0494949296, 0.1263203174, -0.032104224, -0.1831067652, 0.1767442822, 0.0479639396, 0.1840249449, -0.0837626308, -0.2546888292, -0.0580798723, -0.2992725074, -0.385404259, 0.2009419352, -0.2570498884, -0.133027494, 0.2980400622, -0.136585027, 0.1617238075, 0.3902065158, 0.2467993051, 0.2163031846, -0.4538242817, 0.1524300873, -0.2886554599, -0.0446170084, 0.1526418477, 0.1913187057, 0.2580460608, -0.1249378175, -0.13346304, 0.0622755252, -0.1036868766, -0.1378881037, 0.1609476358, -0.3535421491, -0.2772729993, -0.2014980465, 0.1561802626, 0.2050835788, 0.0648269653, -0.3591502905, 0.2065981627, 0.0181974024, -0.0244077351, -0.2106527388, 0.1860995591, -0.1331985593, -0.0219206102, 0.4216636717, -0.2871284485, -0.040366523, 0.2679616809, 0.2293216884, -0.2964605987, -0.1722922176, 0.0778863952, -0.0089487107, -0.40397048, 0.2130622715, 0.0658959076, 0.1349896044, 0.0758325607, 0.3453027904, 0.0806610063, 0.21213907, 0.0088050524, -0.0922500119, -0.0498178825, 0.2878035009, -0.1909808964, 0.005016597, 0.0122593278, 0.0499290489, 0.2650601268, -0.193384707, -0.4096851945, 0.1660372615, -0.0284748115, -0.0700639635, 0.2898389399, -0.0382234082, 0.4154263139, -0.2157323509, 0.17923522, -0.2840614617, -0.1872077435, -0.151850611, -0.5049858689, 0.0307120457, 0.0102424202, -0.2342630029, -0.0145638669, -0.1714924276, -0.1024052575, -0.2157886177, 0.2530074418, 0.2978481352, 0.0451626144, 0.1674003005, -0.228545323, 0.0194271468, -0.0425391085, 0.1129710227, -0.0048335572, 0.1995867789, 0.0356395096, 0.0907002911, -0.2037878484, -0.2015608996, -0.1011688411, 0.3150491714, -0.1692853272, 0.1969164014, 0.4447117448, -0.244806543, 0.0495095216, 0.1852386147, 0.4808452725, 0.2025579959, -0.1854818761, 0.1899459064, 0.136756897, 0.2465671599, -0.1209531873, -0.2148860842, -0.0695804358, -0.1050061136, 0.1294197738, 0.0379914157, 0.2216365486, -0.2072213888, 0.1973448247, 0.0669669062, 0.0638397932, -0.0695389211, 0.3565663993, 0.4504658878, 0.0318844318, 0.1633351445, 0.0180993248, 0.0954932719, 0.1745741516, 0.1590591669, -0.1598720551, -0.1393842995, 0.1027615145, 0.3055418432, 0.0749665424, 0.0293357186, -0.1720247567, 0.0553455539, 0.0315172859, -0.0941744521, -0.1980048716, 0.3041779995, -0.1025338843, -0.2646651864, -0.1156082526, 0.3541270792, -0.026988335, -0.3020199537, -0.1436206549, -0.2373979986, -0.0330551974, -0.1084057987, -0.0658107921, -0.0516464859, 0.0632040575, -0.1083711088, -0.049777694, -0.4017052054, -0.1465590745, 0.0409294032, 0.3599435985, -0.1034568995, 0.1539266109, -0.187995702, 0.014895306, 0.0139019974, 0.5579451919, 0.4079956412, 0.2359386832, 0.2008715123, -0.3624404669, -0.0892473236, 0.0326801203, 0.0476384647, 0.0891910121, -0.0007773374, -0.2019446492, 0.2170111239, 0.1425691843, -0.2743305266, -0.0160232093, -0.2699128985, 0.2642657459, -0.2360836715, 0.1445080042, -0.1813054979, -0.048676312, -0.3389903605, 0.0905573666, -0.2110674381, 0.0611389689, 0.4215485156, -0.1009749994, 0.0098016392, -0.0837648958, 0.1310516149, 0.4161885679, 0.1948366612, 0.516651094, 0.0629936829, -0.0071929074, -0.3808668256, -0.2603960633, 0.0767064467, -0.0056185522, 0.03719588, -0.137375921, -0.094539918, -0.1146671399, 0.0777551085, 0.0150913401, -0.2239353359, 0.0903684497, -0.1835035682, -0.1461758316, 0.0749233887, -0.283062607, 0.0637513846, -0.016124418, 0.0802085996, 0.053722091, -0.0973147377, 0.0341985226, 0.1170754209, 0.5751522183, -0.2480623126, -0.170937255, 0.2338016778, 0.040930979, 0.1123835221, -0.1338139772, -0.3035838604, -0.4380734861, -0.444275856, -0.1714692712, 0.2502014339, -0.1679983586, 0.2505803704, -0.186404705, -0.3856151104, -0.2827325463, 0.2009972185, 0.2121806145, 0.2371888459, -0.3100060523, 0.2586779594, -0.0308539625, -0.117380701, 0.208697781, 0.3419796824, -0.3216812611, -0.0001747963, -0.1689457446, -0.4566840231, 0.4393807352, -0.4009275734, 0.1527761817, 0.0924589112, 0.5254744887, 0.2275093794, -0.354649961, -0.4207149744, -0.0053164321, 0.2980217934, 0.1742055565, -0.5582853556, 0.1555410177, -0.0325737149, 0.1662682295, -0.0249774139, 0.2297446579, 0.2572577298, -0.1153724268, 0.3159105182, -0.0964232534 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
We could add a tag for each release without a 'v' but it could be confusing on github to see both tags `v2.0.0` and `2.0.0` IMO (not sure if many users check them though). Removing the tags without 'v' would break our versioning for github datasets: the library looks for dataset scripts at the URLs like `https://raw.githubusercontent.com/huggingface/datasets/{revision}/datasets/{path}/{name}` where `revision` is equal to `datasets.__version__` (which doesn't start with a 'v') for all released versions of `datasets`. I think we could just have a parameter for the documentation - and having different URLs schemes for the source links that the users don't even see (they simply click on a button) is probably fine
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
111
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: We could add a tag for each release without a 'v' but it could be confusing on github to see both tags `v2.0.0` and `2.0.0` IMO (not sure if many users check them though). Removing the tags without 'v' would break our versioning for github datasets: the library looks for dataset scripts at the URLs like `https://raw.githubusercontent.com/huggingface/datasets/{revision}/datasets/{path}/{name}` where `revision` is equal to `datasets.__version__` (which doesn't start with a 'v') for all released versions of `datasets`. I think we could just have a parameter for the documentation - and having different URLs schemes for the source links that the users don't even see (they simply click on a button) is probably fine
[ -0.0542220399, 0.0136880381, 0.0050492631, -0.0114311473, 0.1155414954, -0.0269933287, 0.0938591138, 0.4597062767, -0.3011184633, -0.0428775176, 0.0093450099, 0.3782211244, -0.1852709353, 0.1949326545, 0.1850502491, 0.0363589078, -0.0211607851, 0.2246724367, -0.1446908563, -0.0204800479, -0.1109918505, 0.2455714047, -0.1002921686, 0.1203874424, -0.1306868941, 0.1420885772, 0.0750569776, 0.1642171144, -0.2008794844, -0.5908645988, 0.1809440404, 0.1990992427, -0.0473838896, 0.3812357783, -0.0001052927, 0.120169647, 0.3078631163, 0.0667872876, -0.5651859641, -0.3012247086, -0.0268744975, -0.1125149876, 0.021058077, 0.0310203359, -0.1715647429, -0.3184590638, -0.0153974155, -0.009104765, 0.2396467179, 0.1511981487, 0.2965372205, 0.3428999186, 0.2747199237, 0.0389689244, 0.4245389402, 0.1686260551, -0.195058614, 0.2710796595, 0.2778763771, 0.0112362402, 0.0253732931, 0.5503279567, -0.0539338402, -0.3083573878, 0.4795603156, 0.0461364426, -0.1021192819, -0.1716676801, 0.0653166994, 0.2752574086, 0.391371578, -0.3050721884, -0.5413457155, -0.1542348415, -0.1189395264, -0.1727121472, 0.224076435, 0.1865037978, 0.0220908634, 0.3470361531, -0.2509978712, -0.3444198966, -0.2074723095, 0.1031748801, 0.3146030903, 0.0938356072, -0.2021879703, -0.0418651439, 0.1160954908, -0.1482353956, -0.1766378731, 0.084730953, -0.2427859902, 0.2214247137, 0.343137145, -0.105108574, 0.2336749732, 0.1466369182, 0.5375951529, 0.154750213, -0.2309924811, -0.1134035364, -0.2538584173, 0.0126329688, 0.1252822131, 0.028732257, 0.0497491471, 0.3027372062, 0.4774959981, 0.4509268999, 0.1523097903, 0.0032334137, 0.1528265774, -0.2279387563, -0.2619709969, -0.1501892358, 0.3943500221, -0.2247023433, -0.073559165, 0.0789222494, -0.362293601, 0.0866768137, 0.0863627344, 0.1619689763, -0.151583299, 0.3022725284, 0.1939252764, 0.0719937682, -0.2202890813, -0.2049563229, -0.2174598277, -0.0392493643, -0.2819616199, 0.2269871533, 0.0133958422, -0.359347105, 0.4161594808, 0.3444631696, -0.110197857, -0.2677721381, -0.1357261986, 0.2479998618, 0.0152180791, 0.1720954776, -0.1728612781, 0.1544474959, 0.0781945661, -0.428807646, -0.1056365371, -0.0307914652, -0.4272587895, -0.2345661223, -0.2200472951, 0.2096519172, -0.0790937841, 0.1999442428, -0.0862919092, 0.0730484128, -0.1882377863, -0.143829152, 0.0168607533, 0.0818173587, -0.0446592346, -0.1591819078, 0.4636854827, 0.5729556084, 0.1028034911, -0.2580921054, 0.372166872, 0.1456445903, -0.2716273963, 0.0760372654, -0.2744162083, -0.0742290094, -0.2762050629, -0.2387368083, 0.1267133355, -0.5267278552, -0.1685054302, 0.2014667988, -0.0959830135, 0.1630435139, -0.0242905691, -0.1367159784, 0.1123335958, -0.3080492318, 0.0888736248, -0.1551852822, 0.0874286443, 0.1594281048, -0.3915190697, -0.4566902816, -0.3765648305, -0.1531993896, -0.0531943776, 0.2191494256, 0.0897804871, 0.1220665947, 0.4328318536, -0.2996244729, 0.0331351385, 0.364916265, 0.3787102103, 0.1409218609, 0.1150329337, -0.1485044509, -0.4050966799, 0.0381334946, 0.0813491493, 0.1495904326, -0.0875001103, -0.3053790927, -0.2322245687, -0.130371958, -0.029928131, -0.5637584329, 0.1992890239, 0.0872491822, 0.0565709025, 0.3677255809, -0.2161097974, 0.0385985412, -0.0912371948, 0.3434737027, -0.1919739991, 0.4845057428, -0.0167002175, 0.0002173704, 0.0913518369, 0.3154970109, 0.1559930295, -0.0745984763, -0.034419287, 0.4763201475, 0.0189721119, 0.3283327222, 0.3183336854, 0.3700166643, 0.3935618103, -0.4380130768, -0.0568525195, 0.1176649779, -0.0823876038, 0.1427530348, -0.0738715306, 0.1873868406, -0.1279747486, 0.1506773829, 0.2277861536, 0.2356325537, 0.1827233285, -0.1146894544, -0.459643513, -0.2211458534, -0.0209890977, 0.0680229962, 0.3104145825, 0.0393308736, -0.3383370042, 0.1452131867, 0.3033580482, -0.0075371731, -0.0899385139, 0.1617814451, -0.4471532702, 0.0271520428, 0.019170966, 0.30267483, -0.1149843484, 0.2538557649, -0.0608979501, 0.2296644002, -0.2084739804, -0.1298716217, 0.2393540442, 0.0073408266, -0.0931049213, -0.0612495057, -0.0436512455, 0.0710789338, -0.2412249744, 0.0482485145, -0.3092395961, 0.0353060514, -0.5924834609, 0.1631029397, -0.2213117629, -0.0864242092, -0.3893521428, -0.2141111493, -0.3764784634, -0.1409266591, 0.0653555244, 0.2965111136, -0.2333627194, 0.243220076, 0.0318941474, 0.1190128401, -0.1426896453, 0.104295522, 0.0345514491, 0.0147473244, -0.1576460153, 0.1128982678, 0.2009059936, -0.1181637719, 0.1970480233, -0.4198923707, -0.2360129207, -0.4660208821, -0.6053326726, 0.1902278811, -0.153502062, 0.3012953699, 0.2898382246, 0.1072128788, 0.1266934574, -0.1856592596, 0.3020487726, -0.0724539086, 0.0014363911, -0.2225416005, -0.0973570049, -0.1117895022, -0.2413488179, -0.2989287674, 0.3168428838, -0.2898721099, 0.2237968296, 0.0320481546, 0.0208563507, 0.479083389, 0.1273513734, 0.104182817, 0.0840647072, 0.1887031496, -0.0077607245, -0.3454838097, 0.1769043803, -0.403303206, -0.2973934114, 0.1109568551, 0.1929226667, 0.1309968233, 0.0010929528, -0.5002472997, -0.1828361005, -0.0578059964, -0.0478926785, 0.2228996307, 0.2376240194, 0.0752691552, 0.3247596323, -0.1357718855, -0.1508241594, -0.2767269909, 0.0372969769, -0.2727073729, 0.1897267997, 0.0871316344, 0.1349210143, 0.2505807877, 0.663952589, 0.514946878, 0.0622964129, 0.0514857918, -0.1781602502, 0.5719375014, -0.0726474151, -0.2306562364, 0.1052414179, 0.017731905, 0.0765631571, 0.2829960585, 0.4257948399, 0.0988246575, -0.24508591, -0.0021960917, -0.2688980997, -0.3858240247, -0.3106068075, -0.0585050471, 0.245749563, -0.0305361431, 0.045184128, -0.0219641346, -0.0337266587, 0.226291135, 0.3182816207, 0.2187214792, 0.0812894031, -0.3084422052, 0.0749272779, -0.208182022, -0.0361004397, 0.1402258575, -0.2231924981, 0.1304952949, -0.1213211864, -0.0880411416, -0.0617457479, 0.2186794132, -0.0428033881, 0.2581188381, 0.0216531977, -0.0146264751, -0.272275269, 0.014122989, 0.1357484609, 0.0802414492, 0.3230752945, 0.2573145032, -0.3667581677, -0.3756216466, 0.4498584867, -0.1450302601, 0.116449371, 0.2267360985, -0.0769282505, -0.1582252532, -0.0984092802, -0.2352639288, 0.0110131586, -0.0313016139, -0.2092444301, -0.3121057153, 0.2404893786, -0.2777898312, -0.0679463819, 0.2060642987, 0.4053441882, 0.0218250193, 0.1414760649, 0.3459531367, 0.2525660098, 0.521097362, 0.5847520828, -0.249412775, -0.4579266608, -0.1694630533, -0.0409209393, -0.0322211608, 0.2885254323, -0.1159695983, 0.0090968506, 0.1194641516, 0.0086900704, -0.2867407203, -0.0688348934, 0.5297387242, 0.1333190054, -0.2040028721, -0.375960052, 0.3375400901, 0.0115655027, -0.1160981506, 0.330869168, 0.6127697229, -0.3298228979, -0.1953684986, 0.1230736375, 0.8620074987, 0.2563722432, 0.1228412539, 0.1947368532, -0.3938371539, 0.524784863, 0.012615989, -0.0597560294, -0.3649614155, 0.0372410007, -0.0595846437, -0.0760311112, 0.0787052214, -0.1857782304, -0.1902445257, 0.1312877536, -0.1647687703, 0.2636184394, 0.0376204178, 0.0731583461, 0.0595017523, -0.0000310129, -0.237851575, 0.1923292577, -0.00076185, 0.1492184997, -0.0891545489, -0.2485375553, -0.1454104781, -0.3152446151, -0.4438240826, 0.1386383772, -0.2678831518, -0.1210110337, 0.2495169938, -0.1052715629, 0.1044477299, 0.3050277829, 0.3691342473, 0.215628311, -0.4474990964, 0.1447659731, -0.2815281451, 0.0476694554, 0.1135264933, 0.1957098842, 0.3107726276, -0.1260584593, -0.1145564467, 0.0473285764, -0.0514623411, -0.1888276786, 0.0868605748, -0.3910389543, -0.3402099311, -0.1158509925, 0.3479393423, 0.2384751439, 0.0755211785, -0.3649573624, 0.1908259243, 0.023540182, -0.0263161734, -0.1479362994, 0.1745235771, -0.1324081719, -0.0495813824, 0.2619994581, -0.1933530122, 0.0298321042, 0.1558462083, 0.0772365183, -0.2321011722, -0.1662336886, 0.097982496, 0.0525452793, -0.4010030031, 0.2245983481, -0.0460542366, 0.0891022906, 0.0877436325, 0.3769432902, 0.0713794529, 0.2265877724, 0.0170050636, -0.0264722779, -0.0001655822, 0.3245795965, -0.2069714367, 0.0046032858, -0.0573470592, 0.0417299196, 0.1950515211, -0.1959143281, -0.4131657481, 0.0913864449, -0.100451611, -0.0414147675, 0.2346096784, 0.0788566545, 0.4323657751, -0.2128462195, 0.1490345299, -0.3537527621, -0.2495990247, -0.1324847788, -0.4759085476, 0.0188202821, -0.087953642, -0.2202589363, -0.0221301131, -0.0431428403, -0.0013827692, -0.1816767305, 0.3101600707, 0.3215005696, 0.0739700869, 0.1726268679, -0.1951043159, 0.0521383211, -0.0879728645, 0.0931413472, 0.0279878527, 0.3341952264, 0.1365147829, 0.1043635234, -0.2650353611, -0.2204816639, -0.1169365421, 0.3173972368, -0.1677444875, 0.2694793046, 0.3858436048, -0.144588083, 0.0276171975, 0.2676353753, 0.4723747075, 0.2330584228, -0.1118248105, 0.1401633322, 0.1675754339, 0.2347082496, -0.0349478498, -0.1134773493, -0.0536969453, -0.1007068381, 0.1262955517, 0.1496428549, 0.1878047884, -0.1470136046, 0.2113790959, 0.0580007508, 0.1470240802, -0.1191642284, 0.4365265667, 0.3448091149, -0.0568070896, 0.1183422729, -0.089597784, 0.0452355444, 0.2427631319, -0.0265216455, -0.2229282707, -0.14383699, 0.1285209805, 0.153075844, 0.0982294083, 0.1799735576, -0.1856496334, 0.0298026223, 0.0113905845, -0.081478022, -0.1017960384, 0.2614837587, -0.0212742966, -0.3652609587, -0.0181223974, 0.2996110618, 0.0816121548, -0.2225869596, -0.2170658559, -0.1951928437, -0.1529921144, -0.1178185865, -0.0908935964, -0.1341398358, 0.0573999695, -0.0228603911, -0.0421160273, -0.4502759576, -0.1049784049, 0.081816785, 0.4716483355, -0.1105079055, 0.106702581, -0.0338293985, -0.0863605365, 0.0103945378, 0.4658789337, 0.4035946429, 0.1855063289, 0.166888997, -0.2718517184, -0.0111346934, 0.0881636664, 0.0251969025, -0.080261074, -0.0877367333, -0.2221671492, 0.1936576515, 0.156174913, -0.2078088522, 0.0222859513, -0.3632344604, 0.2109757513, -0.195423007, 0.3592404723, -0.1986809373, -0.036235638, -0.2381188422, 0.0348868035, -0.190773651, 0.0224174857, 0.317078948, -0.0273167416, 0.0224217139, -0.1008359194, 0.1333948672, 0.4469560087, 0.1978565305, 0.437065661, -0.0087014884, 0.115874581, -0.3751977086, -0.3036380708, 0.002911072, -0.052610416, -0.0859578028, -0.1112594828, -0.0204200093, -0.0846374258, 0.0941738263, 0.050705459, -0.3195997477, 0.0680293962, -0.1613726318, -0.1416397989, 0.1127672344, -0.2535054088, 0.0642237365, 0.0146509148, -0.0034303064, 0.0854408368, -0.1613765061, 0.0436365642, 0.2076945305, 0.5889084935, -0.0981582925, -0.2595333457, 0.2694135308, 0.0012874332, -0.065896295, -0.0909234881, -0.4144919217, -0.4590877891, -0.4070744216, -0.2358546406, 0.1868890375, -0.1709121466, 0.33043015, -0.2148059011, -0.4271076024, -0.3543009162, 0.1898270249, 0.2043720633, 0.2376120239, -0.1254986525, 0.2473018914, 0.0718113929, -0.0824976936, 0.1800071746, 0.256822139, -0.3624515533, 0.0498102084, -0.2035305649, -0.4626933038, 0.4856407642, -0.3534540236, 0.151951164, 0.1079279557, 0.5809344649, 0.2357091308, -0.284024775, -0.4203046262, 0.0557975359, 0.2964711189, 0.237355575, -0.5385140777, 0.1489005238, -0.054968942, 0.090261884, 0.0079885842, 0.1280957609, 0.1883420348, -0.1494873464, 0.3586435616, -0.1158814877 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
This is done in #3943 to go along with [doc-builder#146](https://github.com/huggingface/doc-builder/pull/146). Note that this will only work for future versions, so once those two are merged, the actual v2.0.0 doc should be fixed. The easiest is to cherry-pick this commit on the v2.0.0 release branch (or on a new branch created from the 2.0.0 tag, with a name that triggers the doc building job, for instance v2.0.0-release)
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
66
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: This is done in #3943 to go along with [doc-builder#146](https://github.com/huggingface/doc-builder/pull/146). Note that this will only work for future versions, so once those two are merged, the actual v2.0.0 doc should be fixed. The easiest is to cherry-pick this commit on the v2.0.0 release branch (or on a new branch created from the 2.0.0 tag, with a name that triggers the doc building job, for instance v2.0.0-release)
[ -0.1071432009, -0.0372906923, 0.0477760844, 0.0057619638, 0.11596407, 0.003080958, 0.1252291948, 0.4230196774, -0.3148473799, -0.0263503212, 0.0007161488, 0.3678087294, -0.098670736, 0.256093055, 0.2104718983, -0.0194894876, -0.0013512634, 0.2469568551, -0.2531590164, -0.0328657031, -0.2142946422, 0.3160283267, -0.1937114298, 0.1262152791, -0.3483330011, 0.1634143144, 0.0490950122, 0.2235624343, -0.1971984506, -0.5112727284, 0.1294213235, 0.1394848526, -0.1343915015, 0.333217144, -0.0001022324, 0.0552098006, 0.3468745947, 0.1372643709, -0.4601233304, -0.303265065, 0.0204033572, -0.0996509865, -0.0139369043, 0.0026390164, -0.1639007479, -0.3710721731, 0.0037498872, 0.1029786319, 0.1823267788, 0.3079149723, 0.3265564144, 0.3916604817, 0.3803837597, -0.0378038548, 0.3094504476, 0.1173232347, -0.1556157768, 0.2163525522, 0.1563035995, -0.1173389405, 0.0127517506, 0.4927565753, -0.0838646814, -0.3008238375, 0.4644432068, 0.0768601224, -0.2350205034, -0.1552541703, 0.1582336724, 0.2733314037, 0.3548753262, -0.2061712742, -0.4903328121, -0.1447440088, -0.1784852892, -0.0832842588, 0.2891742885, 0.1195663139, 0.1420671046, 0.3346912563, -0.1230038032, -0.260427177, -0.1306664348, 0.1025929675, 0.1502464712, 0.0501476824, -0.2547798157, -0.0900402814, 0.2541617751, -0.1524031609, -0.0105206696, 0.0536846891, -0.2337220311, 0.192467913, 0.2942928672, 0.0524609201, 0.3222455978, 0.2718267441, 0.4008073807, 0.045393806, -0.2264453769, -0.1080240235, -0.1441247612, 0.0451009199, 0.0487376191, 0.025851097, 0.0195202343, 0.2145218402, 0.392016232, 0.4394887388, 0.0943796411, -0.1174970791, 0.1307296008, -0.237893641, -0.2649362981, -0.2473959327, 0.3130303621, -0.2161944658, -0.1611796618, 0.1364136785, -0.2770588696, 0.1908216178, 0.0967976525, 0.1543075591, -0.1117114201, 0.3240161538, 0.2667909563, 0.1004949734, -0.3145942092, -0.2243661731, -0.2666992843, 0.0529445074, -0.2293561101, 0.0853990838, 0.1042206362, -0.2768054307, 0.4117844999, 0.2415244281, -0.0298953578, -0.3137987554, -0.157779634, 0.1638879329, -0.017633345, 0.2199805975, -0.1437369287, 0.0919696465, 0.1454606205, -0.2954702973, 0.0302852821, 0.0439093001, -0.4809792638, -0.2023004293, -0.1682684273, 0.2629147172, -0.0678281337, 0.1145392284, -0.0105876895, 0.0904822126, -0.147595942, -0.2070280761, -0.0477187559, 0.0193929374, -0.1473521888, -0.1184958667, 0.503051877, 0.6115778089, -0.0449644811, -0.2201596946, 0.4343182743, 0.1521525234, -0.2516005635, 0.0559662469, -0.2313718796, 0.0011857909, -0.3202058077, -0.0150879696, -0.0472405888, -0.3331573308, -0.214909628, 0.0840316564, -0.0985764712, 0.0950457901, -0.0305463392, -0.2089532316, 0.0323264375, -0.1870996058, 0.1124933735, -0.1442003995, 0.1425274163, 0.2458459735, -0.3801749945, -0.3218503296, -0.4489343166, -0.1760316491, 0.0543824472, 0.1899438351, 0.0840312168, 0.1246489957, 0.2788216174, -0.2609464824, 0.0403302088, 0.4124892056, 0.2673461139, 0.1624882072, 0.1385267973, -0.1856294274, -0.4126910269, 0.0219392255, -0.0084968787, 0.1084792763, -0.0857240111, -0.2280136049, -0.2862425447, -0.0653619692, -0.0148849702, -0.5016241074, 0.2413313836, 0.0393804982, 0.0433539338, 0.459808439, -0.2104999423, 0.1198687106, -0.1199139729, 0.3309995532, -0.1858651489, 0.4658698142, -0.0102561498, -0.0916919634, 0.1024843454, 0.3219944537, 0.1587292701, 0.0016079474, -0.0662004352, 0.4905119836, -0.0442548208, 0.386305958, 0.1834982336, 0.2843048275, 0.3086460233, -0.4547373652, -0.1141658649, 0.0001436958, 0.0350651629, 0.0472926497, -0.0980221257, 0.1702478975, -0.1524066925, 0.1341165155, 0.2632459998, 0.2405993938, 0.0994582549, -0.1703149229, -0.3035512567, -0.18825607, 0.057869453, 0.0169618893, 0.3196260631, 0.0415264107, -0.274163872, 0.1383244395, 0.3085362017, 0.0166171864, -0.0619904883, 0.1238188595, -0.5089433193, 0.0256401096, -0.0880166069, 0.2399563938, -0.062647745, 0.2277644277, -0.0153585421, 0.2512654364, -0.1977050155, -0.1580945253, 0.2575700283, 0.0295445025, -0.0812299252, 0.0868275985, -0.024423195, -0.040758729, -0.4203321636, 0.1737302244, -0.2859550118, 0.0819771811, -0.6088322997, 0.0974340811, -0.1666129231, 0.0196339414, -0.3458668292, -0.1531353146, -0.2905969918, -0.285228014, 0.0801588669, 0.4142060876, -0.1749157608, 0.1939690709, -0.021394955, 0.1683836579, -0.0692661107, 0.114654772, -0.1127614975, 0.0585965924, -0.1626861542, 0.136971429, 0.1240981445, -0.0076017883, 0.1384011358, -0.4283601046, -0.1247861087, -0.3586523235, -0.5773418546, 0.1289957166, -0.066497542, 0.284206301, 0.2798340619, 0.122905843, -0.0028933419, -0.2152701169, 0.3932572305, -0.1551631391, -0.1043535247, -0.1494441181, -0.0961594954, -0.104682602, -0.2238081843, -0.33820647, 0.3277103007, -0.2804458737, 0.2350328863, -0.0195057448, -0.0394016281, 0.380199492, 0.2139748484, 0.2209999561, -0.0814236999, 0.2086210698, -0.0293288976, -0.3348321021, 0.248271063, -0.3973126709, -0.4279308617, 0.0839228854, 0.123127602, 0.0547594801, -0.1407499164, -0.4355207384, -0.2864555418, -0.1478246897, -0.0418112725, 0.1820384711, 0.2941392362, 0.1477953792, 0.2605453432, -0.2070950121, -0.2066698372, -0.1810042709, 0.0862199515, -0.2901003063, 0.1358249635, 0.0799985304, 0.1328975856, 0.2431129366, 0.5736213923, 0.4284619391, 0.1309681535, 0.0857000798, -0.1577616185, 0.6485406756, -0.2301547378, -0.3381346762, 0.1057177708, -0.0071491553, 0.1145527288, 0.2659187317, 0.3608589768, 0.1475938708, -0.233623147, 0.0318571739, -0.2843652368, -0.3194164634, -0.3027119339, 0.0455970652, 0.2639394999, 0.0215139501, 0.0328379609, -0.0168395378, -0.0365040153, 0.2358185798, 0.2430957854, 0.2047441155, 0.0097140279, -0.2753645182, 0.1396522522, -0.3664666116, -0.0608111955, 0.0971374959, -0.1910718083, 0.0353711434, -0.1507133991, -0.0201796852, -0.0894590542, 0.4674485922, 0.0935918242, 0.1470590234, 0.0433175229, -0.0334507152, -0.2149501592, 0.06885802, 0.06657058, -0.0228253882, 0.3793211281, 0.2190983295, -0.3011855483, -0.293225795, 0.4774178267, -0.1408502311, 0.126789391, 0.2227441818, -0.0330121219, -0.1571040303, -0.0232557897, -0.1845132113, 0.0940106735, 0.1412815601, -0.1938352287, -0.2403879464, 0.1853190511, -0.3123848736, -0.0975215882, 0.0814372748, 0.4165745974, -0.0195134543, 0.1388762742, 0.4379507303, 0.240384832, 0.4868622422, 0.5241220593, -0.2787898183, -0.4160946906, -0.2105332464, -0.0420230664, -0.0179009214, 0.2266407311, -0.210517168, -0.043089103, 0.1098139286, 0.0073598004, -0.2666988671, -0.0074926182, 0.5887693763, 0.1354537904, -0.0488234647, -0.2815681994, 0.330100596, -0.0045272931, 0.0079081124, 0.1640384495, 0.6071712971, -0.2599136233, -0.2185139209, 0.0180954784, 0.7705122828, 0.1831748635, 0.156768769, 0.2308733314, -0.2261194289, 0.5741903186, -0.013075198, -0.0603727922, -0.344927758, -0.0769642964, -0.0501917563, -0.0021428892, 0.0787586272, -0.1073289514, -0.1003921181, 0.0838358179, -0.091261901, 0.3021927476, 0.111658901, -0.0207063798, 0.1015140042, -0.0506270193, -0.1471160203, 0.2037443668, 0.0341199897, 0.1636065841, -0.0297314674, -0.2346847653, -0.0435001478, -0.2744351029, -0.3339328766, 0.1835143864, -0.2496801317, -0.0963480696, 0.2744628489, -0.1296944618, 0.054117728, 0.3524026275, 0.2341806144, 0.216233924, -0.4921809137, 0.1382888407, -0.2321321964, -0.0330733359, 0.1520351917, 0.2118159086, 0.2414491475, -0.1146865785, -0.1421186924, 0.0112131163, -0.1089167371, -0.114723824, 0.1509571075, -0.300786972, -0.3061313033, -0.1842805743, 0.1955001354, 0.185614273, 0.1192924976, -0.4250791967, 0.2363420278, -0.0182565358, -0.0358375609, -0.2220482379, 0.1800803691, -0.166068539, 0.0020117646, 0.453494072, -0.2811463773, -0.0182775166, 0.274977088, 0.1999255866, -0.3000596464, -0.1903536767, 0.1034887061, 0.0334049501, -0.4011294544, 0.2015233785, 0.1054944843, 0.0850114897, 0.0607842468, 0.3390853703, 0.0314190537, 0.1675898433, -0.0575449802, -0.0605111234, -0.1175309643, 0.2478463501, -0.1366530508, 0.0616409108, 0.0780629069, 0.0868843868, 0.2425527126, -0.1960872412, -0.4359067678, 0.1603042334, -0.110435389, -0.0947868899, 0.2648343444, -0.0565296672, 0.4508226812, -0.1940537244, 0.2131626755, -0.2525758743, -0.1636120528, -0.1966984272, -0.4813475013, 0.0209265538, -0.000565362, -0.2056203336, -0.0367912278, -0.118090108, -0.0987936258, -0.2385932505, 0.2675917447, 0.3241936564, 0.0121279284, 0.1458762884, -0.2380278707, 0.0548442341, 0.0261016376, 0.1048748344, 0.0064391219, 0.1704004556, 0.0180377383, 0.0652306452, -0.2469203472, -0.148566708, 0.0344707221, 0.2824961543, -0.1878401339, 0.1806148887, 0.4319028258, -0.2521033883, 0.0183085129, 0.1535835266, 0.4905381501, 0.1772575974, -0.1301501542, 0.1224198565, 0.1628843099, 0.2809228301, -0.161954999, -0.1898997575, -0.0632650331, -0.131290555, 0.1742434949, 0.0559083186, 0.1841928363, -0.2290531099, 0.1879024357, 0.0984864905, 0.0805784389, -0.0445877612, 0.2905268073, 0.3858925998, 0.058723513, 0.1043825522, 0.0337445587, 0.1071170419, 0.1711836904, 0.1622193009, -0.0721906349, -0.1134570092, 0.0325605907, 0.2996013761, 0.0095735686, 0.0073323571, -0.1485555917, 0.0119123347, -0.0005842005, -0.0938810781, -0.2199080884, 0.3483009636, -0.0999189243, -0.2753854096, -0.1108051911, 0.365029633, -0.0308180004, -0.3188612759, -0.1685717404, -0.2220935076, 0.0311302952, -0.1163696051, 0.0318729803, -0.0682606772, 0.1285523027, -0.1016265973, -0.0363517888, -0.4059375525, -0.1483138651, 0.0399180129, 0.370128572, -0.0883752182, 0.120668523, -0.1198349223, -0.0185497794, 0.0096150748, 0.5763811469, 0.4221785367, 0.2314808071, 0.2397816032, -0.3418089747, -0.0941579789, 0.0096517233, -0.027158672, 0.0777768791, -0.0164647959, -0.1660060436, 0.2377158403, 0.1792933196, -0.2863863409, -0.0088883592, -0.2958658636, 0.241884008, -0.1989149004, 0.1451747864, -0.228674069, -0.0665782914, -0.3472717106, 0.0468900912, -0.240242064, 0.0027646939, 0.3527339995, -0.1264006793, 0.0316539109, -0.1233028919, 0.145221591, 0.3977217972, 0.2382247895, 0.4856223762, -0.0090145618, 0.0077386834, -0.3651886582, -0.2859884501, 0.0634188205, -0.0713023245, 0.0368288346, -0.1309401393, -0.0345294885, -0.111771971, 0.0004088228, -0.0100245988, -0.251755029, 0.061827831, -0.1680069566, -0.1532075405, 0.0563860536, -0.2865451872, 0.0033837513, -0.0087563405, 0.0496358164, 0.0757609308, -0.0969555303, 0.0831100792, 0.1763838977, 0.5667520761, -0.2636777163, -0.1828836203, 0.2123906761, 0.0708172917, 0.0718641356, -0.1139079258, -0.2972789109, -0.4610173404, -0.4370001554, -0.1712961048, 0.2058832496, -0.186957404, 0.275121063, -0.1540079713, -0.4488618374, -0.2347124666, 0.222159192, 0.2271558642, 0.2018083185, -0.2480243295, 0.2403439432, -0.0385375954, -0.0842004046, 0.1919441074, 0.3284809291, -0.2992620468, 0.0037516879, -0.191963166, -0.5239496827, 0.4362078309, -0.404037416, 0.1329259425, 0.1214327514, 0.5170423388, 0.2413789034, -0.3093633056, -0.4317308068, 0.0109168906, 0.2694332302, 0.1924637109, -0.5227464437, 0.1495823264, -0.1282554418, 0.1133957058, 0.0032999616, 0.2263985723, 0.2567664087, -0.1053273603, 0.3469492495, -0.1088582575 ]
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
That seems to be an oversight - I originally planned to include them in the dataset and for some reason they were in the list of languages but not in the query. Since there is an issue with the deduplication step I'll rerun the pipeline anyway and will double check the query. Thanks for reporting this @Eytan-S!
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks!
57
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks! That seems to be an oversight - I originally planned to include them in the dataset and for some reason they were in the list of languages but not in the query. Since there is an issue with the deduplication step I'll rerun the pipeline anyway and will double check the query. Thanks for reporting this @Eytan-S!
[ 0.0285869204, 0.0836845189, -0.2411945611, 0.1160972565, 0.1939319819, 0.0751111731, 0.1134600863, 0.3045022488, 0.2181033641, -0.0445787832, 0.0106749646, 0.3104630113, -0.0661668852, 0.1592538059, 0.3111087084, -0.023108393, 0.1431613564, -0.0828574225, -0.0986675397, -0.3723043203, 0.1341448724, 0.5402251482, -0.0662389919, -0.2558541894, -0.012976055, 0.2341160625, -0.0335194096, 0.1357934773, -0.1529673785, -0.2189213336, 0.2052701116, 0.0797250122, 0.1583463252, 0.135649994, -0.0001180935, -0.1313159168, 0.1348675638, -0.2493514568, -0.0429883152, -0.1027948186, -0.2700394094, -0.2089760005, -0.0831200927, -0.0060101291, -0.0899345949, 0.216839999, 0.0405475795, -0.9287719131, 0.1554393321, 0.4125949442, 0.1402851492, -0.0482256524, 0.0732943863, -0.0321501195, 0.4961046576, 0.249242276, -0.0687645599, 0.0762764588, 0.8073579073, 0.0435979441, 0.0956178829, 0.3410213292, 0.1884566993, -0.4317696691, -0.2999332845, 0.1760675013, -0.071458593, -0.4523975551, 0.2324961573, 0.2206892222, 0.4899080098, -0.306111306, -0.2455431074, -0.0579215325, 0.00297828, -0.1697538197, -0.0419922024, 0.0415043607, 0.1626277119, 0.2922382951, -0.2264750153, -0.3839758039, -0.1396484226, 0.065066427, 0.3619146645, 0.1776201129, 0.134055689, 0.0172090307, -0.4431984723, 0.2792975903, -0.1600616127, -0.1901269108, 0.0858412758, 0.2896310091, -0.0576181784, -0.0959813371, 0.3380835354, -0.0180481933, 0.0921966061, 0.2171083093, -0.1146835834, 0.0967342332, -0.1910432577, -0.0462739393, 0.0141355433, 0.164901495, 0.1749157906, 0.1733648032, 0.2863579094, -0.2800837159, 0.1415085942, 0.0229823217, -0.352643013, 0.0414426737, -0.1964730918, 0.3255062997, 0.0776729882, -0.2125973105, 0.0086355917, 0.2014260739, -0.2722542584, -0.4193369448, -0.1099290252, -0.0333084837, 0.2033888102, 0.1968443394, -0.1095570847, 0.3547725081, -0.2986706793, -0.6461309791, -0.1396753043, 0.0649983883, -0.0952317119, -0.2280779928, 0.1083457246, 0.0493286923, 0.2804524899, 0.1642286181, 0.1695805043, -0.0392053202, 0.036718782, -0.1218775064, -0.0848096609, 0.0111297667, -0.0625396669, 0.0549917333, 0.3114724755, -0.7545151114, -0.1266689748, 0.2793295383, 0.0374710299, 0.0303877313, -0.3034840524, 0.1159185544, -0.1894135326, -0.2170122266, -0.4007630944, 0.4835272431, 0.1327051222, 0.0320469253, 0.0811708644, -0.4108431041, 0.4405932426, -0.16365619, 0.3112886846, 0.3433276713, -0.5936993361, -0.0742993355, -0.1995198578, -0.1825397462, 0.4101731479, 0.2085359246, -0.1639969498, 0.4130249918, -0.2053507715, 0.3845309317, 0.6185680628, -0.2792361975, 0.1131229177, 0.1348582208, 0.2056144476, 0.025386788, -0.1503005326, -0.0489830263, 0.4721555114, -0.0425813273, -0.0612767339, 0.0690190643, -0.2501832247, -0.2780107558, -0.3073090315, -0.0232490171, 0.4279968143, 0.2604477108, 0.4288310409, -0.0494787805, 0.4264564514, -0.3806414008, 0.3495768309, -0.0971107557, 0.1497047991, 0.3568280935, 0.3827943802, 0.2435266972, 0.1485476643, -0.2218630165, -0.1117369533, 0.1201251224, -0.0603376292, 0.0743273199, 0.1514174491, 0.1152874231, -0.0393780656, -0.0320708342, -0.1781096458, -0.1679109484, 0.0785529912, 0.0520369746, -0.245386973, 0.2314881831, -0.1384984702, -0.3390562236, 0.0109717827, -0.0960007906, -0.4160978794, 0.2616401315, -0.0883412138, -0.2472662032, 0.0601823553, 0.2442551106, -0.0026026426, -0.1305385232, -0.1159176007, -0.1717683524, 0.4682675302, -0.0463186875, 0.8385349512, 0.2590803802, 0.149835065, -0.3225872815, 0.1770983934, 0.1883219928, 0.1248446926, 0.0609680228, 0.1995172054, 0.2579247653, 0.0794235244, -0.0838354602, 0.0764779374, 0.0746859983, 0.5405638814, 0.0535010919, -0.2232676297, -0.1248061284, 0.4487492442, 0.1348099411, 0.12961936, 0.0085039707, -0.3771499097, 0.3240279853, 0.653819263, -0.294018656, 0.0539714247, -0.0464942344, -0.010647539, -0.084278211, 0.0205618832, -0.0418113917, 0.1210267171, 0.2205110788, 0.0082284408, -0.3815177381, 0.1313842535, -0.2564081252, 0.0981417, -0.0450080968, -0.0709212571, -0.0281960182, 0.1349094212, -0.0259354692, -0.3911089003, -0.1439463943, 0.041010309, -0.1226795539, 0.0842723027, 0.1016538292, -0.4627664089, 0.0928788111, -0.2698930204, 0.1079626456, -0.3062604368, -0.2877420187, 0.293712467, -0.5787969828, -0.3027338982, 0.2773119807, 0.0761466175, -0.174793601, -0.4415944219, -0.091105625, -0.1022249758, -0.2954931557, -0.3739973605, 0.0812618583, 0.2521755397, -0.3914755285, 0.3138925731, -0.2583538294, -0.0910449997, -0.2865503728, -0.6029034257, -0.0353764184, -0.3672940731, 0.1301863343, -0.0210305993, -0.0376561359, 0.1890180856, 0.0696760789, 0.0834097192, 0.1277463436, -0.1776205301, -0.07018058, 0.0626244396, -0.2352704406, -0.2267147899, -0.3963589072, -0.2663236558, 0.0232639052, -0.0971490666, 0.0184580777, -0.0747966096, -0.2524098158, -0.3073823452, 0.047121834, -0.2438133806, -0.0458292104, -0.1258287877, 0.0781514421, 0.1519198567, 0.1529127955, -0.2765617669, 0.0869560018, 0.0236246325, 0.1931105107, -0.1012751982, -0.4148791432, 0.4246088266, -0.0227169823, 0.4193666875, -0.1215194762, -0.2013076395, 0.4556481242, 0.2991710901, 0.0201995522, -0.221474871, -0.0691003129, 0.134220615, 0.110041514, 0.1927469373, -0.3594232798, 0.2671033144, -0.2063522488, 0.5962951779, 0.3068861663, 0.3887251019, 0.2321979105, 0.2087650597, 0.2067186087, -0.1601668447, 0.1008152962, 0.3125142157, 0.0413773209, -0.1070525125, 0.29937765, -0.0436636358, -0.4520001709, 0.1657744497, 0.0366770998, -0.2125345916, -0.121797815, 0.330460161, -0.4615571499, 0.0922531411, 0.0283828955, -0.042379763, -0.0802230909, 0.0191060659, -0.3780818582, 0.1464873403, 0.4205082059, 0.1458419263, -0.3123856485, -0.3688100576, -0.3079693913, 0.2044487298, 0.1090012416, 0.0013908031, -0.1436415017, -0.1229361817, 0.0310913846, 0.2570791245, -0.0589899383, -0.2825151086, -0.4008448124, 0.3269068301, -0.2071630955, 0.0806455091, -0.2918522954, -0.4208022654, 0.1803919524, 0.4823037386, 0.094439432, -0.3482614458, -0.1487243772, -0.1370561272, 0.4558582902, -0.067944482, 0.327329874, -0.0859801173, -0.3332365453, -0.3970701694, -0.0245982967, 0.242968291, -0.0002659955, -0.2427562326, -0.1420554817, 0.1570840776, -0.0930682495, 0.0021301315, -0.0169733427, 0.192222029, -0.2035670727, -0.0092190485, -0.3749467432, -0.0311674122, 0.043501284, 0.1834131181, -0.083079353, -0.2829409242, 0.2957157195, -0.6159278154, 0.5342954397, 0.1107817292, 0.0486753136, 0.2744114995, 0.0773730502, 0.0228399225, -0.1152013317, -0.2320944965, 0.2836028934, 0.2350261509, -0.3691911697, -0.2645053864, -0.2707818747, -0.5056387782, -0.0474434644, 0.3980131149, -0.0501783527, -0.2390270978, 0.1985227168, -0.1240942851, 1.0393130779, 0.1479091942, 0.0083615901, -0.2017038465, -0.0586805269, -0.0600308813, -0.0015500641, 0.0684954599, -0.0862091705, 0.0042678961, -0.024452664, 0.0313398503, 0.1862699389, 0.0124182049, -0.1622868925, 0.2612379789, -0.039971903, 0.3028909564, 0.2169820368, -0.019060161, 0.3692215383, 0.1746139526, -0.1222620085, 0.1038035154, 0.0621383116, 0.1693606675, -0.0881871432, -0.2811137736, -0.2708530426, -0.1925098598, -0.7406713963, 0.0258012321, -0.0130880028, 0.2529602349, -0.0591205247, -0.4014775157, 0.3252554834, 0.5531049967, 0.5242070556, 0.3906220496, -0.1732652783, 0.2223625779, 0.1125397757, 0.2461857796, 0.2129667103, 0.0158559363, -0.2229590416, -0.3417662978, -0.3957722783, 0.0058359583, -0.149989292, -0.1159601882, -0.601472795, 0.0860366821, -0.2174931616, 0.2124605924, 0.1585329622, 0.3526019454, 0.0098229153, -0.2854947448, 0.0978126675, 0.4138312638, 0.0161011368, 0.0677768141, -0.1287323236, -0.2448942661, -0.3810705245, -0.2521586418, 0.3613888025, 0.2594249547, 0.436353296, 0.2180857211, -0.1498771757, -0.2499326319, 0.044422593, 0.3223892748, -0.5586377382, 0.0801148638, -0.3135621846, -0.0490497127, -0.1881345361, 0.089246586, 0.0018900587, -0.215291217, -0.255484283, -0.1982343197, 0.0930883288, 0.2567362189, 0.0398352146, -0.1782994568, -0.2274251729, 0.0061447844, -0.1185854301, 0.0908076167, -0.2426927686, 0.0280020367, -0.384260565, 0.256198436, 0.0027475432, -0.0344730876, 0.2038591355, -0.0646661296, 0.0571297109, -0.2572521567, 0.2187474221, -0.1524651796, 0.0304052029, 0.1018445343, -0.1970097274, 0.2399371564, 0.0072971419, 0.1459696442, 0.1601875871, -0.0581467934, 0.0312933885, -0.19303599, 0.1958324462, 0.3468271792, 0.0791974813, -0.0297694542, 0.0621169582, -0.0259174202, -0.0987148508, 0.4322807789, 0.2377275974, 0.1150627136, 0.6449824572, -0.0505702943, -0.1913957894, -0.0594440885, -0.1583272666, 0.447075963, 0.1807584316, 0.0164666586, 0.3607350886, 0.1531680524, 0.0561709329, 0.0956239179, -0.1504958719, 0.205533579, 0.0735007003, 0.1189013794, -0.3409745395, -0.1252340823, 0.4064802527, -0.1550435573, -0.0924708396, 0.1800500751, -0.0411548913, 0.3272902369, 0.5228617787, -0.0733665228, 0.297783345, -0.0277648587, 0.4021066725, -0.0895245597, 0.1416111737, 0.2569714785, -0.3343061805, 0.107529521, -0.2852580845, 0.1434745491, -0.3398044407, 0.1526613832, -0.012973316, 0.0169510301, 0.3110516071, -0.1339286119, -0.0400626883, 0.0605890714, 0.0210188981, 0.0760505423, 0.0564181507, -0.0759097189, 0.2201662511, -0.040433526, -0.1344132274, 0.1160688773, -0.1802156717, 0.1045006365, -0.1175047085, 0.0159840975, -0.2415612787, -0.1010220796, -0.0544585511, 0.3505380452, -0.1093428656, 0.2154396027, -0.1464282423, -0.3764214218, 0.4913527668, -0.258547157, -0.0763735175, 0.0206452459, 0.4554752111, 0.4513874352, -0.1376298517, 0.0410300121, 0.18597202, 0.0861266926, 0.006530765, 0.0645342693, -0.0302038305, 0.0846507996, -0.1220469773, -0.0750625655, 0.3407315016, 0.2228290141, 0.4450757205, -0.0652287379, 0.0483925752, 0.0623837411, 0.2090764791, 0.0617072023, -0.2875441611, -0.0780664757, 0.6273316145, -0.1662298292, 0.0271211658, -0.4586403966, 0.0140304146, -0.322586, 0.1900731623, 0.1852031499, 0.2979960144, -0.1187470853, -0.0503426865, 0.0333126932, 0.0170496628, 0.2721004784, 0.3407092988, 0.0392126739, -0.2526901662, -0.2474285662, -0.1971768737, 0.0286095664, -0.102500461, 0.1553323865, -0.0024540848, 0.2089991122, 0.661640048, -0.0035801122, 0.5100170374, 0.0064163259, -0.0615380593, 0.0272574518, -0.2660562396, -0.0235570353, 0.119377546, 0.1867154837, -0.0611325726, 0.0809015483, 0.5073032975, 0.1644834131, -0.0460506156, -0.2058572173, -0.0022501366, 0.2370654345, -0.411218673, -0.1181497574, 0.3314018548, 0.096356675, -0.2756979465, -0.3146297038, 0.0242080912, -0.3084232211, -0.1039746106, 0.3302186131, -0.1968330443, 0.1862409711, -0.311570406, -0.1448196024, -0.2038612068, 0.3184984624, 0.0390862264, 0.1009068936, -0.3834972084, -0.1472575516, 0.1266674399, -0.1976225376, 0.0586447306, 0.0980566815, -0.0476004183, 0.0144686624, -0.2053391188, 0.0949665084, 0.0911446065, -0.1278482229, -0.276278466, -0.3463121653, 0.0063229357, 0.4667699635, 0.2479968816, -0.3784621358, 0.008264279, 0.3456356227, 0.2046328932, -0.0565693527, 0.5100764632, 0.2371867597, 0.1176923662, 0.0630077422, 0.0505383126, 0.1841999143, 0.1059251055, 0.1600309908, -0.0954817161 ]
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
Can confirm that the two languages are indeed missing from the dataset. Here are the file counts per language: ```Python {'Assembly': 82847, 'Batchfile': 236755, 'C': 14127969, 'C#': 6793439, 'C++': 7368473, 'CMake': 175076, 'CSS': 1733625, 'Dockerfile': 331966, 'FORTRAN': 141963, 'GO': 2259363, 'Haskell': 340521, 'HTML': 11165464, 'Java': 19515696, 'JavaScript': 11829024, 'Julia': 58177, 'Lua': 576279, 'Makefile': 679338, 'Markdown': 8454049, 'PHP': 11181930, 'Perl': 497490, 'PowerShell': 136827, 'Python': 7203553, 'Ruby': 4479767, 'Rust': 321765, 'SQL': 655657, 'Scala': 0, 'Shell': 1382786, 'TypeScript': 0, 'TeX': 250764, 'Visual Basic': 155371} ```
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks!
82
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks! Can confirm that the two languages are indeed missing from the dataset. Here are the file counts per language: ```Python {'Assembly': 82847, 'Batchfile': 236755, 'C': 14127969, 'C#': 6793439, 'C++': 7368473, 'CMake': 175076, 'CSS': 1733625, 'Dockerfile': 331966, 'FORTRAN': 141963, 'GO': 2259363, 'Haskell': 340521, 'HTML': 11165464, 'Java': 19515696, 'JavaScript': 11829024, 'Julia': 58177, 'Lua': 576279, 'Makefile': 679338, 'Markdown': 8454049, 'PHP': 11181930, 'Perl': 497490, 'PowerShell': 136827, 'Python': 7203553, 'Ruby': 4479767, 'Rust': 321765, 'SQL': 655657, 'Scala': 0, 'Shell': 1382786, 'TypeScript': 0, 'TeX': 250764, 'Visual Basic': 155371} ```
[ -0.0256797895, 0.1923888624, -0.2729781866, 0.0706949532, 0.2020146698, 0.0939292908, 0.1608111113, 0.4261849523, 0.1612200588, 0.0164098348, 0.0299240779, 0.1567168534, -0.1640651971, 0.1871638298, 0.3560539484, 0.0112820817, 0.1720342934, -0.036380928, -0.1442355067, -0.3623973429, 0.0428689234, 0.4893031418, -0.0448547378, -0.2011829317, -0.0201173611, 0.2023860961, 0.0501635931, 0.1495660394, -0.1876768321, -0.3277837634, 0.2157069743, 0.0212306827, 0.1991969943, 0.2118963003, -0.000114927, -0.0877811089, 0.0863542706, -0.2238591015, -0.0232067294, -0.1382261515, -0.17042768, -0.3886407912, -0.1896988004, -0.0729188919, -0.076511085, 0.2006592453, 0.0185859986, -0.868478775, 0.1675504744, 0.3963255584, 0.1655843556, -0.1049964353, 0.0950194076, -0.0473388769, 0.6005459428, 0.2446628511, -0.1110947877, 0.0045624799, 0.643355906, -0.0545370355, 0.1017594188, 0.3778308928, 0.2307788134, -0.4238681793, -0.3097909689, 0.2437200844, -0.1349990517, -0.4171086252, 0.1595045775, 0.2091731876, 0.5050123334, -0.3456082344, -0.3171155453, -0.1488675922, -0.0719931871, -0.1449189931, -0.013686345, 0.2147447169, 0.1787125319, 0.3075535893, -0.2559270263, -0.3309678137, -0.1833506823, 0.0950745195, 0.3122917414, 0.2448307425, 0.1176178455, 0.0319052264, -0.3635494411, 0.1687264442, -0.2604120374, -0.2298239917, 0.1810753942, 0.309437573, -0.0332327187, -0.1114741191, 0.3894378245, -0.0867939442, 0.1757957935, 0.1250636578, -0.0898581818, 0.0366789177, -0.2458777577, -0.0889193565, 0.0052507003, 0.1662536711, 0.2426176518, 0.1828620285, 0.3056694567, -0.2173213661, 0.1982505471, 0.0411540829, -0.1946376413, -0.0528803766, -0.1924162358, 0.2890434861, 0.0939515233, -0.1790698618, 0.0215352699, 0.2261705399, -0.237777248, -0.4298743308, -0.1804882884, -0.0255481806, 0.055543866, 0.1952376515, -0.1271900386, 0.4023527205, -0.232330218, -0.516931653, -0.1151397228, 0.0975297987, -0.1740339994, -0.2245044857, 0.2339916974, 0.0474515855, 0.2792048454, 0.1765708178, 0.0830458254, 0.1021995693, 0.047659222, -0.1507475823, -0.0696635246, 0.0298234317, -0.0290441979, 0.1349361837, 0.2338398099, -0.699451983, -0.1566347033, 0.3318852186, -0.0260336399, 0.0520014092, -0.2703882754, 0.1629122496, -0.3328405917, -0.2433323264, -0.3135763407, 0.3694375157, 0.0746407583, -0.0248403754, 0.0366606601, -0.3730119467, 0.3528102934, -0.14587152, 0.3113856912, 0.2940369248, -0.548529923, -0.0995318592, -0.0809829086, -0.1537149251, 0.3043377995, 0.2470984757, -0.1908099353, 0.4138153791, -0.1726738513, 0.3982335329, 0.6215548515, -0.2511279583, 0.0729142353, 0.0038433303, 0.2812718451, 0.018806994, -0.1251242459, -0.0253284909, 0.4686035812, -0.0294928886, -0.1222666427, 0.1291634142, -0.2078342736, -0.1983130574, -0.3049207628, -0.0549538732, 0.4400341213, 0.291079253, 0.4913587272, -0.2154749781, 0.461381048, -0.3264811337, 0.3861168623, -0.1471492499, 0.1962709576, 0.3553462327, 0.3257569075, 0.2856219411, 0.0735529065, -0.2616328001, -0.2005247325, 0.1921276003, 0.0240809042, 0.0889687464, 0.0817541853, 0.1580337584, -0.070445478, -0.0647436008, -0.1479941308, -0.1840773374, 0.0580394343, 0.1112366691, -0.2758402228, 0.2813236713, -0.1926244348, -0.3013668358, 0.0202848949, -0.0587170348, -0.3397951722, 0.2525524199, -0.1264890134, -0.2254971117, 0.0281328112, 0.2714187801, -0.0345958248, -0.1238945425, 0.0004116088, -0.1363061816, 0.4618394971, -0.1485304683, 0.8477864265, 0.3481525183, 0.214210853, -0.3438709378, 0.2147153765, 0.1516046226, 0.1434129924, 0.0498104207, -0.0222633313, 0.3566561639, 0.0604476221, -0.0389883667, 0.0707645863, 0.0205819067, 0.4183606505, 0.0849835128, -0.250081718, -0.1012435704, 0.4832189381, 0.158494398, 0.1189164445, 0.0062757307, -0.3107279241, 0.1957836002, 0.7553420663, -0.2609541714, 0.038171988, 0.0694724768, -0.0108819241, -0.0875424743, -0.0716681406, -0.0205273684, 0.1116083637, 0.2628960311, -0.0033213904, -0.3195086718, 0.0447812863, -0.2486178577, 0.0360363759, -0.0551728345, 0.0059097633, 0.0046008332, 0.169819966, 0.007815971, -0.3027006984, -0.1755025834, -0.026512811, -0.1036214978, 0.0604040734, 0.0437185019, -0.4280208945, 0.2008349448, -0.2700704336, 0.0116564054, -0.3343424797, -0.2698165774, 0.2113118023, -0.6460715532, -0.320545435, 0.2955998778, -0.0201220233, -0.1181030944, -0.407866776, -0.0454621129, -0.0128839519, -0.3261485398, -0.3053867221, 0.1186983809, 0.1231829375, -0.4179116189, 0.2528433204, -0.2978473008, -0.0519910902, -0.2662032545, -0.5618524551, -0.0176683571, -0.3140757382, 0.1210413501, -0.0570675172, -0.0579199493, 0.2267975807, -0.0060047489, 0.1174774542, 0.1087983772, -0.150111571, -0.1005290896, 0.0360423774, -0.2233236134, -0.1995151639, -0.3810913861, -0.3201043606, 0.0059551829, -0.0586551689, 0.1406601518, -0.0274050813, -0.2067941129, -0.2288937718, 0.0622487105, -0.3089591563, -0.0047117653, -0.0045248782, 0.0339225605, 0.1601255387, 0.0732484832, -0.2625446916, 0.1496669203, 0.0490998179, 0.0893126875, -0.0438601226, -0.3809747696, 0.468734473, -0.1299926192, 0.4926301837, -0.1772532016, -0.049305588, 0.3978649378, 0.3220376074, -0.0267268829, -0.21259588, -0.1232166812, 0.1198212579, 0.1230968833, 0.1605662256, -0.3566536009, 0.243408531, -0.1420392096, 0.6082160473, 0.2452196032, 0.3770947158, 0.2305627763, 0.1984540075, 0.2721202075, -0.1513031125, 0.0578440987, 0.3715670109, 0.0746241659, -0.0344493426, 0.2469994724, 0.0238582585, -0.3620419502, 0.1427228898, 0.0593778491, -0.2289789319, -0.1073900536, 0.4208927453, -0.3031471968, 0.1673596799, 0.0072672018, -0.0987865552, -0.1858692467, -0.1030031666, -0.361477077, 0.1702363342, 0.4031092227, 0.2036092877, -0.3854366541, -0.3592765331, -0.2888063192, 0.1982661635, 0.1265789121, -0.0854106545, -0.1470725238, -0.1972160935, -0.0494559556, 0.2963686883, -0.0875566974, -0.1806203425, -0.3073817194, 0.3159748018, -0.1877232045, 0.046536725, -0.3310799599, -0.4951098263, 0.139732033, 0.4764525294, 0.1756000817, -0.2528929412, -0.2297597378, -0.1026545763, 0.4759961665, -0.0884433389, 0.2987987995, -0.0667481273, -0.2262213379, -0.3390541971, -0.0995353386, 0.2543744445, 0.0549679585, -0.2586367428, -0.1077064201, 0.1265119016, -0.121073395, -0.0441272333, 0.0035241977, 0.2064695805, -0.1079621762, -0.0438047573, -0.3453667462, -0.0094450368, -0.0283133816, 0.1852391213, -0.1265488267, -0.2544985116, 0.2681291997, -0.6170741916, 0.4954446852, 0.063651599, 0.0500652678, 0.1730630994, 0.0718765929, 0.0833816305, -0.1766407341, -0.1906594485, 0.3187924623, 0.190959543, -0.343203187, -0.3566098809, -0.1942698509, -0.5235331655, -0.1331657022, 0.2471481413, -0.0104371207, -0.2628045976, 0.205881238, -0.1215417236, 0.9342868328, 0.1839095503, 0.1119096726, -0.1230423748, -0.010901873, 0.0567622669, -0.067488268, 0.0371649191, -0.0186282191, 0.034743946, -0.0185139645, 0.0168454107, 0.1721273214, 0.0440839045, -0.0917278305, 0.273157537, 0.0049503078, 0.2596618533, 0.0744187161, -0.0235571023, 0.3927771449, 0.1120422259, -0.1621039808, 0.1454758346, 0.0546644777, 0.1757795811, -0.09153644, -0.2224579006, -0.2927268147, -0.1676364392, -0.7951902151, 0.0236059651, 0.0721609667, 0.299040705, -0.1080010533, -0.4125498533, 0.3209905028, 0.6349422932, 0.5020197034, 0.3894291222, -0.1094807461, 0.2154437602, -0.0454864576, 0.2743313909, 0.3032185137, 0.038236104, -0.1583203375, -0.3511747122, -0.4324754179, 0.0767768621, -0.1658340245, -0.0945562124, -0.4888187945, 0.075615041, -0.1821969002, 0.0963277295, 0.1552987099, 0.3204022944, 0.0802689716, -0.2532544136, 0.1298666596, 0.4150536358, 0.1358683705, 0.1469516754, -0.0937342718, -0.3357571065, -0.3397153318, -0.2339596897, 0.3216921687, 0.2354283929, 0.4608861506, 0.2505539656, -0.1929468513, -0.2592309415, 0.1882992983, 0.3278334439, -0.5327320695, 0.0318788886, -0.2385774404, 0.0005565602, -0.2152596265, 0.0846366733, 0.1092287675, -0.2613215446, -0.1824312359, -0.26673159, 0.1413986683, 0.275108546, 0.0394753031, -0.2799633145, -0.2697280347, -0.0116501562, -0.0135921119, -0.0189767107, -0.2881503403, 0.0330615565, -0.3972579837, 0.2613787055, 0.0557659194, -0.0130119408, 0.1857759953, -0.1306500584, 0.0671019107, -0.4076142311, 0.1415031254, -0.1903100461, -0.0562387668, 0.0790904388, -0.2013392299, 0.2196576297, 0.0238279011, 0.1017457768, 0.1955135316, -0.0919937044, -0.0028403148, -0.1620849222, 0.2118491977, 0.4864833653, -0.0787477642, 0.0603842288, 0.1481334567, 0.0181770343, -0.1517315954, 0.4268169999, 0.1966478378, 0.1582770646, 0.6204157472, -0.0261309445, -0.1489612311, -0.0576807819, -0.2258197963, 0.4929648042, 0.1649472564, -0.0100256298, 0.3974583745, 0.2649002373, 0.1393517554, 0.0584910102, -0.1677055806, 0.2427300513, 0.092056334, 0.1819645017, -0.3410418332, -0.1896211058, 0.3991596401, -0.0689786449, -0.0335443839, 0.1655472964, -0.057889577, 0.2671609223, 0.4870594442, -0.0119262459, 0.3394785821, -0.0770269334, 0.3884607553, -0.0098111918, 0.1319474578, 0.2864139676, -0.3136087656, 0.102956146, -0.1790086925, 0.2248431891, -0.2954586744, 0.073692292, 0.0222609024, -0.0436690561, 0.2651465833, -0.1995356828, -0.0364903547, 0.0814045891, -0.0301351342, 0.0301897675, 0.090114221, 0.015585565, 0.1779531389, -0.0074993125, -0.1614278406, 0.0338232331, -0.105731748, 0.0973188058, -0.1206152886, -0.0601183027, -0.2721725404, -0.0508738682, -0.214158088, 0.3229531348, -0.0873395801, 0.2144975811, -0.1615930945, -0.3430809677, 0.3952773213, -0.2436933815, -0.0986480266, -0.0185099803, 0.3514023125, 0.4334963262, -0.1145327538, -0.017575996, 0.2871608734, 0.129416883, -0.0043513435, 0.0519671701, 0.0118041812, 0.0415414535, -0.1291162372, -0.1476690918, 0.3081430197, 0.3051761389, 0.370665133, -0.0782781914, 0.1308946908, -0.0095471367, 0.2984254956, -0.007852179, -0.3038436174, -0.0261641741, 0.4173749387, -0.1179869696, -0.0295722298, -0.4269635677, 0.0392111354, -0.3561627865, 0.1529401392, 0.1751412451, 0.3330805004, -0.0421900228, -0.0712561309, 0.046784319, 0.0522087887, 0.2770988345, 0.2881578505, 0.0449897908, -0.2620604634, -0.2448163778, -0.188993752, -0.1184412017, -0.142684415, 0.0888251886, -0.0485468172, 0.2262388766, 0.5656465292, 0.1121236831, 0.5434877276, 0.0091043506, -0.1241309047, -0.041682303, -0.3405251205, 0.0301438235, 0.275323689, 0.2414436191, -0.1153272688, 0.1018052027, 0.523232758, 0.0545009039, 0.011680007, -0.221869722, 0.0206173155, 0.2100844234, -0.525182724, 0.0302771647, 0.3162850142, 0.0989189148, -0.3422267735, -0.3157902658, -0.0549926423, -0.36108464, -0.01747315, 0.2686057091, -0.2447971702, 0.2741825581, -0.3248909116, -0.1449371576, -0.0984955281, 0.2544890046, 0.0148975085, 0.114238739, -0.3424136341, -0.163019374, 0.2320926636, -0.1732916534, 0.0465524942, 0.0519988909, -0.0708888844, -0.0188036598, -0.1910604388, 0.0610110685, 0.0490809083, -0.0535833798, -0.3189558387, -0.4071875811, -0.0294458643, 0.4514679015, 0.2729827166, -0.381119132, 0.0607213825, 0.3206731379, 0.2390632182, -0.111245133, 0.4202191532, 0.1673696339, 0.0331330039, 0.0795738176, 0.1092436314, 0.0877587572, -0.0547117107, 0.0202390682, -0.1319490075 ]
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
@Eytan-S check out v1.1 of the `github-code` dataset where issue should be fixed: | | Language |File Count| Size (GB)| |---:|:-------------|---------:|-------:| | 0 | Java | 19548190 | 107.7 | | 1 | C | 14143113 | 183.83 | | 2 | JavaScript | 11839883 | 87.82 | | 3 | HTML | 11178557 | 118.12 | | 4 | PHP | 11177610 | 61.41 | | 5 | Markdown | 8464626 | 23.09 | | 6 | C++ | 7380520 | 87.73 | | 7 | Python | 7226626 | 52.03 | | 8 | C# | 6811652 | 36.83 | | 9 | Ruby | 4473331 | 10.95 | | 10 | GO | 2265436 | 19.28 | | 11 | TypeScript | 1940406 | 24.59 | | 12 | CSS | 1734406 | 22.67 | | 13 | Shell | 1385648 | 3.01 | | 14 | Scala | 835755 | 3.87 | | 15 | Makefile | 679430 | 2.92 | | 16 | SQL | 656671 | 5.67 | | 17 | Lua | 578554 | 2.81 | | 18 | Perl | 497949 | 4.7 | | 19 | Dockerfile | 366505 | 0.71 | | 20 | Haskell | 340623 | 1.85 | | 21 | Rust | 322431 | 2.68 | | 22 | TeX | 251015 | 2.15 | | 23 | Batchfile | 236945 | 0.7 | | 24 | CMake | 175282 | 0.54 | | 25 | Visual Basic | 155652 | 1.91 | | 26 | FORTRAN | 142038 | 1.62 | | 27 | PowerShell | 136846 | 0.69 | | 28 | Assembly | 82905 | 0.78 | | 29 | Julia | 58317 | 0.29 |
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks!
292
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks! @Eytan-S check out v1.1 of the `github-code` dataset where issue should be fixed: | | Language |File Count| Size (GB)| |---:|:-------------|---------:|-------:| | 0 | Java | 19548190 | 107.7 | | 1 | C | 14143113 | 183.83 | | 2 | JavaScript | 11839883 | 87.82 | | 3 | HTML | 11178557 | 118.12 | | 4 | PHP | 11177610 | 61.41 | | 5 | Markdown | 8464626 | 23.09 | | 6 | C++ | 7380520 | 87.73 | | 7 | Python | 7226626 | 52.03 | | 8 | C# | 6811652 | 36.83 | | 9 | Ruby | 4473331 | 10.95 | | 10 | GO | 2265436 | 19.28 | | 11 | TypeScript | 1940406 | 24.59 | | 12 | CSS | 1734406 | 22.67 | | 13 | Shell | 1385648 | 3.01 | | 14 | Scala | 835755 | 3.87 | | 15 | Makefile | 679430 | 2.92 | | 16 | SQL | 656671 | 5.67 | | 17 | Lua | 578554 | 2.81 | | 18 | Perl | 497949 | 4.7 | | 19 | Dockerfile | 366505 | 0.71 | | 20 | Haskell | 340623 | 1.85 | | 21 | Rust | 322431 | 2.68 | | 22 | TeX | 251015 | 2.15 | | 23 | Batchfile | 236945 | 0.7 | | 24 | CMake | 175282 | 0.54 | | 25 | Visual Basic | 155652 | 1.91 | | 26 | FORTRAN | 142038 | 1.62 | | 27 | PowerShell | 136846 | 0.69 | | 28 | Assembly | 82905 | 0.78 | | 29 | Julia | 58317 | 0.29 |
[ -0.1165022776, 0.1757313758, -0.2867789268, 0.0446584895, 0.2342687994, 0.069733493, 0.2107684612, 0.4876596332, 0.0990776345, -0.0302917473, 0.0104146255, 0.1350830644, -0.1065374613, 0.22048904, 0.3461066186, 0.025111841, 0.1399248093, -0.0877739266, -0.1495599896, -0.3193649054, -0.0084189344, 0.4724280238, -0.0487305112, -0.2397774309, -0.0407168567, 0.1973212361, 0.0226215441, 0.0999747068, -0.1959888339, -0.340772301, 0.2284444124, 0.0911733285, 0.1940385848, 0.1397391856, -0.000114548, -0.0693590045, 0.1296431869, -0.2191793919, -0.0069588609, -0.0930667594, -0.1935581416, -0.4040763676, -0.2233438343, -0.0777612478, -0.0908921137, 0.2074502558, 0.0545571335, -0.8536049128, 0.137688309, 0.4116021693, 0.1715489626, -0.093910031, 0.1063072383, -0.0460200682, 0.6560298204, 0.1930001974, -0.1494406164, 0.1280002892, 0.7118922472, -0.0787445232, 0.0182869881, 0.3406772614, 0.2465630472, -0.427845031, -0.2867609859, 0.183657825, 0.0044683795, -0.3582991064, 0.2361511886, 0.1707068384, 0.4931998253, -0.3572785258, -0.3458256721, -0.1450868994, -0.0535089821, -0.2040751874, 0.0250110738, 0.1835217476, 0.2118699849, 0.3189424574, -0.3360357285, -0.3585289121, -0.1601267606, 0.119264707, 0.356797725, 0.1939796507, 0.1170487106, 0.027788749, -0.3690130413, 0.1219020262, -0.2356889099, -0.2359896153, 0.0907812193, 0.2736190856, -0.0912714824, -0.1180488095, 0.3698882163, -0.0364251062, 0.1709360033, 0.2265782505, -0.0831526816, 0.0922593474, -0.2349837422, -0.0701086447, -0.0756890997, 0.2085429877, 0.2819485366, 0.1499197185, 0.292283088, -0.1837024093, 0.1551505774, 0.0998390019, -0.2080141902, -0.0705175996, -0.2117110789, 0.3345565796, 0.0219063349, -0.1178531051, 0.0476842225, 0.2043447495, -0.2202477455, -0.4309023619, -0.1631686687, -0.0158565938, 0.0995774865, 0.2064076066, -0.0800500065, 0.4178918898, -0.2216956317, -0.5596266389, -0.0777835846, 0.0967762545, -0.171560362, -0.1771236658, 0.20035851, 0.0921650752, 0.2234045565, 0.1769370437, -0.0394602306, 0.0883241147, 0.0859584659, -0.1893591285, -0.1213704348, -0.011078543, -0.0006251911, 0.0393222868, 0.2281383723, -0.6668609381, -0.132756561, 0.3084127009, -0.0311334785, 0.0605423041, -0.239241004, 0.1641126275, -0.2548377812, -0.2103917748, -0.3466985822, 0.4311293364, 0.104435809, -0.0427817069, 0.0151634989, -0.385944128, 0.3128688335, -0.1478892118, 0.2916030288, 0.3075171411, -0.6040512919, -0.1068184525, -0.1455870569, -0.1144915298, 0.2694845498, 0.2100975811, -0.1582538188, 0.4491820335, -0.1502685994, 0.4247854352, 0.574578464, -0.2238001972, 0.0790012106, 0.0436488613, 0.2436830848, -0.0167565942, -0.138265714, 0.0035884399, 0.4121807814, 0.0013144886, -0.2079048604, 0.1379480213, -0.2085943818, -0.2167084217, -0.3176368177, -0.1141378134, 0.335486263, 0.2777207792, 0.5184730887, -0.1705030352, 0.511908412, -0.3622793257, 0.369045794, -0.1404777318, 0.1946105957, 0.3708429039, 0.3146606684, 0.2616901696, 0.029095633, -0.2139365971, -0.2132144421, 0.1779529154, 0.037309669, 0.0903123096, 0.111017108, 0.125666976, -0.0889613703, -0.0789802969, -0.0859116837, -0.1078061759, 0.0781119689, 0.1840059608, -0.299892962, 0.2557098269, -0.1540883332, -0.3484499454, -0.0399540924, -0.0567609556, -0.3855348825, 0.2427401841, -0.1395425051, -0.2242824137, 0.0386472233, 0.2344192863, -0.0349754803, -0.1414292008, -0.0129802311, -0.0953295827, 0.4386506379, -0.1617182791, 0.9140040278, 0.3681081831, 0.1290795058, -0.2840624154, 0.1172157899, 0.09825252, 0.0990929529, 0.0497418828, 0.0023303125, 0.3733626306, 0.1394827515, -0.0129813645, 0.0805097222, 0.0251220167, 0.4260933995, 0.0789579377, -0.1683819145, -0.1044233516, 0.4696868062, 0.1681373268, 0.1921083182, -0.0388473347, -0.2415398359, 0.2084562629, 0.7448071241, -0.2645589411, 0.0939236209, 0.0207219105, 0.0711118802, -0.0873396844, -0.0515840352, 0.040975906, 0.1051085964, 0.2444357127, -0.0024087133, -0.3163753748, 0.104419902, -0.2403986305, 0.0710159689, -0.0747508854, 0.0110887606, -0.0615629964, 0.1187984198, -0.0405393988, -0.2369084656, -0.2269979268, 0.0181422997, -0.1157912016, 0.0365929604, 0.0342971608, -0.4508466125, 0.216065675, -0.2354920059, 0.0888736024, -0.3424484134, -0.2915828526, 0.2036009282, -0.6282109618, -0.3598637283, 0.3000563383, 0.0251845643, -0.0510523356, -0.3525969386, -0.0250882097, -0.0606519319, -0.3520894647, -0.3338574469, 0.1184277385, 0.2454208583, -0.494009912, 0.2725994587, -0.3685752153, -0.1278818399, -0.2681593895, -0.550876677, -0.003683669, -0.3455994129, 0.173036918, -0.0503753424, -0.0383212864, 0.1683107167, 0.040450532, 0.1555763334, 0.1463918537, -0.1438139081, -0.1084722131, 0.0447463468, -0.2873827815, -0.2241561115, -0.4101353288, -0.2182870507, -0.0291529018, -0.0588646792, 0.0900296643, -0.0151804984, -0.2105930448, -0.1742482781, 0.0770878941, -0.2413367778, -0.0228203926, 0.0199036188, -0.0238971021, 0.1559274495, 0.0671119764, -0.2455115616, 0.1129202321, 0.0639622137, 0.1632591337, -0.0179419294, -0.4219543934, 0.4583312273, -0.1428082734, 0.5473786592, -0.1391972005, -0.0564818829, 0.3204401135, 0.2972014248, -0.0315061919, -0.223167628, -0.1387360841, 0.1665100157, -0.0216851402, 0.135740608, -0.2508485615, 0.2748288512, -0.1030117124, 0.655277729, 0.1802436858, 0.3556501865, 0.2377552539, 0.2175195515, 0.2893281877, -0.162888512, 0.0864695758, 0.3766983151, 0.0652401745, 0.0192662124, 0.2492062598, 0.0036872781, -0.3488317728, 0.1615149975, 0.0480360202, -0.2274241, -0.0983205512, 0.4677930772, -0.4223037064, 0.1643459052, -0.0169665422, -0.059386868, -0.1851556152, -0.0742496699, -0.3410043716, 0.1506679356, 0.3700693548, 0.2063769549, -0.3835986555, -0.3622978926, -0.245045647, 0.3124162853, 0.1707741171, -0.0668512061, -0.163093999, -0.1332197338, -0.0744573548, 0.2529999316, -0.0863419771, -0.2541590631, -0.2838362753, 0.3329587877, -0.2018828988, 0.0953096598, -0.3292267323, -0.4446417093, 0.1290280372, 0.5448918343, 0.1126542836, -0.3063699305, -0.1972206384, -0.1436201781, 0.3975081146, -0.0252152886, 0.2906669676, -0.0143028004, -0.1965406984, -0.364901334, -0.0983691812, 0.1952176094, 0.0752974525, -0.2812923193, -0.080902867, 0.1260208637, -0.159665361, -0.0570594333, 0.0520362034, 0.1907586455, -0.1265258491, -0.0202471651, -0.4092149436, -0.0284174308, 0.0315629281, 0.1782639474, -0.1181106344, -0.2698266804, 0.2994188368, -0.5835536122, 0.4473185837, 0.0651546866, 0.0496535189, 0.2083509266, 0.0685290322, 0.0907586589, -0.1434922367, -0.1599618196, 0.3297436535, 0.1841498017, -0.3005064428, -0.3798596263, -0.141544506, -0.5327885151, -0.0728946477, 0.2308187187, 0.02959265, -0.3230119646, 0.2096065581, -0.1375813782, 0.9517198801, 0.1809444427, 0.0477929786, -0.1388883591, -0.0334231779, -0.0024165497, -0.1042559296, 0.0776328892, -0.0419066027, 0.0723068267, -0.0048481021, 0.0301839933, 0.126815781, 0.140995577, -0.0852930099, 0.2274859846, 0.0261561163, 0.2324292511, 0.116573967, 0.0097578252, 0.3114744425, 0.1155887172, -0.1675191522, 0.1569215655, 0.0430936627, 0.07143455, -0.0981244966, -0.2084061652, -0.2922170162, -0.1539627165, -0.7871792316, 0.0177700687, 0.0102265393, 0.3225800097, -0.1122393608, -0.3284698427, 0.3267081082, 0.6003860831, 0.470344305, 0.4075317979, -0.1217392683, 0.2468652129, -0.0132710263, 0.2712872922, 0.3079694211, 0.0090222945, -0.0965364799, -0.3077934086, -0.4269559681, 0.072784245, -0.130088985, -0.1369718611, -0.532787323, 0.062830165, -0.1053807363, 0.1188390553, 0.1676762253, 0.2594482303, -0.0007016395, -0.2647823691, 0.1414931417, 0.387255311, 0.1635732353, 0.1325791776, -0.1252331138, -0.3151284754, -0.3477813303, -0.2533557415, 0.2751003504, 0.2416963726, 0.4107116759, 0.2551653385, -0.2230365723, -0.2738352716, 0.2533450425, 0.423448056, -0.5279840231, 0.0476970635, -0.2416846603, -0.0357907973, -0.2103999406, 0.0302316621, 0.1002752408, -0.237217024, -0.1144589409, -0.2774206698, 0.1469314992, 0.2982945442, 0.0110356752, -0.2540307343, -0.2290211916, -0.0320932642, -0.0360951275, 0.0549011193, -0.2884812355, -0.0196295436, -0.4143093824, 0.2268103659, -0.0022516518, 0.0364587456, 0.1801281273, -0.1256708503, 0.070823051, -0.3637861013, 0.0784540698, -0.1829032749, -0.0552131273, 0.0820319429, -0.1819906235, 0.2131775469, 0.0137268808, 0.0921698436, 0.1741184741, -0.141789481, -0.0293704085, -0.1958771497, 0.189568907, 0.4134412706, -0.0774563774, 0.0790543556, 0.10683202, -0.0429919474, -0.1604235768, 0.4243200421, 0.1911356598, 0.1802183539, 0.6220949292, -0.0281828493, -0.1110670716, -0.0575103685, -0.1464299113, 0.4780617058, 0.2380181104, -0.0256270561, 0.3629289865, 0.230607301, 0.1187322363, 0.0266744662, -0.1945955604, 0.202140525, 0.0792227462, 0.1714060009, -0.3061683178, -0.1756227314, 0.3837765753, -0.0973496586, -0.0016546082, 0.1367147565, -0.0602680519, 0.2749713957, 0.4997273982, -0.0131419562, 0.3322497904, -0.0717190728, 0.3947426975, -0.0486301966, 0.1522150487, 0.294721812, -0.2985681593, 0.1016456857, -0.2362024337, 0.2582568526, -0.2978734076, 0.1601415426, -0.043137826, -0.0388464555, 0.2784538567, -0.1951431036, -0.0086087761, 0.0997767001, -0.0155664971, 0.0763165429, 0.0559256971, -0.0167266764, 0.1562711596, -0.0567015782, -0.1351171881, -0.0304359086, -0.1363054514, 0.1357756853, -0.2699140906, -0.0122659774, -0.3448865712, -0.0793746188, -0.2220694125, 0.3018301427, -0.0085346159, 0.2481182963, -0.1371141225, -0.3487573266, 0.3347297311, -0.2519551218, -0.0777113587, -0.0563820079, 0.3920676112, 0.4338980317, -0.1103224903, -0.0075838594, 0.2659057975, 0.175226897, 0.0689171553, 0.1195879877, -0.0861803889, 0.0704909712, -0.1413322389, -0.1219756454, 0.3078370988, 0.234224543, 0.3810122013, -0.0748372674, 0.1265418082, 0.003286452, 0.293435812, 0.0412518717, -0.2692862153, 0.0145053193, 0.3689819574, -0.1338885576, -0.0454630554, -0.4327347875, 0.0157532357, -0.3342077136, 0.213029936, 0.1954493821, 0.3214016259, -0.0466681309, -0.1023728848, 0.0544825494, 0.0692859516, 0.3008899391, 0.3069424033, -0.0957327411, -0.3197465539, -0.2416867316, -0.1630688608, -0.1200123802, -0.1031810939, 0.0687214583, -0.0782528594, 0.2089177966, 0.621974349, 0.0960489139, 0.5108243823, -0.0874910429, -0.0978978574, 0.0135015538, -0.3492878377, 0.0385417566, 0.2466457933, 0.1954586655, -0.1029572785, 0.0664194003, 0.5484513044, 0.1159396172, 0.0066745616, -0.2299692184, -0.004710116, 0.3020866215, -0.4837201834, -0.0419238359, 0.3038978875, 0.1447124034, -0.368667841, -0.2795161307, -0.1144731119, -0.3308759034, -0.0223599635, 0.3050710559, -0.2634623945, 0.3381666541, -0.3298385739, -0.1804425865, -0.1114242077, 0.2813312113, -0.0560634769, 0.1455382109, -0.2265866548, -0.1710317433, 0.189118281, -0.1735122204, 0.07657931, 0.0363212116, -0.0584625416, 0.0348124951, -0.2626881003, 0.0065504061, 0.0378282815, -0.0844389051, -0.303722471, -0.3541702032, -0.0332452469, 0.503438592, 0.3290763497, -0.3625801802, 0.046262797, 0.3177199066, 0.2555710971, -0.0655540749, 0.4308649004, 0.2204314172, 0.0913559273, 0.0677731037, 0.1035218984, 0.0983450413, -0.090212822, 0.016587792, -0.1739599407 ]
https://github.com/huggingface/datasets/issues/3929
Load a local dataset twice
Hi @caush, thanks for reporting: In order to load local CSV files, you can use our "csv" loading script: https://huggingface.co/docs/datasets/loading#csv ```python dataset = load_dataset("csv", data_files=["data/file1.csv", "data/file2.csv"]) ``` OR: ```python dataset = load_dataset("csv", data_dir="data") ``` Alternatively, you may also use: ```python dataset = load_dataset("data")
## Describe the bug Load a local "dataset" composed of two csv files twice. ## Steps to reproduce the bug Put the two joined files in a repository named "Data". Then in python: import datasets as ds ds.load_dataset('Data', data_files = {'file1.csv', 'file2.csv'}) ## Expected results Should give something like (because files have only one data row): Title, clicks Truc et astuce, 123 Machin, 12 ## Actual results Gives Title, clicks Truc et astuce, 123 Machin, 12 Truc et astuce, 123 Machin, 12 ## Environment info [file1.csv](https://github.com/huggingface/datasets/files/8256322/file1.csv) [file2.csv](https://github.com/huggingface/datasets/files/8256323/file2.csv) - `datasets` version: 2.0.0 - Platform: Linux-5.4.0-65-generic-x86_64-with-glibc2.10 - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
43
Load a local dataset twice ## Describe the bug Load a local "dataset" composed of two csv files twice. ## Steps to reproduce the bug Put the two joined files in a repository named "Data". Then in python: import datasets as ds ds.load_dataset('Data', data_files = {'file1.csv', 'file2.csv'}) ## Expected results Should give something like (because files have only one data row): Title, clicks Truc et astuce, 123 Machin, 12 ## Actual results Gives Title, clicks Truc et astuce, 123 Machin, 12 Truc et astuce, 123 Machin, 12 ## Environment info [file1.csv](https://github.com/huggingface/datasets/files/8256322/file1.csv) [file2.csv](https://github.com/huggingface/datasets/files/8256323/file2.csv) - `datasets` version: 2.0.0 - Platform: Linux-5.4.0-65-generic-x86_64-with-glibc2.10 - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi @caush, thanks for reporting: In order to load local CSV files, you can use our "csv" loading script: https://huggingface.co/docs/datasets/loading#csv ```python dataset = load_dataset("csv", data_files=["data/file1.csv", "data/file2.csv"]) ``` OR: ```python dataset = load_dataset("csv", data_dir="data") ``` Alternatively, you may also use: ```python dataset = load_dataset("data")
[ -0.0047100154, -0.2396460921, -0.0901845768, 0.2367399335, 0.1813364476, -0.0256923791, 0.3377524018, 0.313740164, 0.3259289563, 0.4739158154, -0.1353584379, 0.0657346621, 0.2889901996, 0.0849127471, -0.1292005032, -0.0246547479, 0.1108900756, 0.3750531077, -0.4979865849, -0.1276562661, -0.0599837489, 0.1558843553, -0.055531539, 0.0140049914, 0.0218016393, 0.1187568679, -0.1177620515, 0.342132777, 0.0803648904, -0.0798498988, 0.2447360158, -0.0108564319, -0.2600647807, 0.5470014215, -0.0000996255, 0.0467814691, 0.1137759686, 0.0974405184, -0.0518646389, -0.2566024959, -0.0131819211, -0.2362197787, 0.2924908102, -0.2661483586, -0.0897426158, -0.1656879634, -0.1953890473, -0.1446100026, 0.4296991229, -0.0061172508, 0.3310916126, 0.3042967319, -0.1212057099, -0.2316204756, 0.252276361, 0.0968963653, -0.0116506731, 0.4617189467, 0.2905223072, -0.2931228578, -0.0854264647, 0.125781998, -0.1210961491, 0.1045169309, 0.0094837816, 0.312520951, -0.0285933632, 0.0582043678, 0.1627658457, 0.041473262, 0.0290438887, -0.155794248, -0.055157721, -0.3824265599, -0.0111555131, -0.1577396244, 0.096508719, 0.1607368141, -0.1140604243, 0.2203673422, 0.0295507647, 0.2224084139, 0.0803384036, -0.108094044, 0.1144279763, -0.0805472285, -0.1729045808, 0.0695256442, 0.2517786026, -0.0901611894, -0.1792598218, -0.0389344916, -0.0455422141, 0.1281985044, -0.3417597115, 0.1355651319, 0.3452344239, 0.0046559367, -0.0258539021, -0.00907409, 0.1109968424, -0.0435717069, -0.0378707759, 0.2711825669, 0.2839874327, 0.1514648944, -0.0505816415, -0.0359103717, 0.3308830261, 0.2138857096, -0.1920467019, -0.0142661585, 0.1853335798, -0.3967258632, -0.0480779782, -0.0322356336, 0.3155700862, -0.1444180757, -0.3964407146, 0.3185773492, -0.0756182298, 0.0642362237, -0.077636309, 0.3774127662, -0.2132590562, 0.1070841029, 0.0780620947, 0.1251471788, -0.2004324049, -0.0869366974, -0.3048517406, 0.0128178895, -0.1841704249, -0.0909785777, 0.1953281313, -0.2779322267, 0.0845674574, 0.4328104556, 0.153793022, -0.2405355424, -0.0660369769, -0.1104363352, -0.1011220217, 0.2968143523, 0.3218609691, 0.2312331647, 0.2191808373, -0.3751524687, 0.0833431259, 0.1481824219, -0.1747105867, -0.0479246676, -0.3080781698, 0.3341524005, 0.0400527604, 0.2966657579, 0.006282981, 0.017557241, 0.1565218717, -0.0611716323, 0.0767989531, 0.1986528486, -0.2821181417, -0.1887473464, 0.1655861288, 0.3856536448, -0.2357447296, 0.108591944, 0.2396050692, -0.1052374914, 0.0915289447, 0.3889170289, -0.2728272378, 0.0024749869, -0.3675377369, 0.2460533082, 0.0355189256, -0.3720151782, -0.323574543, 0.2362668961, -0.4288937151, 0.107005015, 0.3266939223, -0.1531019807, -0.054421965, -0.0642736182, 0.2585344017, 0.0789305344, 0.0115898103, 0.1504642069, -0.3756912649, -0.123797439, 0.0271946602, -0.1239467114, -0.2003202438, -0.0301454347, 0.2965590358, -0.3555015624, 0.4262883067, -0.2291592062, 0.073728554, 0.1765634716, 0.1769807935, 0.166288659, 0.2048569471, -0.1488471627, -0.409232825, 0.1284106374, -0.2241297066, -0.0464653559, -0.0598256253, -0.4873334169, -0.5007219911, 0.0193823017, -0.1815133542, -0.0848918185, 0.2655283809, 0.0896144733, -0.1299766451, 0.0553807542, 0.0232901219, 0.0765482187, -0.1281058192, -0.0181134026, -0.270013392, 0.2697790861, -0.162305966, -0.0178806353, -0.0501280092, 0.1319670826, 0.2050862908, -0.0291051194, 0.0126264524, 0.4310974181, -0.1858829558, 0.513769269, 0.1985972971, -0.2225101888, 0.099776119, 0.0552194454, -0.1412792206, 0.1407589167, 0.2804339528, -0.0787326768, -0.3607141376, 0.4162091613, -0.1504448205, 0.036989212, 0.1484324783, -0.1506399959, 0.2041639835, -0.2732311785, 0.0556388199, -0.3459359407, 0.2634029686, 0.2447440922, 0.0985719115, 0.2858408093, -0.6951723099, 0.1613116562, 0.2250569016, -0.0620456189, 0.0635552406, -0.0882729888, -0.172961086, -0.0760084614, -0.1221859083, 0.2564506233, 0.4227170944, 0.2277111709, 0.1628248096, 0.0713811815, -0.0438510738, -0.3499739468, 0.0266199838, -0.2437185794, -0.0794362426, 0.5034425855, 0.2667400241, -0.0915560722, -0.4558868706, 0.0710245892, 0.0228231177, 0.1413589418, -0.3404090703, -0.0983476564, -0.1996730566, -0.3038915098, -0.4504395425, -0.0599072054, 0.1469736546, -0.1657047123, 0.0457106121, 0.4463580549, -0.3106681705, 0.0832668468, 0.0113631142, 0.1508834362, 0.0220254213, 0.1434856206, 0.0613662191, 0.070335567, -0.2074867785, 0.2287395746, 0.1455425471, 0.2019866407, 0.2303655297, -0.0208170153, -0.0446992815, -0.1016834453, -0.2147220373, -0.0620655902, 0.0438060984, 0.233665511, -0.0233603045, 0.137811929, -0.152635932, -0.3730694354, 0.3301250339, 0.0249606725, -0.2775487006, -0.1020514593, 0.0398393348, -0.0137038585, -0.5017807484, -0.2886809707, -0.0118241329, -0.2671647072, 0.3139074147, -0.0913455039, 0.092705749, 0.0651019961, 0.0210977662, 0.1291804016, -0.0504972152, 0.2391233146, -0.3536321521, -0.2593667209, 0.157999143, -0.3354126513, -0.4113503993, -0.2560962439, -0.0732128173, -0.0531081632, -0.3990422189, -0.2729156613, -0.3575662374, -0.2843838632, 0.1733622849, -0.0093267011, 0.0898802578, 0.1520978063, -0.0012284563, -0.3564862311, -0.2294598818, -0.0361367054, 0.166316852, 0.0678071976, -0.3076000214, -0.0907311589, 0.0960077122, 0.0307717938, 0.4480380714, 0.2505355477, 0.2274309695, 0.2257125378, -0.177982688, 0.410353303, -0.0834573731, -0.5407407284, -0.0346098915, -0.051806882, -0.1238595098, 0.3531745672, -0.0152497459, 0.0115359118, -0.1601014435, -0.0508710705, -0.4275689423, -0.382406652, -0.0769759193, 0.0949355066, -0.1239740252, 0.1266735494, -0.1274823546, 0.1185077503, 0.1108297706, 0.0168541204, 0.1601054668, -0.0650287718, -0.172658667, 0.0179320425, -0.0339591056, -0.2860409915, 0.1011720449, 0.1837943196, 0.0884320736, -0.0779717565, -0.2448801398, 0.0971156284, -0.0020960504, 0.7027958035, 0.1889686286, 0.294675082, -0.0698204488, 0.0288042072, -0.0579222441, -0.048344858, -0.0892532095, -0.1516950876, 0.3339068294, 0.4728009105, -0.0339331329, -0.0263010487, 0.2031541616, 0.3084135056, -0.1594249606, -0.1084876806, -0.2392025441, -0.0452877432, -0.3013748527, 0.0557203591, 0.1346274763, 0.313418746, -0.0721883848, -0.2535444796, -0.0502894521, -0.1851264089, 0.1554160416, 0.0931459665, 0.2581636012, 0.1013849452, 0.3587607443, 0.0451519378, 0.1243885085, -0.1121486872, 0.8085206747, -0.0787702203, -0.286868006, 0.0172368865, -0.2014362365, 0.0858248174, 0.3019682765, -0.1300364584, 0.2188104838, -0.140095681, 0.2376290113, -0.1264671236, -0.0007686294, 0.214024514, 0.0792631283, -0.0231204238, -0.185979113, 0.1564320028, -0.0679098517, -0.2878564298, 0.023195656, 0.0290129427, -0.1576676518, 0.0072642039, -0.3620425165, 0.7524012327, -0.0252897795, 0.0488671437, 0.1519919187, -0.3327228129, 0.4031282663, 0.0571907125, -0.1980608702, -0.1900869906, -0.3327620029, 0.0943437442, 0.0436640643, 0.108492285, -0.12381614, 0.0110067455, 0.1597394049, 0.0230475776, 0.2940500975, -0.1117098778, -0.0141155217, 0.2406385094, -0.1193830818, -0.1706911474, 0.1621928364, 0.2182731777, 0.1467659473, 0.1270451099, -0.0643130764, -0.0850623846, -0.1832898408, -0.0607307293, 0.1929336637, -0.0062171347, 0.1010745913, -0.0765510052, -0.53549999, -0.2585108578, 0.3084826767, 0.0124009456, 0.2156759501, -0.0968254209, 0.2492458969, 0.0501519702, 0.2486059219, -0.2240098566, -0.0347451754, 0.1656602174, 0.0291906595, -0.2310946584, -0.1032494307, -0.0102096964, 0.0451658703, 0.068686828, 0.4412806928, -0.2757468224, -0.2117805332, -0.2487155199, 0.0343544036, 0.3088838458, -0.3675851822, 0.2228824943, -0.1014798507, -0.0467079394, -0.2231049985, 0.0013468973, -0.3782038987, -0.2084283829, 0.5793223977, 0.3029895723, -0.2784507275, 0.1878853887, 0.2262113839, -0.1978030503, -0.2080163062, -0.1046103016, 0.2388535142, -0.4535724521, 0.0653284565, -0.0453302972, 0.0839603692, 0.1356039345, 0.2750140131, 0.1627826095, 0.0619792081, -0.0108894547, -0.3319647312, -0.1581036747, -0.0417012312, 0.1754893959, 0.1290575415, 0.404863894, 0.2650664151, -0.0159170423, 0.1407776177, -0.4440971315, 0.2474697679, -0.1031306311, 0.1327278912, 0.2262304425, 0.0704560354, 0.0882044956, -0.0273896959, 0.3527026176, 0.109944135, -0.0060861371, -0.4125459492, -0.1757711768, 0.0334323533, -0.2119808048, 0.0145477112, -0.0628396347, -0.0618874505, 0.1551257968, -0.2291944623, 0.3136362135, 0.1797145903, -0.0111386115, -0.0880904794, -0.0520717874, 0.1489235461, 0.0315072499, 0.0061856979, -0.1801602989, 0.0268127024, -0.114182815, -0.0505090766, -0.3772514462, -0.0090111913, 0.0647162944, -0.0543509535, 0.0276885219, 0.1174240336, -0.0153265465, -0.2186015993, -0.1685829312, 0.1446251124, 0.7309183478, 0.0151396468, -0.0787401721, 0.0489519425, 0.1407233328, 0.3903744817, -0.4283279479, -0.1098423898, 0.0727253482, -0.0885285586, 0.241064176, 0.1791462451, 0.1540195495, -0.1604432315, 0.0876933783, 0.1379141062, 0.2000519782, -0.0380928479, 0.0608980916, 0.4376494884, 0.2238036543, -0.0171604902, 0.085438177, 0.0104010096, 0.3310550153, 0.5499607921, -0.0888760537, -0.0858527869, -0.0198804922, 0.2315050066, -0.0674638376, -0.2500932515, 0.382415086, 0.2207940519, -0.3823072314, -0.1782768816, 0.2565421462, 0.7274747491, -0.329400897, -0.0590330511, -0.0369112156, 0.3122017086, -0.2530967295, -0.1980596781, 0.0847407952, -0.1881748587, -0.2102510333, 0.1619340479, 0.1602317393, 0.2531858981, 0.166278556, -0.1664372832, -0.0349514596, -0.4003953636, -0.1817697138, 0.1099677011, 0.2020056397, -0.2485438436, -0.0234255418, 0.3915694952, -0.174489826, -0.1437773854, 0.306201905, 0.2973314524, 0.2025563419, 0.2117142081, 0.0349366441, -0.0415633395, -0.0699051172, -0.2687465549, -0.0338711217, 0.0117961075, 0.0458983444, 0.3273557425, 0.326767534, -0.3691842556, 0.3147926033, 0.0319901034, 0.13902013, -0.4347521365, -0.0627419353, -0.2269860804, -0.037344005, -0.2019462287, -0.1753920615, -0.4805292189, -0.1108938903, 0.1036167592, -0.0022512537, 0.2703614533, -0.3344464302, 0.1790548414, 0.231314078, 0.1377499104, 0.1250931919, 0.1313235611, -0.1101726517, -0.2729843855, -0.6104821563, 0.3906269968, 0.0108846501, 0.1477887332, -0.1907285899, 0.1683235765, -0.1368430406, 0.0846126676, 0.1056998298, 0.117390655, 0.1372739673, 0.0213535279, -0.121214211, -0.0991511345, -0.3517342508, -0.3314832747, 0.2507394552, -0.256210804, 0.0596239492, -0.3019600809, 0.2194813043, -0.1233113781, -0.0297446474, -0.1025414988, -0.161711961, 0.3857588172, 0.0974221602, 0.306458056, -0.3145585656, 0.0173346214, 0.0014599708, -0.350576818, -0.1654109806, 0.2499411106, 0.0942090005, 0.1036430895, -0.1432649195, -0.0621701628, 0.1534650475, 0.1317569911, 0.2492690831, 0.1209856048, -0.0698281899, 0.0486694798, -0.012713653, -0.0450885259, -0.0943794474, 0.3053075671, -0.0461715087, 0.3020267487, -0.0853931829, -0.5829269886, 0.3667337298, -0.2874693871, -0.0792045146, -0.1706051081, 0.3206227422, 0.0601602383, -0.1556362361, -0.3789285719, -0.0440111235, 0.1895953417, 0.1657317281, -0.2449267656, 0.2154115885, -0.3527942598, -0.1292862445, -0.0303125791, 0.254892081, 0.508875668, -0.2604707181, 0.3331304193, -0.3637114465 ]
https://github.com/huggingface/datasets/issues/3928
Frugal score deprecations
Hi @Ierezell, thanks for reporting. I'm making a PR to suppress those logs from the terminal.
## Describe the bug The frugal score returns a really verbose output with warnings that can be easily changed. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets.load import load_metric frugal = load_metric("frugalscore") frugal.compute(predictions=["Do you like spinachis"], references=["Do you like spinach"]) ``` ## Expected results A clear and concise description of the expected results. ``` {'scores': [0.9946]} ``` ## Actual results Specify the actual results or traceback. ``` PyTorch: setting up devices The default value for the training argument `--report_to` will change in v5 (from all installed integrations to none). In v5, you will need to use `--report_to all` to get the same behavior as now. You should start updating your code and make this info disappear :-). 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 864.09ba/s] Using amp half precision backend The following columns in the test set don't have a corresponding argument in `BertForSequenceClassification.forward` and have been ignored: sentence2, sentence1. If sentence2, sentence1 are not expected by `BertForSequenceClassification.forward`, you can safely ignore this message. ***** Running Prediction ***** Num examples = 1 Batch size = 64 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 4644.85it/s] {'scores': [0.9946]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0
16
Frugal score deprecations ## Describe the bug The frugal score returns a really verbose output with warnings that can be easily changed. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets.load import load_metric frugal = load_metric("frugalscore") frugal.compute(predictions=["Do you like spinachis"], references=["Do you like spinach"]) ``` ## Expected results A clear and concise description of the expected results. ``` {'scores': [0.9946]} ``` ## Actual results Specify the actual results or traceback. ``` PyTorch: setting up devices The default value for the training argument `--report_to` will change in v5 (from all installed integrations to none). In v5, you will need to use `--report_to all` to get the same behavior as now. You should start updating your code and make this info disappear :-). 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 864.09ba/s] Using amp half precision backend The following columns in the test set don't have a corresponding argument in `BertForSequenceClassification.forward` and have been ignored: sentence2, sentence1. If sentence2, sentence1 are not expected by `BertForSequenceClassification.forward`, you can safely ignore this message. ***** Running Prediction ***** Num examples = 1 Batch size = 64 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 4644.85it/s] {'scores': [0.9946]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0 Hi @Ierezell, thanks for reporting. I'm making a PR to suppress those logs from the terminal.
[ -0.3378298283, -0.1535772979, -0.039447505, 0.1039689332, 0.4437429905, -0.1888691187, -0.1592685282, 0.1735536307, -0.0201473292, 0.2025120109, -0.0626748055, 0.4346991181, -0.1748408526, -0.034357097, -0.2254187465, -0.0228458047, 0.0702437311, 0.0544133298, -0.2488450855, -0.252088517, -0.130381465, 0.0897372663, 0.0068781502, 0.1989313364, -0.2626031637, 0.1141467467, 0.0679494664, -0.1131477281, -0.2152861506, -0.3868852556, 0.4060500264, -0.0307860374, -0.1022795737, 0.2370076329, -0.0001037513, -0.1346323341, 0.1673555374, -0.0023026797, -0.4004601836, -0.0784216523, 0.2617716193, 0.0156914294, 0.1231042966, -0.0516557544, -0.2277897596, -0.1748314947, 0.0255809892, -0.2772977352, -0.0460518301, 0.3815640509, 0.3101311922, 0.1124239564, -0.2257716358, -0.1233024672, 0.1235925481, 0.1563770175, -0.1702959239, 0.154756546, -0.1786707789, -0.4144265652, -0.43611449, 0.1669972837, 0.056684088, 0.0290298816, 0.2759301364, 0.1034035534, 0.0986385792, -0.110567607, -0.0958389863, -0.0854623765, -0.2756710351, -0.112073727, -0.2983081043, -0.0943362042, -0.0534040853, -0.407772243, -0.1193626523, -0.1141449213, -0.067145735, 0.0519260615, -0.1926953644, 0.1882535219, -0.2434035242, 0.1841526181, -0.0797996223, 0.5335027575, -0.1126417667, -0.0420081802, 0.1449548602, -0.0511122234, -0.1894554198, 0.127275452, 0.0880743936, 0.0978032053, -0.1065718457, -0.1497530937, 0.1707924604, -0.0570444874, 0.2708342373, 0.0825338289, -0.0123341056, -0.0318862572, 0.2568417788, -0.2839900255, 0.025031032, 0.216235131, -0.0638139471, 0.2097974271, 0.0192346759, 0.4287079573, 0.1323892325, 0.1088429242, 0.3182074726, 0.0097535783, 0.2041855901, -0.0981127322, -0.0181057304, -0.370320648, -0.5631871819, 0.2745910883, -0.1825669706, 0.031269379, 0.0266359113, 0.4670996964, -0.2071507424, 0.2052953839, 0.0576949418, 0.0508017018, -0.2526785731, 0.2715481818, -0.2111410201, 0.0916296169, -0.2912035882, 0.0566544011, 0.3383163214, -0.0060237404, 0.4036902189, 0.0211084299, 0.4984657764, -0.0325200707, -0.1085817143, -0.2354332805, 0.2931165099, 0.182558462, -0.5195479393, 0.0092673991, 0.0670859367, -0.0085574212, -0.0429299884, 0.1434774697, 0.0694850385, -0.3315314054, 0.0349500664, 0.3342602551, -0.2195740044, -0.2752352059, 0.3345215321, 0.100552991, -0.042342972, 0.1249458119, 0.1751549691, -0.3034648299, -0.4291777611, 0.0625637099, 0.3627044559, -0.0078143198, 0.048419591, -0.2174490541, -0.0074354964, -0.0437722802, 0.3263883591, 0.0461768098, 0.0444799736, 0.2603064477, -0.0367288291, -0.0507393517, 0.2706010044, -0.5030350685, -0.4177958667, 0.0636140183, -0.0335688964, 0.0885591209, 0.0527208485, 0.0809776336, 0.1812164187, 0.0152109349, 0.0751634687, 0.1612294912, 0.0069766808, -0.0278054047, -0.5932222605, -0.259072572, -0.2013242543, 0.3081680536, 0.3527053297, -0.1111254171, 0.0250523891, 0.2770065069, 0.4457333088, -0.0393209569, -0.1591178477, -0.0009498253, 0.4890473485, -0.0515995845, 0.1928201616, -0.2841025889, 0.0008990644, 0.1834172308, -0.3627308011, 0.0688362718, 0.2801101804, -0.1360206455, -0.4666737914, 0.0534770042, -0.1215867922, -0.1781877577, 0.2231247127, 0.0672065392, 0.0675269514, -0.174035266, -0.090831697, 0.2509269416, -0.3949297369, -0.0113419611, 0.2516957223, 0.1987233758, -0.1047388092, -0.2395796776, 0.0098053338, 0.2431737483, 0.3918588459, 0.2498933226, 0.029433202, 0.2920695543, 0.1432492137, -0.2460469455, 0.0814440697, 0.1240888387, 0.029169986, -0.1840522438, -0.0301536229, 0.3805074394, 0.1791278273, 0.1711068451, -0.263602674, 0.2452732027, -0.0348505341, 0.0245079864, 0.165147379, -0.0979368761, 0.1034758091, 0.0527858101, -0.1300234795, -0.3680851758, 0.5212817192, -0.2490856051, -0.1638222337, -0.1484218091, -0.299000144, 0.0919928104, 0.2996719182, -0.1029115319, 0.1311670691, 0.2285290807, 0.1375910193, -0.0979125798, 0.1554013044, 0.0874990448, 0.3744780719, 0.2778095603, 0.1325450391, 0.1082663238, -0.5552943945, -0.0538468659, 0.2371948808, 0.042323973, 0.0486876927, 0.3187307417, 0.1957887858, 0.0028426843, -0.3306099772, -0.0696400255, -0.2293579578, 0.1254288107, -0.3175158799, 0.2011154145, -0.0544771589, 0.138333112, -0.1911455542, -0.5996842384, 0.0633673966, -0.4704874158, 0.2032281607, 0.26460132, -0.2520619035, 0.1425839663, 0.1490650624, 0.3770418465, -0.1018407792, 0.1937848032, -0.2119621485, -0.2408975661, -0.3095338047, 0.1811629236, -0.2978996336, 0.1550014317, 0.2982611954, -0.1192191318, -0.0355451405, -0.2656680346, -0.4078643322, 0.2012701035, -0.078475371, 0.4971257448, 0.1304542571, -0.2698681056, -0.0013047277, 0.0592081659, 0.0819835886, -0.1078683659, 0.0827526674, 0.1692393869, -0.1093247756, 0.1264584064, -0.2981233597, -0.3841047585, -0.006575136, -0.1004359648, 0.0030256596, 0.2250466496, -0.0461716019, 0.1871860176, -0.0221577697, 0.3031826317, -0.2070012987, 0.203262791, -0.2899117768, 0.3341033757, 0.3405091166, -0.2449181974, -0.4820894599, -0.0764387026, 0.2048941106, -0.1099214777, -0.1470326781, -0.4176196456, -0.0886364356, -0.2805975974, 0.006769964, -0.2689160407, -0.0709000751, 0.0533817373, 0.1949311197, -0.1580942422, -0.1043126211, 0.0092711719, 0.023091726, -0.3672777116, 0.0991086513, -0.5600787401, 0.1600694954, 0.1685003787, 0.2952643335, -0.0057720277, 0.0142188035, 0.060476426, -0.0518020131, 0.1568211168, -0.2586078644, -0.1277459562, 0.2522009313, -0.2849817872, -0.1967146993, 0.1912865639, -0.0906334743, 0.1152341738, -0.0360457934, 0.2835800946, 0.251367569, -0.2064893246, -0.0007135465, 0.0229643546, -0.0755365118, 0.0137063032, 0.3856455982, -0.0661948621, -0.2076021135, 0.0850273147, -0.0971814245, -0.1028576791, -0.1709635854, 0.2216430008, 0.0017495342, -0.3170427084, 0.1522922814, 0.1392882615, 0.2987603545, -0.0868950561, -0.3397794068, 0.0017371956, -0.0357660167, -0.0101325829, 0.3722438514, 0.2651450634, 0.243319422, -0.0459585004, -0.4302725494, -0.255687356, -0.6496701837, -0.3315834403, -0.229886502, 0.4959815145, -0.2156803012, -0.2618482709, 0.5776287913, 0.0179227982, -0.1379414797, 0.102005735, -0.4649162292, -0.2272988409, 0.0670265406, 0.2346951365, 0.1047365591, 0.2856728137, -0.3728130162, 0.1609250158, 0.0101244645, -0.1406346858, 0.1560912132, 0.001269535, 0.2573930919, -0.0808215141, 0.1178839356, -0.4528873861, -0.0642272234, 0.0408995226, 0.0648052394, -0.0423434153, -0.0554230437, 0.2452792525, -0.1334920824, 0.2329287529, 0.3257205188, -0.0386213884, -0.069868274, -0.275013715, 0.4310616851, -0.5223261118, 0.0735185519, 0.336556524, 0.128534019, -0.01275717, 0.0864822641, 0.4466661811, 0.1519696414, -0.1364286691, 0.1122474298, 0.4472205043, -0.1711387634, 0.3856388628, 0.4984310269, 0.8165252805, 0.1738495231, 0.2134356052, 0.5304660797, -0.378315419, 0.4855727553, -0.2863424718, 0.1095177904, -0.111644052, -0.4114511013, 0.1445481181, 0.0772691667, 0.1613374799, -0.0279298369, -0.2259106487, 0.3679718673, -0.2379699349, 0.0778763518, 0.2882647216, -0.0739008263, 0.0185359977, -0.0319221281, -0.1885095835, 0.2471271306, -0.1938149184, 0.0475169457, -0.1316842139, 0.0917724445, -0.0058219037, -0.0560410097, -0.0571739189, 0.1705811769, 0.1754900515, -0.0748852193, -0.1587446332, -0.1070633978, -0.1119203269, -0.0036469221, 0.5831873417, 0.1982132941, -0.1445766091, 0.0635419935, -0.3196731508, 0.2238034755, 0.0334972292, 0.1261566877, 0.2901461124, -0.272179544, -0.3047502339, 0.0249559041, -0.0560199022, 0.1589668393, 0.0104809944, -0.1276702881, 0.0078447917, -0.3236308396, 0.0472669452, 0.0261299182, 0.0978588387, -0.2087256461, 0.2324497402, -0.0417500176, -0.198547259, 0.1211796552, 0.1316738725, -0.4779993892, -0.2617756426, 0.2792521119, 0.1007930785, -0.0224902686, 0.3102647066, -0.1088002175, -0.311573416, -0.3070816398, -0.2684108019, 0.2358032018, -0.3634133339, -0.1684756279, -0.0238796193, -0.2305676043, 0.0651253909, 0.4563144445, 0.3627381325, 0.0632209331, -0.2612714767, -0.0680820048, -0.2648403645, 0.1545907855, 0.0032593403, 0.1229878515, 0.0122414595, -0.0926095098, 0.0982783511, -0.1744878888, -0.4579511881, -0.1371202618, -0.4516796172, -0.0134474449, 0.0468990356, -0.1100973934, 0.1988519281, 0.0599151365, 0.237362653, 0.1301855445, -0.1756090522, -0.2577670813, -0.1578000188, 0.0816010013, 0.0863009021, 0.1164334714, -0.1172334775, 0.096253328, -0.1093698964, -0.0410513878, -0.025609605, 0.4234182835, 0.256171912, 0.6909577847, 0.0612246729, 0.303845495, 0.1160505489, -0.2251621783, 0.2001740187, 0.1079331338, -0.0919350162, -0.0422572494, 0.0735463575, -0.1892933249, -0.0566180088, 0.0330212377, -0.0443937555, 0.2027472258, 0.276647836, -0.1438185275, -0.0609968565, -0.1071830913, 0.3891935647, 0.2223814875, 0.005833162, -0.5441277027, -0.0101351133, 0.3140717745, -0.2992073596, -0.2823550999, -0.3264005482, 0.1942773163, 0.2120177448, 0.3103427291, -0.0777122527, -0.1350272447, 0.3094347417, 0.2279153913, 0.0914479867, -0.0499197878, -0.0001724482, 0.0871046484, 0.0528791025, 0.1187959388, 0.2298290133, -0.2490136176, 0.2472453862, 0.1440403461, -0.1963363439, 0.6334908605, -0.2126446068, 0.1752285659, 0.0135484384, 0.1499934942, 0.1881955564, 0.2245107591, -0.162212953, 0.0451646596, -0.0881453454, 0.3793267012, -0.027368214, -0.2565625012, -0.2931436002, -0.1320884526, -0.1986946166, -0.1579957008, -0.1441478282, -0.1489457488, -0.1024050862, -0.0446589626, -0.1182261556, 0.1992328465, 0.3403468132, -0.0247000512, -0.2250381261, 0.0977679491, -0.2728886306, 0.3071944118, 0.3286213279, -0.1297757477, 0.2076773793, 0.2605957389, -0.0464075767, -0.1676478982, 0.4961454868, 0.1140111983, 0.2068780065, -0.021497611, 0.0107029704, -0.0540998019, -0.1902091503, -0.0354236923, 0.349763006, 0.1588472277, -0.0343994014, 0.2833398879, 0.26093328, -0.2933726609, 0.32150051, 0.0872713178, 0.3063453734, -0.3373117745, 0.2293181717, 0.2238195091, 0.0739221945, 0.0377584808, 0.0405297019, -0.4696585536, 0.181496188, 0.1279188842, 0.1228669807, 0.1909832805, -0.0780123845, 0.141343534, 0.3039336205, 0.4013426304, -0.0131381853, -0.1722313464, -0.3034084737, -0.0036254455, -0.3544190824, 0.1287494749, 0.0759760588, 0.1695129275, 0.0299356803, -0.0934847221, -0.0590891354, 0.1956696361, 0.2524083257, -0.1620148718, -0.069170475, 0.0502986126, -0.273257494, -0.1341128796, -0.2345992923, -0.0629109591, 0.0285546836, -0.2441791892, 0.0685163289, -0.1467400938, 0.229465872, 0.0514237694, -0.2022013813, 0.045937445, 0.3193045259, 0.1166609526, 0.1934593916, 0.2269159406, 0.0233443547, -0.3008910716, -0.0823763311, 0.0295063462, 0.1298179626, -0.0685745776, -0.1311980784, 0.1367722005, 0.0155947683, -0.1310562491, -0.2281506062, 0.1964651644, 0.2685918212, -0.1264527291, -0.2299544215, 0.2669720054, 0.0997761413, -0.0800877064, -0.1554716378, 0.3830470741, 0.110518381, 0.215701431, -0.3221604228, -0.3846366107, 0.4996875226, -0.2832017541, -0.1804370582, -0.0807290897, 0.3498279452, 0.1744541675, -0.2703742087, -0.6277052164, -0.1034650654, 0.1124686524, 0.1279990673, -0.2131454051, 0.1316391379, -0.3035680652, 0.0427191406, -0.0807119235, 0.7712857723, 0.2134260237, -0.0308204144, 0.119395569, -0.3566485941 ]
https://github.com/huggingface/datasets/issues/3920
'datasets.features' is not a package
Hi @Arij-Aladel, You are using a very old version of our library `datasets`: 1.8.0 Current version is 2.0.0 (and the previous one was 1.18.4) Please, try to update `datasets` library and check if the problem persists: ```shell /env/bin/pip install -U datasets
@albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error?
41
'datasets.features' is not a package @albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error? Hi @Arij-Aladel, You are using a very old version of our library `datasets`: 1.8.0 Current version is 2.0.0 (and the previous one was 1.18.4) Please, try to update `datasets` library and check if the problem persists: ```shell /env/bin/pip install -U datasets
[ -0.3741754293, -0.2259198725, -0.0957689807, 0.3859054446, 0.3267723024, 0.1350313425, 0.2670208216, 0.2414320111, -0.3361455202, -0.1415681392, 0.2684734166, 0.5509799123, -0.2597140968, -0.1125493869, -0.0667067915, -0.2506271899, 0.191847384, 0.0886706337, -0.175399527, 0.0506083742, -0.1020834744, 0.1772279143, -0.3086732924, 0.1046834588, -0.4401830137, -0.1291007251, 0.0576625429, 0.0011677105, -0.1308837384, -0.3993217349, 0.1733084023, -0.1656587273, 0.2008812875, 0.5336258411, -0.0001102442, -0.1022817716, 0.3339244425, -0.2350672334, -0.4051909447, -0.269623816, 0.2239961624, -0.3448661268, 0.1405483186, -0.3205180466, -0.0648610294, -0.1218969598, -0.1956819594, -0.3246588707, -0.0889193639, 0.1999196261, 0.275256902, 0.2673622668, 0.3414528966, -0.1077918038, 0.1969593018, 0.2647700012, -0.2433832437, 0.0872197822, 0.2781102657, 0.0932176262, 0.1858001351, 0.3920754492, -0.4564201832, 0.1995441765, 0.534009397, -0.1901663542, -0.4218782485, -0.3149924874, 0.119056426, 0.1065383479, 0.7960876226, -0.3633456826, -0.2871998847, -0.0084399087, 0.02092514, -0.1926269829, 0.1773243099, 0.2702403665, -0.1127576753, -0.0654934719, -0.0351166576, -0.123567462, 0.1466797441, 0.0873880461, 0.0234814752, 0.2700718045, -0.2394393831, 0.2198878974, -0.0778224766, -0.151232928, 0.2789125443, 0.0992504284, 0.2550491691, 0.1950050294, -0.127466619, 0.0593903586, 0.03587538, -0.5418812037, -0.0232460294, 0.0867030695, -0.038979426, -0.0078037549, 0.0980109274, 0.0533463433, -0.0426886715, 0.227122739, 0.1153774932, 0.4202690423, 0.0367600434, -0.1019453704, 0.1479977369, -0.0050266995, -0.2203560919, -0.1163360327, -0.023935575, 0.2413009703, 0.2839542329, -0.0653352439, -0.1946767867, 0.0895600989, -0.1148723364, -0.1264281422, 0.0186783448, 0.3936140239, 0.0617717542, 0.1892163604, 0.2496025711, 0.0898541138, -0.1363845915, 0.13494201, -0.1018899754, 0.2601063251, -0.1946329921, -0.1482532918, 0.2276374847, -0.3055005074, 0.3545935154, -0.2395032048, 0.0195271187, 0.0681513473, 0.0189619157, -0.1080703884, 0.0093239527, 0.2394509614, -0.1829986572, 0.2677108645, 0.2797500193, 0.6432611346, -0.3090863228, 0.2902590334, -0.2692387104, -0.3517670631, -0.2852000594, 0.1958997846, 0.1038900763, 0.0913802832, 0.1703743637, -0.2150214463, 0.2958920896, -0.3047990799, 0.0618519224, -0.1140143871, 0.0703660101, -0.2477860451, 0.0903059468, 0.2864124775, -0.4072781503, -0.2413595319, 0.178834796, -0.040697746, 0.0558570363, -0.3058129251, -0.2195419371, 0.330499202, -0.2853320837, -0.1353887767, 0.348660022, -0.2800936401, -0.3074311316, 0.0020020886, -0.081931375, -0.1549827904, 0.0819932148, 0.1981030852, 0.0055796816, 0.1080358326, 0.142639637, 0.1517221481, 0.3037720919, -0.1995181888, -0.0355089083, -0.2358680964, 0.3622275889, 0.1398115307, 0.3074505627, -0.0239188243, 0.0582452416, 0.0744282752, -0.0656484663, 0.0496708266, -0.1429608911, 0.3088867664, 0.0822018385, 0.3442077637, 0.0646338165, -0.233840391, -0.1789041758, 0.1157387644, -0.0391770452, -0.0221635848, -0.4385867715, 0.1039016098, 0.0143681187, 0.0288831163, -0.2115478665, -0.295609504, 0.1296863556, 0.1759420186, -0.1191492081, -0.114318721, -0.3149427474, 0.5230892897, 0.1073751897, 0.0615915395, -0.3357557058, 0.2151217312, -0.3341528475, -0.3324253559, -0.0113322167, 0.2416033447, 0.4527861774, -0.1976844817, -0.1754534096, 0.2943204641, -0.1112558842, -0.2471626997, -0.1432572156, -0.1796559095, 0.0906140134, -0.2848009467, 0.2881482244, 0.2588491142, 0.1336265802, 0.0399491601, 0.1715029627, 0.156747669, 0.1792508066, 0.0423576571, 0.1538580507, 0.1563340127, 0.1408084631, -0.0135875056, 0.0491761677, -0.057255242, 0.3017376065, 0.0613721982, 0.1157726273, 0.0887283459, -0.2141782939, -0.1580190361, 0.2411474288, -0.0625278875, 0.1126919016, 0.0264633317, -0.3545200825, 0.3017970026, 0.3062615395, -0.5455058217, 0.4573798776, 0.1624426693, -0.2085908055, -0.0547156893, 0.0878467709, 0.134462744, 0.2282803506, 0.1700316817, -0.0701233596, 0.242151171, -0.141866833, 0.2356490642, -0.0488917157, -0.2774876356, -0.1123034731, 0.0452268571, -0.3060612381, 0.1804014295, -0.2832741737, 0.0769759193, -0.311924845, -0.3987554908, -0.1912990212, -0.0405016132, -0.1143324673, 0.09673886, 0.2792668939, 0.3615095913, -0.1512788981, -0.1177882701, 0.3305974305, -0.5154694915, 0.1445981711, 0.0788231343, -0.1144846007, 0.0261662416, 0.0128744245, 0.0196786281, 0.3810628057, -0.1107428148, 0.19321163, -0.3125232756, -0.1834489703, 0.2537642419, -0.2077492625, -0.1284193248, 0.2780029774, -0.0878007412, 0.1190968156, -0.3930124938, 0.2900565267, -0.1466543525, -0.1200966239, 0.1572495401, 0.0697195679, -0.2599534094, -0.0257710088, -0.7031164765, -0.4141612649, -0.4053668678, -0.163395524, 0.0979401991, 0.1934714168, 0.1647307128, 0.3009885252, 0.2713822126, 0.2801979482, 0.271680057, -0.0801219642, -0.1201181486, 0.3552944362, -0.1376415193, -0.2819041908, 0.0476393662, -0.0178219229, 0.0919327661, 0.3245988786, -0.3015485406, -0.0786709711, 0.098044008, 0.2499042451, -0.3075298965, 0.2871676385, 0.4976469874, 0.264823705, -0.0883166641, -0.1202773303, -0.1288151741, -0.2121380568, -0.274376303, 0.5441573858, 0.0898794234, 0.3591864705, -0.0874365866, 0.7763418555, 0.1134190336, -0.310706228, 0.2981354296, 0.0501734354, 0.3941995203, -0.1232939959, -0.5466150045, 0.1964445114, -0.1708869487, 0.0900067687, -0.0250411481, -0.2001859993, -0.1408825815, -0.2492640764, 0.1074454039, -0.1217596605, 0.0513096564, 0.0521422029, -0.2855058312, 0.4519855678, -0.2216455191, 0.2881194949, -0.2487686127, 0.142633751, 0.1584223211, 0.2209828943, 0.003038181, 0.077801019, -0.418787539, -0.1548287719, -0.1908406615, 0.29236871, 0.0410423763, 0.3743237257, -0.0757346451, -0.1354813278, -0.011224512, 0.0373673327, 0.4620535672, 0.2408918291, -0.2112064809, 0.303340286, -0.0270223618, -0.3668027818, -0.3584229946, 0.0249333605, 0.3707379699, 0.0371983983, 0.0258509833, -0.2176153064, -0.2117018998, 0.4089057446, 0.166239202, -0.065320313, -0.2008057237, -0.4966858923, -0.226784721, -0.5320194364, -0.159895137, -0.0320596583, 0.0863919482, -0.0181294736, -0.2054265738, -0.1696620584, -0.1352304965, 0.0647870302, -0.1818409562, 0.3392960429, -0.0979775935, 0.0694226921, 0.0574542694, 0.4522798359, 0.4305256307, 0.4637433887, 0.0985330418, -0.1733527333, 0.0461038277, -0.1046057567, 0.2627708316, 0.019664878, -0.1602573097, -0.2185632885, -0.3358820975, 0.0525831319, -0.2346057296, 0.0495925173, 0.3170799911, -0.1313389838, -0.4279489219, -0.2702711225, 0.3132436574, 0.2057369351, 0.1218485087, 0.2604930997, -0.3619425595, -0.1658416986, 0.1507198364, 0.1669396013, 0.832002461, 0.0399080664, -0.019364832, -0.0145780677, 0.0011983276, 0.1776901186, -0.4797195792, 0.2260254622, -0.2252613902, -0.2406471968, -0.2196824402, -0.2536159158, 0.3146798313, 0.0728859305, -0.3550720215, 0.3916527033, -0.3155170083, 0.0948951691, -0.0387433544, 0.020811243, 0.0311460141, -0.1235297844, 0.2180891633, 0.1626656204, -0.1866937131, 0.5380616784, -0.0775200799, 0.1343261898, -0.2729474604, -0.4975567162, -0.1790289581, 0.0172359738, -0.2991091907, 0.474440366, 0.0624649674, -0.4184193015, 0.0203179326, 0.1494355798, -0.1316711009, 0.030212786, -0.0559551343, 0.0209032707, 0.1136233509, -0.1629556268, -0.1587395221, 0.0608998016, 0.4380058646, -0.0121624507, -0.1201819852, 0.3007283211, -0.2026795447, -0.1291818172, 0.1304202527, -0.0090072555, 0.495325774, -0.3349505365, -0.1946909875, 0.1288369149, 0.0928375646, -0.0991464779, 0.1473836303, 0.0885861367, -0.2302597016, 0.2201618999, -0.060708791, -0.0464637578, -0.1455456018, 0.4257330298, 0.0251983441, -0.0971578881, 0.3082669973, 0.1296332181, -0.4059510827, -0.1364560276, 0.0021712873, 0.0617044382, -0.2413780689, -0.1518009007, 0.1043976471, -0.1124769077, -0.0941910595, 0.1932576001, 0.0708469599, 0.092888169, -0.2095055282, -0.2046211213, -0.4415662587, 0.0071332729, -0.2016975582, 0.2154622376, -0.0428722091, 0.1720273048, 0.2914315164, -0.0246320795, -0.3054953218, -0.0807793662, -0.1804268956, 0.0577302575, 0.3512425423, 0.1473183334, -0.2900456488, 0.0398367494, 0.1648929864, 0.0382486209, -0.1615435928, -0.1886723191, 0.0450864322, 0.0893666223, 0.0491183251, -0.0863401294, -0.2416265309, -0.3026329875, -0.0649451613, -0.12369591, 0.0407124981, 0.3058999479, 0.0044300468, 0.3837521672, -0.0833246335, -0.0187137518, -0.1275338084, 0.101023145, 0.0096924203, 0.1469866633, 0.2404685915, -0.1195094734, 0.1534274071, 0.2368828952, -0.3680010736, 0.0879846737, 0.1238759831, -0.0724204779, 0.2818974257, -0.236676082, 0.162278831, 0.1143203005, -0.0072010132, 0.2938678861, -0.4068267345, 0.0299130026, 0.2632195652, 0.2505464852, -0.3790967464, -0.3383804858, -0.1862895787, 0.0270664599, -0.14200598, 0.0368844941, 0.2599116862, 0.0424423181, 0.3502096236, 0.1094235331, 0.4588924348, 0.1047070846, 0.3214119375, 0.3904519379, 0.2506741583, 0.0752898082, 0.4124306142, 0.1002876386, 0.2061998397, 0.4392411113, -0.0833779499, 0.4404056668, 0.2258223593, 0.1102981567, 0.1334561408, -0.201267302, -0.0829209462, -0.0551707149, 0.3932672441, -0.089564912, -0.2029945403, 0.2844517827, -0.5359916091, -0.2480106801, 0.012953965, 0.1074215248, -0.2224736959, 0.1521674693, 0.2083339691, -0.0012788415, -0.024941707, -0.0003369855, 0.0607659332, -0.1424429566, 0.3217048347, 0.0612944923, -0.3756495714, -0.2069346458, 0.3435356617, 0.207227692, -0.0716866553, -0.1754912287, -0.0086286608, 0.0929415897, 0.0176665373, -0.1332242936, 0.2399518341, 0.4349507987, 0.3649120033, -0.2095133215, -0.216593951, -0.024999436, 0.0336006768, 0.0520870872, 0.218533501, -0.1864329875, 0.1656476557, 0.0499556363, 0.135855943, -0.1879781038, 0.0680150315, 0.2579866052, 0.0579100661, -0.1447478682, 0.3733616471, -0.4180745184, -0.3002009392, -0.1573030949, 0.1261444986, -0.5329145193, 0.3028824925, 0.6953946948, 0.2101636082, -0.1006442606, -0.0446719229, 0.057108745, -0.20953089, 0.2236498296, 0.2710387409, 0.0633525848, -0.2193596661, -0.0639906302, -0.3936754465, 0.3142835796, 0.1751276255, -0.0827025026, 0.1699685007, -0.1091706306, 0.059028741, 0.0520782135, -0.0065015219, -0.2984631658, 0.2461426854, -0.0059838286, -0.4277285933, -0.1810504645, -0.0622071251, 0.3620951474, 0.1331804693, -0.2224635482, -0.1555166543, -0.2244154215, 0.0695117265, -0.341569066, -0.3738587499, 0.2054355592, 0.1327001303, 0.7374691367, -0.2723686993, 0.5493059754, -0.0076914788, -0.1869064569, 0.0006312667, -0.0479661711, 0.0549227409, 0.1291265339, 0.1598286182, 0.3263170421, -0.1964203864, 0.0011585847, -0.507101953, 0.4513067603, 0.0263516102, -0.1768265516, -0.2571844459, 0.1179891601, -0.319188714, 0.0870798975, 0.2061222196, 0.1019252986, -0.0462816022, 0.194358483, -0.4337761998, -0.3168998063, 0.532830596, 0.0235353392, -0.2467391491, -0.0173222609, -0.0203883853, 0.0506090149, 0.1456362456, -0.7105303407, 0.0613142364, 0.3070733547, 0.0884948, -0.033046633, 0.0756953508, -0.0662494823, 0.0231671594, -0.0450640507, 0.4501078129, -0.2275493145, 0.0280778073, -0.0121200299, -0.1097365096 ]
https://github.com/huggingface/datasets/issues/3920
'datasets.features' is not a package
The problem I can no I have build my project on this version and old version on transformers. I have preprocessed the data again to use it. Thank for your reply
@albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error?
31
'datasets.features' is not a package @albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error? The problem I can no I have build my project on this version and old version on transformers. I have preprocessed the data again to use it. Thank for your reply
[ -0.3741754293, -0.2259198725, -0.0957689807, 0.3859054446, 0.3267723024, 0.1350313425, 0.2670208216, 0.2414320111, -0.3361455202, -0.1415681392, 0.2684734166, 0.5509799123, -0.2597140968, -0.1125493869, -0.0667067915, -0.2506271899, 0.191847384, 0.0886706337, -0.175399527, 0.0506083742, -0.1020834744, 0.1772279143, -0.3086732924, 0.1046834588, -0.4401830137, -0.1291007251, 0.0576625429, 0.0011677105, -0.1308837384, -0.3993217349, 0.1733084023, -0.1656587273, 0.2008812875, 0.5336258411, -0.0001102442, -0.1022817716, 0.3339244425, -0.2350672334, -0.4051909447, -0.269623816, 0.2239961624, -0.3448661268, 0.1405483186, -0.3205180466, -0.0648610294, -0.1218969598, -0.1956819594, -0.3246588707, -0.0889193639, 0.1999196261, 0.275256902, 0.2673622668, 0.3414528966, -0.1077918038, 0.1969593018, 0.2647700012, -0.2433832437, 0.0872197822, 0.2781102657, 0.0932176262, 0.1858001351, 0.3920754492, -0.4564201832, 0.1995441765, 0.534009397, -0.1901663542, -0.4218782485, -0.3149924874, 0.119056426, 0.1065383479, 0.7960876226, -0.3633456826, -0.2871998847, -0.0084399087, 0.02092514, -0.1926269829, 0.1773243099, 0.2702403665, -0.1127576753, -0.0654934719, -0.0351166576, -0.123567462, 0.1466797441, 0.0873880461, 0.0234814752, 0.2700718045, -0.2394393831, 0.2198878974, -0.0778224766, -0.151232928, 0.2789125443, 0.0992504284, 0.2550491691, 0.1950050294, -0.127466619, 0.0593903586, 0.03587538, -0.5418812037, -0.0232460294, 0.0867030695, -0.038979426, -0.0078037549, 0.0980109274, 0.0533463433, -0.0426886715, 0.227122739, 0.1153774932, 0.4202690423, 0.0367600434, -0.1019453704, 0.1479977369, -0.0050266995, -0.2203560919, -0.1163360327, -0.023935575, 0.2413009703, 0.2839542329, -0.0653352439, -0.1946767867, 0.0895600989, -0.1148723364, -0.1264281422, 0.0186783448, 0.3936140239, 0.0617717542, 0.1892163604, 0.2496025711, 0.0898541138, -0.1363845915, 0.13494201, -0.1018899754, 0.2601063251, -0.1946329921, -0.1482532918, 0.2276374847, -0.3055005074, 0.3545935154, -0.2395032048, 0.0195271187, 0.0681513473, 0.0189619157, -0.1080703884, 0.0093239527, 0.2394509614, -0.1829986572, 0.2677108645, 0.2797500193, 0.6432611346, -0.3090863228, 0.2902590334, -0.2692387104, -0.3517670631, -0.2852000594, 0.1958997846, 0.1038900763, 0.0913802832, 0.1703743637, -0.2150214463, 0.2958920896, -0.3047990799, 0.0618519224, -0.1140143871, 0.0703660101, -0.2477860451, 0.0903059468, 0.2864124775, -0.4072781503, -0.2413595319, 0.178834796, -0.040697746, 0.0558570363, -0.3058129251, -0.2195419371, 0.330499202, -0.2853320837, -0.1353887767, 0.348660022, -0.2800936401, -0.3074311316, 0.0020020886, -0.081931375, -0.1549827904, 0.0819932148, 0.1981030852, 0.0055796816, 0.1080358326, 0.142639637, 0.1517221481, 0.3037720919, -0.1995181888, -0.0355089083, -0.2358680964, 0.3622275889, 0.1398115307, 0.3074505627, -0.0239188243, 0.0582452416, 0.0744282752, -0.0656484663, 0.0496708266, -0.1429608911, 0.3088867664, 0.0822018385, 0.3442077637, 0.0646338165, -0.233840391, -0.1789041758, 0.1157387644, -0.0391770452, -0.0221635848, -0.4385867715, 0.1039016098, 0.0143681187, 0.0288831163, -0.2115478665, -0.295609504, 0.1296863556, 0.1759420186, -0.1191492081, -0.114318721, -0.3149427474, 0.5230892897, 0.1073751897, 0.0615915395, -0.3357557058, 0.2151217312, -0.3341528475, -0.3324253559, -0.0113322167, 0.2416033447, 0.4527861774, -0.1976844817, -0.1754534096, 0.2943204641, -0.1112558842, -0.2471626997, -0.1432572156, -0.1796559095, 0.0906140134, -0.2848009467, 0.2881482244, 0.2588491142, 0.1336265802, 0.0399491601, 0.1715029627, 0.156747669, 0.1792508066, 0.0423576571, 0.1538580507, 0.1563340127, 0.1408084631, -0.0135875056, 0.0491761677, -0.057255242, 0.3017376065, 0.0613721982, 0.1157726273, 0.0887283459, -0.2141782939, -0.1580190361, 0.2411474288, -0.0625278875, 0.1126919016, 0.0264633317, -0.3545200825, 0.3017970026, 0.3062615395, -0.5455058217, 0.4573798776, 0.1624426693, -0.2085908055, -0.0547156893, 0.0878467709, 0.134462744, 0.2282803506, 0.1700316817, -0.0701233596, 0.242151171, -0.141866833, 0.2356490642, -0.0488917157, -0.2774876356, -0.1123034731, 0.0452268571, -0.3060612381, 0.1804014295, -0.2832741737, 0.0769759193, -0.311924845, -0.3987554908, -0.1912990212, -0.0405016132, -0.1143324673, 0.09673886, 0.2792668939, 0.3615095913, -0.1512788981, -0.1177882701, 0.3305974305, -0.5154694915, 0.1445981711, 0.0788231343, -0.1144846007, 0.0261662416, 0.0128744245, 0.0196786281, 0.3810628057, -0.1107428148, 0.19321163, -0.3125232756, -0.1834489703, 0.2537642419, -0.2077492625, -0.1284193248, 0.2780029774, -0.0878007412, 0.1190968156, -0.3930124938, 0.2900565267, -0.1466543525, -0.1200966239, 0.1572495401, 0.0697195679, -0.2599534094, -0.0257710088, -0.7031164765, -0.4141612649, -0.4053668678, -0.163395524, 0.0979401991, 0.1934714168, 0.1647307128, 0.3009885252, 0.2713822126, 0.2801979482, 0.271680057, -0.0801219642, -0.1201181486, 0.3552944362, -0.1376415193, -0.2819041908, 0.0476393662, -0.0178219229, 0.0919327661, 0.3245988786, -0.3015485406, -0.0786709711, 0.098044008, 0.2499042451, -0.3075298965, 0.2871676385, 0.4976469874, 0.264823705, -0.0883166641, -0.1202773303, -0.1288151741, -0.2121380568, -0.274376303, 0.5441573858, 0.0898794234, 0.3591864705, -0.0874365866, 0.7763418555, 0.1134190336, -0.310706228, 0.2981354296, 0.0501734354, 0.3941995203, -0.1232939959, -0.5466150045, 0.1964445114, -0.1708869487, 0.0900067687, -0.0250411481, -0.2001859993, -0.1408825815, -0.2492640764, 0.1074454039, -0.1217596605, 0.0513096564, 0.0521422029, -0.2855058312, 0.4519855678, -0.2216455191, 0.2881194949, -0.2487686127, 0.142633751, 0.1584223211, 0.2209828943, 0.003038181, 0.077801019, -0.418787539, -0.1548287719, -0.1908406615, 0.29236871, 0.0410423763, 0.3743237257, -0.0757346451, -0.1354813278, -0.011224512, 0.0373673327, 0.4620535672, 0.2408918291, -0.2112064809, 0.303340286, -0.0270223618, -0.3668027818, -0.3584229946, 0.0249333605, 0.3707379699, 0.0371983983, 0.0258509833, -0.2176153064, -0.2117018998, 0.4089057446, 0.166239202, -0.065320313, -0.2008057237, -0.4966858923, -0.226784721, -0.5320194364, -0.159895137, -0.0320596583, 0.0863919482, -0.0181294736, -0.2054265738, -0.1696620584, -0.1352304965, 0.0647870302, -0.1818409562, 0.3392960429, -0.0979775935, 0.0694226921, 0.0574542694, 0.4522798359, 0.4305256307, 0.4637433887, 0.0985330418, -0.1733527333, 0.0461038277, -0.1046057567, 0.2627708316, 0.019664878, -0.1602573097, -0.2185632885, -0.3358820975, 0.0525831319, -0.2346057296, 0.0495925173, 0.3170799911, -0.1313389838, -0.4279489219, -0.2702711225, 0.3132436574, 0.2057369351, 0.1218485087, 0.2604930997, -0.3619425595, -0.1658416986, 0.1507198364, 0.1669396013, 0.832002461, 0.0399080664, -0.019364832, -0.0145780677, 0.0011983276, 0.1776901186, -0.4797195792, 0.2260254622, -0.2252613902, -0.2406471968, -0.2196824402, -0.2536159158, 0.3146798313, 0.0728859305, -0.3550720215, 0.3916527033, -0.3155170083, 0.0948951691, -0.0387433544, 0.020811243, 0.0311460141, -0.1235297844, 0.2180891633, 0.1626656204, -0.1866937131, 0.5380616784, -0.0775200799, 0.1343261898, -0.2729474604, -0.4975567162, -0.1790289581, 0.0172359738, -0.2991091907, 0.474440366, 0.0624649674, -0.4184193015, 0.0203179326, 0.1494355798, -0.1316711009, 0.030212786, -0.0559551343, 0.0209032707, 0.1136233509, -0.1629556268, -0.1587395221, 0.0608998016, 0.4380058646, -0.0121624507, -0.1201819852, 0.3007283211, -0.2026795447, -0.1291818172, 0.1304202527, -0.0090072555, 0.495325774, -0.3349505365, -0.1946909875, 0.1288369149, 0.0928375646, -0.0991464779, 0.1473836303, 0.0885861367, -0.2302597016, 0.2201618999, -0.060708791, -0.0464637578, -0.1455456018, 0.4257330298, 0.0251983441, -0.0971578881, 0.3082669973, 0.1296332181, -0.4059510827, -0.1364560276, 0.0021712873, 0.0617044382, -0.2413780689, -0.1518009007, 0.1043976471, -0.1124769077, -0.0941910595, 0.1932576001, 0.0708469599, 0.092888169, -0.2095055282, -0.2046211213, -0.4415662587, 0.0071332729, -0.2016975582, 0.2154622376, -0.0428722091, 0.1720273048, 0.2914315164, -0.0246320795, -0.3054953218, -0.0807793662, -0.1804268956, 0.0577302575, 0.3512425423, 0.1473183334, -0.2900456488, 0.0398367494, 0.1648929864, 0.0382486209, -0.1615435928, -0.1886723191, 0.0450864322, 0.0893666223, 0.0491183251, -0.0863401294, -0.2416265309, -0.3026329875, -0.0649451613, -0.12369591, 0.0407124981, 0.3058999479, 0.0044300468, 0.3837521672, -0.0833246335, -0.0187137518, -0.1275338084, 0.101023145, 0.0096924203, 0.1469866633, 0.2404685915, -0.1195094734, 0.1534274071, 0.2368828952, -0.3680010736, 0.0879846737, 0.1238759831, -0.0724204779, 0.2818974257, -0.236676082, 0.162278831, 0.1143203005, -0.0072010132, 0.2938678861, -0.4068267345, 0.0299130026, 0.2632195652, 0.2505464852, -0.3790967464, -0.3383804858, -0.1862895787, 0.0270664599, -0.14200598, 0.0368844941, 0.2599116862, 0.0424423181, 0.3502096236, 0.1094235331, 0.4588924348, 0.1047070846, 0.3214119375, 0.3904519379, 0.2506741583, 0.0752898082, 0.4124306142, 0.1002876386, 0.2061998397, 0.4392411113, -0.0833779499, 0.4404056668, 0.2258223593, 0.1102981567, 0.1334561408, -0.201267302, -0.0829209462, -0.0551707149, 0.3932672441, -0.089564912, -0.2029945403, 0.2844517827, -0.5359916091, -0.2480106801, 0.012953965, 0.1074215248, -0.2224736959, 0.1521674693, 0.2083339691, -0.0012788415, -0.024941707, -0.0003369855, 0.0607659332, -0.1424429566, 0.3217048347, 0.0612944923, -0.3756495714, -0.2069346458, 0.3435356617, 0.207227692, -0.0716866553, -0.1754912287, -0.0086286608, 0.0929415897, 0.0176665373, -0.1332242936, 0.2399518341, 0.4349507987, 0.3649120033, -0.2095133215, -0.216593951, -0.024999436, 0.0336006768, 0.0520870872, 0.218533501, -0.1864329875, 0.1656476557, 0.0499556363, 0.135855943, -0.1879781038, 0.0680150315, 0.2579866052, 0.0579100661, -0.1447478682, 0.3733616471, -0.4180745184, -0.3002009392, -0.1573030949, 0.1261444986, -0.5329145193, 0.3028824925, 0.6953946948, 0.2101636082, -0.1006442606, -0.0446719229, 0.057108745, -0.20953089, 0.2236498296, 0.2710387409, 0.0633525848, -0.2193596661, -0.0639906302, -0.3936754465, 0.3142835796, 0.1751276255, -0.0827025026, 0.1699685007, -0.1091706306, 0.059028741, 0.0520782135, -0.0065015219, -0.2984631658, 0.2461426854, -0.0059838286, -0.4277285933, -0.1810504645, -0.0622071251, 0.3620951474, 0.1331804693, -0.2224635482, -0.1555166543, -0.2244154215, 0.0695117265, -0.341569066, -0.3738587499, 0.2054355592, 0.1327001303, 0.7374691367, -0.2723686993, 0.5493059754, -0.0076914788, -0.1869064569, 0.0006312667, -0.0479661711, 0.0549227409, 0.1291265339, 0.1598286182, 0.3263170421, -0.1964203864, 0.0011585847, -0.507101953, 0.4513067603, 0.0263516102, -0.1768265516, -0.2571844459, 0.1179891601, -0.319188714, 0.0870798975, 0.2061222196, 0.1019252986, -0.0462816022, 0.194358483, -0.4337761998, -0.3168998063, 0.532830596, 0.0235353392, -0.2467391491, -0.0173222609, -0.0203883853, 0.0506090149, 0.1456362456, -0.7105303407, 0.0613142364, 0.3070733547, 0.0884948, -0.033046633, 0.0756953508, -0.0662494823, 0.0231671594, -0.0450640507, 0.4501078129, -0.2275493145, 0.0280778073, -0.0121200299, -0.1097365096 ]
https://github.com/huggingface/datasets/issues/3919
AttributeError: 'DatasetDict' object has no attribute 'features'
You are likely trying to get the `features` from a `DatasetDict`, a dictionary containing `Datasets`. You probably first want to index into a particular split from your `DatasetDict` i.e. `dataset['train'].features`. For example ```python ds = load_dataset('mnist') ds.features ``` Returns ```python --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) [<ipython-input-39-791c1f9df6c2>](https://localhost:8080/#) in <module>() ----> 1 ds.features AttributeError: 'DatasetDict' object has no attribute 'features' ``` If we look at the dataset variable, we see it is a `DatasetDict`: ```python print(ds) DatasetDict({ train: Dataset({ features: ['image', 'label'], num_rows: 60000 }) test: Dataset({ features: ['image', 'label'], num_rows: 10000 }) }) ``` We can grab the features from a split by indexing into `train`: ```python ds['train'].features {'image': Image(decode=True, id=None), 'label': ClassLabel(num_classes=10, names=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], id=None)} ``` Hope that helps
## Describe the bug Receiving the error when trying to check for Dataset features ## Steps to reproduce the bug from datasets import Dataset dataset = Dataset.from_pandas(df[['id', 'words', 'bboxes', 'ner_tags', 'image_path']]) dataset.features ## Expected results A clear and concise description of the expected results. ## Actual results Getting the following errror AttributeError: 'DatasetDict' object has no attribute 'features' ## Environment info Copy-and-paste the text below in your GitHub issue. - `datasets` version: 1.18.4 - Platform: Linux-4.14.252-131.483.amzn1.x86_64-x86_64-with-glibc2.9 - Python version: 3.6.13 - PyArrow version: 6.0.1
129
AttributeError: 'DatasetDict' object has no attribute 'features' ## Describe the bug Receiving the error when trying to check for Dataset features ## Steps to reproduce the bug from datasets import Dataset dataset = Dataset.from_pandas(df[['id', 'words', 'bboxes', 'ner_tags', 'image_path']]) dataset.features ## Expected results A clear and concise description of the expected results. ## Actual results Getting the following errror AttributeError: 'DatasetDict' object has no attribute 'features' ## Environment info Copy-and-paste the text below in your GitHub issue. - `datasets` version: 1.18.4 - Platform: Linux-4.14.252-131.483.amzn1.x86_64-x86_64-with-glibc2.9 - Python version: 3.6.13 - PyArrow version: 6.0.1 You are likely trying to get the `features` from a `DatasetDict`, a dictionary containing `Datasets`. You probably first want to index into a particular split from your `DatasetDict` i.e. `dataset['train'].features`. For example ```python ds = load_dataset('mnist') ds.features ``` Returns ```python --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) [<ipython-input-39-791c1f9df6c2>](https://localhost:8080/#) in <module>() ----> 1 ds.features AttributeError: 'DatasetDict' object has no attribute 'features' ``` If we look at the dataset variable, we see it is a `DatasetDict`: ```python print(ds) DatasetDict({ train: Dataset({ features: ['image', 'label'], num_rows: 60000 }) test: Dataset({ features: ['image', 'label'], num_rows: 10000 }) }) ``` We can grab the features from a split by indexing into `train`: ```python ds['train'].features {'image': Image(decode=True, id=None), 'label': ClassLabel(num_classes=10, names=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], id=None)} ``` Hope that helps
[ -0.0139543787, -0.0352718271, -0.1028816327, 0.3369745016, 0.327742517, 0.0226520803, 0.3033012152, 0.4544644952, 0.1717875451, 0.1745668203, 0.069192715, 0.4477998316, -0.2436327636, 0.1366270185, -0.1275878996, -0.2425020486, -0.0294217896, 0.1705446392, 0.0074410383, -0.0669294894, -0.1444382817, 0.0249764491, -0.2056642473, 0.2658260763, -0.5032063723, 0.0041904254, -0.1803883463, 0.0551750623, -0.0340074487, -0.4680500329, 0.1524224877, -0.1613830626, -0.0361130014, 0.3058142662, -0.0001046485, 0.0934292451, 0.1693635881, 0.0507013053, -0.2813840508, -0.3659470379, -0.2892958522, -0.2373003662, 0.1456834972, -0.4955086112, -0.1954220235, -0.1856525391, -0.006068706, -0.1622930169, -0.0153885977, 0.5002400875, 0.2862967253, 0.267486155, 0.141143769, -0.0530578531, 0.3056080043, 0.1923505813, -0.1773319989, 0.1275512278, 0.0069925152, -0.0558149777, 0.0960312709, 0.3097034693, -0.1083196923, 0.2209370881, 0.181583479, 0.2157307118, 0.0332482606, -0.3965556324, -0.0977073014, 0.1843280047, 0.4246912599, -0.2445252091, -0.4067667425, -0.2457100749, -0.014759575, -0.230776757, 0.100406222, 0.0007497502, -0.0898919776, 0.1927998513, 0.0209609028, 0.0275947731, -0.0649344996, 0.1470613927, -0.3547362983, 0.1412924379, -0.0176382754, 0.0029905024, 0.0703660026, -0.034923885, -0.0588965453, -0.0553091876, 0.0075656869, 0.0637784526, -0.0985784829, -0.0977543294, 0.3015587032, -0.5063887835, 0.0051942351, 0.2426718473, -0.1163257882, -0.1348852962, -0.1983840913, 0.1586668789, 0.1446681321, 0.0833617896, 0.0350314081, 0.509703815, 0.2166754156, 0.1080359071, -0.3452062309, -0.1707902998, -0.0162773672, -0.0945138112, 0.3003095388, -0.0109656891, 0.728928566, -0.2296234518, -0.4610453546, 0.1562016159, -0.3106963038, -0.0673846453, 0.1400637329, 0.3057179749, -0.1245663241, -0.0354195796, 0.0548493154, 0.0810771063, -0.166922316, -0.0454202108, -0.2975521088, 0.2615829706, 0.0476351641, -0.2052538246, 0.1910094172, -0.1375057548, 0.2233581245, -0.1845986843, 0.0925449803, -0.190154165, -0.1291978061, -0.3210466802, -0.0064203292, 0.2904094458, -0.1999136955, 0.0721983984, 0.3901295662, -0.3969812691, -0.2039237022, 0.0764778778, -0.2023284882, -0.4439239204, -0.2131587267, 0.2737353444, -0.0764299184, 0.0496045724, -0.1618965566, 0.1118439361, -0.0078233751, 0.075184986, 0.0321567096, -0.1152649596, -0.1354954541, -0.1909541339, 0.313469559, 0.2843308747, -0.2474873662, 0.0093106879, 0.090228796, -0.1606283188, 0.0909568593, 0.1020753533, -0.138186276, 0.3152838945, -0.2110373378, 0.1819292903, 0.2330946624, -0.1724324524, -0.5221558213, 0.0633389056, 0.0435896628, 0.1421289444, -0.0270848274, 0.2009765953, 0.2032218426, 0.1988319755, 0.1635823548, 0.3399918377, -0.0500383973, -0.0707916468, -0.161082536, 0.07364171, 0.4470185041, 0.0506449305, 0.2065846324, 0.0810286403, -0.0240459461, -0.047586374, 0.0287333187, -0.0452055708, -0.1470843852, -0.0327181481, 0.4153058827, 0.2657884061, 0.0762315989, -0.3513879478, -0.1722136736, 0.3042084575, 0.1937072724, 0.1506780684, -0.4737116992, -0.1206257343, -0.2144540846, 0.2057484537, -0.1272594333, -0.2977295518, 0.2200207561, -0.137081489, -0.0433279946, 0.1437819749, -0.3122765422, 0.3609172106, -0.2474933267, 0.1307645291, -0.0995528772, 0.5904867649, -0.3222887218, -0.0953241661, -0.0666668564, 0.0626063272, 0.0914354175, 0.1395886242, -0.2476432174, 0.2197595835, 0.2153306603, -0.1962949634, 0.0948898047, -0.0172454957, 0.1623134464, -0.3762049377, -0.054975301, 0.3310412169, 0.2934526801, -0.0649017841, -0.0363517851, 0.3346619904, 0.0796714202, 0.250918597, 0.0648450479, 0.2192292958, 0.2473460883, -0.1129456237, -0.0318535641, -0.2149164528, 0.0220092498, -0.3583455384, -0.0385128148, 0.0496105626, -0.4896143377, -0.0290708151, 0.4284895957, 0.0544687584, 0.1105014086, 0.0999057293, -0.0485194884, 0.1955184489, -0.0648038015, -0.0397373587, 0.2161151469, 0.203150928, -0.0835593119, 0.0622058697, -0.1864527315, 0.1211726144, 0.128170535, 0.1910238415, 0.0569600835, 0.0325750746, 0.208579272, 0.0520020463, -0.1357360184, -0.5500067472, -0.151880011, 0.4341032803, -0.3963291049, 0.1454719305, -0.3453610539, -0.2158286572, 0.0458570719, -0.4399473071, -0.1712983102, -0.3245243132, 0.1289072186, 0.0612180158, -0.1060044095, 0.1506308168, -0.3811450601, -0.1587755233, 0.1644227505, -0.0992909372, 0.1449335665, -0.1942549646, -0.1771900058, 0.1152006239, 0.0990976766, 0.2453583181, 0.2539454401, -0.0662797987, 0.0997800678, -0.267975837, -0.2552329302, 0.0208045356, -0.2323754281, 0.3229971528, 0.1374627054, 0.13346605, -0.0198391117, -0.2360450029, 0.385537684, 0.1268572807, -0.2612270117, 0.2780449986, 0.1323847473, -0.2081914395, -0.0669415891, -0.4795388281, -0.2876952291, -0.3865876496, -0.0369016118, 0.1697721928, 0.3126046062, 0.3071244061, 0.2387266904, 0.3306829929, 0.2524981499, 0.2014571279, -0.1052922606, 0.0441412516, 0.4239529371, 0.0147948647, -0.2691438496, -0.0668340176, -0.1950061172, -0.0866867229, -0.0120135853, -0.5371825695, -0.0386206619, -0.2667988539, 0.4838601053, 0.1351089478, -0.1680029333, 0.3307093382, 0.1146489903, -0.1914400905, -0.0527157374, -0.1231917888, 0.0837887153, 0.097491242, 0.0211224258, -0.0127968332, 0.319983691, 0.022249274, 0.40223369, -0.1692669839, -0.0887335464, 0.2956228852, -0.3172039688, 0.1582514495, -0.1855293661, -0.6727229357, -0.0512297004, -0.0626292899, -0.2304855883, 0.002634269, -0.0029871173, -0.0152218537, -0.3631169498, -0.0960179344, -0.2224200964, -0.30288589, 0.0302470028, -0.1208963618, 0.1064291149, -0.0642736554, 0.1870152354, -0.2163691074, 0.0958892256, -0.0148857096, 0.1636141092, 0.0442632399, -0.2257937789, -0.4044080973, -0.3371914327, -0.2090737373, 0.1483467966, 0.1273568273, 0.2618356049, 0.0498553701, -0.0579727925, 0.0892573148, -0.0149765275, 0.489595443, 0.1357901841, -0.0323521346, 0.2120751441, -0.21763964, -0.2172428071, -0.1886544079, -0.3267664313, 0.310670495, -0.0887857303, 0.3744091988, -0.1566451788, -0.0188488998, 0.3549901247, 0.0423570424, -0.1921166331, 0.0076043475, -0.2045011073, -0.1318262964, -0.4340814948, 0.1070500687, 0.123861894, 0.2118687332, 0.0905404985, -0.0727969632, -0.270041883, -0.0518175773, 0.2788481116, 0.2301570326, 0.1539461911, -0.1954510361, 0.2743293941, -0.1388855577, 0.0595436618, 0.2998699844, 0.5448806882, 0.1202960759, -0.4198369384, -0.2035866082, -0.0699330717, 0.2053839266, 0.0982709676, -0.1758167446, -0.1104749665, -0.1030477434, 0.1261432767, -0.1462100595, 0.0890377387, 0.4279269874, -0.0005541352, -0.3600715101, -0.4447742701, 0.4459324181, 0.0134462975, -0.0058555789, 0.3476970792, 0.2685437202, -0.257581532, 0.4551395774, -0.0545319691, 0.8263828158, 0.1690226048, -0.087917462, 0.4189342558, -0.0203651376, 0.4066743851, 0.076378502, 0.2242812663, -0.2211878151, -0.5563561916, -0.157977581, -0.0321920775, 0.1238583624, -0.0281449612, -0.2052315325, 0.2231063992, -0.1838386804, 0.0575307719, -0.0553907864, 0.1546046585, 0.1757769436, -0.0180762764, -0.3529492021, 0.2140999436, -0.193825379, 0.3441389799, 0.1962535381, 0.0326468162, -0.4199728072, -0.1193949357, -0.3849218488, 0.0194742549, 0.0543288179, 0.3339779973, 0.3449805081, -0.2496455461, -0.0294214357, -0.061532896, 0.0299494825, 0.1405118704, -0.1061217487, 0.1437110007, 0.1349935383, 0.0425152183, 0.0628454909, 0.0096749794, 0.6006606221, -0.0131206503, -0.4013056755, 0.2149406672, -0.0345334187, -0.2119119018, 0.1476621181, 0.0535327569, 0.0860822126, -0.3956760168, -0.2919695079, -0.0663805082, 0.0281337183, -0.3174699247, 0.2359103262, -0.0070796688, -0.2666730285, 0.1384609193, 0.110539034, -0.2450610101, -0.1468662471, 0.1371887475, 0.0638745278, 0.3378024995, 0.3366075754, 0.2100259513, -0.2473028749, -0.2064003199, -0.0255425796, 0.1453212947, -0.2119466811, 0.1934392899, -0.1524317563, 0.1112300605, -0.1497706622, 0.2360434085, 0.0422436036, 0.1112615988, -0.0188508667, -0.4311853945, -0.2784326673, 0.1666696072, 0.0005846841, 0.2750487924, -0.1306553483, 0.0908420756, 0.0400857367, 0.0629138499, -0.3935370743, 0.030800432, -0.391690284, 0.2474660724, 0.1939093024, 0.1318316907, 0.038815055, -0.2472523302, 0.3335710466, -0.0518505126, 0.1046713218, -0.3349895477, -0.1697628647, 0.0686272755, 0.0551452339, -0.0310401842, -0.0340650789, -0.1074201539, -0.0721775442, -0.2481408268, -0.0680958182, 0.4209645987, -0.0757355839, 0.5515307784, 0.1255431771, -0.0190742277, 0.1087167561, 0.1017575338, -0.1329790652, 0.2903516293, 0.2900035679, 0.1152318344, -0.0821107849, 0.0493226461, -0.472533524, 0.1127387509, -0.5414894819, 0.1366928071, 0.3394869268, -0.3014332056, 0.1147219613, 0.1622470468, 0.248012796, 0.1011641398, -0.2001187354, 0.0146411341, 0.2555598915, 0.330152005, -0.4344117045, -0.0821259841, 0.348764807, -0.0735250786, 0.1315859556, 0.2567425072, -0.0536117181, 0.0511545539, -0.3148892522, 0.1738313586, 0.2143934518, 0.0188545231, 0.0024237211, 0.3287141323, -0.0304793697, -0.0409414805, 0.2120601982, 0.146187678, 0.3032191992, 0.6305633783, -0.1397873461, 0.0880936608, 0.2679825127, 0.1671962589, 0.1348918676, -0.1000871658, 0.0772703439, -0.0468896441, -0.1009976417, -0.1399678886, -0.1059845015, 0.0459437668, -0.1659509689, 0.0221280418, 0.1040909365, 0.2415409237, -0.0410723425, 0.1642575562, 0.0741804093, -0.1415605545, -0.207026571, -0.1448901743, 0.0789493322, -0.2202021629, 0.1568159908, 0.0455110818, -0.2033627033, -0.3547032773, 0.4269626439, 0.0353797115, 0.3172417581, -0.2673820257, 0.0366060473, 0.2346009314, -0.0540668443, 0.1580450535, 0.241459772, 0.4818296432, 0.1923316866, -0.1491618454, -0.0316180103, -0.2378742248, -0.3354159892, 0.0276826844, 0.1586284488, -0.2229626179, 0.2576503456, 0.2240986377, 0.2217804641, -0.2038117796, 0.0785445198, 0.1469433606, 0.2628460228, -0.3895900846, 0.5054509044, 0.1386559457, -0.2801479995, -0.0916794837, -0.1055185273, -0.2721464634, -0.4060483575, 0.2506380379, 0.1136495322, 0.1580530256, 0.0957263187, 0.1341792643, -0.1129943877, 0.1121675149, 0.3616018891, 0.346811384, -0.1868410558, 0.185073331, -0.5115492344, 0.0621543378, -0.2499551624, -0.2322894633, 0.1944593042, 0.2638544142, -0.1492574662, 0.1543678045, 0.1734953672, 0.10611552, -0.018980382, 0.0940877721, -0.3223616183, -0.3729758859, -0.2423781157, 0.0081530409, -0.1081028804, -0.0880070031, -0.0644600317, -0.3474467695, 0.171140939, 0.0122815836, -0.2106676996, 0.1665089875, 0.3205663562, 0.2840231955, 0.098540768, 0.3889376521, 0.0322172977, 0.1476727426, -0.0645578876, -0.1918976009, -0.2020215094, 0.2568940222, 0.1049489751, 0.549100101, 0.0225009788, -0.2342220843, -0.2337852716, 0.5635036826, 0.1775515676, -0.3478621542, -0.1432752758, 0.229232654, -0.1711996794, 0.0299992114, -0.0294428878, 0.1343878359, 0.0235316884, 0.1115621552, -0.0961532444, -0.589437604, 0.516913712, -0.3480846882, -0.313834697, -0.2093979418, 0.1861826181, 0.4606849849, 0.0855022669, -0.4386585355, -0.2620376945, 0.4400903583, -0.1149360687, -0.237629652, 0.0237667114, 0.0643520802, 0.2617910504, -0.0088169938, 0.3274317682, -0.1502256393, -0.0557186678, 0.0847708955, -0.1101993844 ]
https://github.com/huggingface/datasets/issues/3918
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
Hi @willowdong! These issues were fixed on master. We will have a new release of `datasets` later today. In the meantime, you can avoid these issues by installing `datasets` from master as follows: ```bash pip install git+https://github.com/huggingface/datasets.git ```
## Describe the bug Can't load the dataset ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset('multi_news') dataset_2=load_dataset("reddit_tifu", "long") ## Actual results raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info - `datasets` version: 1.18.4 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.0 - PyArrow version: 6.0.1
38
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files ## Describe the bug Can't load the dataset ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset('multi_news') dataset_2=load_dataset("reddit_tifu", "long") ## Actual results raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info - `datasets` version: 1.18.4 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.0 - PyArrow version: 6.0.1 Hi @willowdong! These issues were fixed on master. We will have a new release of `datasets` later today. In the meantime, you can avoid these issues by installing `datasets` from master as follows: ```bash pip install git+https://github.com/huggingface/datasets.git ```
[ -0.3251983821, 0.1044453904, -0.120897755, 0.1940419525, 0.2922667563, 0.0498715974, 0.121732384, 0.3344367743, 0.0943165869, 0.1404138952, -0.1278532594, 0.2029476762, 0.0496361442, 0.0912993625, -0.2518990636, 0.2652890086, 0.0160791352, -0.0456767157, -0.1795181334, -0.023871664, -0.2421698421, 0.230471611, -0.1558197886, -0.1697173715, -0.1419749707, 0.173864156, 0.0524108261, 0.2872042656, -0.0756196752, -0.230106011, 0.1201070175, 0.1664702296, -0.0833460018, 0.5554540157, -0.000103766, 0.1744942665, 0.3435875177, -0.0208407436, -0.1663467288, -0.3262063563, -0.4284008741, -0.3796932995, -0.1170198396, -0.2062365115, -0.0184688102, 0.078329429, -0.0458126813, -0.112077795, 0.2142175883, 0.417229563, 0.3292239904, 0.4237022102, 0.1001988053, -0.0719452277, 0.3064057231, -0.1023231819, -0.0310439151, 0.1829221398, 0.0206572954, -0.0657718182, -0.0972565711, 0.3408413231, -0.1711777598, 0.1619863957, -0.1531765461, -0.0198605303, 0.0802554637, -0.1836102903, 0.251678139, 0.3387812376, 0.3033505976, -0.1283686906, -0.3122382164, -0.0575099662, -0.1006447151, 0.0861350819, 0.3719237149, 0.2933352292, -0.0934509635, 0.1883302629, -0.4651936889, 0.1557199359, 0.0345451944, 0.2467759848, 0.0937366039, 0.0685846359, -0.027818229, 0.0301928911, 0.0749736652, -0.1127654836, 0.4349048138, -0.3108537495, 0.0576592125, -0.0511791371, -0.4282951057, -0.0063119843, 0.1534119695, 0.2646366954, 0.3667001426, 0.1967823952, 0.0601165593, 0.1350748837, -0.3205795586, 0.2007721514, 0.0059415936, -0.0350745693, -0.0690988749, 0.1592849791, 0.3608613312, 0.194121778, -0.0950052962, 0.1182544306, -0.0038034583, -0.2770172656, 0.2882762849, 0.0128533551, 0.2886621058, -0.3414409161, -0.3861631155, 0.1806574315, 0.0578779913, -0.214920938, 0.1329740286, 0.4688466191, -0.2798303366, 0.1832853109, -0.1679289341, 0.2299315929, -0.1847196519, -0.0755025595, -0.3305083215, -0.0281461477, -0.1138713211, -0.0106405457, 0.2079799622, -0.1856895685, 0.3372868896, 0.0825712904, 0.115561597, -0.1586875618, 0.1571112424, -0.1422628015, -0.041609697, 0.3967608809, 0.1231290027, 0.1533686072, 0.2573883235, -0.0121999281, -0.0799764469, 0.177955389, -0.3896894157, -0.2065826654, -0.0382686518, 0.3383522928, -0.2754592597, -0.0832758099, -0.0892009735, -0.0960429981, 0.2325137556, -0.1623980403, -0.0351919532, -0.176938504, -0.1138745993, -0.2432810962, 0.180784151, 0.236261934, -0.0967485085, 0.0320524275, 0.0143094463, -0.1599157453, 0.1947911233, 0.227704674, -0.1625548899, -0.0287958682, -0.1713344902, -0.0172273032, 0.247847721, -0.2369930595, -0.5096582174, 0.0653475374, -0.0739463344, 0.294498235, 0.1033965051, 0.0532838628, -0.1902151853, -0.048377905, 0.1423815042, 0.2900881767, 0.1312144101, 0.2479983866, -0.3040176332, -0.3199297786, 0.1130617782, 0.1988230795, 0.1305351108, -0.0116920294, 0.2603777051, -0.2279060781, 0.3221949935, -0.1326316744, -0.1002599448, 0.2756307721, 0.2547568083, 0.081041038, 0.0635157228, -0.2972932756, -0.4121533632, 0.2457029223, -0.0383021832, -0.0165145155, -0.0944480747, -0.1573407948, -0.3146997392, -0.0892282128, -0.1588066071, -0.0179577563, 0.2392258346, 0.3178257048, 0.2121139169, 0.0424901582, -0.0707751513, 0.2960856855, -0.2416674346, -0.0448923372, -0.2910604775, 0.5378288627, -0.2003883123, -0.0581435077, 0.2150563747, 0.0266439226, 0.2615157962, -0.1005898118, -0.1682827324, 0.5476422906, 0.16511406, 0.1127802655, 0.1127054691, 0.2415401191, -0.0011959133, -0.442137152, -0.0753179118, 0.6118806005, 0.0621359684, -0.0758353472, -0.3208577633, 0.368575573, -0.1385651231, 0.1292602271, 0.129717499, 0.0541937612, 0.3685266972, -0.2475692034, -0.0145096369, -0.164444387, 0.2934491038, -0.1132428572, -0.0618823618, 0.0249493998, -0.1543206424, -0.0227824561, 0.4171391428, -0.0300077274, 0.0559670739, 0.1548722535, 0.0113447001, -0.1598730534, -0.0979762077, 0.4290878773, 0.3949560821, 0.234875828, 0.025972005, 0.0385706164, -0.1639009267, -0.22161448, 0.1419146657, 0.0329908878, 0.1728030145, 0.3657890856, 0.2601340711, -0.0630246326, -0.3595381677, -0.1961609125, 0.0646396652, 0.2093337774, -0.4375879169, -0.0943974033, -0.2645991445, -0.025245985, -0.1275027394, -0.0417168848, -0.1885175258, -0.4284150898, 0.0087419245, 0.2958369553, -0.092961207, 0.2532457411, -0.2271344513, -0.002973923, 0.1672320813, -0.0196523368, 0.1114532873, -0.0922428295, 0.0206034258, 0.1587140858, 0.3771227598, 0.0559359267, 0.2599858046, -0.283097446, -0.1039593965, -0.5253943205, -0.2716298997, 0.0108473171, -0.1509877741, 0.2281979024, 0.1280445904, 0.1844861805, -0.005972764, -0.1572432816, 0.3338562548, -0.2140404582, -0.2097414434, 0.237319991, 0.0135370847, -0.0789206475, 0.0980431512, -0.2553718984, -0.2656971216, -0.36810413, -0.0525882877, 0.1545406729, 0.1965331733, 0.1734974533, 0.2003932744, 0.1242668256, 0.117433399, 0.2431340665, -0.3164872229, -0.471526891, 0.5315618515, -0.2029934376, -0.4594939649, -0.1220104173, 0.0976998359, 0.073192209, 0.1219044626, -0.5819916725, -0.3393841088, -0.3437161744, 0.083542265, 0.1165413186, 0.1027765945, 0.1815559864, 0.0183458477, -0.2554380894, -0.2616175413, -0.0955474451, -0.0749541745, -0.1663517952, 0.2495714873, -0.1013026908, 0.1387452036, -0.0595771186, 0.3682272434, 0.391356796, 0.089582637, 0.129749611, 0.0178747512, 0.4014891386, -0.1094048247, -0.3224554956, -0.0473430268, -0.1199726835, -0.0172932278, 0.2794905901, 0.0282913391, -0.0233290568, -0.2053458244, 0.0001871275, -0.3878914714, -0.1535153091, -0.0224874727, -0.0536894016, 0.0624232367, 0.1485909224, 0.0420649685, -0.0823547468, -0.2422442287, 0.1733536869, 0.1939861625, -0.3353391588, -0.2439326346, -0.6115711927, 0.0445623025, -0.0367055871, 0.4017434716, 0.1188622788, 0.264233619, 0.0852607861, -0.1846611947, 0.0009689715, -0.2233189046, 0.3589746654, -0.4670086801, 0.2238014787, 0.0927913785, 0.084491536, -0.2105869204, -0.1031833068, -0.1590612531, 0.1876417547, 0.3140673041, 0.3276823163, -0.2692170739, 0.0348045342, 0.217834577, 0.1936843842, 0.0098830871, -0.2605143487, -0.310747683, -0.1650926173, -0.4354657829, -0.1679271311, -0.0266034305, 0.2173540443, -0.4056759477, -0.0812082067, -0.0251493603, -0.0783835948, 0.259742111, 0.0720106885, 0.2526999712, 0.0088430494, 0.2731900811, -0.0456973389, -0.091598779, 0.3395564854, 0.9000713229, -0.2525013685, -0.4320507348, 0.0360490158, -0.1583695859, -0.0897883177, 0.1417719573, -0.0687416345, -0.1316463053, 0.3268160522, 0.1896219552, 0.0513424277, 0.0419882275, 0.123839356, 0.0284038763, -0.3064161539, -0.3403692842, 0.2581239045, 0.0760583654, -0.0961312503, 0.3767189085, -0.000699873, -0.0933709294, 0.2153905183, -0.0185648389, 0.8167471886, -0.0927544907, -0.0144097339, 0.0637583584, -0.0580985695, 0.1681998074, -0.1649196148, 0.0261710938, -0.2951911092, -0.4247958064, 0.0371182747, -0.1745965332, 0.0362041295, 0.1741127968, -0.1459339261, 0.227124691, -0.0069568045, 0.2250450552, 0.0434038937, 0.2866728604, -0.0884742811, 0.0273042582, -0.2208516598, 0.2930722833, 0.0459189415, 0.0623260699, -0.0046226615, 0.0579358079, -0.1386204958, -0.1283201873, -0.2966979146, 0.2544900477, -0.1929315329, 0.3643333018, 0.1406984925, -0.206115067, -0.3440342247, 0.2571280003, 0.3427869678, 0.2032147646, -0.3472331464, 0.2352004796, 0.2605371773, 0.0683705285, -0.0776911378, -0.138332203, 0.3357043564, -0.0227861367, -0.2697602808, 0.1954504251, -0.0746164918, -0.4504981339, 0.0957912058, -0.0880972445, -0.0646532625, -0.2543288767, -0.0941959769, -0.1452896446, 0.0051962873, -0.3810566068, 0.2479939759, 0.1885286272, -0.0630118325, 0.1671349555, 0.1640799046, -0.332873404, -0.2130957842, 0.5634602308, 0.0676992536, -0.1355089545, 0.3012741804, 0.131005764, -0.2782841921, -0.2645787597, 0.0354088508, -0.0188406277, -0.3040556312, 0.1099215001, -0.2202865779, 0.1045904085, 0.1021909565, 0.3893321157, 0.2315427363, 0.350756973, 0.1312365979, -0.6423172951, -0.0201737825, -0.0047230851, 0.0648233518, 0.2005562186, -0.1543518156, -0.1743968576, -0.0331077427, 0.0124710491, -0.4541358054, 0.0819544941, -0.3299823701, 0.0037040284, 0.0118408129, -0.0356633179, 0.2423545867, -0.0637157559, 0.2545439005, -0.0924422741, -0.1331411749, -0.3401722312, -0.1199378967, 0.097081691, 0.0953985453, -0.1617635041, -0.0343380123, -0.1883906275, -0.1301034242, -0.1867829561, 0.0962885842, 0.2514589429, -0.1302363575, -0.0200939942, 0.0369888693, -0.2073988765, -0.0819535404, -0.1132597923, -0.3339621723, 0.0283572059, -0.0002673491, 0.0100891022, -0.0917996913, 0.0117137562, -0.0088133058, 0.1077105254, 0.1802078933, 0.0854873732, 0.3533135951, -0.3219223917, -0.1687030941, 0.3697422743, 0.382424593, 0.3148977458, -0.4003755152, -0.0063043968, 0.1606170237, 0.3518230319, -0.3405835032, -0.083674483, 0.1912849694, -0.1039140821, 0.1488318294, 0.0741153285, 0.1600667089, -0.3706701696, 0.3438094258, 0.1893481016, 0.3627449274, -0.2891689539, 0.1431999952, 0.2330510765, -0.0320391022, -0.0006426732, 0.0690194368, -0.14419505, -0.0511530191, 0.047079552, -0.0669280216, 0.3168091476, -0.2750928998, 0.1070627421, -0.1234211475, -0.348459214, 0.4647800922, 0.1329881698, -0.2230010182, -0.0284280796, -0.0193836391, 0.230020687, -0.1732055396, 0.2665459216, -0.4488957524, 0.167596966, 0.073151812, -0.1180847064, 0.0097474866, -0.2490499169, -0.0968260616, 0.0613222644, 0.0385755822, 0.017129859, 0.2938181162, 0.1035786197, -0.1305481941, -0.446536094, 0.0576726347, 0.0158933587, 0.0963258892, -0.2808411419, 0.2949619293, 0.3184129596, -0.0400878452, 0.0794128999, 0.3605572581, 0.5183044672, 0.3171975613, 0.1030210108, -0.106837593, -0.0334152393, -0.0728660151, -0.0851675943, 0.5696834922, 0.0243579447, -0.136027649, 0.4195381701, 0.2767703235, -0.316811651, 0.0466362424, 0.0268152133, -0.0046021529, -0.1470370889, 0.1643250436, -0.0305223037, 0.0201877821, -0.1016113386, -0.0165459998, -0.4118996263, -0.2614502907, 0.3399811387, -0.1081860662, 0.2561916411, -0.1205108091, 0.1594545245, -0.0059278514, 0.4136884511, 0.3206773698, 0.0775824562, -0.2175370902, -0.2855317593, -0.7710371017, 0.273257643, -0.2597073019, 0.016654307, -0.1138761491, 0.2710442245, -0.029258769, 0.288620472, 0.2196081579, -0.1772126257, -0.1708127707, 0.1308020204, -0.3710585833, -0.0905122682, 0.0056611514, -0.0662761405, 0.0369290709, -0.3051986396, 0.1631476581, -0.0688306317, 0.1745363325, -0.0635083914, -0.0676610172, -0.049398046, -0.0058602127, 0.2554045618, 0.0344438441, 0.5188738704, -0.1761559099, -0.170378074, -0.1815758497, -0.2199749798, -0.0187754948, 0.3412050903, 0.0581764914, 0.4106435776, -0.1149480641, -0.2083242834, -0.0809055418, 0.2761740386, 0.0557882823, -0.3769818544, -0.0485182628, 0.0505440198, -0.1126333177, 0.1082697585, 0.0223052427, 0.0173513386, -0.0405931436, 0.3363276422, -0.1108476669, -0.4822673202, 0.4292310178, -0.1386679113, -0.0846952051, -0.1934619844, 0.2980419695, -0.2475188375, -0.0260808729, -0.5874740481, 0.2407381386, 0.4082554281, 0.1453821957, -0.2057096362, 0.1887054443, -0.1960900575, 0.191841051, -0.0474258512, 0.0484299213, 0.107795991, -0.2527145445, 0.112140201, -0.1427143067 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
Hi ! It could an issue with torchaudio, which version of torchaudio are you using ? Can you also try updating `datasets` to 2.0.0 and see if it works ?
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
30
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 Hi ! It could an issue with torchaudio, which version of torchaudio are you using ? Can you also try updating `datasets` to 2.0.0 and see if it works ?
[ -0.2770319879, -0.5579100847, 0.0958970264, 0.4342247546, 0.0972786099, 0.0279113352, 0.1583617181, 0.3387337327, 0.2213581651, 0.1552248895, -0.6184939742, 0.183975175, -0.0529414192, -0.3478996456, -0.0592965446, -0.1135332063, 0.0520580001, 0.1278967559, 0.006890594, -0.277669102, -0.2343375832, 0.2821361721, -0.2509042323, 0.3531128466, -0.4162026048, 0.0185996275, 0.2396683246, 0.5088718534, -0.1024073437, -0.331436187, 0.3121219873, -0.0491105691, 0.2130052894, 0.4274331629, -0.0001162671, 0.0184730384, 0.4207181633, -0.097756885, -0.1218052804, -0.2371644676, -0.1944369227, 0.3139553964, -0.0286919083, 0.1137941927, 0.0613359921, 0.2381329387, 0.0263982806, -0.1868386567, 0.6796951294, 0.4326781929, 0.1323567182, 0.3149060905, 0.0841515735, -0.1255196035, 0.2086741626, -0.053097479, 0.0639691502, 0.504984498, 0.3022057116, 0.0025928158, -0.0793269128, 0.1400800049, -0.3133850098, -0.0628073812, 0.0481954701, 0.0692130625, -0.4264243841, -0.3863293529, 0.1007079631, 0.2126056254, 0.3382567763, -0.2975596786, -0.2535224855, -0.0428770855, -0.0581557825, -0.1839535385, 0.2144216597, 0.3430327177, -0.3709092736, 0.2343452573, -0.1885352731, -0.0040326342, -0.1982618421, 0.0580186285, 0.1087792143, -0.0096028205, -0.0240887161, 0.1449941248, 0.2289453596, 0.0186749231, 0.0564753674, 0.0325042419, -0.1586492062, 0.3980389535, -0.3438359797, 0.0484002419, -0.1927221268, -0.0142849972, 0.1082153693, -0.0866936445, 0.243392542, 0.0587675124, -0.2349995822, 0.1037337258, 0.2314831913, 0.0601220541, -0.168599695, 0.0392540395, 0.2957637906, 0.0173963234, 0.0144713707, -0.185304001, -0.3221338987, -0.3186981976, -0.1433879435, 0.0979452133, 0.1926192492, -0.2711824775, -0.6065782309, 0.0459613912, -0.0339034945, 0.147974968, 0.1738497317, 0.3121117949, 0.0169770848, 0.3172359467, 0.2083357275, 0.3296192586, -0.2861898541, -0.0217170212, -0.0565776154, 0.131073907, -0.0900955126, 0.0901904777, 0.3719749451, -0.2276047319, 0.2882647812, 0.2036427706, 0.5024915934, -0.2462989241, -0.1376003921, -0.0910602808, -0.0856824741, 0.1525906175, 0.1454110295, 0.2447027564, -0.015700018, 0.1707411259, -0.1218492091, 0.2836284339, -0.5029199719, -0.227949053, -0.0633319765, 0.0843535066, -0.0691562295, 0.2116569877, -0.1249311939, -0.2575981915, -0.0573037118, -0.5344342589, -0.036678195, -0.2714860439, -0.1304270476, -0.0027764041, 0.3777683377, 0.368907541, -0.0393812247, 0.1228254512, 0.2582195401, 0.0001494278, 0.1149079204, 0.3810598552, -0.1746083498, 0.1120062619, -0.4848196805, 0.3561584055, 0.2281820178, -0.8792301416, -0.5025166273, 0.0628906637, -0.0371030495, 0.382660836, -0.0179999266, 0.0565459244, 0.1072388813, -0.0680894554, 0.4597161412, 0.2403299361, 0.1922263056, 0.0933542773, -0.0130216228, -0.1008040085, -0.0543645211, 0.1478838921, -0.0836538523, 0.1002054587, 0.0750493929, 0.2849222422, 0.4207440913, -0.0055230935, -0.0311348531, 0.0905108824, 0.1467068195, -0.3343494833, -0.0312448218, -0.1820218116, -0.2753308415, 0.264318645, -0.2552793324, -0.0025081886, -0.0780618042, -0.0329582393, -0.3929331601, -0.1374918371, -0.4621696174, -0.0791684389, -0.0706249028, -0.0419518799, -0.0931319594, -0.1247648746, -0.1491961926, 0.5878193974, 0.0550978556, 0.1242575496, -0.429130584, 0.3229444325, 0.0248242896, -0.0305085406, 0.1474134624, 0.2691017091, 0.1843524724, 0.0209694318, -0.3553528488, 0.3444258869, 0.0279488973, 0.5421096683, -0.260714829, -0.1729062051, 0.3404975832, -0.552588284, 0.1541156769, 0.2973219156, 0.2697526813, -0.0063639218, -0.1097388789, 0.2517597973, -0.1028215587, 0.0189354885, 0.0339779519, -0.0558216237, 0.1793692559, 0.1510204673, -0.1288963705, 0.2269888073, 0.1432147175, 0.2359798253, 0.5638933778, -0.2110592723, -0.2772647142, -0.4352059066, 0.3617575467, 0.0532026738, 0.0217404179, 0.2616481781, -0.3282069862, -0.0321820006, 0.2195219249, -0.5220210552, 0.4011757374, 0.0611053668, -0.0803284571, 0.2169059515, -0.0558602065, -0.0855525509, 0.0386698134, 0.0512189418, -0.1274962872, 0.5026897788, -0.0606315695, 0.0806713179, -0.4853989184, -0.0822648183, -0.3068591356, 0.0280653406, -0.4187680781, -0.1475482881, 0.0454655774, 0.3657894135, -0.1748247892, -0.2436130047, -0.3200425208, 0.1162307188, -0.0260169357, 0.6292793155, 0.0297143236, 0.0381200127, 0.1147235408, 0.2774614096, 0.2759171724, -0.0854885951, -0.2166498899, 0.1786701977, -0.2378203422, -0.0215209257, 0.161239624, 0.2129224539, -0.0830713809, -0.2121327072, 0.2197172493, -0.1749921888, 0.1203258038, 0.1290985197, 0.0473875478, 0.0890651643, -0.1238418743, 0.1089027375, 0.0671197176, -0.401573956, 0.0710534826, -0.1002557948, -0.0563346297, -0.042991206, -0.0234376695, -0.0130709829, -0.0271392148, -0.5459436774, -0.377019614, -0.5261209607, 0.2477651834, -0.1363980621, 0.0361794792, -0.0298616085, -0.0385843068, -0.0821270645, -0.0761665329, 0.097146593, -0.1557803303, -0.2647076845, 0.3093084991, -0.1937537789, -0.3331834078, 0.0525220893, 0.0334742516, 0.4599124491, -0.1099127457, -0.2499322742, -0.0082604224, 0.0481497161, 0.1831409931, -0.0998855755, -0.0763652548, 0.1136963069, 0.0019145353, 0.0809374377, 0.0523185804, -0.0090312874, 0.0228209626, 0.3389778733, 0.0246717259, 0.1336853206, 0.0670730472, -0.2461414337, 0.6589113474, 0.4580787122, 0.1489695907, 0.2617553473, -0.1942870617, 0.1342167258, -0.376175642, -0.3778225482, -0.0869117603, -0.2899262607, -0.0439897701, 0.5156700611, 0.168317467, 0.0095790541, -0.3771535754, -0.1830431521, -0.25266096, -0.2977062166, -0.097088404, -0.0431640297, 0.0250475314, 0.0584579259, 0.27664572, 0.0747421756, -0.1940095872, 0.2008768767, 0.0833837762, 0.2871515751, -0.0547909848, -0.0091231316, -0.0617869496, -0.4186169505, 0.030735556, 0.1404168606, 0.5342772603, -0.2269238234, -0.0143664945, 0.0638116747, 0.2099586725, 0.471422106, 0.2789838612, 0.2866942286, -0.0143522313, 0.1385069042, -0.1681811213, 0.018910585, -0.1692977548, 0.1190125421, 0.1815906167, 0.3798247278, -0.0311386418, -0.0768254846, -0.0938240141, 0.3332350254, 0.063780874, -0.1739415973, -0.1988146752, -0.040970277, -0.4132501185, 0.1862549186, 0.1207153723, 0.286724776, -0.3996558487, -0.0737971663, 0.399312228, -0.0290096104, 0.2683801949, 0.0717850849, 0.3302981853, -0.0184296891, 0.5079404116, 0.3419020772, 0.2793518007, -0.1264293939, 0.8726477027, 0.1646687537, -0.3246738315, 0.1023117453, -0.149307996, -0.1009910628, 0.5327776074, -0.0558519326, -0.1224867925, -0.0668300912, -0.0020890948, -0.3324739933, 0.2613469064, 0.3142693639, 0.2035782635, -0.398647815, -0.0536245368, 0.3759844601, 0.0135212298, -0.1539978832, 0.2730391026, 0.1535217911, -0.1843696684, 0.1181319952, -0.2964574099, 1.0028692484, 0.2921597064, 0.3827985823, 0.3312072158, -0.0403261073, -0.2509579062, -0.3336681724, 0.1212134659, -0.1953644753, -0.0099095702, -0.0872222781, -0.1132840663, 0.0103351912, 0.0850233212, -0.0476072803, 0.1601865739, 0.1450434476, 0.1558749229, 0.0908435658, 0.1495519727, -0.2061798722, -0.3624196053, 0.1376107782, -0.0363153405, 0.0081142839, 0.4701991081, 0.027335709, -0.209484756, -0.1235960573, -0.438398242, -0.2067750692, 0.453701973, -0.0249103811, 0.0152061582, 0.0138944313, -0.2945721447, 0.2844093144, 0.2792633772, 0.2409257591, 0.090792805, -0.4155937731, 0.3311749995, -0.0819166526, 0.1672662199, -0.0355670862, 0.1296280175, -0.0334904194, 0.0124400426, -0.2793114483, 0.1269563437, -0.0618117489, -0.0856310502, -0.0804424509, 0.2188522518, 0.3054023981, -0.2852373719, -0.3833873272, -0.0882368013, -0.0852071121, -0.0896967202, 0.0852396488, 0.0207937136, -0.2632099092, 0.0287935492, 0.1348295063, -0.1987015307, 0.0736178234, 0.7157284021, -0.2161949873, -0.4078350961, 0.5259316564, -0.0318778306, -0.1757954359, -0.1821542084, 0.0103163719, 0.2278850973, -0.7808638215, -0.0866458565, 0.0636204481, -0.0161699913, -0.2618471682, 0.2429135144, 0.1983937025, -0.1416163445, 0.0353549384, -0.3575725853, -0.3615680635, 0.1426129192, -0.0105691114, 0.2217365801, 0.1165070757, -0.1818761081, 0.0623243935, -0.1418389976, -0.2064755261, 0.1962670386, -0.0093957428, 0.0223486759, 0.0406391881, -0.1182879359, 0.2206023484, -0.0536708906, 0.1021472737, 0.3039660156, -0.1809481084, -0.0230821222, -0.042056676, 0.2178642154, 0.0237543471, -0.3877532184, 0.0289847888, 0.0621459, -0.0851417333, -0.1958113462, 0.2831712365, 0.4221121967, -0.047265213, 0.0137243066, -0.1423199475, 0.0326049402, -0.1692991406, 0.2432150096, -0.0935143456, 0.1820446849, -0.0198365003, 0.1315581352, -0.3124006689, -0.1121181399, -0.1025262401, 0.159474209, 0.4634879529, 0.0158157013, 0.3469350338, -0.1923014373, 0.219103545, -0.0662923008, 0.3411136866, 0.243523106, -0.3293388188, 0.0363704972, 0.075818345, 0.1057705283, -0.2272530645, -0.141453132, -0.0355771817, -0.3602019548, -0.0230461583, -0.0720689595, 0.2350688726, -0.2263320386, -0.0208520591, -0.1315588951, 0.5259667039, -0.0331822485, 0.0958411917, 0.4131129682, -0.0366346762, 0.1329773515, 0.0025172168, -0.0627715811, 0.0626216084, 0.7115365267, -0.697896421, 0.3227293193, -0.0281697139, 0.2082380354, 0.1571228653, -0.5921527147, -0.4516006112, -0.2154976726, -0.1937333941, 0.0185172465, 0.0262436923, 0.2545899451, -0.4387954772, -0.2378968894, -0.3239341378, -0.0800799578, -0.095855251, -0.0590523444, -0.0014112727, -0.2619789839, -0.2249436677, 0.0945829451, -0.1286766082, 0.0023502389, 0.0117432745, 0.1596601903, 0.0760015845, 0.1438912749, -0.3457694948, 0.140828833, -0.0928229988, -0.1601560414, 0.3072662354, 0.2355844527, -0.0000484988, 0.4841147065, 0.2116213888, 0.4119136035, 0.234680444, -0.1337094158, 0.2837245464, 0.0156705789, 0.0618948974, 0.1507524699, 0.1714079976, 0.1332450807, 0.4558269978, 0.1540386528, 0.1577102095, -0.0764060989, 0.0038071359, -0.1375314295, -0.0006682245, -0.3144747615, 0.2041217834, -0.3874047399, -0.1037590206, -0.2713550925, -0.1241194308, -0.3508108854, -0.0216773599, 0.2912822664, 0.0955891013, 0.1698872596, 0.0543495975, 0.0219345, -0.1371025443, 0.1877572089, 0.3938839436, 0.2558986843, -0.2204942405, -0.1704560965, -0.4875638783, 0.3560706377, 0.2565132082, 0.0751964599, 0.0132260472, -0.2334998995, -0.0868255123, 0.0671412051, 0.0081083383, -0.1266458035, -0.0661567897, -0.0246364698, -0.0781175569, -0.1059020683, 0.1523326039, 0.2788286209, -0.0965106264, -0.62411201, 0.1253813654, 0.1124529988, -0.0708944425, 0.0614711829, 0.0104366355, -0.2733327746, -0.0715710968, 0.1623188257, 0.0862414092, 0.5717628002, -0.2186176032, 0.0313815996, -0.1738715917, -0.3230480254, 0.0293313395, -0.2709759176, -0.0725021139, 0.5647905469, 0.0958296359, -0.0976571664, -0.3332045674, 0.0834664702, -0.1243080869, -0.0150797302, -0.5276535153, 0.053188879, -0.3631983995, 0.2352464944, 0.0355670638, 0.2045327723, -0.1933111697, 0.0221613087, -0.2092262357, -0.3602148592, 0.7947118878, -0.3871314526, -0.276792258, -0.1863599867, 0.4942856133, -0.0789814666, -0.0830265731, -0.3339046538, 0.2001395673, 0.1500469148, -0.0458775386, -0.2205297947, -0.0488215573, -0.1019377485, -0.208312884, -0.0481383726, 0.3108637333, 0.3925825059, -0.2813002765, 0.2817300856, -0.4908652008 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
I _might_ have a similar issue. I'm trying to use the librispeech_asr dataset and read it with soundfile. ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor import soundfile as sf librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_array(batch): speech, _ = sf.read(batch["file"]) batch["speech"] = speech return batch librispeech_eval = librispeech_eval.map(map_to_array) def map_to_pred(batch): features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_ids=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred, batched=True, batch_size=8, remove_columns=["speech"]) print("WER:", wer(predictions=result["transcription"], references=result["text"])) ``` The code is taken directly from "https://huggingface.co/facebook/s2t-small-librispeech-asr". The short error code is "RuntimeError: Error opening '6930-75918-0000.flac': System error." (it can't find the first file), and I agree, I can't find the file either. The dataset has downloaded correctly (it says), but on the location, there are only ".arrow" files, no ".flac" files. **Error message:** ```python RuntimeError Traceback (most recent call last) Input In [15], in <cell line: 16>() 13 batch["speech"] = speech 14 return batch ---> 16 librispeech_eval = librispeech_eval.map(map_to_array) 18 def map_to_pred(batch): 19 features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1953, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1950 disable_tqdm = not logging.is_progress_bar_enabled() 1952 if num_proc is None or num_proc == 1: -> 1953 return self._map_single( 1954 function=function, 1955 with_indices=with_indices, 1956 with_rank=with_rank, 1957 input_columns=input_columns, 1958 batched=batched, 1959 batch_size=batch_size, 1960 drop_last_batch=drop_last_batch, 1961 remove_columns=remove_columns, 1962 keep_in_memory=keep_in_memory, 1963 load_from_cache_file=load_from_cache_file, 1964 cache_file_name=cache_file_name, 1965 writer_batch_size=writer_batch_size, 1966 features=features, 1967 disable_nullable=disable_nullable, 1968 fn_kwargs=fn_kwargs, 1969 new_fingerprint=new_fingerprint, 1970 disable_tqdm=disable_tqdm, 1971 desc=desc, 1972 ) 1973 else: 1975 def format_cache_file_name(cache_file_name, rank): File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:519, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 517 self: "Dataset" = kwargs.pop("self") 518 # apply actual function --> 519 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 520 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 521 for dataset in datasets: 522 # Remove task templates if a column mapping of the template is no longer valid File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:486, in transmit_format.<locals>.wrapper(*args, **kwargs) 479 self_format = { 480 "type": self._format_type, 481 "format_kwargs": self._format_kwargs, 482 "columns": self._format_columns, 483 "output_all_columns": self._output_all_columns, 484 } 485 # apply actual function --> 486 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 487 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 488 # re-apply format to the output File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\fingerprint.py:458, in fingerprint_transform.<locals>._fingerprint.<locals>.wrapper(*args, **kwargs) 452 kwargs[fingerprint_name] = update_fingerprint( 453 self._fingerprint, transform, kwargs_for_fingerprint 454 ) 456 # Call actual function --> 458 out = func(self, *args, **kwargs) 460 # Update fingerprint of in-place transforms + update in-place history of transforms 462 if inplace: # update after calling func so that the fingerprint doesn't change if the function fails File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2318, in Dataset._map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2316 if not batched: 2317 for i, example in enumerate(pbar): -> 2318 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2319 if update_data: 2320 if i == 0: File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2218, in Dataset._map_single.<locals>.apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2216 if with_rank: 2217 additional_args += (rank,) -> 2218 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2219 if update_data is None: 2220 # Check if the function returns updated examples 2221 update_data = isinstance(processed_inputs, (Mapping, pa.Table)) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1913, in Dataset.map.<locals>.decorate.<locals>.decorated(item, *args, **kwargs) 1909 decorated_item = ( 1910 Example(item, features=self.features) if not batched else Batch(item, features=self.features) 1911 ) 1912 # Use the LazyDict internally, while mapping the function -> 1913 result = f(decorated_item, *args, **kwargs) 1914 # Return a standard dict 1915 return result.data if isinstance(result, LazyDict) else result Input In [15], in map_to_array(batch) 11 def map_to_array(batch): ---> 12 speech, _ = sf.read(batch["file"]) 13 batch["speech"] = speech 14 return batch File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:256, in read(file, frames, start, stop, dtype, always_2d, fill_value, out, samplerate, channels, format, subtype, endian, closefd) 170 def read(file, frames=-1, start=0, stop=None, dtype='float64', always_2d=False, 171 fill_value=None, out=None, samplerate=None, channels=None, 172 format=None, subtype=None, endian=None, closefd=True): 173 """Provide audio data from a sound file as NumPy array. 174 175 By default, the whole file is read from the beginning, but the (...) 254 255 """ --> 256 with SoundFile(file, 'r', samplerate, channels, 257 subtype, endian, format, closefd) as f: 258 frames = f._prepare_read(start, stop, frames) 259 data = f.read(frames, dtype, always_2d, fill_value, out) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:629, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 626 self._mode = mode 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) --> 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) 632 self.seek(0) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1183, in SoundFile._open(self, file, mode_int, closefd) 1181 else: 1182 raise TypeError("Invalid file: {0!r}".format(self.name)) -> 1183 _error_check(_snd.sf_error(file_ptr), 1184 "Error opening {0!r}: ".format(self.name)) 1185 if mode_int == _snd.SFM_WRITE: 1186 # Due to a bug in libsndfile version <= 1.0.25, frames != 0 1187 # when opening a named pipe in SFM_WRITE mode. 1188 # See http://github.com/erikd/libsndfile/issues/77. 1189 self._info.frames = 0 File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1357, in _error_check(err, prefix) 1355 if err != 0: 1356 err_str = _snd.sf_error_number(err) -> 1357 raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace')) RuntimeError: Error opening '6930-75918-0000.flac': System error. ``` **Package versions:** ```python python: 3.9 transformers: 4.17.0 datasets: 2.0.0 SoundFile: 0.10.3.post1 ```
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
854
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 I _might_ have a similar issue. I'm trying to use the librispeech_asr dataset and read it with soundfile. ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor import soundfile as sf librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_array(batch): speech, _ = sf.read(batch["file"]) batch["speech"] = speech return batch librispeech_eval = librispeech_eval.map(map_to_array) def map_to_pred(batch): features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_ids=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred, batched=True, batch_size=8, remove_columns=["speech"]) print("WER:", wer(predictions=result["transcription"], references=result["text"])) ``` The code is taken directly from "https://huggingface.co/facebook/s2t-small-librispeech-asr". The short error code is "RuntimeError: Error opening '6930-75918-0000.flac': System error." (it can't find the first file), and I agree, I can't find the file either. The dataset has downloaded correctly (it says), but on the location, there are only ".arrow" files, no ".flac" files. **Error message:** ```python RuntimeError Traceback (most recent call last) Input In [15], in <cell line: 16>() 13 batch["speech"] = speech 14 return batch ---> 16 librispeech_eval = librispeech_eval.map(map_to_array) 18 def map_to_pred(batch): 19 features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1953, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1950 disable_tqdm = not logging.is_progress_bar_enabled() 1952 if num_proc is None or num_proc == 1: -> 1953 return self._map_single( 1954 function=function, 1955 with_indices=with_indices, 1956 with_rank=with_rank, 1957 input_columns=input_columns, 1958 batched=batched, 1959 batch_size=batch_size, 1960 drop_last_batch=drop_last_batch, 1961 remove_columns=remove_columns, 1962 keep_in_memory=keep_in_memory, 1963 load_from_cache_file=load_from_cache_file, 1964 cache_file_name=cache_file_name, 1965 writer_batch_size=writer_batch_size, 1966 features=features, 1967 disable_nullable=disable_nullable, 1968 fn_kwargs=fn_kwargs, 1969 new_fingerprint=new_fingerprint, 1970 disable_tqdm=disable_tqdm, 1971 desc=desc, 1972 ) 1973 else: 1975 def format_cache_file_name(cache_file_name, rank): File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:519, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 517 self: "Dataset" = kwargs.pop("self") 518 # apply actual function --> 519 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 520 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 521 for dataset in datasets: 522 # Remove task templates if a column mapping of the template is no longer valid File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:486, in transmit_format.<locals>.wrapper(*args, **kwargs) 479 self_format = { 480 "type": self._format_type, 481 "format_kwargs": self._format_kwargs, 482 "columns": self._format_columns, 483 "output_all_columns": self._output_all_columns, 484 } 485 # apply actual function --> 486 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 487 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 488 # re-apply format to the output File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\fingerprint.py:458, in fingerprint_transform.<locals>._fingerprint.<locals>.wrapper(*args, **kwargs) 452 kwargs[fingerprint_name] = update_fingerprint( 453 self._fingerprint, transform, kwargs_for_fingerprint 454 ) 456 # Call actual function --> 458 out = func(self, *args, **kwargs) 460 # Update fingerprint of in-place transforms + update in-place history of transforms 462 if inplace: # update after calling func so that the fingerprint doesn't change if the function fails File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2318, in Dataset._map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2316 if not batched: 2317 for i, example in enumerate(pbar): -> 2318 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2319 if update_data: 2320 if i == 0: File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2218, in Dataset._map_single.<locals>.apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2216 if with_rank: 2217 additional_args += (rank,) -> 2218 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2219 if update_data is None: 2220 # Check if the function returns updated examples 2221 update_data = isinstance(processed_inputs, (Mapping, pa.Table)) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1913, in Dataset.map.<locals>.decorate.<locals>.decorated(item, *args, **kwargs) 1909 decorated_item = ( 1910 Example(item, features=self.features) if not batched else Batch(item, features=self.features) 1911 ) 1912 # Use the LazyDict internally, while mapping the function -> 1913 result = f(decorated_item, *args, **kwargs) 1914 # Return a standard dict 1915 return result.data if isinstance(result, LazyDict) else result Input In [15], in map_to_array(batch) 11 def map_to_array(batch): ---> 12 speech, _ = sf.read(batch["file"]) 13 batch["speech"] = speech 14 return batch File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:256, in read(file, frames, start, stop, dtype, always_2d, fill_value, out, samplerate, channels, format, subtype, endian, closefd) 170 def read(file, frames=-1, start=0, stop=None, dtype='float64', always_2d=False, 171 fill_value=None, out=None, samplerate=None, channels=None, 172 format=None, subtype=None, endian=None, closefd=True): 173 """Provide audio data from a sound file as NumPy array. 174 175 By default, the whole file is read from the beginning, but the (...) 254 255 """ --> 256 with SoundFile(file, 'r', samplerate, channels, 257 subtype, endian, format, closefd) as f: 258 frames = f._prepare_read(start, stop, frames) 259 data = f.read(frames, dtype, always_2d, fill_value, out) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:629, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 626 self._mode = mode 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) --> 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) 632 self.seek(0) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1183, in SoundFile._open(self, file, mode_int, closefd) 1181 else: 1182 raise TypeError("Invalid file: {0!r}".format(self.name)) -> 1183 _error_check(_snd.sf_error(file_ptr), 1184 "Error opening {0!r}: ".format(self.name)) 1185 if mode_int == _snd.SFM_WRITE: 1186 # Due to a bug in libsndfile version <= 1.0.25, frames != 0 1187 # when opening a named pipe in SFM_WRITE mode. 1188 # See http://github.com/erikd/libsndfile/issues/77. 1189 self._info.frames = 0 File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1357, in _error_check(err, prefix) 1355 if err != 0: 1356 err_str = _snd.sf_error_number(err) -> 1357 raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace')) RuntimeError: Error opening '6930-75918-0000.flac': System error. ``` **Package versions:** ```python python: 3.9 transformers: 4.17.0 datasets: 2.0.0 SoundFile: 0.10.3.post1 ```
[ -0.2770319879, -0.5579100847, 0.0958970264, 0.4342247546, 0.0972786099, 0.0279113352, 0.1583617181, 0.3387337327, 0.2213581651, 0.1552248895, -0.6184939742, 0.183975175, -0.0529414192, -0.3478996456, -0.0592965446, -0.1135332063, 0.0520580001, 0.1278967559, 0.006890594, -0.277669102, -0.2343375832, 0.2821361721, -0.2509042323, 0.3531128466, -0.4162026048, 0.0185996275, 0.2396683246, 0.5088718534, -0.1024073437, -0.331436187, 0.3121219873, -0.0491105691, 0.2130052894, 0.4274331629, -0.0001162671, 0.0184730384, 0.4207181633, -0.097756885, -0.1218052804, -0.2371644676, -0.1944369227, 0.3139553964, -0.0286919083, 0.1137941927, 0.0613359921, 0.2381329387, 0.0263982806, -0.1868386567, 0.6796951294, 0.4326781929, 0.1323567182, 0.3149060905, 0.0841515735, -0.1255196035, 0.2086741626, -0.053097479, 0.0639691502, 0.504984498, 0.3022057116, 0.0025928158, -0.0793269128, 0.1400800049, -0.3133850098, -0.0628073812, 0.0481954701, 0.0692130625, -0.4264243841, -0.3863293529, 0.1007079631, 0.2126056254, 0.3382567763, -0.2975596786, -0.2535224855, -0.0428770855, -0.0581557825, -0.1839535385, 0.2144216597, 0.3430327177, -0.3709092736, 0.2343452573, -0.1885352731, -0.0040326342, -0.1982618421, 0.0580186285, 0.1087792143, -0.0096028205, -0.0240887161, 0.1449941248, 0.2289453596, 0.0186749231, 0.0564753674, 0.0325042419, -0.1586492062, 0.3980389535, -0.3438359797, 0.0484002419, -0.1927221268, -0.0142849972, 0.1082153693, -0.0866936445, 0.243392542, 0.0587675124, -0.2349995822, 0.1037337258, 0.2314831913, 0.0601220541, -0.168599695, 0.0392540395, 0.2957637906, 0.0173963234, 0.0144713707, -0.185304001, -0.3221338987, -0.3186981976, -0.1433879435, 0.0979452133, 0.1926192492, -0.2711824775, -0.6065782309, 0.0459613912, -0.0339034945, 0.147974968, 0.1738497317, 0.3121117949, 0.0169770848, 0.3172359467, 0.2083357275, 0.3296192586, -0.2861898541, -0.0217170212, -0.0565776154, 0.131073907, -0.0900955126, 0.0901904777, 0.3719749451, -0.2276047319, 0.2882647812, 0.2036427706, 0.5024915934, -0.2462989241, -0.1376003921, -0.0910602808, -0.0856824741, 0.1525906175, 0.1454110295, 0.2447027564, -0.015700018, 0.1707411259, -0.1218492091, 0.2836284339, -0.5029199719, -0.227949053, -0.0633319765, 0.0843535066, -0.0691562295, 0.2116569877, -0.1249311939, -0.2575981915, -0.0573037118, -0.5344342589, -0.036678195, -0.2714860439, -0.1304270476, -0.0027764041, 0.3777683377, 0.368907541, -0.0393812247, 0.1228254512, 0.2582195401, 0.0001494278, 0.1149079204, 0.3810598552, -0.1746083498, 0.1120062619, -0.4848196805, 0.3561584055, 0.2281820178, -0.8792301416, -0.5025166273, 0.0628906637, -0.0371030495, 0.382660836, -0.0179999266, 0.0565459244, 0.1072388813, -0.0680894554, 0.4597161412, 0.2403299361, 0.1922263056, 0.0933542773, -0.0130216228, -0.1008040085, -0.0543645211, 0.1478838921, -0.0836538523, 0.1002054587, 0.0750493929, 0.2849222422, 0.4207440913, -0.0055230935, -0.0311348531, 0.0905108824, 0.1467068195, -0.3343494833, -0.0312448218, -0.1820218116, -0.2753308415, 0.264318645, -0.2552793324, -0.0025081886, -0.0780618042, -0.0329582393, -0.3929331601, -0.1374918371, -0.4621696174, -0.0791684389, -0.0706249028, -0.0419518799, -0.0931319594, -0.1247648746, -0.1491961926, 0.5878193974, 0.0550978556, 0.1242575496, -0.429130584, 0.3229444325, 0.0248242896, -0.0305085406, 0.1474134624, 0.2691017091, 0.1843524724, 0.0209694318, -0.3553528488, 0.3444258869, 0.0279488973, 0.5421096683, -0.260714829, -0.1729062051, 0.3404975832, -0.552588284, 0.1541156769, 0.2973219156, 0.2697526813, -0.0063639218, -0.1097388789, 0.2517597973, -0.1028215587, 0.0189354885, 0.0339779519, -0.0558216237, 0.1793692559, 0.1510204673, -0.1288963705, 0.2269888073, 0.1432147175, 0.2359798253, 0.5638933778, -0.2110592723, -0.2772647142, -0.4352059066, 0.3617575467, 0.0532026738, 0.0217404179, 0.2616481781, -0.3282069862, -0.0321820006, 0.2195219249, -0.5220210552, 0.4011757374, 0.0611053668, -0.0803284571, 0.2169059515, -0.0558602065, -0.0855525509, 0.0386698134, 0.0512189418, -0.1274962872, 0.5026897788, -0.0606315695, 0.0806713179, -0.4853989184, -0.0822648183, -0.3068591356, 0.0280653406, -0.4187680781, -0.1475482881, 0.0454655774, 0.3657894135, -0.1748247892, -0.2436130047, -0.3200425208, 0.1162307188, -0.0260169357, 0.6292793155, 0.0297143236, 0.0381200127, 0.1147235408, 0.2774614096, 0.2759171724, -0.0854885951, -0.2166498899, 0.1786701977, -0.2378203422, -0.0215209257, 0.161239624, 0.2129224539, -0.0830713809, -0.2121327072, 0.2197172493, -0.1749921888, 0.1203258038, 0.1290985197, 0.0473875478, 0.0890651643, -0.1238418743, 0.1089027375, 0.0671197176, -0.401573956, 0.0710534826, -0.1002557948, -0.0563346297, -0.042991206, -0.0234376695, -0.0130709829, -0.0271392148, -0.5459436774, -0.377019614, -0.5261209607, 0.2477651834, -0.1363980621, 0.0361794792, -0.0298616085, -0.0385843068, -0.0821270645, -0.0761665329, 0.097146593, -0.1557803303, -0.2647076845, 0.3093084991, -0.1937537789, -0.3331834078, 0.0525220893, 0.0334742516, 0.4599124491, -0.1099127457, -0.2499322742, -0.0082604224, 0.0481497161, 0.1831409931, -0.0998855755, -0.0763652548, 0.1136963069, 0.0019145353, 0.0809374377, 0.0523185804, -0.0090312874, 0.0228209626, 0.3389778733, 0.0246717259, 0.1336853206, 0.0670730472, -0.2461414337, 0.6589113474, 0.4580787122, 0.1489695907, 0.2617553473, -0.1942870617, 0.1342167258, -0.376175642, -0.3778225482, -0.0869117603, -0.2899262607, -0.0439897701, 0.5156700611, 0.168317467, 0.0095790541, -0.3771535754, -0.1830431521, -0.25266096, -0.2977062166, -0.097088404, -0.0431640297, 0.0250475314, 0.0584579259, 0.27664572, 0.0747421756, -0.1940095872, 0.2008768767, 0.0833837762, 0.2871515751, -0.0547909848, -0.0091231316, -0.0617869496, -0.4186169505, 0.030735556, 0.1404168606, 0.5342772603, -0.2269238234, -0.0143664945, 0.0638116747, 0.2099586725, 0.471422106, 0.2789838612, 0.2866942286, -0.0143522313, 0.1385069042, -0.1681811213, 0.018910585, -0.1692977548, 0.1190125421, 0.1815906167, 0.3798247278, -0.0311386418, -0.0768254846, -0.0938240141, 0.3332350254, 0.063780874, -0.1739415973, -0.1988146752, -0.040970277, -0.4132501185, 0.1862549186, 0.1207153723, 0.286724776, -0.3996558487, -0.0737971663, 0.399312228, -0.0290096104, 0.2683801949, 0.0717850849, 0.3302981853, -0.0184296891, 0.5079404116, 0.3419020772, 0.2793518007, -0.1264293939, 0.8726477027, 0.1646687537, -0.3246738315, 0.1023117453, -0.149307996, -0.1009910628, 0.5327776074, -0.0558519326, -0.1224867925, -0.0668300912, -0.0020890948, -0.3324739933, 0.2613469064, 0.3142693639, 0.2035782635, -0.398647815, -0.0536245368, 0.3759844601, 0.0135212298, -0.1539978832, 0.2730391026, 0.1535217911, -0.1843696684, 0.1181319952, -0.2964574099, 1.0028692484, 0.2921597064, 0.3827985823, 0.3312072158, -0.0403261073, -0.2509579062, -0.3336681724, 0.1212134659, -0.1953644753, -0.0099095702, -0.0872222781, -0.1132840663, 0.0103351912, 0.0850233212, -0.0476072803, 0.1601865739, 0.1450434476, 0.1558749229, 0.0908435658, 0.1495519727, -0.2061798722, -0.3624196053, 0.1376107782, -0.0363153405, 0.0081142839, 0.4701991081, 0.027335709, -0.209484756, -0.1235960573, -0.438398242, -0.2067750692, 0.453701973, -0.0249103811, 0.0152061582, 0.0138944313, -0.2945721447, 0.2844093144, 0.2792633772, 0.2409257591, 0.090792805, -0.4155937731, 0.3311749995, -0.0819166526, 0.1672662199, -0.0355670862, 0.1296280175, -0.0334904194, 0.0124400426, -0.2793114483, 0.1269563437, -0.0618117489, -0.0856310502, -0.0804424509, 0.2188522518, 0.3054023981, -0.2852373719, -0.3833873272, -0.0882368013, -0.0852071121, -0.0896967202, 0.0852396488, 0.0207937136, -0.2632099092, 0.0287935492, 0.1348295063, -0.1987015307, 0.0736178234, 0.7157284021, -0.2161949873, -0.4078350961, 0.5259316564, -0.0318778306, -0.1757954359, -0.1821542084, 0.0103163719, 0.2278850973, -0.7808638215, -0.0866458565, 0.0636204481, -0.0161699913, -0.2618471682, 0.2429135144, 0.1983937025, -0.1416163445, 0.0353549384, -0.3575725853, -0.3615680635, 0.1426129192, -0.0105691114, 0.2217365801, 0.1165070757, -0.1818761081, 0.0623243935, -0.1418389976, -0.2064755261, 0.1962670386, -0.0093957428, 0.0223486759, 0.0406391881, -0.1182879359, 0.2206023484, -0.0536708906, 0.1021472737, 0.3039660156, -0.1809481084, -0.0230821222, -0.042056676, 0.2178642154, 0.0237543471, -0.3877532184, 0.0289847888, 0.0621459, -0.0851417333, -0.1958113462, 0.2831712365, 0.4221121967, -0.047265213, 0.0137243066, -0.1423199475, 0.0326049402, -0.1692991406, 0.2432150096, -0.0935143456, 0.1820446849, -0.0198365003, 0.1315581352, -0.3124006689, -0.1121181399, -0.1025262401, 0.159474209, 0.4634879529, 0.0158157013, 0.3469350338, -0.1923014373, 0.219103545, -0.0662923008, 0.3411136866, 0.243523106, -0.3293388188, 0.0363704972, 0.075818345, 0.1057705283, -0.2272530645, -0.141453132, -0.0355771817, -0.3602019548, -0.0230461583, -0.0720689595, 0.2350688726, -0.2263320386, -0.0208520591, -0.1315588951, 0.5259667039, -0.0331822485, 0.0958411917, 0.4131129682, -0.0366346762, 0.1329773515, 0.0025172168, -0.0627715811, 0.0626216084, 0.7115365267, -0.697896421, 0.3227293193, -0.0281697139, 0.2082380354, 0.1571228653, -0.5921527147, -0.4516006112, -0.2154976726, -0.1937333941, 0.0185172465, 0.0262436923, 0.2545899451, -0.4387954772, -0.2378968894, -0.3239341378, -0.0800799578, -0.095855251, -0.0590523444, -0.0014112727, -0.2619789839, -0.2249436677, 0.0945829451, -0.1286766082, 0.0023502389, 0.0117432745, 0.1596601903, 0.0760015845, 0.1438912749, -0.3457694948, 0.140828833, -0.0928229988, -0.1601560414, 0.3072662354, 0.2355844527, -0.0000484988, 0.4841147065, 0.2116213888, 0.4119136035, 0.234680444, -0.1337094158, 0.2837245464, 0.0156705789, 0.0618948974, 0.1507524699, 0.1714079976, 0.1332450807, 0.4558269978, 0.1540386528, 0.1577102095, -0.0764060989, 0.0038071359, -0.1375314295, -0.0006682245, -0.3144747615, 0.2041217834, -0.3874047399, -0.1037590206, -0.2713550925, -0.1241194308, -0.3508108854, -0.0216773599, 0.2912822664, 0.0955891013, 0.1698872596, 0.0543495975, 0.0219345, -0.1371025443, 0.1877572089, 0.3938839436, 0.2558986843, -0.2204942405, -0.1704560965, -0.4875638783, 0.3560706377, 0.2565132082, 0.0751964599, 0.0132260472, -0.2334998995, -0.0868255123, 0.0671412051, 0.0081083383, -0.1266458035, -0.0661567897, -0.0246364698, -0.0781175569, -0.1059020683, 0.1523326039, 0.2788286209, -0.0965106264, -0.62411201, 0.1253813654, 0.1124529988, -0.0708944425, 0.0614711829, 0.0104366355, -0.2733327746, -0.0715710968, 0.1623188257, 0.0862414092, 0.5717628002, -0.2186176032, 0.0313815996, -0.1738715917, -0.3230480254, 0.0293313395, -0.2709759176, -0.0725021139, 0.5647905469, 0.0958296359, -0.0976571664, -0.3332045674, 0.0834664702, -0.1243080869, -0.0150797302, -0.5276535153, 0.053188879, -0.3631983995, 0.2352464944, 0.0355670638, 0.2045327723, -0.1933111697, 0.0221613087, -0.2092262357, -0.3602148592, 0.7947118878, -0.3871314526, -0.276792258, -0.1863599867, 0.4942856133, -0.0789814666, -0.0830265731, -0.3339046538, 0.2001395673, 0.1500469148, -0.0458775386, -0.2205297947, -0.0488215573, -0.1019377485, -0.208312884, -0.0481383726, 0.3108637333, 0.3925825059, -0.2813002765, 0.2817300856, -0.4908652008 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
Hi ! In `datasets` 2.0 can access the audio array with `librispeech_eval[0]["audio"]["array"]` already, no need to use `map_to_array`. See our documentation on [how to process audio data](https://huggingface.co/docs/datasets/audio_process) :) cc @patrickvonplaten we will need to update the readme at [facebook/s2t-small-librispeech-asr](https://huggingface.co/facebook/s2t-small-librispeech-asr) as well as https://huggingface.co/docs/transformers/model_doc/speech_to_text
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
43
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 Hi ! In `datasets` 2.0 can access the audio array with `librispeech_eval[0]["audio"]["array"]` already, no need to use `map_to_array`. See our documentation on [how to process audio data](https://huggingface.co/docs/datasets/audio_process) :) cc @patrickvonplaten we will need to update the readme at [facebook/s2t-small-librispeech-asr](https://huggingface.co/facebook/s2t-small-librispeech-asr) as well as https://huggingface.co/docs/transformers/model_doc/speech_to_text
[ -0.2770319879, -0.5579100847, 0.0958970264, 0.4342247546, 0.0972786099, 0.0279113352, 0.1583617181, 0.3387337327, 0.2213581651, 0.1552248895, -0.6184939742, 0.183975175, -0.0529414192, -0.3478996456, -0.0592965446, -0.1135332063, 0.0520580001, 0.1278967559, 0.006890594, -0.277669102, -0.2343375832, 0.2821361721, -0.2509042323, 0.3531128466, -0.4162026048, 0.0185996275, 0.2396683246, 0.5088718534, -0.1024073437, -0.331436187, 0.3121219873, -0.0491105691, 0.2130052894, 0.4274331629, -0.0001162671, 0.0184730384, 0.4207181633, -0.097756885, -0.1218052804, -0.2371644676, -0.1944369227, 0.3139553964, -0.0286919083, 0.1137941927, 0.0613359921, 0.2381329387, 0.0263982806, -0.1868386567, 0.6796951294, 0.4326781929, 0.1323567182, 0.3149060905, 0.0841515735, -0.1255196035, 0.2086741626, -0.053097479, 0.0639691502, 0.504984498, 0.3022057116, 0.0025928158, -0.0793269128, 0.1400800049, -0.3133850098, -0.0628073812, 0.0481954701, 0.0692130625, -0.4264243841, -0.3863293529, 0.1007079631, 0.2126056254, 0.3382567763, -0.2975596786, -0.2535224855, -0.0428770855, -0.0581557825, -0.1839535385, 0.2144216597, 0.3430327177, -0.3709092736, 0.2343452573, -0.1885352731, -0.0040326342, -0.1982618421, 0.0580186285, 0.1087792143, -0.0096028205, -0.0240887161, 0.1449941248, 0.2289453596, 0.0186749231, 0.0564753674, 0.0325042419, -0.1586492062, 0.3980389535, -0.3438359797, 0.0484002419, -0.1927221268, -0.0142849972, 0.1082153693, -0.0866936445, 0.243392542, 0.0587675124, -0.2349995822, 0.1037337258, 0.2314831913, 0.0601220541, -0.168599695, 0.0392540395, 0.2957637906, 0.0173963234, 0.0144713707, -0.185304001, -0.3221338987, -0.3186981976, -0.1433879435, 0.0979452133, 0.1926192492, -0.2711824775, -0.6065782309, 0.0459613912, -0.0339034945, 0.147974968, 0.1738497317, 0.3121117949, 0.0169770848, 0.3172359467, 0.2083357275, 0.3296192586, -0.2861898541, -0.0217170212, -0.0565776154, 0.131073907, -0.0900955126, 0.0901904777, 0.3719749451, -0.2276047319, 0.2882647812, 0.2036427706, 0.5024915934, -0.2462989241, -0.1376003921, -0.0910602808, -0.0856824741, 0.1525906175, 0.1454110295, 0.2447027564, -0.015700018, 0.1707411259, -0.1218492091, 0.2836284339, -0.5029199719, -0.227949053, -0.0633319765, 0.0843535066, -0.0691562295, 0.2116569877, -0.1249311939, -0.2575981915, -0.0573037118, -0.5344342589, -0.036678195, -0.2714860439, -0.1304270476, -0.0027764041, 0.3777683377, 0.368907541, -0.0393812247, 0.1228254512, 0.2582195401, 0.0001494278, 0.1149079204, 0.3810598552, -0.1746083498, 0.1120062619, -0.4848196805, 0.3561584055, 0.2281820178, -0.8792301416, -0.5025166273, 0.0628906637, -0.0371030495, 0.382660836, -0.0179999266, 0.0565459244, 0.1072388813, -0.0680894554, 0.4597161412, 0.2403299361, 0.1922263056, 0.0933542773, -0.0130216228, -0.1008040085, -0.0543645211, 0.1478838921, -0.0836538523, 0.1002054587, 0.0750493929, 0.2849222422, 0.4207440913, -0.0055230935, -0.0311348531, 0.0905108824, 0.1467068195, -0.3343494833, -0.0312448218, -0.1820218116, -0.2753308415, 0.264318645, -0.2552793324, -0.0025081886, -0.0780618042, -0.0329582393, -0.3929331601, -0.1374918371, -0.4621696174, -0.0791684389, -0.0706249028, -0.0419518799, -0.0931319594, -0.1247648746, -0.1491961926, 0.5878193974, 0.0550978556, 0.1242575496, -0.429130584, 0.3229444325, 0.0248242896, -0.0305085406, 0.1474134624, 0.2691017091, 0.1843524724, 0.0209694318, -0.3553528488, 0.3444258869, 0.0279488973, 0.5421096683, -0.260714829, -0.1729062051, 0.3404975832, -0.552588284, 0.1541156769, 0.2973219156, 0.2697526813, -0.0063639218, -0.1097388789, 0.2517597973, -0.1028215587, 0.0189354885, 0.0339779519, -0.0558216237, 0.1793692559, 0.1510204673, -0.1288963705, 0.2269888073, 0.1432147175, 0.2359798253, 0.5638933778, -0.2110592723, -0.2772647142, -0.4352059066, 0.3617575467, 0.0532026738, 0.0217404179, 0.2616481781, -0.3282069862, -0.0321820006, 0.2195219249, -0.5220210552, 0.4011757374, 0.0611053668, -0.0803284571, 0.2169059515, -0.0558602065, -0.0855525509, 0.0386698134, 0.0512189418, -0.1274962872, 0.5026897788, -0.0606315695, 0.0806713179, -0.4853989184, -0.0822648183, -0.3068591356, 0.0280653406, -0.4187680781, -0.1475482881, 0.0454655774, 0.3657894135, -0.1748247892, -0.2436130047, -0.3200425208, 0.1162307188, -0.0260169357, 0.6292793155, 0.0297143236, 0.0381200127, 0.1147235408, 0.2774614096, 0.2759171724, -0.0854885951, -0.2166498899, 0.1786701977, -0.2378203422, -0.0215209257, 0.161239624, 0.2129224539, -0.0830713809, -0.2121327072, 0.2197172493, -0.1749921888, 0.1203258038, 0.1290985197, 0.0473875478, 0.0890651643, -0.1238418743, 0.1089027375, 0.0671197176, -0.401573956, 0.0710534826, -0.1002557948, -0.0563346297, -0.042991206, -0.0234376695, -0.0130709829, -0.0271392148, -0.5459436774, -0.377019614, -0.5261209607, 0.2477651834, -0.1363980621, 0.0361794792, -0.0298616085, -0.0385843068, -0.0821270645, -0.0761665329, 0.097146593, -0.1557803303, -0.2647076845, 0.3093084991, -0.1937537789, -0.3331834078, 0.0525220893, 0.0334742516, 0.4599124491, -0.1099127457, -0.2499322742, -0.0082604224, 0.0481497161, 0.1831409931, -0.0998855755, -0.0763652548, 0.1136963069, 0.0019145353, 0.0809374377, 0.0523185804, -0.0090312874, 0.0228209626, 0.3389778733, 0.0246717259, 0.1336853206, 0.0670730472, -0.2461414337, 0.6589113474, 0.4580787122, 0.1489695907, 0.2617553473, -0.1942870617, 0.1342167258, -0.376175642, -0.3778225482, -0.0869117603, -0.2899262607, -0.0439897701, 0.5156700611, 0.168317467, 0.0095790541, -0.3771535754, -0.1830431521, -0.25266096, -0.2977062166, -0.097088404, -0.0431640297, 0.0250475314, 0.0584579259, 0.27664572, 0.0747421756, -0.1940095872, 0.2008768767, 0.0833837762, 0.2871515751, -0.0547909848, -0.0091231316, -0.0617869496, -0.4186169505, 0.030735556, 0.1404168606, 0.5342772603, -0.2269238234, -0.0143664945, 0.0638116747, 0.2099586725, 0.471422106, 0.2789838612, 0.2866942286, -0.0143522313, 0.1385069042, -0.1681811213, 0.018910585, -0.1692977548, 0.1190125421, 0.1815906167, 0.3798247278, -0.0311386418, -0.0768254846, -0.0938240141, 0.3332350254, 0.063780874, -0.1739415973, -0.1988146752, -0.040970277, -0.4132501185, 0.1862549186, 0.1207153723, 0.286724776, -0.3996558487, -0.0737971663, 0.399312228, -0.0290096104, 0.2683801949, 0.0717850849, 0.3302981853, -0.0184296891, 0.5079404116, 0.3419020772, 0.2793518007, -0.1264293939, 0.8726477027, 0.1646687537, -0.3246738315, 0.1023117453, -0.149307996, -0.1009910628, 0.5327776074, -0.0558519326, -0.1224867925, -0.0668300912, -0.0020890948, -0.3324739933, 0.2613469064, 0.3142693639, 0.2035782635, -0.398647815, -0.0536245368, 0.3759844601, 0.0135212298, -0.1539978832, 0.2730391026, 0.1535217911, -0.1843696684, 0.1181319952, -0.2964574099, 1.0028692484, 0.2921597064, 0.3827985823, 0.3312072158, -0.0403261073, -0.2509579062, -0.3336681724, 0.1212134659, -0.1953644753, -0.0099095702, -0.0872222781, -0.1132840663, 0.0103351912, 0.0850233212, -0.0476072803, 0.1601865739, 0.1450434476, 0.1558749229, 0.0908435658, 0.1495519727, -0.2061798722, -0.3624196053, 0.1376107782, -0.0363153405, 0.0081142839, 0.4701991081, 0.027335709, -0.209484756, -0.1235960573, -0.438398242, -0.2067750692, 0.453701973, -0.0249103811, 0.0152061582, 0.0138944313, -0.2945721447, 0.2844093144, 0.2792633772, 0.2409257591, 0.090792805, -0.4155937731, 0.3311749995, -0.0819166526, 0.1672662199, -0.0355670862, 0.1296280175, -0.0334904194, 0.0124400426, -0.2793114483, 0.1269563437, -0.0618117489, -0.0856310502, -0.0804424509, 0.2188522518, 0.3054023981, -0.2852373719, -0.3833873272, -0.0882368013, -0.0852071121, -0.0896967202, 0.0852396488, 0.0207937136, -0.2632099092, 0.0287935492, 0.1348295063, -0.1987015307, 0.0736178234, 0.7157284021, -0.2161949873, -0.4078350961, 0.5259316564, -0.0318778306, -0.1757954359, -0.1821542084, 0.0103163719, 0.2278850973, -0.7808638215, -0.0866458565, 0.0636204481, -0.0161699913, -0.2618471682, 0.2429135144, 0.1983937025, -0.1416163445, 0.0353549384, -0.3575725853, -0.3615680635, 0.1426129192, -0.0105691114, 0.2217365801, 0.1165070757, -0.1818761081, 0.0623243935, -0.1418389976, -0.2064755261, 0.1962670386, -0.0093957428, 0.0223486759, 0.0406391881, -0.1182879359, 0.2206023484, -0.0536708906, 0.1021472737, 0.3039660156, -0.1809481084, -0.0230821222, -0.042056676, 0.2178642154, 0.0237543471, -0.3877532184, 0.0289847888, 0.0621459, -0.0851417333, -0.1958113462, 0.2831712365, 0.4221121967, -0.047265213, 0.0137243066, -0.1423199475, 0.0326049402, -0.1692991406, 0.2432150096, -0.0935143456, 0.1820446849, -0.0198365003, 0.1315581352, -0.3124006689, -0.1121181399, -0.1025262401, 0.159474209, 0.4634879529, 0.0158157013, 0.3469350338, -0.1923014373, 0.219103545, -0.0662923008, 0.3411136866, 0.243523106, -0.3293388188, 0.0363704972, 0.075818345, 0.1057705283, -0.2272530645, -0.141453132, -0.0355771817, -0.3602019548, -0.0230461583, -0.0720689595, 0.2350688726, -0.2263320386, -0.0208520591, -0.1315588951, 0.5259667039, -0.0331822485, 0.0958411917, 0.4131129682, -0.0366346762, 0.1329773515, 0.0025172168, -0.0627715811, 0.0626216084, 0.7115365267, -0.697896421, 0.3227293193, -0.0281697139, 0.2082380354, 0.1571228653, -0.5921527147, -0.4516006112, -0.2154976726, -0.1937333941, 0.0185172465, 0.0262436923, 0.2545899451, -0.4387954772, -0.2378968894, -0.3239341378, -0.0800799578, -0.095855251, -0.0590523444, -0.0014112727, -0.2619789839, -0.2249436677, 0.0945829451, -0.1286766082, 0.0023502389, 0.0117432745, 0.1596601903, 0.0760015845, 0.1438912749, -0.3457694948, 0.140828833, -0.0928229988, -0.1601560414, 0.3072662354, 0.2355844527, -0.0000484988, 0.4841147065, 0.2116213888, 0.4119136035, 0.234680444, -0.1337094158, 0.2837245464, 0.0156705789, 0.0618948974, 0.1507524699, 0.1714079976, 0.1332450807, 0.4558269978, 0.1540386528, 0.1577102095, -0.0764060989, 0.0038071359, -0.1375314295, -0.0006682245, -0.3144747615, 0.2041217834, -0.3874047399, -0.1037590206, -0.2713550925, -0.1241194308, -0.3508108854, -0.0216773599, 0.2912822664, 0.0955891013, 0.1698872596, 0.0543495975, 0.0219345, -0.1371025443, 0.1877572089, 0.3938839436, 0.2558986843, -0.2204942405, -0.1704560965, -0.4875638783, 0.3560706377, 0.2565132082, 0.0751964599, 0.0132260472, -0.2334998995, -0.0868255123, 0.0671412051, 0.0081083383, -0.1266458035, -0.0661567897, -0.0246364698, -0.0781175569, -0.1059020683, 0.1523326039, 0.2788286209, -0.0965106264, -0.62411201, 0.1253813654, 0.1124529988, -0.0708944425, 0.0614711829, 0.0104366355, -0.2733327746, -0.0715710968, 0.1623188257, 0.0862414092, 0.5717628002, -0.2186176032, 0.0313815996, -0.1738715917, -0.3230480254, 0.0293313395, -0.2709759176, -0.0725021139, 0.5647905469, 0.0958296359, -0.0976571664, -0.3332045674, 0.0834664702, -0.1243080869, -0.0150797302, -0.5276535153, 0.053188879, -0.3631983995, 0.2352464944, 0.0355670638, 0.2045327723, -0.1933111697, 0.0221613087, -0.2092262357, -0.3602148592, 0.7947118878, -0.3871314526, -0.276792258, -0.1863599867, 0.4942856133, -0.0789814666, -0.0830265731, -0.3339046538, 0.2001395673, 0.1500469148, -0.0458775386, -0.2205297947, -0.0488215573, -0.1019377485, -0.208312884, -0.0481383726, 0.3108637333, 0.3925825059, -0.2813002765, 0.2817300856, -0.4908652008 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
Thanks! And sorry for posting this problem in what turned on to be an unrelated thread. I rewrote the code, and the model works. The WER is 0.137 however, so I'm not sure if I have missed a step. I will look further into that at a later point. The transcriptions look good through manual inspection. The rewritten code: ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor, Wav2Vec2Processor librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_pred(batch): audio = batch["audio"] features = processor(audio["array"], sampling_rate=audio["sampling_rate"], padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_features=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred)#, batched=True, batch_size=8) print("WER:", wer.compute(predictions=result["transcription"], references=result["text"])) ```
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
130
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 Thanks! And sorry for posting this problem in what turned on to be an unrelated thread. I rewrote the code, and the model works. The WER is 0.137 however, so I'm not sure if I have missed a step. I will look further into that at a later point. The transcriptions look good through manual inspection. The rewritten code: ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor, Wav2Vec2Processor librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_pred(batch): audio = batch["audio"] features = processor(audio["array"], sampling_rate=audio["sampling_rate"], padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_features=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred)#, batched=True, batch_size=8) print("WER:", wer.compute(predictions=result["transcription"], references=result["text"])) ```
[ -0.2770319879, -0.5579100847, 0.0958970264, 0.4342247546, 0.0972786099, 0.0279113352, 0.1583617181, 0.3387337327, 0.2213581651, 0.1552248895, -0.6184939742, 0.183975175, -0.0529414192, -0.3478996456, -0.0592965446, -0.1135332063, 0.0520580001, 0.1278967559, 0.006890594, -0.277669102, -0.2343375832, 0.2821361721, -0.2509042323, 0.3531128466, -0.4162026048, 0.0185996275, 0.2396683246, 0.5088718534, -0.1024073437, -0.331436187, 0.3121219873, -0.0491105691, 0.2130052894, 0.4274331629, -0.0001162671, 0.0184730384, 0.4207181633, -0.097756885, -0.1218052804, -0.2371644676, -0.1944369227, 0.3139553964, -0.0286919083, 0.1137941927, 0.0613359921, 0.2381329387, 0.0263982806, -0.1868386567, 0.6796951294, 0.4326781929, 0.1323567182, 0.3149060905, 0.0841515735, -0.1255196035, 0.2086741626, -0.053097479, 0.0639691502, 0.504984498, 0.3022057116, 0.0025928158, -0.0793269128, 0.1400800049, -0.3133850098, -0.0628073812, 0.0481954701, 0.0692130625, -0.4264243841, -0.3863293529, 0.1007079631, 0.2126056254, 0.3382567763, -0.2975596786, -0.2535224855, -0.0428770855, -0.0581557825, -0.1839535385, 0.2144216597, 0.3430327177, -0.3709092736, 0.2343452573, -0.1885352731, -0.0040326342, -0.1982618421, 0.0580186285, 0.1087792143, -0.0096028205, -0.0240887161, 0.1449941248, 0.2289453596, 0.0186749231, 0.0564753674, 0.0325042419, -0.1586492062, 0.3980389535, -0.3438359797, 0.0484002419, -0.1927221268, -0.0142849972, 0.1082153693, -0.0866936445, 0.243392542, 0.0587675124, -0.2349995822, 0.1037337258, 0.2314831913, 0.0601220541, -0.168599695, 0.0392540395, 0.2957637906, 0.0173963234, 0.0144713707, -0.185304001, -0.3221338987, -0.3186981976, -0.1433879435, 0.0979452133, 0.1926192492, -0.2711824775, -0.6065782309, 0.0459613912, -0.0339034945, 0.147974968, 0.1738497317, 0.3121117949, 0.0169770848, 0.3172359467, 0.2083357275, 0.3296192586, -0.2861898541, -0.0217170212, -0.0565776154, 0.131073907, -0.0900955126, 0.0901904777, 0.3719749451, -0.2276047319, 0.2882647812, 0.2036427706, 0.5024915934, -0.2462989241, -0.1376003921, -0.0910602808, -0.0856824741, 0.1525906175, 0.1454110295, 0.2447027564, -0.015700018, 0.1707411259, -0.1218492091, 0.2836284339, -0.5029199719, -0.227949053, -0.0633319765, 0.0843535066, -0.0691562295, 0.2116569877, -0.1249311939, -0.2575981915, -0.0573037118, -0.5344342589, -0.036678195, -0.2714860439, -0.1304270476, -0.0027764041, 0.3777683377, 0.368907541, -0.0393812247, 0.1228254512, 0.2582195401, 0.0001494278, 0.1149079204, 0.3810598552, -0.1746083498, 0.1120062619, -0.4848196805, 0.3561584055, 0.2281820178, -0.8792301416, -0.5025166273, 0.0628906637, -0.0371030495, 0.382660836, -0.0179999266, 0.0565459244, 0.1072388813, -0.0680894554, 0.4597161412, 0.2403299361, 0.1922263056, 0.0933542773, -0.0130216228, -0.1008040085, -0.0543645211, 0.1478838921, -0.0836538523, 0.1002054587, 0.0750493929, 0.2849222422, 0.4207440913, -0.0055230935, -0.0311348531, 0.0905108824, 0.1467068195, -0.3343494833, -0.0312448218, -0.1820218116, -0.2753308415, 0.264318645, -0.2552793324, -0.0025081886, -0.0780618042, -0.0329582393, -0.3929331601, -0.1374918371, -0.4621696174, -0.0791684389, -0.0706249028, -0.0419518799, -0.0931319594, -0.1247648746, -0.1491961926, 0.5878193974, 0.0550978556, 0.1242575496, -0.429130584, 0.3229444325, 0.0248242896, -0.0305085406, 0.1474134624, 0.2691017091, 0.1843524724, 0.0209694318, -0.3553528488, 0.3444258869, 0.0279488973, 0.5421096683, -0.260714829, -0.1729062051, 0.3404975832, -0.552588284, 0.1541156769, 0.2973219156, 0.2697526813, -0.0063639218, -0.1097388789, 0.2517597973, -0.1028215587, 0.0189354885, 0.0339779519, -0.0558216237, 0.1793692559, 0.1510204673, -0.1288963705, 0.2269888073, 0.1432147175, 0.2359798253, 0.5638933778, -0.2110592723, -0.2772647142, -0.4352059066, 0.3617575467, 0.0532026738, 0.0217404179, 0.2616481781, -0.3282069862, -0.0321820006, 0.2195219249, -0.5220210552, 0.4011757374, 0.0611053668, -0.0803284571, 0.2169059515, -0.0558602065, -0.0855525509, 0.0386698134, 0.0512189418, -0.1274962872, 0.5026897788, -0.0606315695, 0.0806713179, -0.4853989184, -0.0822648183, -0.3068591356, 0.0280653406, -0.4187680781, -0.1475482881, 0.0454655774, 0.3657894135, -0.1748247892, -0.2436130047, -0.3200425208, 0.1162307188, -0.0260169357, 0.6292793155, 0.0297143236, 0.0381200127, 0.1147235408, 0.2774614096, 0.2759171724, -0.0854885951, -0.2166498899, 0.1786701977, -0.2378203422, -0.0215209257, 0.161239624, 0.2129224539, -0.0830713809, -0.2121327072, 0.2197172493, -0.1749921888, 0.1203258038, 0.1290985197, 0.0473875478, 0.0890651643, -0.1238418743, 0.1089027375, 0.0671197176, -0.401573956, 0.0710534826, -0.1002557948, -0.0563346297, -0.042991206, -0.0234376695, -0.0130709829, -0.0271392148, -0.5459436774, -0.377019614, -0.5261209607, 0.2477651834, -0.1363980621, 0.0361794792, -0.0298616085, -0.0385843068, -0.0821270645, -0.0761665329, 0.097146593, -0.1557803303, -0.2647076845, 0.3093084991, -0.1937537789, -0.3331834078, 0.0525220893, 0.0334742516, 0.4599124491, -0.1099127457, -0.2499322742, -0.0082604224, 0.0481497161, 0.1831409931, -0.0998855755, -0.0763652548, 0.1136963069, 0.0019145353, 0.0809374377, 0.0523185804, -0.0090312874, 0.0228209626, 0.3389778733, 0.0246717259, 0.1336853206, 0.0670730472, -0.2461414337, 0.6589113474, 0.4580787122, 0.1489695907, 0.2617553473, -0.1942870617, 0.1342167258, -0.376175642, -0.3778225482, -0.0869117603, -0.2899262607, -0.0439897701, 0.5156700611, 0.168317467, 0.0095790541, -0.3771535754, -0.1830431521, -0.25266096, -0.2977062166, -0.097088404, -0.0431640297, 0.0250475314, 0.0584579259, 0.27664572, 0.0747421756, -0.1940095872, 0.2008768767, 0.0833837762, 0.2871515751, -0.0547909848, -0.0091231316, -0.0617869496, -0.4186169505, 0.030735556, 0.1404168606, 0.5342772603, -0.2269238234, -0.0143664945, 0.0638116747, 0.2099586725, 0.471422106, 0.2789838612, 0.2866942286, -0.0143522313, 0.1385069042, -0.1681811213, 0.018910585, -0.1692977548, 0.1190125421, 0.1815906167, 0.3798247278, -0.0311386418, -0.0768254846, -0.0938240141, 0.3332350254, 0.063780874, -0.1739415973, -0.1988146752, -0.040970277, -0.4132501185, 0.1862549186, 0.1207153723, 0.286724776, -0.3996558487, -0.0737971663, 0.399312228, -0.0290096104, 0.2683801949, 0.0717850849, 0.3302981853, -0.0184296891, 0.5079404116, 0.3419020772, 0.2793518007, -0.1264293939, 0.8726477027, 0.1646687537, -0.3246738315, 0.1023117453, -0.149307996, -0.1009910628, 0.5327776074, -0.0558519326, -0.1224867925, -0.0668300912, -0.0020890948, -0.3324739933, 0.2613469064, 0.3142693639, 0.2035782635, -0.398647815, -0.0536245368, 0.3759844601, 0.0135212298, -0.1539978832, 0.2730391026, 0.1535217911, -0.1843696684, 0.1181319952, -0.2964574099, 1.0028692484, 0.2921597064, 0.3827985823, 0.3312072158, -0.0403261073, -0.2509579062, -0.3336681724, 0.1212134659, -0.1953644753, -0.0099095702, -0.0872222781, -0.1132840663, 0.0103351912, 0.0850233212, -0.0476072803, 0.1601865739, 0.1450434476, 0.1558749229, 0.0908435658, 0.1495519727, -0.2061798722, -0.3624196053, 0.1376107782, -0.0363153405, 0.0081142839, 0.4701991081, 0.027335709, -0.209484756, -0.1235960573, -0.438398242, -0.2067750692, 0.453701973, -0.0249103811, 0.0152061582, 0.0138944313, -0.2945721447, 0.2844093144, 0.2792633772, 0.2409257591, 0.090792805, -0.4155937731, 0.3311749995, -0.0819166526, 0.1672662199, -0.0355670862, 0.1296280175, -0.0334904194, 0.0124400426, -0.2793114483, 0.1269563437, -0.0618117489, -0.0856310502, -0.0804424509, 0.2188522518, 0.3054023981, -0.2852373719, -0.3833873272, -0.0882368013, -0.0852071121, -0.0896967202, 0.0852396488, 0.0207937136, -0.2632099092, 0.0287935492, 0.1348295063, -0.1987015307, 0.0736178234, 0.7157284021, -0.2161949873, -0.4078350961, 0.5259316564, -0.0318778306, -0.1757954359, -0.1821542084, 0.0103163719, 0.2278850973, -0.7808638215, -0.0866458565, 0.0636204481, -0.0161699913, -0.2618471682, 0.2429135144, 0.1983937025, -0.1416163445, 0.0353549384, -0.3575725853, -0.3615680635, 0.1426129192, -0.0105691114, 0.2217365801, 0.1165070757, -0.1818761081, 0.0623243935, -0.1418389976, -0.2064755261, 0.1962670386, -0.0093957428, 0.0223486759, 0.0406391881, -0.1182879359, 0.2206023484, -0.0536708906, 0.1021472737, 0.3039660156, -0.1809481084, -0.0230821222, -0.042056676, 0.2178642154, 0.0237543471, -0.3877532184, 0.0289847888, 0.0621459, -0.0851417333, -0.1958113462, 0.2831712365, 0.4221121967, -0.047265213, 0.0137243066, -0.1423199475, 0.0326049402, -0.1692991406, 0.2432150096, -0.0935143456, 0.1820446849, -0.0198365003, 0.1315581352, -0.3124006689, -0.1121181399, -0.1025262401, 0.159474209, 0.4634879529, 0.0158157013, 0.3469350338, -0.1923014373, 0.219103545, -0.0662923008, 0.3411136866, 0.243523106, -0.3293388188, 0.0363704972, 0.075818345, 0.1057705283, -0.2272530645, -0.141453132, -0.0355771817, -0.3602019548, -0.0230461583, -0.0720689595, 0.2350688726, -0.2263320386, -0.0208520591, -0.1315588951, 0.5259667039, -0.0331822485, 0.0958411917, 0.4131129682, -0.0366346762, 0.1329773515, 0.0025172168, -0.0627715811, 0.0626216084, 0.7115365267, -0.697896421, 0.3227293193, -0.0281697139, 0.2082380354, 0.1571228653, -0.5921527147, -0.4516006112, -0.2154976726, -0.1937333941, 0.0185172465, 0.0262436923, 0.2545899451, -0.4387954772, -0.2378968894, -0.3239341378, -0.0800799578, -0.095855251, -0.0590523444, -0.0014112727, -0.2619789839, -0.2249436677, 0.0945829451, -0.1286766082, 0.0023502389, 0.0117432745, 0.1596601903, 0.0760015845, 0.1438912749, -0.3457694948, 0.140828833, -0.0928229988, -0.1601560414, 0.3072662354, 0.2355844527, -0.0000484988, 0.4841147065, 0.2116213888, 0.4119136035, 0.234680444, -0.1337094158, 0.2837245464, 0.0156705789, 0.0618948974, 0.1507524699, 0.1714079976, 0.1332450807, 0.4558269978, 0.1540386528, 0.1577102095, -0.0764060989, 0.0038071359, -0.1375314295, -0.0006682245, -0.3144747615, 0.2041217834, -0.3874047399, -0.1037590206, -0.2713550925, -0.1241194308, -0.3508108854, -0.0216773599, 0.2912822664, 0.0955891013, 0.1698872596, 0.0543495975, 0.0219345, -0.1371025443, 0.1877572089, 0.3938839436, 0.2558986843, -0.2204942405, -0.1704560965, -0.4875638783, 0.3560706377, 0.2565132082, 0.0751964599, 0.0132260472, -0.2334998995, -0.0868255123, 0.0671412051, 0.0081083383, -0.1266458035, -0.0661567897, -0.0246364698, -0.0781175569, -0.1059020683, 0.1523326039, 0.2788286209, -0.0965106264, -0.62411201, 0.1253813654, 0.1124529988, -0.0708944425, 0.0614711829, 0.0104366355, -0.2733327746, -0.0715710968, 0.1623188257, 0.0862414092, 0.5717628002, -0.2186176032, 0.0313815996, -0.1738715917, -0.3230480254, 0.0293313395, -0.2709759176, -0.0725021139, 0.5647905469, 0.0958296359, -0.0976571664, -0.3332045674, 0.0834664702, -0.1243080869, -0.0150797302, -0.5276535153, 0.053188879, -0.3631983995, 0.2352464944, 0.0355670638, 0.2045327723, -0.1933111697, 0.0221613087, -0.2092262357, -0.3602148592, 0.7947118878, -0.3871314526, -0.276792258, -0.1863599867, 0.4942856133, -0.0789814666, -0.0830265731, -0.3339046538, 0.2001395673, 0.1500469148, -0.0458775386, -0.2205297947, -0.0488215573, -0.1019377485, -0.208312884, -0.0481383726, 0.3108637333, 0.3925825059, -0.2813002765, 0.2817300856, -0.4908652008 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
I think the issue comes from the fact that you set `batched=False` while `map_to_pred` still returns a list of strings for "transcription". You can fix it by adding `[0]` at the end of this line to get the string: ```python batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True)[0] ```
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
45
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β€œ\'\οΏ½]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 I think the issue comes from the fact that you set `batched=False` while `map_to_pred` still returns a list of strings for "transcription". You can fix it by adding `[0]` at the end of this line to get the string: ```python batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True)[0] ```
[ -0.2770319879, -0.5579100847, 0.0958970264, 0.4342247546, 0.0972786099, 0.0279113352, 0.1583617181, 0.3387337327, 0.2213581651, 0.1552248895, -0.6184939742, 0.183975175, -0.0529414192, -0.3478996456, -0.0592965446, -0.1135332063, 0.0520580001, 0.1278967559, 0.006890594, -0.277669102, -0.2343375832, 0.2821361721, -0.2509042323, 0.3531128466, -0.4162026048, 0.0185996275, 0.2396683246, 0.5088718534, -0.1024073437, -0.331436187, 0.3121219873, -0.0491105691, 0.2130052894, 0.4274331629, -0.0001162671, 0.0184730384, 0.4207181633, -0.097756885, -0.1218052804, -0.2371644676, -0.1944369227, 0.3139553964, -0.0286919083, 0.1137941927, 0.0613359921, 0.2381329387, 0.0263982806, -0.1868386567, 0.6796951294, 0.4326781929, 0.1323567182, 0.3149060905, 0.0841515735, -0.1255196035, 0.2086741626, -0.053097479, 0.0639691502, 0.504984498, 0.3022057116, 0.0025928158, -0.0793269128, 0.1400800049, -0.3133850098, -0.0628073812, 0.0481954701, 0.0692130625, -0.4264243841, -0.3863293529, 0.1007079631, 0.2126056254, 0.3382567763, -0.2975596786, -0.2535224855, -0.0428770855, -0.0581557825, -0.1839535385, 0.2144216597, 0.3430327177, -0.3709092736, 0.2343452573, -0.1885352731, -0.0040326342, -0.1982618421, 0.0580186285, 0.1087792143, -0.0096028205, -0.0240887161, 0.1449941248, 0.2289453596, 0.0186749231, 0.0564753674, 0.0325042419, -0.1586492062, 0.3980389535, -0.3438359797, 0.0484002419, -0.1927221268, -0.0142849972, 0.1082153693, -0.0866936445, 0.243392542, 0.0587675124, -0.2349995822, 0.1037337258, 0.2314831913, 0.0601220541, -0.168599695, 0.0392540395, 0.2957637906, 0.0173963234, 0.0144713707, -0.185304001, -0.3221338987, -0.3186981976, -0.1433879435, 0.0979452133, 0.1926192492, -0.2711824775, -0.6065782309, 0.0459613912, -0.0339034945, 0.147974968, 0.1738497317, 0.3121117949, 0.0169770848, 0.3172359467, 0.2083357275, 0.3296192586, -0.2861898541, -0.0217170212, -0.0565776154, 0.131073907, -0.0900955126, 0.0901904777, 0.3719749451, -0.2276047319, 0.2882647812, 0.2036427706, 0.5024915934, -0.2462989241, -0.1376003921, -0.0910602808, -0.0856824741, 0.1525906175, 0.1454110295, 0.2447027564, -0.015700018, 0.1707411259, -0.1218492091, 0.2836284339, -0.5029199719, -0.227949053, -0.0633319765, 0.0843535066, -0.0691562295, 0.2116569877, -0.1249311939, -0.2575981915, -0.0573037118, -0.5344342589, -0.036678195, -0.2714860439, -0.1304270476, -0.0027764041, 0.3777683377, 0.368907541, -0.0393812247, 0.1228254512, 0.2582195401, 0.0001494278, 0.1149079204, 0.3810598552, -0.1746083498, 0.1120062619, -0.4848196805, 0.3561584055, 0.2281820178, -0.8792301416, -0.5025166273, 0.0628906637, -0.0371030495, 0.382660836, -0.0179999266, 0.0565459244, 0.1072388813, -0.0680894554, 0.4597161412, 0.2403299361, 0.1922263056, 0.0933542773, -0.0130216228, -0.1008040085, -0.0543645211, 0.1478838921, -0.0836538523, 0.1002054587, 0.0750493929, 0.2849222422, 0.4207440913, -0.0055230935, -0.0311348531, 0.0905108824, 0.1467068195, -0.3343494833, -0.0312448218, -0.1820218116, -0.2753308415, 0.264318645, -0.2552793324, -0.0025081886, -0.0780618042, -0.0329582393, -0.3929331601, -0.1374918371, -0.4621696174, -0.0791684389, -0.0706249028, -0.0419518799, -0.0931319594, -0.1247648746, -0.1491961926, 0.5878193974, 0.0550978556, 0.1242575496, -0.429130584, 0.3229444325, 0.0248242896, -0.0305085406, 0.1474134624, 0.2691017091, 0.1843524724, 0.0209694318, -0.3553528488, 0.3444258869, 0.0279488973, 0.5421096683, -0.260714829, -0.1729062051, 0.3404975832, -0.552588284, 0.1541156769, 0.2973219156, 0.2697526813, -0.0063639218, -0.1097388789, 0.2517597973, -0.1028215587, 0.0189354885, 0.0339779519, -0.0558216237, 0.1793692559, 0.1510204673, -0.1288963705, 0.2269888073, 0.1432147175, 0.2359798253, 0.5638933778, -0.2110592723, -0.2772647142, -0.4352059066, 0.3617575467, 0.0532026738, 0.0217404179, 0.2616481781, -0.3282069862, -0.0321820006, 0.2195219249, -0.5220210552, 0.4011757374, 0.0611053668, -0.0803284571, 0.2169059515, -0.0558602065, -0.0855525509, 0.0386698134, 0.0512189418, -0.1274962872, 0.5026897788, -0.0606315695, 0.0806713179, -0.4853989184, -0.0822648183, -0.3068591356, 0.0280653406, -0.4187680781, -0.1475482881, 0.0454655774, 0.3657894135, -0.1748247892, -0.2436130047, -0.3200425208, 0.1162307188, -0.0260169357, 0.6292793155, 0.0297143236, 0.0381200127, 0.1147235408, 0.2774614096, 0.2759171724, -0.0854885951, -0.2166498899, 0.1786701977, -0.2378203422, -0.0215209257, 0.161239624, 0.2129224539, -0.0830713809, -0.2121327072, 0.2197172493, -0.1749921888, 0.1203258038, 0.1290985197, 0.0473875478, 0.0890651643, -0.1238418743, 0.1089027375, 0.0671197176, -0.401573956, 0.0710534826, -0.1002557948, -0.0563346297, -0.042991206, -0.0234376695, -0.0130709829, -0.0271392148, -0.5459436774, -0.377019614, -0.5261209607, 0.2477651834, -0.1363980621, 0.0361794792, -0.0298616085, -0.0385843068, -0.0821270645, -0.0761665329, 0.097146593, -0.1557803303, -0.2647076845, 0.3093084991, -0.1937537789, -0.3331834078, 0.0525220893, 0.0334742516, 0.4599124491, -0.1099127457, -0.2499322742, -0.0082604224, 0.0481497161, 0.1831409931, -0.0998855755, -0.0763652548, 0.1136963069, 0.0019145353, 0.0809374377, 0.0523185804, -0.0090312874, 0.0228209626, 0.3389778733, 0.0246717259, 0.1336853206, 0.0670730472, -0.2461414337, 0.6589113474, 0.4580787122, 0.1489695907, 0.2617553473, -0.1942870617, 0.1342167258, -0.376175642, -0.3778225482, -0.0869117603, -0.2899262607, -0.0439897701, 0.5156700611, 0.168317467, 0.0095790541, -0.3771535754, -0.1830431521, -0.25266096, -0.2977062166, -0.097088404, -0.0431640297, 0.0250475314, 0.0584579259, 0.27664572, 0.0747421756, -0.1940095872, 0.2008768767, 0.0833837762, 0.2871515751, -0.0547909848, -0.0091231316, -0.0617869496, -0.4186169505, 0.030735556, 0.1404168606, 0.5342772603, -0.2269238234, -0.0143664945, 0.0638116747, 0.2099586725, 0.471422106, 0.2789838612, 0.2866942286, -0.0143522313, 0.1385069042, -0.1681811213, 0.018910585, -0.1692977548, 0.1190125421, 0.1815906167, 0.3798247278, -0.0311386418, -0.0768254846, -0.0938240141, 0.3332350254, 0.063780874, -0.1739415973, -0.1988146752, -0.040970277, -0.4132501185, 0.1862549186, 0.1207153723, 0.286724776, -0.3996558487, -0.0737971663, 0.399312228, -0.0290096104, 0.2683801949, 0.0717850849, 0.3302981853, -0.0184296891, 0.5079404116, 0.3419020772, 0.2793518007, -0.1264293939, 0.8726477027, 0.1646687537, -0.3246738315, 0.1023117453, -0.149307996, -0.1009910628, 0.5327776074, -0.0558519326, -0.1224867925, -0.0668300912, -0.0020890948, -0.3324739933, 0.2613469064, 0.3142693639, 0.2035782635, -0.398647815, -0.0536245368, 0.3759844601, 0.0135212298, -0.1539978832, 0.2730391026, 0.1535217911, -0.1843696684, 0.1181319952, -0.2964574099, 1.0028692484, 0.2921597064, 0.3827985823, 0.3312072158, -0.0403261073, -0.2509579062, -0.3336681724, 0.1212134659, -0.1953644753, -0.0099095702, -0.0872222781, -0.1132840663, 0.0103351912, 0.0850233212, -0.0476072803, 0.1601865739, 0.1450434476, 0.1558749229, 0.0908435658, 0.1495519727, -0.2061798722, -0.3624196053, 0.1376107782, -0.0363153405, 0.0081142839, 0.4701991081, 0.027335709, -0.209484756, -0.1235960573, -0.438398242, -0.2067750692, 0.453701973, -0.0249103811, 0.0152061582, 0.0138944313, -0.2945721447, 0.2844093144, 0.2792633772, 0.2409257591, 0.090792805, -0.4155937731, 0.3311749995, -0.0819166526, 0.1672662199, -0.0355670862, 0.1296280175, -0.0334904194, 0.0124400426, -0.2793114483, 0.1269563437, -0.0618117489, -0.0856310502, -0.0804424509, 0.2188522518, 0.3054023981, -0.2852373719, -0.3833873272, -0.0882368013, -0.0852071121, -0.0896967202, 0.0852396488, 0.0207937136, -0.2632099092, 0.0287935492, 0.1348295063, -0.1987015307, 0.0736178234, 0.7157284021, -0.2161949873, -0.4078350961, 0.5259316564, -0.0318778306, -0.1757954359, -0.1821542084, 0.0103163719, 0.2278850973, -0.7808638215, -0.0866458565, 0.0636204481, -0.0161699913, -0.2618471682, 0.2429135144, 0.1983937025, -0.1416163445, 0.0353549384, -0.3575725853, -0.3615680635, 0.1426129192, -0.0105691114, 0.2217365801, 0.1165070757, -0.1818761081, 0.0623243935, -0.1418389976, -0.2064755261, 0.1962670386, -0.0093957428, 0.0223486759, 0.0406391881, -0.1182879359, 0.2206023484, -0.0536708906, 0.1021472737, 0.3039660156, -0.1809481084, -0.0230821222, -0.042056676, 0.2178642154, 0.0237543471, -0.3877532184, 0.0289847888, 0.0621459, -0.0851417333, -0.1958113462, 0.2831712365, 0.4221121967, -0.047265213, 0.0137243066, -0.1423199475, 0.0326049402, -0.1692991406, 0.2432150096, -0.0935143456, 0.1820446849, -0.0198365003, 0.1315581352, -0.3124006689, -0.1121181399, -0.1025262401, 0.159474209, 0.4634879529, 0.0158157013, 0.3469350338, -0.1923014373, 0.219103545, -0.0662923008, 0.3411136866, 0.243523106, -0.3293388188, 0.0363704972, 0.075818345, 0.1057705283, -0.2272530645, -0.141453132, -0.0355771817, -0.3602019548, -0.0230461583, -0.0720689595, 0.2350688726, -0.2263320386, -0.0208520591, -0.1315588951, 0.5259667039, -0.0331822485, 0.0958411917, 0.4131129682, -0.0366346762, 0.1329773515, 0.0025172168, -0.0627715811, 0.0626216084, 0.7115365267, -0.697896421, 0.3227293193, -0.0281697139, 0.2082380354, 0.1571228653, -0.5921527147, -0.4516006112, -0.2154976726, -0.1937333941, 0.0185172465, 0.0262436923, 0.2545899451, -0.4387954772, -0.2378968894, -0.3239341378, -0.0800799578, -0.095855251, -0.0590523444, -0.0014112727, -0.2619789839, -0.2249436677, 0.0945829451, -0.1286766082, 0.0023502389, 0.0117432745, 0.1596601903, 0.0760015845, 0.1438912749, -0.3457694948, 0.140828833, -0.0928229988, -0.1601560414, 0.3072662354, 0.2355844527, -0.0000484988, 0.4841147065, 0.2116213888, 0.4119136035, 0.234680444, -0.1337094158, 0.2837245464, 0.0156705789, 0.0618948974, 0.1507524699, 0.1714079976, 0.1332450807, 0.4558269978, 0.1540386528, 0.1577102095, -0.0764060989, 0.0038071359, -0.1375314295, -0.0006682245, -0.3144747615, 0.2041217834, -0.3874047399, -0.1037590206, -0.2713550925, -0.1241194308, -0.3508108854, -0.0216773599, 0.2912822664, 0.0955891013, 0.1698872596, 0.0543495975, 0.0219345, -0.1371025443, 0.1877572089, 0.3938839436, 0.2558986843, -0.2204942405, -0.1704560965, -0.4875638783, 0.3560706377, 0.2565132082, 0.0751964599, 0.0132260472, -0.2334998995, -0.0868255123, 0.0671412051, 0.0081083383, -0.1266458035, -0.0661567897, -0.0246364698, -0.0781175569, -0.1059020683, 0.1523326039, 0.2788286209, -0.0965106264, -0.62411201, 0.1253813654, 0.1124529988, -0.0708944425, 0.0614711829, 0.0104366355, -0.2733327746, -0.0715710968, 0.1623188257, 0.0862414092, 0.5717628002, -0.2186176032, 0.0313815996, -0.1738715917, -0.3230480254, 0.0293313395, -0.2709759176, -0.0725021139, 0.5647905469, 0.0958296359, -0.0976571664, -0.3332045674, 0.0834664702, -0.1243080869, -0.0150797302, -0.5276535153, 0.053188879, -0.3631983995, 0.2352464944, 0.0355670638, 0.2045327723, -0.1933111697, 0.0221613087, -0.2092262357, -0.3602148592, 0.7947118878, -0.3871314526, -0.276792258, -0.1863599867, 0.4942856133, -0.0789814666, -0.0830265731, -0.3339046538, 0.2001395673, 0.1500469148, -0.0458775386, -0.2205297947, -0.0488215573, -0.1019377485, -0.208312884, -0.0481383726, 0.3108637333, 0.3925825059, -0.2813002765, 0.2817300856, -0.4908652008 ]
https://github.com/huggingface/datasets/issues/3906
NonMatchingChecksumError on Spider dataset
Hi @kolk, thanks for reporting. Indeed, Google Drive service recently changed their service and we had to add a fix to our library to cope with that change: - #3787 We just made patch release last week: 1.18.4 https://github.com/huggingface/datasets/releases/tag/1.18.4 Please, feel free to update your local `datasets` version, so that you get the fix: ```shell pip install -U datasets ```
## Describe the bug Failure to generate dataset ```spider``` because of checksums error for dataset source files. ## Steps to reproduce the bug ``` from datasets import load_dataset spider = load_dataset("spider") ``` ## Expected results Checksums should match for files from url ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ## Actual results ``` >>> load_dataset("spider") load_dataset("spider") Downloading and preparing dataset spider/spider (download: 95.12 MiB, generated: 5.17 MiB, post-processed: Unknown size, total: 100.29 MiB) to /home/user/.cache/huggingface/datasets/spider/spider/1.0.0/79778ebea87c59b19411f1eb3eda317e9dd5f7788a556d837ef25c3ae6e5e8b7... Traceback (most recent call last): File "/home/user/py3_env/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3441, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-5-d4cb54197348>", line 1, in <module> load_dataset("spider") File "/home/user/py3_env/lib/python3.8/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ``` ## Environment info datasets version: 1.18.3 Platform: Ubuntu 20 LTS Python version: 3.8.10 PyArrow version: 6.0.1
60
NonMatchingChecksumError on Spider dataset ## Describe the bug Failure to generate dataset ```spider``` because of checksums error for dataset source files. ## Steps to reproduce the bug ``` from datasets import load_dataset spider = load_dataset("spider") ``` ## Expected results Checksums should match for files from url ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ## Actual results ``` >>> load_dataset("spider") load_dataset("spider") Downloading and preparing dataset spider/spider (download: 95.12 MiB, generated: 5.17 MiB, post-processed: Unknown size, total: 100.29 MiB) to /home/user/.cache/huggingface/datasets/spider/spider/1.0.0/79778ebea87c59b19411f1eb3eda317e9dd5f7788a556d837ef25c3ae6e5e8b7... Traceback (most recent call last): File "/home/user/py3_env/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3441, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-5-d4cb54197348>", line 1, in <module> load_dataset("spider") File "/home/user/py3_env/lib/python3.8/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ``` ## Environment info datasets version: 1.18.3 Platform: Ubuntu 20 LTS Python version: 3.8.10 PyArrow version: 6.0.1 Hi @kolk, thanks for reporting. Indeed, Google Drive service recently changed their service and we had to add a fix to our library to cope with that change: - #3787 We just made patch release last week: 1.18.4 https://github.com/huggingface/datasets/releases/tag/1.18.4 Please, feel free to update your local `datasets` version, so that you get the fix: ```shell pip install -U datasets ```
[ -0.1679656208, 0.0254893191, -0.0863610655, 0.2954742312, 0.3215496838, -0.1166106611, 0.1364505142, 0.4342504144, 0.1861151457, 0.2588539124, -0.2660089433, 0.0177099686, -0.0366365649, 0.100053817, -0.1914368868, 0.1708941758, -0.0017418487, 0.0505828373, -0.4116188586, -0.1128830612, -0.2612487376, 0.066386573, 0.0073930207, -0.2859492898, 0.1312402487, 0.149404183, 0.2227994204, 0.1876971424, -0.156773895, -0.2523315847, 0.1642959118, 0.0379324779, -0.0013274824, 0.4155563414, -0.0001117713, 0.1711550206, 0.2956293225, -0.0187093653, -0.3775075376, -0.0154737169, -0.2517727017, -0.3479459584, -0.1685917079, -0.289881289, -0.1090248451, 0.1399631202, 0.0478970706, -0.2327901423, 0.0860857219, 0.28518489, 0.2384160757, 0.6125794649, 0.2131854594, 0.0232693199, 0.3841732144, 0.0321942903, -0.1736341268, 0.1957051307, 0.2253400832, 0.1989520341, -0.3688898683, 0.1584022045, -0.0142052155, 0.1721507907, 0.1803520769, -0.0836849511, 0.1250654757, -0.374897033, 0.1349823475, 0.1953410804, 0.3362743258, -0.1857324988, -0.3668497205, -0.0177904628, -0.255886972, 0.1457055956, 0.2839544117, 0.3837304413, -0.2814314365, -0.0129025038, -0.5050472617, 0.3566197455, -0.1008978412, 0.1477631778, 0.3273884654, 0.2799344361, 0.0756826624, 0.0006085776, -0.1311927289, -0.2798726559, 0.2466348559, -0.308036387, -0.0511034988, 0.0926310867, -0.4308576286, -0.133595407, 0.1100370809, 0.3322860599, 0.4337327778, 0.6762374043, 0.0887895152, 0.0777811781, -0.0821387991, -0.0311617907, 0.0931548774, 0.0517930612, -0.0663487911, 0.1833836585, 0.4966814816, 0.4386215806, 0.056514129, 0.1035012677, 0.1021685749, -0.2871927619, 0.5880283713, 0.1843370646, 0.3593302369, -0.2924620211, -0.2455576062, 0.2702587247, -0.1003121436, -0.0230431017, 0.1609815508, 0.1803758889, -0.3155958951, -0.0268613361, 0.0883756205, 0.1450074613, -0.1772435904, -0.0995490998, -0.2915547192, -0.0572168939, -0.1498220712, -0.1041496471, 0.1891434044, -0.0071836608, 0.2658680975, 0.1193877608, 0.2343585342, -0.0817667767, 0.1897698492, -0.041355595, -0.1274435222, 0.4126690328, 0.0633048713, -0.0233971346, 0.1850410253, 0.0691346303, -0.0647882149, 0.1271274239, 0.0156467073, -0.2397377193, -0.0891634077, 0.2631021738, -0.4621054828, 0.0779598802, 0.0981587991, -0.4419333041, 0.2803558409, -0.0980944112, 0.134742111, -0.2901301086, -0.2041368186, -0.2873302698, 0.2677721381, 0.3509768844, 0.3208658099, 0.0927466378, 0.0663031116, -0.2560477257, 0.272252202, 0.243975684, -0.0363710076, 0.0093621211, -0.2981927991, -0.1732173115, 0.13135162, -0.2259348333, -0.4142882228, -0.0106275873, -0.0069067092, 0.4206263423, 0.2157868147, 0.1409048885, -0.0423571281, -0.0296327509, -0.0568706207, 0.1014776528, -0.0508248657, 0.2541747987, -0.2801445127, -0.1679412127, 0.0960810259, 0.1012674049, 0.0724211708, 0.121819526, 0.2149817646, -0.2567160726, 0.1568295509, -0.2339550108, 0.0757907033, 0.1255663633, 0.4142956138, -0.008463705, 0.0831239671, -0.3101629615, -0.4560266435, 0.4116440713, -0.2182251066, 0.3407104909, -0.3470615745, -0.1775734574, -0.3112814128, -0.09721414, -0.1612675339, -0.1045205966, 0.1421605945, 0.2236097306, 0.1847403944, -0.1796049625, 0.0860036016, 0.1932876706, -0.3327666521, 0.1498600245, -0.5810322165, 0.4491332471, -0.1153195947, -0.1458495408, 0.1303513646, 0.1455844939, -0.0320716128, 0.0291655827, -0.1593021005, 0.3726520836, 0.1808287948, -0.0344035923, -0.0361241065, 0.2395904809, -0.0390793011, -0.2366048247, 0.1406244636, 0.4901229739, 0.0480916761, 0.0115609691, -0.2281099409, 0.3029243946, -0.2631339431, 0.0840401649, 0.0854124948, 0.004578019, 0.2411206961, -0.0643826127, -0.2080500871, -0.0729263127, 0.1783103198, 0.0101790549, 0.2496869713, 0.1516426504, -0.2811575532, 0.0313886032, 0.1325373352, -0.0859315395, 0.0630345121, 0.1734748185, 0.1342914253, -0.0889674127, 0.1307596713, 0.3538673818, 0.2626613677, 0.1438976675, 0.1389661729, 0.0689511076, -0.1038346216, -0.106024757, 0.0551616251, 0.0143328346, -0.0144497575, 0.4606789947, 0.2667939961, -0.1306179017, -0.3886023462, -0.1377415061, -0.1729717106, 0.2812449038, -0.4171100855, -0.1218710393, -0.1354810745, -0.2149479389, -0.3599178195, 0.1103951111, -0.2717368305, -0.205774039, -0.13544406, 0.3662101924, -0.2997898459, 0.3312625885, -0.2938594818, -0.063932471, 0.1704418212, -0.171172753, 0.0319785438, 0.1669487655, 0.0391521044, 0.0775911212, 0.3167688549, 0.1294442266, 0.3987771869, -0.3342332542, 0.0362008624, -0.5946772695, -0.2428200841, -0.1130498648, 0.0139475437, 0.1447077096, 0.4299742877, 0.1122182757, 0.1420533508, -0.4234772623, 0.4049202502, -0.0649732724, -0.4167890549, 0.22320351, 0.0242802296, -0.0845944062, 0.0307878014, -0.1111185327, 0.0374430753, -0.3621681333, 0.0427726433, 0.1907775551, 0.2233325094, 0.1083919182, -0.0070755486, -0.014428488, 0.205519557, 0.3901852071, -0.1245260984, -0.6085828543, 0.4509720504, 0.0148972571, -0.221331954, -0.0627820939, -0.3001179695, 0.0889881626, 0.3230376542, -0.4250458777, -0.2102547139, -0.4416137934, 0.4154331684, 0.1584668607, 0.1317279786, 0.2263735831, 0.1449032426, -0.1119663343, -0.1887499541, -0.2462439239, 0.1474717259, -0.0600469895, 0.3447147012, -0.1012157053, 0.3811489046, -0.0756098256, 0.4806391597, 0.4218047857, 0.1028438434, 0.144744724, 0.0500763431, 0.3370552063, -0.0827153847, -0.2198396921, 0.0882623047, -0.0758264288, -0.2041312903, 0.020504212, 0.1251254529, 0.1781083941, -0.1402080357, -0.0677547902, -0.2175844014, -0.2990141511, -0.0332787335, -0.1347426027, 0.2736668289, 0.0371858031, 0.0521175303, -0.193019256, -0.131889686, 0.0702368841, 0.1094802469, 0.0546332076, -0.0410393365, -0.3864153922, 0.1372371018, -0.3034687638, 0.2156796753, 0.3026650846, 0.3084520102, 0.1229997277, -0.2125839144, -0.1602419615, -0.0688333958, 0.4302879274, -0.3439381421, 0.3161688149, -0.0009477754, -0.1937978566, -0.0435674749, -0.097654663, 0.0269302465, -0.0927096754, 0.3193938136, 0.2746089101, -0.4805346429, 0.0808795989, 0.4805932343, 0.4624894261, -0.0785759315, -0.1560350358, -0.3604644239, -0.2384887338, -0.2931560874, -0.0425975546, -0.0034587518, 0.1910269111, -0.0355788097, -0.1280350983, 0.0544763841, -0.0982704014, 0.2123315185, 0.0957985967, 0.1873288155, -0.0502217524, 0.530667305, -0.1899328381, -0.2275899947, 0.189360708, 0.9041652083, -0.4054532647, -0.590942204, -0.0810647458, -0.1601407379, -0.2469523698, 0.0557856672, 0.0352455303, -0.2437466681, 0.3888830543, -0.0007011722, -0.0755049065, -0.1468984783, 0.0994324461, 0.1496446729, -0.2541827559, -0.2613088787, 0.0753687769, -0.1669541001, 0.0278621186, 0.3667790294, 0.0047432799, -0.083864592, 0.0762129202, 0.1936839223, 0.745721817, 0.0163590256, 0.0415965356, 0.2095817327, -0.2130662352, 0.1852798164, 0.0212426763, -0.0228584111, -0.4402029514, -0.5098686814, 0.0261911843, -0.2784948647, 0.015948534, 0.0611621514, 0.1024606973, 0.3045133948, -0.1234584749, 0.466411978, 0.0598369278, 0.1594548374, -0.2128706425, -0.0771287158, -0.0346607156, 0.2214943916, -0.1869230866, 0.2379306257, -0.054066509, 0.0468642637, -0.0969206318, -0.1942042559, -0.3158219159, 0.3252899647, 0.019246012, 0.1973109245, 0.4487472475, -0.3185153604, -0.1679399163, 0.1357402056, 0.2521143854, 0.2901900411, -0.1741521806, 0.0285173319, 0.5030845404, 0.1938999742, 0.1739336997, 0.0831251591, 0.432164222, -0.1506126225, -0.0857165977, -0.050005205, 0.0005820318, -0.4203118384, 0.171165362, -0.172391966, -0.1752253622, -0.5125873685, -0.0855200142, -0.2063180059, -0.0939474702, -0.3690592945, 0.1840275228, 0.2243172377, -0.154033795, 0.1467107981, -0.0351651125, -0.2979356349, -0.1167014763, 0.4514397383, 0.1426970065, -0.244031176, 0.2308420539, 0.0262782462, -0.298466593, -0.2130097449, 0.0996283293, -0.1557775736, -0.5088308454, 0.2649193704, -0.3336535394, 0.1312558204, -0.1480467767, 0.276807487, 0.2203038037, 0.2142754495, 0.1752122641, -0.4406707585, -0.1606898457, 0.0543788187, 0.2421799749, 0.3161925077, -0.2870351672, 0.0484689437, -0.0805880874, -0.2952456772, -0.3630438149, -0.2205742151, -0.4493401647, 0.0383171067, -0.0276364107, -0.0656424761, -0.0071457271, -0.0576877818, 0.2515709102, -0.1159270629, -0.221832186, -0.2106714398, -0.225644365, 0.1125449464, -0.0045501417, -0.2539743483, 0.2082334012, -0.0973921344, -0.1215713099, -0.2578058243, 0.0398731567, 0.2746001482, -0.1016313285, -0.0680887029, 0.1739274859, 0.0039587133, -0.0176815316, -0.0129277539, -0.3517740071, -0.0065474138, -0.0744978637, 0.0787919462, -0.1259577125, -0.0780941099, 0.0704372451, 0.0459456481, 0.0621444844, 0.0081705144, 0.3778411746, -0.0695417449, -0.3604958355, 0.2283973247, 0.3751109242, 0.384557575, -0.219276756, -0.044164829, 0.0515927151, 0.2784509361, -0.3574478924, -0.0622855797, -0.1626354754, -0.0780798569, 0.1352084875, 0.237880066, -0.1772198081, -0.3327308595, 0.6597554684, 0.066332154, 0.2407731414, -0.2817284763, 0.2299887985, 0.4328608811, -0.0488446578, -0.0859926417, 0.3226188123, -0.2247238308, 0.0787870511, 0.0449351221, 0.0731655434, 0.2292580158, 0.0717679411, 0.1210124716, -0.1592257768, -0.2295267135, 0.0853566825, -0.1028772816, -0.0997298434, 0.0193135254, 0.1769046485, 0.1925033331, -0.2803204954, 0.2240882367, -0.4122211337, -0.0132404715, -0.0828992426, 0.0878832787, -0.1807034612, -0.2011931837, -0.0252389982, 0.0900448114, -0.0510854572, 0.0343296826, 0.1838970929, -0.0131174456, -0.0928308666, -0.4060719609, -0.0677316263, -0.026208939, 0.0359252058, -0.263576746, 0.2042148411, 0.6374577284, -0.114207387, -0.0559997484, 0.3909936547, 0.4715386927, 0.3039644957, 0.0783581212, -0.0081767859, -0.0227831118, -0.0024701608, -0.163829118, 0.5176703334, 0.0009213708, 0.0606300049, 0.3803854883, 0.178292796, -0.2315027267, -0.0485422611, -0.1466301233, -0.3697526753, -0.1213254109, 0.7142721415, -0.0662008673, 0.02914235, -0.030819146, 0.0077906395, -0.1854120046, -0.182059139, -0.0434548967, 0.080312416, 0.0890638083, -0.0864532143, 0.1090128794, -0.1309034228, 0.4016920924, 0.2054682523, 0.0922980681, -0.2069975287, -0.2887666225, -0.611612916, 0.260371536, -0.2338228524, -0.2303430587, -0.061389789, 0.1249003187, -0.1808339655, 0.1717883795, 0.1783118248, -0.1176827475, -0.1783399433, 0.0056716162, -0.1461266279, -0.1505627781, -0.0995438844, -0.2074049115, -0.0614127442, -0.488180548, 0.2587379515, 0.02838967, 0.194469437, 0.0382672511, -0.1708189845, 0.0817775279, -0.0433679037, 0.0775353312, 0.1810546219, 0.5223297477, -0.1226822957, -0.1504426748, -0.1628185064, -0.3888270855, -0.1256764084, 0.3456370533, 0.0279287118, 0.5277639627, 0.1886564344, -0.0919534639, -0.26863873, 0.4241324663, 0.1385413706, -0.0869656578, 0.0173706412, 0.2662545741, -0.2107404321, -0.0130774742, 0.1119057015, 0.0011199964, 0.1151793897, 0.152153179, -0.2020545751, -0.4162653685, 0.5105514526, -0.0389683694, -0.3001614809, -0.3912934065, 0.2266006768, -0.3000145257, -0.1793843508, -0.5620110631, 0.1476326883, 0.3348211348, 0.1493201107, -0.1468608975, 0.2461377233, -0.2388169467, 0.167655021, 0.0937107801, 0.1738240719, 0.0078354357, -0.1619553864, 0.0322729871, -0.1892439872 ]
https://github.com/huggingface/datasets/issues/3904
CONLL2003 Dataset not available
Thanks for reporting, @omarespejel. I'm sorry but I can't reproduce the issue: the loading of the dataset works perfecto for me and I can reach the data URL: https://data.deepai.org/conll2003.zip Might it be due to a temporary problem in the data owner site (https://data.deepai.org/) that is fixed now? Could you please try loading the dataset again and tell if the problem persists?
## Describe the bug [CONLL2003](https://huggingface.co/datasets/conll2003) Dataset can no longer reach 'https://data.deepai.org/conll2003.zip' ![image](https://user-images.githubusercontent.com/4755430/158084483-ff83631c-5154-4823-892d-577bf1166db0.png) ## Steps to reproduce the bug ```python from datasets import load_dataset datasets = load_dataset("conll2003") ``` ## Expected results Download the conll2003 dataset. ## Actual results Error: `ConnectionError: Couldn't reach https://data.deepai.org/conll2003.zip (error 502)`
61
CONLL2003 Dataset not available ## Describe the bug [CONLL2003](https://huggingface.co/datasets/conll2003) Dataset can no longer reach 'https://data.deepai.org/conll2003.zip' ![image](https://user-images.githubusercontent.com/4755430/158084483-ff83631c-5154-4823-892d-577bf1166db0.png) ## Steps to reproduce the bug ```python from datasets import load_dataset datasets = load_dataset("conll2003") ``` ## Expected results Download the conll2003 dataset. ## Actual results Error: `ConnectionError: Couldn't reach https://data.deepai.org/conll2003.zip (error 502)` Thanks for reporting, @omarespejel. I'm sorry but I can't reproduce the issue: the loading of the dataset works perfecto for me and I can reach the data URL: https://data.deepai.org/conll2003.zip Might it be due to a temporary problem in the data owner site (https://data.deepai.org/) that is fixed now? Could you please try loading the dataset again and tell if the problem persists?
[ -0.1911518276, 0.0150689464, -0.0434647501, 0.3382745683, 0.1922971457, 0.003914088, 0.2465217412, 0.115426749, -0.3758270442, 0.1485975087, -0.0861063376, 0.2452334911, 0.4535978734, 0.1852293909, -0.0381423049, -0.0447143614, 0.0035965363, -0.0125611164, -0.2133074552, 0.060949903, -0.3082914948, 0.1839656681, -0.3245493174, -0.1091960073, -0.2825885415, 0.1720990539, -0.0765402019, 0.0668986887, -0.2217161655, -0.3594931662, 0.6459472775, -0.1387489289, 0.2191043645, 0.2534445524, -0.00012016, 0.1459243149, 0.4636394083, -0.0202064142, -0.3350783587, -0.1689817905, -0.5470793247, -0.3967564106, 0.0409623906, -0.0647046268, -0.1748000681, 0.2619149685, -0.1763679236, -0.3023730516, 0.2665678263, 0.2898651659, 0.1705027521, 0.4098834097, 0.5369909406, -0.2640504539, 0.2956157327, -0.4764299393, -0.1412765533, 0.4444653988, 0.1286041737, -0.1353072226, 0.2480102181, 0.2859276831, 0.1273667812, 0.0120101674, -0.0046517174, 0.0935138538, 0.0199154336, -0.4266195595, 0.0238516573, 0.2839432061, 0.6837104559, -0.0689507276, -0.5916916132, -0.1994309872, 0.1127128005, -0.3133717477, 0.3646000326, 0.0124567589, -0.0910699144, 0.2242888212, -0.062350072, -0.1471733451, -0.1829296499, 0.3587575555, -0.4926334918, 0.4509398937, -0.1948854327, 0.138131544, -0.1549957693, -0.0961884335, 0.4506493807, -0.044448439, 0.0477726161, 0.1217946261, -0.4915876687, -0.0423261411, -0.1596910357, -0.0642008558, 0.1879172921, 0.1100341231, 0.0488829874, -0.2731251121, -0.3385083973, 0.0699988157, 0.3205317557, -0.0032909364, -0.2013465166, 0.3205688596, 0.3586686254, 0.230640769, 0.2811116576, -0.1395231336, -0.1319959164, -0.2044193596, -0.1598122269, 0.1339294165, 0.3498338759, -0.1771915406, -0.4341409206, 0.1273285747, -0.3241239786, -0.0766065866, -0.0758738965, 0.2905042171, -0.2582843006, 0.2126728743, 0.1026142687, 0.3468854427, 0.1174509227, -0.4192105532, -0.0438922495, -0.2295736074, -0.2155324519, -0.268817842, 0.0998635292, -0.23148036, 0.2051388919, -0.0196308922, -0.0973447636, -0.1232243776, -0.0330593735, -0.0409924351, -0.1482225657, 0.1922342479, 0.1004594266, 0.032727357, 0.0971899927, 0.037022505, -0.0720088109, -0.0910900682, -0.3655589819, -0.135817349, -0.2648265064, 0.0936971903, -0.0976723656, -0.1589880884, 0.2533983588, -0.212345928, 0.0200807825, -0.1046253741, -0.0279646888, -0.0463968143, -0.4827392399, -0.1759018451, 0.322365731, 0.548045218, -0.4749997556, -0.0362134837, -0.2915672958, -0.1059942842, 0.0228660759, 0.0332909673, -0.1720676124, 0.0641267896, -0.4246784747, -0.2673772275, 0.253988564, -0.2158706784, -0.7834101319, 0.3035686612, -0.2715331912, 0.0399267934, -0.0451510474, -0.030614581, 0.0871111974, 0.0591293946, 0.3282386363, 0.2745509446, 0.1104791462, -0.1492655575, -0.1058250517, -0.231863305, 0.1638521403, 0.0751706585, 0.1366480142, 0.2822563052, 0.2140788585, -0.3216874003, 0.3102397025, 0.3172033727, 0.1883397102, 0.4131413996, 0.3903145194, 0.1772893816, 0.0249577574, 0.0406510271, -0.3179347813, 0.3623957932, -0.0240510833, 0.0268450454, -0.2266296297, 0.1080951616, -0.4873019457, 0.2320071012, -0.1956994236, 0.0249784086, 0.0417409502, 0.12907812, 0.1689208746, 0.2547793686, -0.1289105117, 0.4383783937, 0.1867350936, 0.1398230046, -0.4223472774, 0.4442608654, -0.0199257601, 0.0001935397, 0.1931784749, 0.1566052735, 0.2701597214, -0.0926456675, -0.1876109391, 0.2386397719, -0.0569416806, -0.0246096309, 0.0934085995, 0.1001344025, 0.262424618, -0.4059073329, 0.1694059372, 0.1568617374, 0.0502153598, 0.1710635126, 0.1034446955, 0.3641467094, 0.2523156703, 0.2222812623, -0.2074195892, 0.3584580421, 0.4630547762, -0.210083127, -0.0087660747, -0.1599050462, 0.0558339581, 0.1697686911, 0.4409283102, -0.1146016568, -0.1469866335, 0.0947868079, -0.0195965432, -0.1133596599, -0.0264145732, 0.3090710938, -0.1818435788, 0.0792046338, 0.0371025093, 0.5061416626, 0.359976083, 0.0418611392, 0.0449688323, -0.0392535888, -0.0350655131, -0.1829444617, 0.2657364607, 0.0688487291, 0.3184828758, 0.2294777781, 0.203052476, 0.1862417758, 0.0453628376, -0.239032656, 0.0426083095, 0.0715348795, -0.2365990877, -0.0199943632, -0.2338452339, -0.4098162055, -0.0456623174, 0.0284283627, -0.3025400639, -0.28744784, -0.2033435851, 0.0506741591, 0.0158918016, 0.0153628578, -0.4120531678, 0.109239772, 0.1572521627, 0.1207507923, -0.067846559, -0.0636953115, -0.0878444836, 0.0082011018, 0.0945230871, -0.5000405312, 0.1805098057, -0.1945451796, 0.0079023466, -0.4518945515, -0.0643011481, 0.3004822731, 0.0559653267, 0.3807735145, 0.2168628275, 0.2670297325, 0.1977685839, 0.1379682124, 0.3405519426, 0.1533914804, -0.1198729426, 0.1192779467, 0.0086196251, 0.0763529465, 0.2641282976, -0.0704363212, -0.3452371657, -0.251730293, 0.0568005517, -0.2325160652, 0.0757076144, -0.0163783394, 0.0946914107, -0.0341456942, -0.0891997516, 0.0468294434, -0.2320615202, -0.5243462324, 0.3111768663, -0.1474945545, -0.3804163933, 0.0246470831, -0.0843498111, 0.236596629, -0.0833291039, -0.5951572657, 0.0443734154, -0.3468745649, 0.4830991626, -0.1941372901, 0.0033993744, 0.1338634938, -0.1919364035, -0.0108311847, -0.1178723499, -0.3783438802, -0.2068362683, 0.0041138437, 0.5642998815, 0.33328107, 0.3320016861, -0.0267356876, 0.2641959786, 0.3869241774, 0.0395045094, 0.5707176328, -0.0498800389, 0.245075956, -0.0015230859, -0.392042309, -0.2506348193, -0.1181739867, -0.0007198883, -0.0969877765, 0.1366652995, -0.0840372667, -0.4082030058, -0.1804795116, -0.4638148248, -0.3100371063, -0.2630143166, -0.0545598753, 0.2646023631, 0.159449324, -0.0165089387, -0.0641582832, -0.0471104197, -0.0415223092, 0.1329900026, 0.2794742584, -0.0608397238, -0.2114706188, -0.2195211947, -0.4127486944, 0.3840044141, -0.039141994, 0.5614623427, -0.1038111895, 0.142439127, 0.1303787827, 0.0627911463, 0.9076778889, -0.2402851731, 0.4136829376, 0.124559693, 0.0502569713, -0.2619357407, -0.0936451852, 0.1447484195, -0.136475563, 0.498356849, 0.3062865734, -0.2155608237, -0.0056874189, 0.3216716349, 0.0276382305, -0.185109973, -0.1230269223, -0.2718761265, -0.2161575258, -0.0657268018, -0.1476634294, -0.2521294951, 0.2960752249, 0.0591799319, -0.2261301428, 0.0717842281, -0.2795131207, -0.2031468749, -0.0507311411, 0.2038847059, 0.1661022305, 0.4969928265, 0.2737084329, 0.2079011798, 0.0451840982, 0.8385030627, -0.1378964782, -0.6208718419, 0.1978704631, -0.0020989198, 0.2906507254, 0.2587945759, -0.1315056831, 0.0501218773, 0.1249508634, 0.1828813702, -0.236529097, -0.0588748306, 0.389616996, 0.0200753435, -0.3154657185, -0.3522892594, 0.4133487642, -0.1196917593, -0.0774248764, 0.2960857451, -0.2074136436, -0.0346379727, 0.0756705776, -0.03855538, 0.8922376633, -0.0210952107, 0.0428757779, 0.0754887611, -0.1344885975, 0.5228073597, 0.1001153812, 0.0767337382, -0.1800793856, -0.0889982507, -0.0297757853, -0.1939974874, -0.1642017215, -0.1829158366, 0.1340531111, 0.2182129323, -0.1861286312, -0.0774335042, 0.2244814336, 0.1976213753, -0.2884727716, 0.138514936, -0.1291047037, 0.1248307228, 0.0816443563, 0.5570240617, -0.0340426303, -0.0993695334, -0.26152125, -0.2593697011, -0.5591570735, 0.2540144026, -0.4038146734, 0.1512598246, 0.0842123777, -0.4220600426, 0.0541513786, 0.3395456374, 0.1533731073, 0.1343683749, -0.413507998, 0.1873011589, 0.0916299522, -0.1650322527, 0.1925803572, 0.1437356919, -0.0352572277, -0.0240955185, -0.4006432295, 0.2134362906, -0.113484256, -0.1286150068, 0.0631084889, 0.1959114522, 0.1759260744, -0.3346275091, 0.0800530016, -0.2323656827, 0.2347856462, -0.2757505476, 0.119472906, 0.2475874126, 0.0257107206, -0.1888229698, -0.0327672586, -0.2426542938, -0.0669108182, 0.5396451354, -0.1909579188, 0.2523761988, 0.2548722029, 0.3027549982, -0.0314509831, -0.0898249894, 0.2655040324, -0.1558409482, -0.4167013764, 0.0585780032, -0.0155934151, 0.2607428133, -0.3070593178, 0.1422986388, 0.2564085424, -0.2153205723, 0.0073471712, -0.6198670268, 0.0851759315, 0.0075849448, -0.1317371428, 0.1331100017, -0.2024491429, 0.2146668136, 0.0679552928, -0.3402141929, -0.246315524, 0.1149587408, -0.2366363704, -0.1373571604, 0.1990898401, -0.026688518, 0.1525515914, -0.0944028795, 0.1513260454, -0.0385094397, -0.0402939096, -0.1254493147, -0.1809541285, 0.1565909833, 0.0463820472, -0.3762650788, -0.08632911, -0.3366072476, -0.0819403827, 0.0671136975, -0.0583107844, 0.1137528345, 0.1095235795, 0.0240875408, -0.259906441, 0.0367373116, -0.1710968763, 0.3740761578, 0.0597455129, 0.2589574456, 0.1360883564, 0.3554266393, -0.0134841204, 0.1333884448, -0.1836176962, -0.1055746153, -0.3500210941, -0.102967374, 0.6350157857, -0.253036201, 0.1150290146, 0.2292871624, 0.2497417629, 0.2683596909, -0.2464690506, 0.2712999284, 0.2242113948, 0.1670608968, -0.3812904954, -0.2347780317, -0.1002146751, 0.2833959758, -0.0306820776, -0.0146707492, 0.0484403744, -0.1274435669, -0.0184548162, -0.010573552, 0.4933079183, 0.3656941056, 0.2075926065, 0.4332519174, 0.3208166063, 0.1659934372, 0.1175789461, 0.0043669189, 0.045388218, 0.20555529, 0.145601064, -0.1914809942, -0.2491512448, 0.2741049826, -0.0365160108, -0.5798564553, 0.2956146598, 0.2205733508, -0.4363159835, -0.0270556454, -0.1661447138, 0.4881608784, -0.3651855886, 0.2885005772, -0.4972078204, 0.2525396049, 0.0749305859, 0.0168222189, -0.226347208, -0.2656215727, 0.0352158695, 0.1310938895, 0.0382279158, -0.2626178861, 0.0966368094, 0.1318879277, -0.1502325982, -0.4018240571, -0.0081101814, 0.3353846371, 0.124646157, -0.3651177585, 0.2510654628, 0.29987818, -0.1713633835, -0.0202069674, 0.4311611056, 0.4374359548, 0.0411391705, 0.1168625131, 0.0450550243, 0.1270812154, -0.1292024404, -0.1445412785, 0.1947557479, 0.119001396, -0.0629220456, 0.3850315809, 0.1541178375, -0.0748107061, -0.0400662757, 0.1206522584, 0.4226174057, -0.2435443252, 0.13350223, -0.4473636448, -0.0996749029, -0.214563325, -0.0453736633, -0.4648352563, 0.2075655609, 0.3476700783, -0.2546857893, 0.1198884249, -0.1381341815, 0.0345404297, -0.2664828897, 0.1466629356, 0.6147029996, 0.276011467, -0.3868614733, -0.4231059253, -0.3353347778, 0.2270525098, -0.3332635462, -0.1187338158, 0.1151520982, 0.0521939397, -0.16758205, 0.080902651, 0.252284795, 0.0265919622, -0.1688944995, 0.4234344661, -0.2544215918, -0.3319864869, 0.1851408333, 0.3096407354, -0.0862869322, -0.2928205729, 0.2193366885, -0.3007670939, -0.0081495782, -0.0847654343, -0.0129384212, 0.0949972868, -0.3085214794, 0.5483868122, 0.2411271036, 0.3730905056, -0.036655426, -0.2137893736, -0.3023763001, -0.3409187794, 0.0223016925, 0.1045076251, -0.0160103794, 0.1974368542, -0.1326363385, 0.0226274822, -0.2187703252, 0.0624890998, -0.0899986997, 0.0703687891, -0.1767483503, 0.0184973087, -0.1629566401, 0.0680123791, 0.17027165, 0.0580710284, -0.0431405045, -0.0346907228, -0.0178968403, -0.2495503724, 0.2535997033, -0.1726679057, -0.0786981136, -0.0913162678, 0.3004399836, -0.1371487379, 0.0404832363, -0.1107082814, 0.0682736263, 0.5644797683, 0.2285637558, -0.1479523629, 0.1246902421, 0.0406915992, -0.0334070027, 0.0574885756, 0.5261127353, 0.0965177864, -0.2472773045, 0.2120705545, -0.0930996463 ]
https://github.com/huggingface/datasets/issues/3902
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils'
Update: `"python3 -c "from from datasets import Dataset, DatasetDict"` works, but not if I import without the `python3 -c`
## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0
19
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils' ## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0 Update: `"python3 -c "from from datasets import Dataset, DatasetDict"` works, but not if I import without the `python3 -c`
[ -0.3171519041, -0.0977633744, -0.0604374632, 0.2508158982, 0.5410329103, 0.0515427925, 0.230682373, 0.1784131378, 0.1451837271, -0.0406590663, -0.091404371, 0.2070273757, -0.0849944577, 0.0422014333, -0.0481128283, 0.0800794661, 0.0392678976, 0.1573756486, -0.3625041544, -0.1490759999, -0.0667246953, 0.1086278781, -0.2605908215, 0.0229990911, -0.4667165279, -0.0420557372, 0.0897897258, 0.2693991363, -0.3021416366, -0.6751568317, 0.2488129586, -0.2023633271, 0.1428640932, 0.3091626167, -0.0001127279, 0.0719644576, 0.3168115914, -0.0403254852, -0.3669923544, 0.0579782687, -0.1587971449, -0.2611019313, 0.2014760375, -0.1858032644, 0.0890873745, -0.2615580261, -0.0732190087, -0.5562985539, 0.1979620606, 0.6020060778, 0.2539667785, 0.2535484433, 0.3767182827, -0.0656320304, -0.0458865017, -0.0652860478, -0.0695677251, -0.0419693701, 0.1539291292, -0.1513932943, 0.1441338956, -0.0441080183, -0.0111274067, 0.2427476496, 0.1799446046, -0.1848339438, 0.1125409454, -0.430541873, -0.0043800236, 0.0089007141, 0.4734686911, -0.2616321445, -0.4875104129, -0.0716137365, 0.1318772286, -0.0342162102, 0.0774443671, 0.0017765549, 0.0501028337, 0.1682346463, 0.1930770427, -0.096227102, -0.119060263, 0.2657085061, -0.1976042688, 0.0411208384, -0.2480922639, -0.0328238867, 0.0241299104, -0.2687959671, 0.1609051377, -0.1838237792, -0.0366590656, 0.2821423411, -0.223079443, 0.0432261862, 0.4131990671, -0.3409284055, -0.1540699899, 0.3015023172, -0.299243331, -0.0061614974, -0.0515983962, 0.2656781971, 0.0537833609, 0.0720266029, 0.1819230169, 0.4663422704, 0.0702348799, 0.0044092271, -0.1564642191, -0.0405410901, -0.1521216333, -0.2603018582, 0.096202679, 0.1447866708, 0.3706578314, -0.2103713751, -0.2649965286, 0.1851914525, 0.0192852076, -0.043023169, -0.1079286337, 0.2417488992, -0.0532331653, 0.4904888272, 0.0674700439, 0.1611712128, -0.1824312508, -0.2234945893, -0.2142262161, 0.1783575714, -0.1630671024, -0.2605762184, 0.1102810428, -0.0998410955, 0.1528037637, -0.0829321072, -0.0496407412, -0.2125433087, 0.1854949296, -0.3258240223, 0.1065758243, 0.287884146, -0.0316799432, 0.3496367335, 0.3111239076, -0.2670793831, -0.080310531, -0.0584532917, -0.3358174562, -0.2745755911, -0.2645741403, 0.2715824842, -0.0893801823, -0.0386031456, -0.2773092687, -0.1382634342, -0.0018734643, 0.0657276511, -0.0957609117, -0.2059314996, 0.0100184549, -0.1157740802, 0.2959855199, 0.4907722175, -0.2895366549, -0.1573786736, -0.1349968463, -0.153081581, 0.1031775549, 0.2147768438, -0.1410847008, 0.3906899691, -0.2649223208, 0.0945350677, 0.4844043553, -0.3106128573, -0.3114545643, 0.2260967344, 0.2197268456, -0.0654395744, -0.0301988944, -0.2271600366, 0.1230244562, 0.1487567276, 0.2201773226, 0.3329995275, 0.0629455894, -0.1071570143, -0.1610437185, -0.2767032087, 0.1084141582, 0.1161674783, 0.252283901, 0.0129441405, 0.0879164636, -0.0649166554, 0.0552028567, -0.0537365153, -0.0304202065, 0.5308899283, 0.2894541621, 0.1546920836, -0.1256313324, -0.5731547475, -0.2998690605, 0.3153094649, 0.1423242241, -0.0670402497, -0.1783956587, 0.1294168383, -0.2853476405, 0.1269599497, -0.2079898268, -0.2001308948, 0.122543864, 0.0760749131, -0.1545486152, 0.1014727652, -0.3925877512, 0.0076314751, -0.0690087527, 0.1811645031, -0.258148998, 0.3928672373, -0.3030619025, -0.1876597106, 0.0431398936, 0.1343562305, 0.1268020272, -0.1018527821, -0.2180566937, 0.1174707636, 0.3525497615, 0.0994519442, -0.1108863726, 0.1862246841, 0.0937123299, -0.4421738982, -0.2014678121, 0.4330587685, 0.3560418487, -0.0344208106, -0.002596467, 0.0697677583, 0.0524713099, 0.1593497694, 0.1339354366, 0.1726382375, 0.2863734663, -0.0415171906, 0.0041684783, -0.2934671938, 0.3124762177, 0.116340965, 0.2349731624, 0.1087322831, -0.0224028081, -0.1354228854, 0.1906787753, 0.0591120161, 0.0022930386, -0.0219510458, -0.3193931282, 0.1661984771, 0.2359828353, -0.0235648155, 0.2860991359, 0.193430528, -0.1650980413, 0.0464061089, 0.0310793873, 0.003638647, 0.2746044993, 0.1606133282, -0.0208511315, 0.2699987292, 0.1434809864, 0.2218672037, -0.1548242122, -0.3139864504, 0.0116630411, 0.3350788355, -0.6247819662, 0.1250721663, -0.4319000244, -0.0962776691, -0.0814963505, -0.0048131598, 0.1706408262, -0.2390513271, -0.3558324873, 0.1845767945, -0.0949143171, 0.1931577921, -0.4526352882, -0.0501409397, 0.0987262428, -0.102463156, -0.0976242498, -0.0642572716, -0.0227900259, 0.0341702029, 0.3636757135, 0.1634952724, 0.2452363819, 0.0313414112, 0.0445541032, -0.1876611412, -0.2511567771, 0.0158457495, 0.2032201886, 0.4261602759, 0.1684316844, 0.095927529, 0.2268288285, -0.167613849, 0.3005024791, 0.0435414799, -0.1498238146, 0.2119083852, -0.0704846531, -0.4356123209, -0.1026325747, -0.3086392879, -0.2543665469, -0.404340595, -0.0180262495, 0.2428497374, 0.1552808881, 0.2330590189, 0.1010307148, 0.1663684696, 0.0441799834, 0.1133501828, -0.021915229, -0.1602954119, 0.5347227454, -0.179795742, -0.4439279437, -0.0138777625, -0.2253860384, -0.0495798886, -0.0044834511, -0.3404408693, -0.0417781845, -0.4150962532, 0.4369358718, -0.2352888584, 0.200792715, 0.2394406348, 0.2682826817, -0.0672367439, -0.1845628023, -0.0668201149, -0.2253562063, 0.1414610595, -0.1335569322, -0.2373022586, 0.2180667073, -0.0464897566, 0.6331476569, 0.3170137405, -0.0150261391, 0.2592196465, -0.1955893934, 0.1963518709, -0.1575068086, -0.6132753491, 0.0977249071, -0.1290113181, 0.0701853633, 0.0132172108, -0.109762758, 0.1546165943, -0.0884064883, 0.3763576746, -0.1896641701, -0.1465121359, -0.0003687305, -0.4213089049, 0.2879866362, -0.0034612422, 0.1694814861, 0.0062795044, 0.1068309769, 0.125146389, 0.1315175891, -0.0973161682, 0.0739882365, -0.5398017764, 0.0209967345, 0.0163618904, 0.1046419069, 0.0351865776, 0.4855512679, 0.0659041181, 0.0358288065, 0.0176578965, 0.0096166544, 0.231474638, -0.1142619774, 0.0057872883, 0.3869131505, 0.0130323879, -0.6777919531, -0.0501285642, -0.1809084862, -0.0205240771, 0.1754776388, 0.1769947857, -0.2288299352, -0.0021364628, -0.1048645005, 0.1740926504, -0.1285289824, 0.1652370095, -0.2059316784, -0.1494488269, -0.5392332673, -0.1657779813, 0.151966691, 0.1271957904, 0.23109366, 0.1234406456, -0.4617909491, -0.1488919705, 0.2593579888, 0.0620096549, 0.1671209186, -0.1235168874, 0.4289439023, -0.023796862, -0.1577297598, 0.4475740492, 0.7460503578, -0.1136248484, -0.5447684526, -0.0600173995, -0.0874407142, 0.2579820156, 0.004746207, -0.116549395, 0.1249583438, -0.1689838469, -0.0122546265, -0.1582268625, 0.2420160025, 0.2695192397, 0.2241339087, -0.1395032406, -0.3440384865, 0.18261756, -0.0991243944, 0.039729543, 0.3657608032, 0.2760229111, -0.1527391523, 0.358014971, -0.2675994337, 0.621721983, 0.3393682241, 0.0497519895, 0.0550511293, -0.2366838455, 0.3242895305, 0.0841299817, -0.1567998677, -0.2361047268, -0.1188522205, 0.0038308438, -0.2843484879, 0.4368292689, -0.0483398251, 0.0006246665, 0.2259794921, -0.2916691005, -0.0770191923, 0.1737603992, 0.2606982589, 0.266448319, -0.175830543, -0.1646224707, 0.199538365, -0.1072693989, 0.2747097909, 0.0841742083, 0.0987075567, -0.0567272641, -0.1630981565, -0.291952908, 0.2089340389, -0.3565440178, 0.5035457015, 0.3993521333, -0.0827147812, 0.3761665523, 0.104238458, 0.0761455968, 0.1212778762, -0.2177250981, 0.1551393569, 0.1936945915, 0.0329632126, 0.0174728446, 0.0604361854, 0.5117437243, -0.1083618328, -0.0566430017, 0.2612245679, -0.1502448916, -0.0134308171, 0.084287785, 0.1493328214, 0.3192765415, -0.3976708949, -0.4220251441, 0.0485004, 0.1735305041, -0.1691039801, 0.1693020612, 0.1932287216, -0.0579403974, 0.3934532404, 0.1273647249, -0.0606989823, 0.0194332376, 0.3951322734, -0.1816767156, 0.1414212286, 0.5099262595, -0.0318310633, -0.3732173443, -0.1795955151, 0.1953197122, -0.0376442559, -0.3781810701, 0.0527447313, -0.1086605638, -0.0860419497, -0.1028663293, 0.1954633445, 0.2338571995, -0.0619413629, 0.036333736, -0.3400810957, -0.3147149086, -0.1711530089, -0.0163011514, -0.0653068796, -0.1482129991, 0.3487374783, -0.1156025156, 0.1409914643, -0.3056191206, 0.2488007993, -0.1831080019, 0.1755450964, 0.3181938827, -0.0381437428, -0.0820440352, -0.3933128715, 0.2110458463, -0.0502395481, -0.0873701796, -0.2965150774, -0.3833864331, 0.0986868292, 0.2363497466, -0.3316831291, 0.1790672392, -0.1018374115, -0.095213294, -0.1459207684, -0.3483107686, 0.3726710677, -0.068649672, 0.4383881688, 0.0819365531, -0.1049136668, -0.2645225525, 0.2500064671, -0.1447413564, 0.2059592456, -0.0241764691, 0.1489159465, 0.0948029831, 0.1506953686, -0.2641917169, -0.0032507973, -0.1063768566, 0.149137184, 0.3795325756, -0.3936315477, 0.1902531981, 0.023775436, -0.0332756191, 0.4096046984, -0.4605779052, 0.1719647497, 0.2443133295, 0.2560780346, -0.3487224281, -0.0878608003, -0.087198928, -0.0085147079, 0.1286088675, -0.0939107314, 0.0534894355, -0.2286197096, 0.1868606508, 0.1382295042, -0.0832165256, 0.0276631098, 0.2625825405, 0.091378279, -0.0483022854, -0.1044160873, 0.2093052268, 0.1443119049, 0.0809070319, 0.5423407555, -0.0397104919, 0.0183263607, 0.0772000551, -0.0186543837, 0.0088086035, -0.3392185271, 0.1876833588, -0.2371765077, 0.0351292826, 0.0314565711, -0.008899956, 0.2384974509, -0.0979124755, -0.2421362996, 0.3265653253, 0.0375342779, -0.0561870262, -0.0225198846, 0.0746959522, 0.0859401599, -0.1087388843, -0.1243767515, -0.0140373288, -0.2410185039, 0.2886114419, 0.2798331082, -0.340826422, -0.5902038813, 0.0137798507, 0.2504595816, 0.236606434, -0.3291141689, 0.2761161625, 0.0284638945, -0.1257655323, -0.0944097564, 0.3927909434, 0.6184648275, 0.1872159094, -0.0165973138, 0.1224122047, 0.0960285664, -0.2418151349, -0.0346626751, 0.2003153563, -0.2280205637, 0.2343331426, 0.3450252414, 0.1714805067, -0.2647438645, -0.2498946935, -0.0552166477, -0.1794520915, -0.4442248344, 0.542850554, -0.0873551741, -0.1593647003, -0.0741484612, 0.0694921091, -0.3150586486, -0.1197131351, 0.6771429181, 0.0832357183, 0.1998138726, -0.0850100517, 0.0936000794, 0.0008083558, 0.2952713668, 0.4015185535, 0.2223491818, -0.2046515346, -0.0726190954, -0.6258224249, 0.1252236813, -0.0608442761, -0.022706354, 0.0953267813, 0.1528518051, -0.0258046109, 0.058547955, 0.112710081, 0.0922265649, 0.0532853454, 0.2056173235, -0.407011956, -0.243752569, -0.1565062702, 0.0577463284, -0.0127768759, -0.4809657931, 0.0499410555, -0.2340080142, 0.1504748911, -0.0690594465, -0.2504511774, 0.091110751, 0.1444234699, 0.4137845337, 0.0977041125, 0.586786449, -0.1691830456, 0.0225629434, -0.0598807372, -0.4426271319, -0.1207724661, 0.289655149, 0.1411684304, 0.3157993853, -0.1532585919, -0.2356566191, -0.3393155634, 0.156257391, 0.0601087734, -0.109891288, -0.378538698, 0.3662624955, -0.2381463945, 0.2603233457, -0.1275008619, 0.189460367, -0.0847053006, 0.2001520097, -0.2332819253, -0.5929474235, 0.5382565856, -0.1991796345, -0.2527878582, -0.2084103376, 0.3369365335, 0.1619530022, 0.0280498285, -0.3712598383, -0.1291196942, 0.5033714175, -0.3103443682, -0.3346370161, 0.3366084993, -0.1533567905, 0.2376807332, -0.1222896799, 0.6446779966, 0.0097231017, -0.116312705, 0.2443638891, -0.0121122189 ]
https://github.com/huggingface/datasets/issues/3902
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils'
Hi @arunasank, thanks for reporting. It seems that this can be caused because you are using an old version of `fsspec`: the reason why it works if you run `python3` seems to be that `python3` runs in a Python virtual env (with an updated version of `fsspec`); whereas the error arises when you run the import from other Python virtual env (with an old version of `fsspec`). In order to fix this, you should update `fsspec` from within the "problematic" Python virtual env: ``` pip install -U "fsspec[http]>=2021.05.0"
## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0
88
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils' ## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0 Hi @arunasank, thanks for reporting. It seems that this can be caused because you are using an old version of `fsspec`: the reason why it works if you run `python3` seems to be that `python3` runs in a Python virtual env (with an updated version of `fsspec`); whereas the error arises when you run the import from other Python virtual env (with an old version of `fsspec`). In order to fix this, you should update `fsspec` from within the "problematic" Python virtual env: ``` pip install -U "fsspec[http]>=2021.05.0"
[ -0.3171519041, -0.0977633744, -0.0604374632, 0.2508158982, 0.5410329103, 0.0515427925, 0.230682373, 0.1784131378, 0.1451837271, -0.0406590663, -0.091404371, 0.2070273757, -0.0849944577, 0.0422014333, -0.0481128283, 0.0800794661, 0.0392678976, 0.1573756486, -0.3625041544, -0.1490759999, -0.0667246953, 0.1086278781, -0.2605908215, 0.0229990911, -0.4667165279, -0.0420557372, 0.0897897258, 0.2693991363, -0.3021416366, -0.6751568317, 0.2488129586, -0.2023633271, 0.1428640932, 0.3091626167, -0.0001127279, 0.0719644576, 0.3168115914, -0.0403254852, -0.3669923544, 0.0579782687, -0.1587971449, -0.2611019313, 0.2014760375, -0.1858032644, 0.0890873745, -0.2615580261, -0.0732190087, -0.5562985539, 0.1979620606, 0.6020060778, 0.2539667785, 0.2535484433, 0.3767182827, -0.0656320304, -0.0458865017, -0.0652860478, -0.0695677251, -0.0419693701, 0.1539291292, -0.1513932943, 0.1441338956, -0.0441080183, -0.0111274067, 0.2427476496, 0.1799446046, -0.1848339438, 0.1125409454, -0.430541873, -0.0043800236, 0.0089007141, 0.4734686911, -0.2616321445, -0.4875104129, -0.0716137365, 0.1318772286, -0.0342162102, 0.0774443671, 0.0017765549, 0.0501028337, 0.1682346463, 0.1930770427, -0.096227102, -0.119060263, 0.2657085061, -0.1976042688, 0.0411208384, -0.2480922639, -0.0328238867, 0.0241299104, -0.2687959671, 0.1609051377, -0.1838237792, -0.0366590656, 0.2821423411, -0.223079443, 0.0432261862, 0.4131990671, -0.3409284055, -0.1540699899, 0.3015023172, -0.299243331, -0.0061614974, -0.0515983962, 0.2656781971, 0.0537833609, 0.0720266029, 0.1819230169, 0.4663422704, 0.0702348799, 0.0044092271, -0.1564642191, -0.0405410901, -0.1521216333, -0.2603018582, 0.096202679, 0.1447866708, 0.3706578314, -0.2103713751, -0.2649965286, 0.1851914525, 0.0192852076, -0.043023169, -0.1079286337, 0.2417488992, -0.0532331653, 0.4904888272, 0.0674700439, 0.1611712128, -0.1824312508, -0.2234945893, -0.2142262161, 0.1783575714, -0.1630671024, -0.2605762184, 0.1102810428, -0.0998410955, 0.1528037637, -0.0829321072, -0.0496407412, -0.2125433087, 0.1854949296, -0.3258240223, 0.1065758243, 0.287884146, -0.0316799432, 0.3496367335, 0.3111239076, -0.2670793831, -0.080310531, -0.0584532917, -0.3358174562, -0.2745755911, -0.2645741403, 0.2715824842, -0.0893801823, -0.0386031456, -0.2773092687, -0.1382634342, -0.0018734643, 0.0657276511, -0.0957609117, -0.2059314996, 0.0100184549, -0.1157740802, 0.2959855199, 0.4907722175, -0.2895366549, -0.1573786736, -0.1349968463, -0.153081581, 0.1031775549, 0.2147768438, -0.1410847008, 0.3906899691, -0.2649223208, 0.0945350677, 0.4844043553, -0.3106128573, -0.3114545643, 0.2260967344, 0.2197268456, -0.0654395744, -0.0301988944, -0.2271600366, 0.1230244562, 0.1487567276, 0.2201773226, 0.3329995275, 0.0629455894, -0.1071570143, -0.1610437185, -0.2767032087, 0.1084141582, 0.1161674783, 0.252283901, 0.0129441405, 0.0879164636, -0.0649166554, 0.0552028567, -0.0537365153, -0.0304202065, 0.5308899283, 0.2894541621, 0.1546920836, -0.1256313324, -0.5731547475, -0.2998690605, 0.3153094649, 0.1423242241, -0.0670402497, -0.1783956587, 0.1294168383, -0.2853476405, 0.1269599497, -0.2079898268, -0.2001308948, 0.122543864, 0.0760749131, -0.1545486152, 0.1014727652, -0.3925877512, 0.0076314751, -0.0690087527, 0.1811645031, -0.258148998, 0.3928672373, -0.3030619025, -0.1876597106, 0.0431398936, 0.1343562305, 0.1268020272, -0.1018527821, -0.2180566937, 0.1174707636, 0.3525497615, 0.0994519442, -0.1108863726, 0.1862246841, 0.0937123299, -0.4421738982, -0.2014678121, 0.4330587685, 0.3560418487, -0.0344208106, -0.002596467, 0.0697677583, 0.0524713099, 0.1593497694, 0.1339354366, 0.1726382375, 0.2863734663, -0.0415171906, 0.0041684783, -0.2934671938, 0.3124762177, 0.116340965, 0.2349731624, 0.1087322831, -0.0224028081, -0.1354228854, 0.1906787753, 0.0591120161, 0.0022930386, -0.0219510458, -0.3193931282, 0.1661984771, 0.2359828353, -0.0235648155, 0.2860991359, 0.193430528, -0.1650980413, 0.0464061089, 0.0310793873, 0.003638647, 0.2746044993, 0.1606133282, -0.0208511315, 0.2699987292, 0.1434809864, 0.2218672037, -0.1548242122, -0.3139864504, 0.0116630411, 0.3350788355, -0.6247819662, 0.1250721663, -0.4319000244, -0.0962776691, -0.0814963505, -0.0048131598, 0.1706408262, -0.2390513271, -0.3558324873, 0.1845767945, -0.0949143171, 0.1931577921, -0.4526352882, -0.0501409397, 0.0987262428, -0.102463156, -0.0976242498, -0.0642572716, -0.0227900259, 0.0341702029, 0.3636757135, 0.1634952724, 0.2452363819, 0.0313414112, 0.0445541032, -0.1876611412, -0.2511567771, 0.0158457495, 0.2032201886, 0.4261602759, 0.1684316844, 0.095927529, 0.2268288285, -0.167613849, 0.3005024791, 0.0435414799, -0.1498238146, 0.2119083852, -0.0704846531, -0.4356123209, -0.1026325747, -0.3086392879, -0.2543665469, -0.404340595, -0.0180262495, 0.2428497374, 0.1552808881, 0.2330590189, 0.1010307148, 0.1663684696, 0.0441799834, 0.1133501828, -0.021915229, -0.1602954119, 0.5347227454, -0.179795742, -0.4439279437, -0.0138777625, -0.2253860384, -0.0495798886, -0.0044834511, -0.3404408693, -0.0417781845, -0.4150962532, 0.4369358718, -0.2352888584, 0.200792715, 0.2394406348, 0.2682826817, -0.0672367439, -0.1845628023, -0.0668201149, -0.2253562063, 0.1414610595, -0.1335569322, -0.2373022586, 0.2180667073, -0.0464897566, 0.6331476569, 0.3170137405, -0.0150261391, 0.2592196465, -0.1955893934, 0.1963518709, -0.1575068086, -0.6132753491, 0.0977249071, -0.1290113181, 0.0701853633, 0.0132172108, -0.109762758, 0.1546165943, -0.0884064883, 0.3763576746, -0.1896641701, -0.1465121359, -0.0003687305, -0.4213089049, 0.2879866362, -0.0034612422, 0.1694814861, 0.0062795044, 0.1068309769, 0.125146389, 0.1315175891, -0.0973161682, 0.0739882365, -0.5398017764, 0.0209967345, 0.0163618904, 0.1046419069, 0.0351865776, 0.4855512679, 0.0659041181, 0.0358288065, 0.0176578965, 0.0096166544, 0.231474638, -0.1142619774, 0.0057872883, 0.3869131505, 0.0130323879, -0.6777919531, -0.0501285642, -0.1809084862, -0.0205240771, 0.1754776388, 0.1769947857, -0.2288299352, -0.0021364628, -0.1048645005, 0.1740926504, -0.1285289824, 0.1652370095, -0.2059316784, -0.1494488269, -0.5392332673, -0.1657779813, 0.151966691, 0.1271957904, 0.23109366, 0.1234406456, -0.4617909491, -0.1488919705, 0.2593579888, 0.0620096549, 0.1671209186, -0.1235168874, 0.4289439023, -0.023796862, -0.1577297598, 0.4475740492, 0.7460503578, -0.1136248484, -0.5447684526, -0.0600173995, -0.0874407142, 0.2579820156, 0.004746207, -0.116549395, 0.1249583438, -0.1689838469, -0.0122546265, -0.1582268625, 0.2420160025, 0.2695192397, 0.2241339087, -0.1395032406, -0.3440384865, 0.18261756, -0.0991243944, 0.039729543, 0.3657608032, 0.2760229111, -0.1527391523, 0.358014971, -0.2675994337, 0.621721983, 0.3393682241, 0.0497519895, 0.0550511293, -0.2366838455, 0.3242895305, 0.0841299817, -0.1567998677, -0.2361047268, -0.1188522205, 0.0038308438, -0.2843484879, 0.4368292689, -0.0483398251, 0.0006246665, 0.2259794921, -0.2916691005, -0.0770191923, 0.1737603992, 0.2606982589, 0.266448319, -0.175830543, -0.1646224707, 0.199538365, -0.1072693989, 0.2747097909, 0.0841742083, 0.0987075567, -0.0567272641, -0.1630981565, -0.291952908, 0.2089340389, -0.3565440178, 0.5035457015, 0.3993521333, -0.0827147812, 0.3761665523, 0.104238458, 0.0761455968, 0.1212778762, -0.2177250981, 0.1551393569, 0.1936945915, 0.0329632126, 0.0174728446, 0.0604361854, 0.5117437243, -0.1083618328, -0.0566430017, 0.2612245679, -0.1502448916, -0.0134308171, 0.084287785, 0.1493328214, 0.3192765415, -0.3976708949, -0.4220251441, 0.0485004, 0.1735305041, -0.1691039801, 0.1693020612, 0.1932287216, -0.0579403974, 0.3934532404, 0.1273647249, -0.0606989823, 0.0194332376, 0.3951322734, -0.1816767156, 0.1414212286, 0.5099262595, -0.0318310633, -0.3732173443, -0.1795955151, 0.1953197122, -0.0376442559, -0.3781810701, 0.0527447313, -0.1086605638, -0.0860419497, -0.1028663293, 0.1954633445, 0.2338571995, -0.0619413629, 0.036333736, -0.3400810957, -0.3147149086, -0.1711530089, -0.0163011514, -0.0653068796, -0.1482129991, 0.3487374783, -0.1156025156, 0.1409914643, -0.3056191206, 0.2488007993, -0.1831080019, 0.1755450964, 0.3181938827, -0.0381437428, -0.0820440352, -0.3933128715, 0.2110458463, -0.0502395481, -0.0873701796, -0.2965150774, -0.3833864331, 0.0986868292, 0.2363497466, -0.3316831291, 0.1790672392, -0.1018374115, -0.095213294, -0.1459207684, -0.3483107686, 0.3726710677, -0.068649672, 0.4383881688, 0.0819365531, -0.1049136668, -0.2645225525, 0.2500064671, -0.1447413564, 0.2059592456, -0.0241764691, 0.1489159465, 0.0948029831, 0.1506953686, -0.2641917169, -0.0032507973, -0.1063768566, 0.149137184, 0.3795325756, -0.3936315477, 0.1902531981, 0.023775436, -0.0332756191, 0.4096046984, -0.4605779052, 0.1719647497, 0.2443133295, 0.2560780346, -0.3487224281, -0.0878608003, -0.087198928, -0.0085147079, 0.1286088675, -0.0939107314, 0.0534894355, -0.2286197096, 0.1868606508, 0.1382295042, -0.0832165256, 0.0276631098, 0.2625825405, 0.091378279, -0.0483022854, -0.1044160873, 0.2093052268, 0.1443119049, 0.0809070319, 0.5423407555, -0.0397104919, 0.0183263607, 0.0772000551, -0.0186543837, 0.0088086035, -0.3392185271, 0.1876833588, -0.2371765077, 0.0351292826, 0.0314565711, -0.008899956, 0.2384974509, -0.0979124755, -0.2421362996, 0.3265653253, 0.0375342779, -0.0561870262, -0.0225198846, 0.0746959522, 0.0859401599, -0.1087388843, -0.1243767515, -0.0140373288, -0.2410185039, 0.2886114419, 0.2798331082, -0.340826422, -0.5902038813, 0.0137798507, 0.2504595816, 0.236606434, -0.3291141689, 0.2761161625, 0.0284638945, -0.1257655323, -0.0944097564, 0.3927909434, 0.6184648275, 0.1872159094, -0.0165973138, 0.1224122047, 0.0960285664, -0.2418151349, -0.0346626751, 0.2003153563, -0.2280205637, 0.2343331426, 0.3450252414, 0.1714805067, -0.2647438645, -0.2498946935, -0.0552166477, -0.1794520915, -0.4442248344, 0.542850554, -0.0873551741, -0.1593647003, -0.0741484612, 0.0694921091, -0.3150586486, -0.1197131351, 0.6771429181, 0.0832357183, 0.1998138726, -0.0850100517, 0.0936000794, 0.0008083558, 0.2952713668, 0.4015185535, 0.2223491818, -0.2046515346, -0.0726190954, -0.6258224249, 0.1252236813, -0.0608442761, -0.022706354, 0.0953267813, 0.1528518051, -0.0258046109, 0.058547955, 0.112710081, 0.0922265649, 0.0532853454, 0.2056173235, -0.407011956, -0.243752569, -0.1565062702, 0.0577463284, -0.0127768759, -0.4809657931, 0.0499410555, -0.2340080142, 0.1504748911, -0.0690594465, -0.2504511774, 0.091110751, 0.1444234699, 0.4137845337, 0.0977041125, 0.586786449, -0.1691830456, 0.0225629434, -0.0598807372, -0.4426271319, -0.1207724661, 0.289655149, 0.1411684304, 0.3157993853, -0.1532585919, -0.2356566191, -0.3393155634, 0.156257391, 0.0601087734, -0.109891288, -0.378538698, 0.3662624955, -0.2381463945, 0.2603233457, -0.1275008619, 0.189460367, -0.0847053006, 0.2001520097, -0.2332819253, -0.5929474235, 0.5382565856, -0.1991796345, -0.2527878582, -0.2084103376, 0.3369365335, 0.1619530022, 0.0280498285, -0.3712598383, -0.1291196942, 0.5033714175, -0.3103443682, -0.3346370161, 0.3366084993, -0.1533567905, 0.2376807332, -0.1222896799, 0.6446779966, 0.0097231017, -0.116312705, 0.2443638891, -0.0121122189 ]
https://github.com/huggingface/datasets/issues/3901
Dataset viewer issue for IndicParaphrase- the preview doesn't show
It seems to have been fixed: <img width="1534" alt="Capture d’écran 2022-04-12 aΜ€ 14 10 07" src="https://user-images.githubusercontent.com/1676121/162959599-6b7fef7c-8411-4e03-8f00-90040a658079.png">
## Dataset viewer issue for '*IndicParaphrase*' **Link:** *[IndicParaphrase](https://huggingface.co/datasets/ai4bharat/IndicParaphrase/viewer/hi/validation)* *The preview of the dataset doesn't come up. The error on the console is: Status code: 400 Exception: FileNotFoundError Message: [Errno 2] No such file or directory: '/home/hf/datasets-preview-backend/hi_IndicParaphrase_v1.0.tar'* Am I the one who added this dataset ? Yes
16
Dataset viewer issue for IndicParaphrase- the preview doesn't show ## Dataset viewer issue for '*IndicParaphrase*' **Link:** *[IndicParaphrase](https://huggingface.co/datasets/ai4bharat/IndicParaphrase/viewer/hi/validation)* *The preview of the dataset doesn't come up. The error on the console is: Status code: 400 Exception: FileNotFoundError Message: [Errno 2] No such file or directory: '/home/hf/datasets-preview-backend/hi_IndicParaphrase_v1.0.tar'* Am I the one who added this dataset ? Yes It seems to have been fixed: <img width="1534" alt="Capture d’écran 2022-04-12 aΜ€ 14 10 07" src="https://user-images.githubusercontent.com/1676121/162959599-6b7fef7c-8411-4e03-8f00-90040a658079.png">
[ -0.2362913787, 0.2801050544, 0.0057153134, 0.1762803942, -0.0407248102, 0.1510794312, 0.224228397, 0.2524903715, 0.0147417122, 0.1067235023, 0.1024638861, 0.1366589069, -0.0245668236, -0.212865606, 0.1732797921, -0.0573359504, 0.0567131527, 0.289804548, -0.0453777798, -0.0881159604, -0.1255543381, 0.1777503192, -0.2130022347, -0.0640023425, -0.0062702778, 0.1709763557, -0.0961240232, 0.0397974141, -0.271674782, -0.5399702787, 0.1943358928, 0.2580506206, 0.2630359828, 0.4546295106, -0.0001154538, 0.1184485555, 0.4071045816, -0.0095082819, -0.29467085, -0.3155955076, -0.3889788687, -0.1214623898, 0.086337775, -0.0848005041, -0.2341592759, -0.5504668951, 0.2215081006, -0.1022616699, 0.389913708, 0.1412540227, 0.175521329, -0.1364494115, 0.1194400936, -0.107879132, -0.0368972272, 0.3605780602, -0.1762606353, -0.3389718533, -0.3389481604, 0.1400073171, 0.2989709079, 0.3518823087, 0.1023155823, -0.0736064911, 0.2059143782, 0.0059378371, -0.3590266109, -0.415343672, 0.1336509883, 0.2567449808, 0.8013643622, 0.0393409319, -0.5143752694, 0.1139567941, 0.141272977, -0.1533962041, 0.284540832, 0.0723167658, 0.1960256994, 0.2461457849, -0.2244733423, -0.253893733, -0.2860653698, 0.1850978732, -0.2665104568, -0.005426696, -0.0770703405, 0.0204751138, 0.3612597883, -0.0943004563, -0.1076409593, -0.1241037101, -0.4566341341, 0.4281900525, -0.0318235718, -0.1514999419, -0.0726885349, -0.163338989, 0.1904264987, 0.2207384557, -0.059260983, 0.2125238329, -0.1612292528, 0.019797178, 0.09001939, 0.2744446695, 0.0137031395, 0.6571698785, 0.3728530407, 0.0925620422, 0.3451911211, -0.1342805773, -0.2599559426, -0.0808337033, -0.1659102291, -0.2059758902, 0.1508868784, -0.3283587396, -0.243823871, 0.224634409, -0.2274692506, -0.0688274056, -0.1770822555, 0.25357759, -0.0646266639, -0.2248170227, 0.0019425229, 0.2306783646, -0.1301771402, -0.3276977837, -0.153870672, -0.1087139919, -0.2519670725, 0.1789932847, 0.2220714986, -0.0058660605, 0.1882063448, -0.0480173156, 0.1576285511, -0.0061529693, 0.1114155129, -0.2146969736, -0.0761857852, 0.2981438935, 0.0698370337, 0.1085012183, 0.0491927452, -0.4298953712, 0.1838004589, 0.1542786062, -0.1984765083, 0.0898271278, -0.4613126814, 0.1414274275, -0.4802550077, -0.1100105494, -0.4983837903, 0.1951323301, -0.0744657665, -0.2595902085, -0.1895694733, -0.0686917454, -0.1735289395, -0.1040440425, 0.3291053474, 0.5833176374, -0.66708076, -0.0751013085, -0.4240131974, -0.1256776005, 0.0561805926, 0.4693563879, -0.1074362844, -0.0286404435, -0.4432131052, 0.4633924961, 0.5195022225, -0.2732116878, -0.656560719, 0.4652533233, -0.0360262804, 0.0395657271, 0.1877419949, -0.215829879, 0.5644561052, -0.1986304522, -0.3835061789, -0.0667727068, 0.1406617463, -0.0723334178, -0.1894772649, -0.1555160731, -0.1983820349, 0.1589894891, 0.3172252178, 0.0166862216, 0.1467077583, 0.0864770412, 0.4072095454, 0.0035551777, 0.1451950371, 0.0394023433, 0.4844555259, 0.3005923629, 0.1223816425, 0.1689553708, 0.0350848809, 0.0542817935, 0.0898892432, 0.0062216679, -0.2846036553, -0.0980307013, -0.371514529, -0.1534452289, -0.4973033965, -0.3606603444, 0.1289228946, 0.2408689111, -0.1205015257, 0.2036641091, -0.0997496396, 0.2756522298, 0.2190969884, 0.1364572346, -0.0032066051, 0.3364857137, -0.1262367815, -0.0149183236, -0.1549709588, 0.0514212996, 0.0918725654, -0.2686939538, -0.0202262569, 0.2425012589, 0.0074193855, 0.1734755188, 0.3627811372, 0.104669258, 0.3614182472, -0.9825655222, 0.3406337798, 0.1838662028, 0.0561685562, 0.124111712, -0.2081602216, -0.0153820459, 0.084270373, -0.1251468062, -0.0570741892, 0.0003693219, 0.1580493897, -0.1805372685, -0.1410501301, -0.339004159, 0.1754888147, -0.0113921519, 0.1540807784, -0.2136317939, -0.0236312002, -0.055516921, 0.146013245, 0.0825418606, -0.1256944537, 0.055564139, -0.3006756008, 0.1276670247, -0.2294158936, 0.0830544904, 0.2841449976, 0.2360714227, -0.1280882359, 0.0197019298, 0.0420993343, -0.0630281642, 0.0512957908, -0.0571684465, 0.0734827593, 0.2466101348, 0.0065246527, 0.1324896961, -0.2742058039, -0.1342983544, 0.1178358197, 0.2676641345, -0.2694419622, 0.1515591443, -0.3373259008, -0.2915195227, -0.0096950457, 0.0849996209, 0.2080181688, -0.2876900434, 0.0785326362, 0.1138344631, 0.167995885, 0.1244171336, -0.257832557, -0.1034097001, -0.0718071759, -0.0029522136, -0.274739176, 0.0117924074, -0.2636504173, 0.086663723, 0.3066252768, -0.306967169, 0.2403339744, -0.2174536586, 0.0043982095, -0.5051475167, -0.4971094131, 0.1637682468, -0.0128386589, 0.3853958249, -0.0204402208, 0.1381655782, -0.0584275499, -0.0394836329, 0.1094715893, -0.0199833661, -0.2218767256, -0.1637356281, -0.0981275663, -0.0490571484, -0.003297878, -0.2361357063, -0.1824589521, -0.2571441531, 0.0418217778, 0.0766592994, -0.0975437462, 0.2602648139, 0.1450710744, -0.0014944349, 0.0109429359, -0.3451523185, -0.3095151186, 0.0262517836, 0.4267838895, -0.3906927407, -0.4601738453, 0.3460408151, 0.0229728986, -0.069843486, 0.071947366, -0.7506670952, 0.1870194227, 0.0987137184, 0.1919880956, -0.0951372907, -0.4094078541, 0.2305601984, -0.1493449807, 0.0602539331, -0.0797518268, -0.1804674566, -0.1086617485, -0.1269218028, 0.4848998189, -0.2189302742, 0.5026811957, 0.1361409277, 1.0398310423, 0.4212836921, 0.0592023171, 0.346314013, -0.0859133005, 0.453640759, -0.1218365282, -0.1974495202, 0.2220073342, 0.2696351409, 0.0361154675, 0.2181901485, -0.0227579661, -0.4936889112, -0.0516766086, 0.0390898585, -0.4286879897, -0.0797103792, -0.0284551345, -0.0861840248, 0.0822576955, 0.136596024, 0.2675345838, 0.0075953198, -0.2365725338, -0.064540498, 0.5140036345, 0.3497916162, 0.067198053, 0.0189861003, 0.0039767721, -0.0951630771, 0.1949901432, -0.1313582212, 0.3611934185, -0.3483353853, 0.0078940447, 0.1309062093, 0.1072774306, 0.6648901701, -0.1986205578, -0.2127589434, -0.0190449152, -0.0851339251, -0.0718002692, -0.1958352178, 0.2091865838, 0.1861415356, -0.2287635654, 0.332470715, -0.090477258, -0.0157165881, 0.6779099703, 0.0448984914, -0.2606911957, -0.1309781969, -0.100932844, -0.2586942315, 0.0224533752, -0.2061954886, -0.3294555247, -0.1153846011, 0.153725028, 0.0583464727, -0.1769222468, -0.2196861655, -0.0204841588, 0.257427454, 0.3405463696, 0.0829274803, 0.2141786367, 0.5975804329, -0.2136971951, 0.4587039649, 0.38785097, 0.2501167357, -0.4282654226, 0.2605718076, -0.1904661506, 0.0411693975, 0.093583785, -0.0377373993, -0.3217882812, 0.0611013398, 0.08939711, -0.2115378529, -0.0471709892, 0.4093666673, -0.1487578899, -0.3316602409, -0.4279693067, 0.4354027212, 0.1483712494, -0.0836401507, 0.1336015761, 0.2054835707, -0.1851258278, 0.3701462746, -0.1153478101, 0.6999506354, 0.0608360209, -0.1098553836, 0.1264006943, 0.0571714379, 0.2149474919, -0.4266033769, -0.0576437339, -0.2474265099, -0.5372416973, -0.207921043, -0.0242340937, 0.3483047485, -0.1215600595, -0.1445943862, 0.1150756776, 0.1272893101, 0.0715198368, 0.1117019281, 0.0907341763, -0.0325287953, 0.0748192519, 0.1930089742, 0.1983180791, 0.1508467644, 0.2847986519, -0.0826013833, -0.0891109556, -0.2357351333, -0.0743904114, -0.69995749, 0.1816675067, -0.2206433117, 0.0300143696, -0.012545526, -0.5484367609, 0.4005171061, 0.3375642002, 0.2974545062, 0.1546649486, -0.1981210858, 0.392436415, 0.0693604872, -0.1165299639, -0.2026593238, 0.0402264409, 0.1798394918, -0.1432733536, -0.1704098135, 0.2138552964, 0.0376671255, -0.0412312001, -0.3185061216, -0.134389475, -0.0175912976, -0.0506233238, 0.0956850424, -0.084645167, 0.041584149, -0.1521288007, 0.1065163463, 0.1140870377, -0.0226955768, -0.075429894, 0.2580477297, -0.1448900104, -0.1261050999, 0.2954841256, -0.0538901016, 0.0091376361, 0.6919757128, -0.0491964146, -0.1327880621, -0.2760494351, 0.0570552982, 0.0554788522, -0.3561067283, -0.3019422889, -0.1465411484, 0.2414810061, 0.2381272465, -0.0469345376, 0.1604604125, -0.3936065733, -0.2315842509, -0.3640666902, -0.0156092253, 0.0943095461, -0.5204854012, 0.2170219123, -0.182526201, 0.0523595996, 0.1125591844, -0.0833903924, -0.261990875, -0.0196817797, -0.0405665301, -0.0324268416, 0.2744010687, 0.1344590038, 0.1686864644, -0.2480801195, 0.1311530322, 0.1177908629, -0.286777854, -0.1300482005, -0.0820261985, 0.1528907567, 0.0296176933, -0.0564967468, -0.1001847908, 0.0229611937, -0.0723399296, 0.059439715, 0.1771063209, -0.0811408088, 0.098929137, 0.1592480689, 0.1032711118, -0.1066600159, 0.0931534842, 0.2104778886, 0.0747022256, 0.5806286931, 0.0964017585, 0.2516514659, -0.0610280298, -0.0380299725, -0.3733420968, 0.1016545147, 0.04169368, 0.0738119781, 0.4541270137, -0.5627886653, 0.4707226753, 0.2028032839, 0.1922076643, 0.2573823929, -0.2974490225, -0.1433732808, 0.3354005218, 0.1599976718, -0.1401368529, 0.0183639564, 0.2394229621, 0.1446686983, -0.1214301512, 0.0535968877, 0.0977039561, 0.0926191136, 0.1851721853, 0.304443419, 0.5903150439, -0.2526857853, 0.4540261328, 0.3786332905, -0.3913766146, 0.2412778288, -0.0178988408, 0.0380857177, -0.1151204407, 0.6050287485, -0.3812262714, 0.2303925455, 0.0471094623, 0.279686898, 0.0194227304, -0.2536274791, -0.0670654029, 0.2769100368, -0.0221089534, 0.119177185, 0.1820354015, 0.1738055199, 0.1723828614, 0.2095925659, -0.3805817664, 0.1251836717, 0.0358770043, 0.0999397263, -0.2002378851, -0.2250975072, -0.271673739, -0.0535088517, -0.0252708066, -0.0461292267, -0.0883945972, 0.1441828758, -0.3449501097, -0.2430228591, 0.1357269138, 0.033341717, 0.1511047632, -0.2841525376, 0.2048325837, -0.0414139554, 0.0054116114, 0.3017977476, 0.5739186406, 0.2560296357, 0.0932253897, 0.0523108691, -0.1298971623, -0.0795779973, -0.2108978033, 0.1323040873, 0.334703058, 0.0909023657, 0.0882667005, 0.1174634025, 0.1288500726, -0.0627484173, 0.2318706214, -0.0701102689, 0.2878527045, -0.2114296108, -0.0420472398, -0.3918760121, -0.0497827269, 0.0565075502, -0.2180699706, -0.1831378341, 0.1038927883, 0.2003132403, 0.0569319911, -0.0076951096, 0.0067639286, 0.0510397665, -0.0407377928, 0.1312328875, 0.5368883014, 0.0437792651, -0.1910817027, -0.2052934617, -0.6078593135, 0.1693394482, -0.1272325516, -0.1071316078, 0.0251543261, 0.3253281415, 0.2155450135, 0.1151498035, 0.359721601, -0.1915452778, 0.2475760579, 0.4481931925, -0.1198950484, -0.0884559974, 0.1088388488, 0.1548885405, -0.280872941, -0.0905952752, 0.1282357126, -0.0121042822, 0.016460456, -0.0579839237, -0.0000529148, -0.1058849767, -0.1188911423, 0.3724863529, 0.0163014214, 0.5731574893, 0.0401227772, 0.0749369115, -0.3149040341, -0.2644971013, -0.1893677562, 0.2851899266, 0.1969444454, 0.4250870943, -0.0957115442, -0.3129584789, -0.2440573275, -0.109895885, -0.0502723418, 0.033508949, -0.4343654513, 0.0795253739, -0.1273432523, -0.0945708826, 0.1830940247, 0.0971022099, 0.0580247566, -0.1280020624, -0.0442338064, -0.3559804857, 0.2838952839, -0.4902099073, -0.0216707159, 0.1995692253, 0.0791962445, 0.0056159399, -0.304058671, -0.3884720206, 0.190652132, 0.3872740269, -0.0639313012, 0.0096124886, 0.0790490583, 0.3147053421, 0.0785287917, 0.0444175899, 0.6561052203, 0.0157587249, -0.103475295, 0.0813787282, -0.1036519334 ]
https://github.com/huggingface/datasets/issues/3896
Missing google file for `multi_news` dataset
`datasets` 1.18.4 fixes the issue when you load the dataset with `load_dataset`. When loading in streaming mode, the fix is indeed on https://github.com/huggingface/datasets/pull/3843 which will be merged soon :)
## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No
29
Missing google file for `multi_news` dataset ## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No `datasets` 1.18.4 fixes the issue when you load the dataset with `load_dataset`. When loading in streaming mode, the fix is indeed on https://github.com/huggingface/datasets/pull/3843 which will be merged soon :)
[ -0.2699744105, -0.0458398797, 0.0497320592, 0.1420216113, 0.1276448667, 0.2481627464, 0.1934229434, 0.2745971382, -0.0215561334, 0.1579298973, 0.0816367716, 0.0792285651, -0.3635445237, 0.334953934, 0.1228102967, -0.2137127519, 0.1218467206, 0.005676188, 0.1303978711, -0.0129606528, -0.2909450233, 0.4830815196, -0.1952866167, -0.3958175778, -0.4969495237, 0.0503462926, -0.163778007, 0.2913740575, -0.082281135, -0.2260228842, -0.099222593, 0.067076318, 0.0633659065, 0.5561422706, -0.0001087802, 0.0966095775, 0.1969504654, -0.0166214611, -0.3042958975, -0.3295354843, -0.1191710606, -0.2145788074, 0.0840443298, 0.0817016214, -0.209433943, -0.1526982784, 0.1739885062, -0.1258498877, 0.1938049644, 0.3944496512, 0.2137353122, 0.1765262634, 0.3621150255, -0.2409399301, 0.1189706996, -0.1591909081, -0.0464447737, 0.3128053248, -0.0731831193, 0.1206490993, 0.0118323127, 0.6624210477, 0.2969295084, -0.0006956261, -0.1326516718, -0.0852346048, -0.278601706, -0.2077053934, 0.0824048221, 0.3656956255, 0.3241905868, 0.0247238353, -0.2975257933, -0.1155709848, 0.2260704935, 0.0152590973, 0.3099585176, 0.2659317553, 0.0102184536, 0.2642273605, -0.2617850304, -0.4051487446, -0.045369152, 0.2854010761, -0.1519388556, 0.4173751175, -0.0524606593, 0.0434460416, 0.191495955, 0.0440555736, -0.075037688, -0.0538571514, 0.0096023381, -0.0354845934, -0.2180484533, 0.0762827322, 0.237285614, -0.0074123605, -0.0502681136, -0.0781647712, -0.2847444415, 0.1482700706, -0.1795341372, 0.1913747638, 0.2886134982, -0.2734927833, -0.1140357181, 0.2005843222, 0.4426933527, 0.3836377263, 0.1154443473, -0.042341534, -0.023079887, -0.1850621104, -0.3568234146, -0.0876473412, 0.3284963071, 0.0430886522, -0.3071210682, 0.0704470426, -0.2281695902, -0.0192243271, 0.0640724599, 0.2267337292, -0.0405924283, 0.2543423474, 0.0168919154, 0.1298943311, -0.159040153, -0.2027336359, -0.2411941588, 0.0526435226, -0.0522896387, 0.2572020292, 0.252686739, -0.1416994631, 0.2949466705, 0.0210409872, 0.1047539786, -0.1562041193, -0.012945422, -0.0339324474, -0.262568295, 0.4257764816, 0.2072322667, 0.1498872042, 0.191568628, -0.3342594802, 0.0919592232, 0.0238726269, -0.2023175806, -0.5349401236, -0.3775514662, 0.2433695346, -0.1930316538, 0.0006408584, -0.0854166374, 0.492695272, -0.12587668, -0.200593546, -0.0741360709, 0.1414723396, -0.3251983523, -0.0360057689, 0.2284481823, 0.4770266116, -0.3275350928, -0.288528651, -0.1856207401, -0.1960796714, -0.0943301991, 0.1733862013, -0.2498109341, 0.0874365568, -0.2971255779, -0.0471966267, 0.2947886884, -0.081753239, -0.2705628574, 0.0774137899, -0.2476384938, 0.1613093466, 0.0184259601, 0.0087582702, -0.2167870849, 0.0784780011, 0.2718449235, 0.1136029139, -0.0428927168, 0.2028948367, -0.2328077108, -0.0976988226, -0.1189287081, 0.2209883034, 0.3705183864, -0.084743157, 0.305552274, -0.2494811863, 0.2203669399, -0.0211678091, 0.166301921, 0.450481832, 0.4090559483, 0.0482665673, 0.0851074979, -0.0588615499, -0.6630221009, 0.1824911237, 0.0604588352, 0.0548117273, -0.1265829951, -0.239870593, -0.2038581073, -0.2788567543, -0.3247824013, -0.2542046905, 0.1308143735, 0.0600287467, -0.2686506808, 0.3854193687, -0.2169707865, 0.1346042454, -0.0447409637, 0.1121091321, -0.336746335, 0.2658318579, -0.2499423176, 0.0463997871, 0.1564616114, 0.0071090958, 0.1120526642, -0.1856685728, -0.1147741452, 0.5158987641, -0.0164391939, 0.3071859777, 0.4070095122, 0.0258427933, 0.280115068, -0.586453557, 0.0014758829, 0.1969535649, -0.0329485945, -0.2050102502, -0.5306288004, 0.2777297497, 0.0797249675, -0.0518691763, 0.1031296402, 0.3067660034, 0.2608006895, -0.0491421297, 0.1582873911, -0.2414273173, 0.1183762997, -0.0965613201, 0.260833025, -0.1759957224, -0.4331057966, 0.1659522802, 0.3494390547, 0.0825653896, -0.0270142481, 0.1943136156, -0.3193074465, -0.2418664396, 0.0007050801, 0.3982298076, 0.3179395199, 0.1797162592, 0.1445576698, 0.2854647338, 0.2524556816, -0.3376317918, 0.1855914146, -0.0335983299, 0.3748423457, 0.3180787265, 0.0777771324, 0.0029971655, -0.4142684639, 0.0211084764, 0.3318342268, 0.1454634517, -0.3140526414, -0.0600811355, -0.2276222855, -0.2317855954, -0.2043218315, -0.0440883301, -0.400832504, -0.3647613525, 0.1441527903, 0.2245453745, -0.1837058365, 0.1208054796, 0.0933704823, 0.1264437586, 0.0041780528, 0.1264676601, -0.0736446008, -0.1099014059, -0.1484052539, 0.1324979514, 0.2351184636, -0.0280548334, 0.1272785664, -0.2422488183, 0.0189072452, -0.6473357677, -0.4950318336, 0.1596493274, -0.1561372876, 0.1320040822, 0.1008690372, 0.2379404157, -0.2871606648, -0.0246118959, 0.2057287842, -0.1421521455, 0.1015131921, 0.0854820013, -0.0850510895, -0.0052080709, -0.0323272906, -0.4535262287, -0.2287194729, -0.3282013535, 0.3167480528, -0.2446501702, 0.030520957, 0.1633340865, 0.2659244239, 0.1522565931, -0.0264348686, -0.1401325315, -0.2855232358, -0.2316875756, 0.3149048388, -0.4753134251, -0.478579998, 0.2872188687, 0.1915640831, -0.0428621769, -0.0393919237, -0.5842481852, -0.1779862195, 0.0073698927, -0.0607533753, 0.0883077979, -0.0733658224, 0.3424160182, -0.0894880667, -0.2021224052, -0.1193572953, -0.1285260171, -0.1309713572, -0.1196523607, 0.2961346507, -0.2446364015, 0.2517609298, 0.1309167743, 0.8454495072, 0.3763315678, 0.1880947351, 0.2614417374, -0.0764863417, 0.5798196197, -0.0244069174, -0.1470611542, 0.215679571, -0.0214540493, 0.1336999983, 0.3256798983, 0.1000461727, -0.1820840985, -0.299280107, 0.073448725, -0.4389610589, -0.2896044254, 0.004142392, 0.0604840182, 0.1060922742, 0.1814710051, -0.1960057914, 0.132336691, -0.2329007685, 0.1013217866, 0.6919330359, -0.0501876324, -0.0970801711, -0.1043195352, -0.0679378137, -0.3521660566, 0.2764794827, -0.0648394749, -0.0262619313, -0.1005519852, -0.0118148429, 0.1594804227, 0.0028041126, 0.5682063699, -0.3258593082, -0.2170091122, 0.0250884686, 0.0499025136, -0.0716830716, -0.239918977, -0.2595689893, 0.3520445824, 0.2185597867, 0.6686885357, -0.0779017657, -0.2150867581, 0.4793426394, -0.141037181, 0.0073266006, -0.1951815635, -0.2259301245, -0.0269606542, -0.2229776531, -0.1708096713, 0.0152576175, 0.1323521137, -0.2428584993, -0.1090838537, 0.281217128, 0.0297913868, -0.1282583177, -0.1505591571, 0.204660818, 0.3364705443, 0.08279147, 0.3960151076, 0.1792167276, 0.4689151049, 0.7659218907, -0.1142554507, -0.4266358316, 0.2505683601, -0.1351567358, 0.0529499613, 0.351858288, -0.005487876, -0.0519274361, 0.5907359719, 0.3997440338, 0.0268064272, 0.0427840203, 0.3419125974, -0.0787803605, -0.2595359981, -0.132913202, 0.4234345257, 0.0585887954, 0.0817085877, 0.3582856357, 0.2719651461, -0.0509928726, -0.0958265439, -0.3629868925, 0.7006549239, -0.1204478815, 0.041740194, 0.1595517993, -0.0632228702, 0.3199170232, -0.3107926548, 0.2391824722, -0.159607321, -0.1871926785, -0.0530294031, 0.0630892515, 0.0605409518, 0.1275124103, -0.246506691, 0.2701015174, 0.2398924679, 0.1938135177, -0.1722818613, 0.3921642601, -0.1338391602, 0.0214060973, 0.1089109108, 0.1550832242, 0.0329502262, 0.2746291161, -0.2710902989, -0.0373653509, -0.0267530996, -0.1960806996, -0.4626703262, -0.0082851965, -0.202659294, 0.3568618298, 0.1040600315, -0.4894786477, 0.1065251455, 0.2307562828, 0.0100085028, -0.1957062483, -0.5076265335, 0.359369725, -0.1765535474, -0.2647044063, -0.3143184185, -0.1573396176, 0.3316454589, 0.0120517462, -0.3861579895, 0.1204997525, -0.2765277326, -0.2204969078, -0.0742685646, -0.0694906786, -0.3656506836, -0.0190625563, 0.1101940498, -0.0440004207, -0.1013870016, -0.3672620058, 0.1536384076, -0.0670106187, 0.0598303229, -0.1321209669, 0.2235285193, -0.2423199415, -0.1294566244, 0.4443452358, -0.084073551, -0.1166868135, 0.3165599108, 0.4235856831, -0.2014180422, -0.2536206543, 0.0608116724, 0.1697468013, -0.2217540443, 0.0826628134, -0.0091110468, 0.2398522496, 0.3170995414, 0.1537724733, 0.0479033217, 0.0018055587, 0.00809169, -0.480006814, -0.0487357117, 0.1304285973, -0.2541607618, 0.080887951, -0.1848933101, -0.0715361387, 0.4172370434, 0.0278422181, -0.3635041118, 0.165294826, -0.1746709794, -0.0044194255, -0.0547225885, -0.0097864512, 0.4218269587, -0.0564425364, 0.0695159584, -0.1564555466, -0.2006747425, -0.2082686573, -0.0398103409, 0.1309797764, 0.0862576887, 0.0241951048, 0.0041743787, 0.0014686596, -0.3878685534, 0.0646675229, 0.1601662636, 0.1104766428, 0.0585967042, -0.0263773408, 0.0075279241, -0.2219056189, 0.0634431988, -0.2009924948, 0.0462304056, 0.3307190835, -0.0289147291, 0.0598417111, -0.0644493178, -0.0104417205, -0.0802536607, 0.0125005469, 0.0948785171, 0.1303806603, 0.2090907693, -0.2512920201, -0.0421535969, 0.0047919131, 0.4171543419, 0.0593068972, -0.5749192238, 0.1530027241, 0.2569420338, 0.2012476176, -0.3056640923, -0.042248603, 0.3032122254, -0.0545062348, 0.1741996258, -0.116757974, 0.3430560231, 0.0470998138, 0.0096841231, 0.2037906349, 0.3222563565, 0.0569130853, 0.3478037417, -0.231893301, 0.032915581, 0.1460581124, 0.0504461937, 0.1553390622, 0.0956189558, 0.1945301741, -0.1974889636, 0.039808251, -0.1680597514, 0.1954483688, 0.2584600151, -0.5932373405, 0.3097504079, 0.1288981289, -0.5257309675, -0.1750653386, -0.0449236035, 0.6167219281, -0.4105324149, 0.1452957392, -0.3666509092, 0.28244403, 0.0267978888, 0.24838911, 0.1130541041, -0.1823692471, -0.3368999958, 0.2216555327, 0.1329077631, 0.0390651338, 0.3788395822, 0.146582514, -0.1570291817, -0.2057964951, 0.025757974, 0.1120021865, 0.3283070028, -0.1542852521, 0.1652920544, 0.1487008929, -0.2340081334, 0.1463909298, 0.5180338621, 0.3069965839, -0.0279826876, 0.185526967, 0.2166342437, 0.1216378361, -0.1225280166, 0.0565390103, 0.1133925319, 0.3558654189, -0.2129235119, 0.1707366556, 0.1154978424, -0.1974219531, 0.1416035891, 0.1364419162, 0.2853215337, -0.1473203003, -0.2654606998, -0.4569991231, -0.0316028595, -0.2138393968, -0.214809522, -0.4444019496, -0.0619935766, 0.3813700974, 0.011698694, 0.1099137664, -0.0846443474, 0.1074445248, 0.1957380176, 0.4275564253, 0.3744041324, 0.1070248634, -0.0869148299, -0.6322663426, -0.713601172, 0.2756284773, -0.1579361111, 0.2963865995, -0.0130189443, 0.1749264449, -0.1174950972, 0.0762455612, 0.2748536468, 0.0841287524, 0.0082796561, -0.0415398367, -0.2840221524, -0.0177665241, 0.0197834596, -0.0308237709, 0.0001899398, 0.0325863585, 0.2192158103, 0.0001511362, 0.0253587924, -0.1385441273, -0.0182102565, -0.2394028753, -0.3249523044, 0.325440228, -0.0459362939, 0.2976703346, -0.2550990283, -0.2747499645, -0.1025214344, -0.0918667316, -0.1757472903, 0.2247897387, 0.0912908986, 0.463023752, 0.0335965976, -0.3111024499, -0.0662319735, 0.32555601, 0.0499470942, -0.1482616514, -0.3682389557, 0.0863039866, -0.1415770501, 0.2040085644, 0.5045039058, 0.2100887746, -0.0459378287, -0.1641119421, -0.3092304468, -0.3907116354, 0.4100878537, -0.3070970774, 0.1029754803, -0.2673336267, 0.190768227, -0.0557169095, -0.0026002387, -0.7274280787, 0.0720159337, 0.3326496184, 0.1605439335, -0.1486660391, 0.0839724019, -0.112783961, -0.0968249291, -0.0532147698, 0.1002178714, 0.2164115608, -0.2438004613, 0.1341406852, -0.0737067237 ]
https://github.com/huggingface/datasets/issues/3896
Missing google file for `multi_news` dataset
That is. The PR #3843 was just opened a bit later we had made our 1.18.4 patch release... Once merged, that will fix this issue.
## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No
25
Missing google file for `multi_news` dataset ## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No That is. The PR #3843 was just opened a bit later we had made our 1.18.4 patch release... Once merged, that will fix this issue.
[ -0.1872243881, -0.0048771896, 0.0356899202, 0.1828447878, 0.0608461536, 0.2791557312, 0.2332007587, 0.2045081407, -0.0366966426, 0.174518615, 0.1645780057, 0.0191535335, -0.3617122471, 0.2578108907, 0.2078476548, -0.2329187691, 0.116395615, 0.0118159615, 0.2681151927, -0.0911785439, -0.3354704678, 0.4920606911, -0.1394957602, -0.347469002, -0.5592487454, 0.0674446002, -0.2242629975, 0.320802331, -0.0488986373, -0.1438560337, -0.0915783495, 0.0178274717, 0.0637669861, 0.5181998014, -0.0001100227, 0.0744090229, 0.1599948257, -0.0728010237, -0.2432723641, -0.292216301, -0.1795356125, -0.3841656446, -0.0315886661, 0.0633950308, -0.2299929708, -0.1248097196, 0.2355208248, -0.0387470126, 0.0512413792, 0.4330629706, 0.2115030587, 0.0479155816, 0.4874855578, -0.2200935185, 0.1155769899, -0.077804409, -0.0510020554, 0.2552134395, -0.0817323849, 0.0770748779, 0.1039975509, 0.5462772846, 0.304639101, -0.0695163682, -0.1316420734, -0.0342435241, -0.1518390328, -0.2416981757, 0.0863401517, 0.3786846399, 0.429670006, 0.1074756011, -0.2502038181, -0.0039474228, 0.2750443816, 0.0589222386, 0.2631619573, 0.3699499071, -0.0290590674, 0.2897687852, -0.1895839572, -0.4777518809, -0.0114069395, 0.2702265978, -0.1848279387, 0.3734056056, 0.0105298804, 0.0573794693, 0.0669687837, 0.1050213501, -0.0994315147, -0.0402792022, -0.0326135531, 0.002355817, -0.1493077725, 0.0730426386, 0.2040165365, -0.0571351536, -0.0232474618, -0.0774527714, -0.3519575, 0.022566624, -0.2316220403, 0.210776791, 0.3199985325, -0.26366359, -0.186002329, 0.2886660397, 0.4071514308, 0.2384560555, 0.1201672629, -0.0258684531, 0.0091442233, -0.1525196582, -0.2817752361, 0.0418084152, 0.296510756, 0.007680865, -0.3023346663, 0.0403845161, -0.2887430787, -0.0604900941, -0.0300551951, 0.1145804524, 0.0022582489, 0.2750247121, 0.0942160785, 0.0936125815, -0.1307660341, -0.2969663441, -0.224180609, 0.1287461817, -0.0034950995, 0.3261285126, 0.200730741, -0.0544314645, 0.2158964723, -0.0277906246, 0.0395585001, -0.2227404118, -0.0068461425, -0.0130639207, -0.2587530911, 0.444270283, 0.1846520752, 0.1227164268, 0.1658951789, -0.3463702798, 0.0950519368, 0.132716164, -0.2355234325, -0.5962261558, -0.4397488236, 0.2294384986, -0.1776950657, -0.0629323721, -0.0591419302, 0.5101072788, -0.0654146224, -0.1904254705, -0.0086431019, 0.1976845264, -0.3526613712, -0.0607187934, 0.1974286735, 0.4896962345, -0.3454836011, -0.2394700646, -0.3427885473, -0.2256975919, -0.052143015, 0.1951579154, -0.2483708113, 0.2457914799, -0.3264862299, -0.136115402, 0.3167670667, -0.0719663575, -0.242376402, -0.0625892431, -0.3118366301, 0.0988032818, 0.0554501675, 0.0529272407, -0.1650905013, 0.0587345585, 0.2711955011, 0.1168915927, -0.0430608131, 0.1880587637, -0.2034881711, -0.0303613394, -0.0532484874, 0.2304320931, 0.4236676991, -0.0707855001, 0.3201605082, -0.3414312899, 0.1870197803, -0.0118250223, 0.1476411968, 0.5195217729, 0.4749774337, 0.0739348531, 0.1048127785, 0.0054830452, -0.6059776545, 0.1749016345, 0.0899520069, 0.0592469536, -0.0415674634, -0.1964133382, -0.2248480469, -0.3244541287, -0.3066118658, -0.2828348875, 0.1422518045, 0.0473340712, -0.3329623938, 0.4180708826, -0.2121297419, 0.1743274331, -0.0623031221, 0.0349705927, -0.2749993801, 0.2314403504, -0.2827826738, 0.1294605881, 0.1165914163, 0.0248131957, 0.1221662313, -0.1492938101, -0.1036787927, 0.4013264775, 0.0372598693, 0.1733634472, 0.482208401, -0.0054557431, 0.2585505843, -0.7087473273, 0.0004391443, 0.1740693599, -0.0236911941, -0.2458589226, -0.4859755933, 0.2288683057, 0.1894020587, -0.1759803295, -0.0261051785, 0.3318281174, 0.2994700968, -0.1140441224, 0.2522147298, -0.1744801104, 0.082806766, 0.0041169031, 0.2477098107, -0.1705702394, -0.3176653385, 0.1946543604, 0.4160513878, -0.0094270026, 0.0156623032, 0.1871995479, -0.2291242778, -0.189079836, -0.0619780421, 0.3554427028, 0.3300708234, 0.1783439368, 0.0890292078, 0.2322905064, 0.2851098478, -0.2795420289, 0.1586307138, 0.016970709, 0.3599022627, 0.2976170778, 0.1143514886, 0.0328883305, -0.3657295406, 0.0612581074, 0.40362674, 0.2187860161, -0.2972444892, -0.1190035194, -0.161698848, -0.1548976749, -0.1404837817, 0.0115757929, -0.3980473876, -0.3729676902, 0.1576935351, 0.0497474894, -0.0669740513, 0.0677443966, 0.1581223756, 0.1308144033, -0.041564513, 0.1317182034, -0.0787146837, -0.0941479355, -0.15404737, 0.1254364401, 0.2540752292, -0.0228358135, 0.124977164, -0.2394531369, 0.0682529584, -0.7043074369, -0.4395389855, 0.0925029442, -0.1899754703, 0.0506544858, 0.0765546635, 0.2621288002, -0.2664462626, -0.0138531784, 0.1472311616, -0.1100524142, -0.020947706, 0.0729544684, -0.1512775719, -0.0302424002, 0.0135871693, -0.4395050406, -0.3328360617, -0.2127954215, 0.3313550949, -0.1791113317, 0.0486295782, 0.0212214477, 0.2010140717, 0.1185042113, -0.0325615928, -0.188214168, -0.2785400748, -0.1579575688, 0.2916124165, -0.4021888673, -0.3986140192, 0.3772139847, 0.1471600533, -0.174726218, -0.1544241756, -0.60300529, -0.1053519398, 0.0169253666, 0.0033854963, 0.0231468081, -0.0946336687, 0.4681658745, -0.1171741784, -0.1710401177, -0.0588585027, -0.1788693964, -0.1401713341, 0.0170955025, 0.4539297521, -0.2753291726, 0.2231184989, 0.0799264535, 0.9152951837, 0.3518288136, 0.1884815544, 0.2041663975, -0.1072580069, 0.5518417358, -0.07923612, -0.1201913878, 0.2751150131, -0.0374764092, 0.1066229418, 0.2463394701, 0.1052813008, -0.2030360401, -0.3115978539, 0.0452207439, -0.4742396176, -0.2466532588, -0.033829499, 0.1449821591, 0.0979082882, 0.1513948143, -0.3420823216, 0.0389480218, -0.2148832679, 0.1874668002, 0.7792719007, 0.039162688, -0.0717562661, -0.0653900877, -0.0558257289, -0.2934439778, 0.2910730839, -0.0450410061, -0.1098106802, -0.1489575207, 0.0692528114, 0.1607763469, 0.0251868963, 0.5263213515, -0.3969439864, -0.2740156054, 0.006973946, 0.0901438892, 0.1015978679, -0.2614498734, -0.2429478317, 0.3230404556, 0.2351921052, 0.6074709892, -0.0280003808, -0.138153851, 0.5628079176, -0.162241593, -0.067538783, -0.2494844794, -0.2436908633, -0.0917742699, -0.1531971544, -0.193707332, 0.068679221, 0.0984316245, -0.1829743236, -0.1573737562, 0.3382399678, 0.045346681, -0.1694345325, -0.3171518743, 0.1812300086, 0.3458063602, 0.0468422771, 0.3656404316, 0.1706723124, 0.4330360889, 0.7330332994, -0.130264312, -0.3884176612, 0.2739971876, -0.25711447, 0.1210258678, 0.3148053586, 0.0406966396, -0.0427561998, 0.4795355201, 0.3478913307, 0.0733143017, -0.092276834, 0.2611964345, -0.1159317791, -0.2494263649, -0.1334164292, 0.3993436396, 0.0647521839, 0.0681246221, 0.3912704885, 0.2510027289, -0.0017814431, -0.1480503678, -0.4122686088, 0.7743065953, -0.1763581634, -0.0402205922, 0.0812773481, -0.0334590673, 0.3144212663, -0.4611627758, 0.2571010888, -0.1584144533, -0.2042913735, -0.1097363904, 0.0246911198, 0.0748676732, 0.1270359606, -0.1915503293, 0.2888599038, 0.1466619968, 0.1583173275, -0.1175710931, 0.3598802686, -0.0099849273, 0.0861632302, 0.2437682599, 0.1512667537, 0.0578663759, 0.337066561, -0.2761972845, -0.0265292358, -0.1116974503, -0.1555296481, -0.5953026414, -0.1039340049, -0.2396069914, 0.3454879522, 0.1469336003, -0.4965591729, 0.0979500562, 0.1736335158, 0.0004049328, -0.2091355026, -0.4713650644, 0.3763512969, -0.1026633233, -0.1961087137, -0.3093191087, -0.2202985883, 0.3089319468, 0.0442258641, -0.4749386013, 0.1855815649, -0.3960523605, -0.3003222942, -0.1898258477, -0.0790214986, -0.387457788, 0.0769319683, 0.1505432129, 0.0334565565, -0.1402810365, -0.2922777236, 0.1492068321, 0.0363719091, 0.0744138062, -0.1371107697, 0.1778105646, -0.2859862447, -0.1235773861, 0.3827515841, -0.0189876314, -0.1013796404, 0.3190999031, 0.3554641306, -0.1342737973, -0.2382764965, 0.1642005444, 0.2029114068, -0.1867346317, 0.0186810605, -0.023886105, 0.32317397, 0.4318348169, 0.129774645, 0.0612142012, -0.0168412514, -0.0751830265, -0.5607314706, -0.0474866293, 0.0577594191, -0.2853308916, -0.0135227665, -0.2625463903, -0.0672428682, 0.4677387476, 0.0764079615, -0.3378606439, 0.1503447592, -0.2573103309, 0.0547522195, -0.0214346088, -0.0015049828, 0.3316747248, -0.0914349705, 0.0767140314, -0.2026295364, -0.1469998658, -0.1831274629, 0.0236529857, 0.1473248899, 0.0738861263, 0.0990669206, -0.0239459407, -0.0574299581, -0.413289547, 0.2105102986, 0.0586204603, 0.0614400096, 0.0284937881, -0.0093337409, -0.014679919, -0.3072660565, 0.003733577, -0.1875407994, 0.0891212001, 0.3535085618, 0.0075714975, 0.1189154014, 0.0345952697, 0.0517393276, -0.0803660899, -0.0148010571, 0.0220232215, 0.2257971615, 0.1767001301, -0.2491981834, -0.0079310667, -0.0819198117, 0.2937260866, -0.0304302666, -0.6152099967, 0.2783766389, 0.189643234, 0.1905763447, -0.3368075788, -0.0532574803, 0.412239939, -0.0182711296, 0.0569174215, -0.0937981084, 0.3563446999, 0.0231388938, 0.0228297785, 0.2113971561, 0.311853379, 0.056476254, 0.2733448744, -0.2610474825, -0.0036973623, 0.1753455549, 0.1074918211, 0.1808650047, 0.0666352063, 0.2738437951, -0.0810824037, -0.0057709636, -0.1097371355, 0.2442491651, 0.2949308455, -0.6537453532, 0.4455184042, 0.1399579346, -0.481832087, -0.2766653001, -0.0246617794, 0.4785228074, -0.3636009097, 0.1970674992, -0.4394130707, 0.2678038478, 0.0001730386, 0.4045162201, 0.1832769215, -0.186481908, -0.2871367037, 0.1742257923, 0.224445194, 0.0155533357, 0.3685493469, 0.1936069727, -0.2148675919, -0.0996345952, 0.0091835111, 0.0571642034, 0.2803321481, -0.1806925386, 0.1635840088, 0.0902821571, -0.2605144382, 0.1591387689, 0.4900105894, 0.2336913496, 0.0001943217, 0.189927876, 0.2216514349, 0.1556385905, -0.1479311436, 0.1231481656, 0.1245119348, 0.3392238319, -0.2820138037, 0.1327667534, 0.0922697484, -0.125399366, 0.1341745704, 0.2236143351, 0.2765334845, -0.1848880649, -0.2177697122, -0.5578414798, -0.0982424244, -0.2640457749, -0.1165287867, -0.3371771872, -0.1310997605, 0.4041412473, 0.0503868237, 0.0860161781, 0.0287201703, 0.0950704068, 0.057822071, 0.3074468374, 0.3745123148, 0.0265396312, -0.1291519403, -0.6353402138, -0.6920590997, 0.2811926603, -0.2632494867, 0.2551966012, -0.0393708721, 0.1626930535, -0.0510377549, 0.0554580353, 0.4093539119, 0.1813089848, 0.119334437, 0.0678749382, -0.3175514638, -0.1027054563, 0.0831519142, -0.0048006158, -0.0719656423, 0.0712136254, 0.2167757601, 0.0558406822, 0.0464429483, -0.1325713992, -0.1249918565, -0.161673665, -0.1561680585, 0.258969605, -0.0375894532, 0.385363847, -0.1767717451, -0.1931675225, -0.036900647, -0.0476530083, -0.1477687955, 0.3268618584, 0.0684940889, 0.3568401337, 0.0751976222, -0.1988568604, -0.0424821302, 0.2878504395, -0.0046327268, -0.1053323597, -0.460414499, 0.0801780969, -0.1962361038, 0.1269928068, 0.5704235435, 0.1129512116, -0.0329970941, -0.2673788071, -0.3041574955, -0.2396586686, 0.3024805188, -0.2123732567, 0.0915819705, -0.332565248, 0.2111489475, -0.113046214, 0.0726874694, -0.6023403406, -0.0505719855, 0.3993321657, 0.1020223871, -0.1298089921, 0.0537383892, -0.1167487875, -0.0240200367, -0.0146699147, -0.0605806559, 0.1126954332, -0.1374902874, 0.0742349699, -0.0119949263 ]
https://github.com/huggingface/datasets/issues/3896
Missing google file for `multi_news` dataset
OK. Should fix the viewer for 50 datasets <img width="148" alt="Capture d’écran 2022-03-14 aΜ€ 11 51 02" src="https://user-images.githubusercontent.com/1676121/158157853-6c544a47-2d6d-4ac4-964a-6f10951ec36b.png">
## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No
18
Missing google file for `multi_news` dataset ## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No OK. Should fix the viewer for 50 datasets <img width="148" alt="Capture d’écran 2022-03-14 aΜ€ 11 51 02" src="https://user-images.githubusercontent.com/1676121/158157853-6c544a47-2d6d-4ac4-964a-6f10951ec36b.png">
[ -0.193397209, 0.1477288455, 0.0188400652, 0.2966784239, 0.050625924, 0.3109287918, 0.2941399515, 0.1884908676, -0.0731478259, 0.1240583584, 0.1497876644, -0.086458005, -0.3482003808, 0.2359732538, 0.1940668821, -0.1597624123, 0.0069946707, 0.049904, 0.1567213833, -0.0928816944, -0.3870483339, 0.4132068157, -0.0313487872, -0.3563390672, -0.5102396607, -0.0329992101, -0.1349658519, 0.3064560592, -0.1050367504, -0.1911117285, -0.1466590315, 0.0352477916, 0.1553135663, 0.5570985079, -0.0001115682, 0.1400072128, 0.2059163749, -0.0818837807, -0.1803534776, -0.1162378863, -0.3221026957, -0.2358184755, -0.1057317108, -0.1040614471, -0.0874808505, -0.1110204235, 0.1942806095, -0.1892815083, 0.1673380435, 0.4233097434, 0.2260954529, -0.0837056339, 0.4143300354, -0.0836182758, 0.1569637805, -0.0181502961, 0.0868649632, 0.2028197199, -0.2211884707, 0.0388419889, 0.0131312702, 0.5771192312, 0.1517455876, -0.0691814944, -0.1997390389, -0.1929727495, -0.2381440699, -0.3023694158, 0.144562915, 0.2396602631, 0.5382722616, 0.1348784864, -0.2633891404, 0.0538242608, 0.2205636799, 0.033398062, 0.2443392128, 0.4427034855, 0.0467533879, 0.1999878436, -0.3329997361, -0.3787733316, -0.1341996044, 0.2170256227, -0.3532185853, 0.2478200793, -0.0400549397, 0.1118902266, -0.0536294878, 0.1300469935, -0.1430540234, -0.0610806048, -0.079797782, -0.0073268912, -0.1237519309, -0.0030688997, 0.1259948909, -0.0323794186, -0.0664398894, 0.123176679, -0.3546806276, -0.0045653814, -0.1966689527, 0.1291744858, 0.2312473655, -0.2642281651, -0.2307093441, 0.2766657472, 0.4023428857, 0.1234374791, 0.092067793, -0.0263773389, -0.0049597118, -0.3208117187, -0.2527244985, -0.0089709172, 0.3598234653, 0.0441195481, -0.3617744446, 0.1570184827, -0.3676459491, -0.116253376, -0.0933941975, 0.2400186956, -0.0025725483, 0.1789364815, 0.0582700707, 0.0862538368, -0.1005146131, -0.4063538015, -0.2330685556, 0.2591956556, 0.0611418039, 0.2163461745, 0.1470379084, -0.0519432425, 0.1378829628, -0.0710229799, 0.0071860156, -0.2044919878, 0.0477066711, -0.1214961633, -0.318225801, 0.3843324482, 0.2175386101, 0.1331339478, 0.1397662163, -0.2936007679, 0.1031841263, 0.15290007, -0.3207329214, -0.3783464432, -0.422631532, 0.2303667665, -0.180051595, -0.0467751026, -0.18887344, 0.3508187234, -0.1459729075, -0.1942494065, 0.0030482966, 0.2033006102, -0.2453906536, -0.1222521737, 0.1510973871, 0.6265176535, -0.4249156713, -0.1967710704, -0.330694437, -0.1731230915, 0.0129576828, 0.1094383821, -0.183415845, 0.3391465843, -0.4214861393, -0.0499863811, 0.4183913171, -0.1575909108, -0.3415846527, 0.0134184388, -0.245146051, 0.112157546, 0.1690549105, 0.106005393, -0.0735852569, -0.0287967548, 0.0847847387, 0.0961104408, -0.0439546928, 0.1152192429, -0.0948375016, -0.0212121252, -0.0877781734, 0.3473654091, 0.5229449868, -0.0642574057, 0.4516825676, -0.3917662203, 0.1176191866, -0.0360614359, 0.1515195072, 0.5031409264, 0.4215628207, 0.0225724038, 0.058164373, -0.0053331982, -0.6120935082, 0.1581704319, 0.1179220155, -0.0493539982, -0.1875029951, -0.139939785, -0.183438763, -0.3869844675, -0.3619800508, -0.3025954664, 0.1464845091, 0.0919082239, -0.3827189207, 0.3406677246, -0.1360420436, 0.3172214925, -0.0609807484, 0.1744008213, -0.2450563014, 0.2670655847, -0.2975040972, 0.1388324201, 0.1471231133, -0.0174191892, 0.1777623296, -0.178778559, -0.0893310755, 0.3787344694, 0.0940821096, 0.2066823542, 0.4688081443, -0.100984253, 0.2771250308, -0.7825942039, 0.0343432724, 0.1134516373, -0.0141645186, -0.2199374586, -0.4153305292, 0.1593324244, 0.0949072912, -0.2169291824, -0.0367499366, 0.2165378034, 0.1973750144, -0.1003531665, 0.2343314439, -0.1438571513, 0.1092565954, 0.1792018563, 0.1956460327, -0.1516064405, -0.3047131002, 0.0346606225, 0.3844021261, -0.0213315543, -0.0127326706, 0.2074034661, -0.2463758439, 0.0037437922, -0.0305376835, 0.3902890384, 0.351955533, 0.1928467453, -0.0263644196, 0.1137889847, 0.314971149, -0.2678751647, 0.1074707508, -0.0393531322, 0.279212445, 0.3025750518, 0.0775428042, 0.1133669987, -0.357654959, -0.054694429, 0.3388550282, 0.195989415, -0.3271510601, -0.0370715186, -0.1829405874, -0.2859164476, -0.113966696, 0.0535151213, -0.3040628135, -0.2806335986, 0.0439464003, 0.0334444493, -0.0097977854, 0.0995764434, -0.0096614305, 0.1583256721, 0.0107607171, 0.0862113908, -0.1488671899, -0.0266580861, -0.1367527097, 0.168376714, 0.3545511663, -0.1417789608, 0.2143009305, -0.2508834004, 0.0932301655, -0.705516696, -0.3987381458, 0.0841077492, -0.1574075669, 0.1067791432, 0.0167127922, 0.2984665632, -0.2208358198, 0.1146507189, 0.0354875512, 0.1096120924, -0.0795683339, 0.0275295787, -0.1064907387, 0.0602408126, 0.1396446824, -0.2922467589, -0.265771091, -0.1923796982, 0.2829863727, -0.0270373859, 0.0903122351, 0.0199675094, 0.1817680001, 0.0526221767, 0.0947348997, -0.1127863079, -0.2340852022, -0.1674280614, 0.337220639, -0.3695172966, -0.3251102567, 0.4031924307, 0.1352556497, -0.0931432471, -0.0218813177, -0.6589686275, -0.1537077129, -0.0204835963, -0.0274302214, -0.0118472306, -0.0351036042, 0.3883839846, -0.0280542541, -0.0831822753, -0.0858015344, -0.1054192409, -0.2251941413, -0.043029394, 0.3198221922, -0.2228227109, 0.3266834915, 0.0098332614, 0.8642651439, 0.3669934869, 0.1693635732, 0.3580840826, -0.0765850842, 0.5931628942, 0.0158240553, -0.1553371549, 0.3441580832, 0.0169871729, 0.1234624311, 0.1388877034, 0.0167047717, -0.1777082682, -0.3033892214, -0.0226325523, -0.6120863557, -0.1729113609, -0.0185829885, 0.1418714374, 0.0067452099, 0.0793537125, -0.3638212681, 0.1058380604, -0.2158589214, 0.1868585944, 0.7676445842, 0.0920724347, -0.0775883645, -0.0752012432, -0.1369784325, -0.2055517286, 0.3628698885, -0.0425393693, -0.0598139577, -0.0326463617, 0.1856943071, 0.0796966925, 0.0210024603, 0.6152850389, -0.5279527903, -0.2010391653, -0.0595669709, 0.0810468048, 0.1630915999, -0.2258754373, -0.1876278073, 0.2794165909, 0.0589366853, 0.4906257391, 0.0050882418, -0.0070867059, 0.6816782355, -0.1390110254, -0.1085198075, -0.2263984978, -0.2321181148, -0.199264437, -0.1622169167, -0.2675425708, 0.0661863983, 0.0240458138, -0.0795365125, -0.1848056018, 0.1003591269, -0.0897395238, -0.0579067506, -0.3403134048, 0.1656971723, 0.3385178149, 0.0069568455, 0.2885505855, 0.2197811007, 0.5261688828, 0.6920526028, -0.1016046181, -0.3555107415, 0.2832657695, -0.1697407663, 0.0946475342, 0.3707570732, 0.0887523815, -0.1756902039, 0.3893861175, 0.3106281161, 0.0095829442, 0.0012922826, 0.3459617198, -0.0935273692, -0.4325892627, -0.2579881847, 0.3867139518, 0.0971555859, 0.0726057142, 0.450078398, 0.2394561172, -0.1103527918, -0.2625485659, -0.1994108409, 0.8743026257, -0.1055754647, 0.0365245566, 0.041198153, -0.0780248493, 0.3161322474, -0.4810630083, 0.2352708727, -0.1395198703, -0.2360240817, -0.1992269009, -0.031035509, 0.1432333291, 0.0630457848, -0.1133299619, 0.2676127851, 0.1990733445, 0.2450685799, -0.0469349623, 0.2837141454, -0.0045890608, 0.1779580563, 0.4041234553, 0.140744254, -0.0708511472, 0.2109633833, -0.3579337895, 0.0289873742, -0.0332158133, -0.1572864205, -0.5427072644, -0.0905310288, -0.4030108154, 0.3942535818, -0.0262382664, -0.5485448837, 0.1332744062, 0.302531451, -0.0297667868, -0.1808131784, -0.300242871, 0.4626691043, -0.0527459979, -0.192293331, -0.2802841067, -0.1476959288, 0.2770234346, 0.0347746871, -0.276805222, 0.2464483678, -0.2897000611, -0.2810612023, -0.1939219832, 0.0146409608, -0.2935847342, 0.0595940165, 0.0621719211, -0.0398691334, -0.1077273265, -0.232155472, 0.1296687126, -0.1265652776, 0.1910318583, -0.0455499031, 0.0772930458, -0.2910558283, -0.1623029262, 0.4034128189, 0.0887158811, -0.0648445934, 0.3651233613, 0.2172112316, -0.2001136839, -0.2305015475, 0.2656663954, 0.1871757805, -0.2067435086, -0.0800885856, -0.0948655382, 0.3903545141, 0.2857156396, -0.0459004976, 0.0661244169, 0.019341426, 0.0733196288, -0.5692009926, 0.0298256986, 0.106858708, -0.2920112312, 0.0013115805, -0.1904464513, -0.0568814799, 0.3430986404, 0.1015990302, -0.3309189975, 0.1472711116, -0.1828010529, 0.0423595011, 0.1822243631, 0.0732664168, 0.2593626678, -0.0306342021, 0.1274584383, -0.1057378277, -0.1389212906, -0.2080416232, 0.0605910495, 0.1356458515, 0.0378763899, -0.0232957378, -0.0012188831, -0.0655796081, -0.3560070097, 0.2462552935, -0.0564932115, 0.0427774712, 0.0746819377, -0.053453926, -0.0516510382, -0.3269378543, -0.1203518957, -0.0655888692, -0.0140256248, 0.501144886, 0.0191571098, 0.1832363755, 0.1135312766, 0.0177372023, -0.145271346, 0.024018405, -0.0161990225, 0.1402718872, 0.2632190287, -0.3178963959, 0.0504939593, -0.0708685964, 0.2916730344, -0.0530116297, -0.6616230607, 0.1364758164, 0.2202730924, 0.1975231171, -0.3170921504, 0.0185753722, 0.4579145312, -0.1070805117, 0.0807983279, 0.0257877298, 0.1751924902, 0.1109230593, -0.0504559092, 0.1444961578, 0.4529916346, 0.1063126102, 0.315420121, -0.1750825495, 0.0319360681, 0.1688405126, 0.1191003472, 0.3799024522, 0.0636664629, 0.3973351717, -0.1528648883, -0.0184234753, -0.1199399903, 0.1364271492, 0.1874704063, -0.6690113544, 0.4348777235, 0.2983582318, -0.5696759224, -0.2074984163, 0.0413190573, 0.3874600232, -0.1737056971, 0.1428492963, -0.4014229178, 0.3145055473, -0.0182956178, 0.4592041373, -0.0252374392, -0.2029726058, -0.2870669067, 0.2318029702, 0.182748273, -0.0906919464, 0.1960944086, 0.2783080935, -0.2991321683, 0.0074653868, 0.079873614, -0.0642982796, 0.2961608768, -0.2395420074, 0.1581362337, 0.2151977718, -0.2175857723, 0.1581366807, 0.4979408383, 0.2370965183, -0.0897036865, 0.2189062238, 0.1470655352, 0.3147662878, -0.1747347564, 0.0660374314, 0.0337382294, 0.2753120363, -0.2782226205, 0.0917870849, 0.1388489753, -0.1605155915, 0.1649046838, 0.2459254116, 0.1635125279, -0.2776746452, -0.3498535156, -0.6125124097, -0.1206899062, -0.2295078933, -0.2351080179, -0.432122916, -0.1014556587, 0.3739740252, 0.0323044099, 0.0377251655, 0.1159754694, 0.0693024471, 0.0905733034, 0.2152053416, 0.3610591888, 0.0271721762, -0.1560815275, -0.6118444204, -0.6220271587, 0.3121069074, -0.1908148527, 0.1542440802, -0.0181728583, 0.0649524033, -0.0923558921, -0.0006756834, 0.4999197423, 0.2351531833, 0.1678055674, 0.169631198, -0.2408059239, -0.1044450626, 0.171658352, 0.0752767399, -0.2149602175, -0.0743954405, 0.2071313411, -0.0148596903, 0.0954431966, -0.1476758569, -0.1232060194, -0.1664794534, -0.2159668803, 0.3121320903, -0.0812924057, 0.4709613323, -0.2023110241, -0.1464757919, 0.0631854534, -0.0150031131, -0.1250165999, 0.3103655577, 0.1371912956, 0.4281409979, 0.0488941111, -0.1768719554, -0.0718741342, 0.3071303964, 0.0655720979, 0.0458443761, -0.5043863654, 0.0007198801, -0.1398237795, 0.0426896811, 0.5381410718, 0.1208125055, 0.0251703244, -0.1556975245, -0.335193038, -0.2481254041, 0.19667162, -0.3806604147, 0.0483894758, -0.2021166235, 0.1753100902, -0.1105139479, 0.2278630137, -0.3238800168, 0.0614953898, 0.4632430673, 0.0555275455, -0.1157807335, 0.18028602, -0.0237885974, -0.0928941891, 0.0572417118, -0.1707109958, 0.0927847177, -0.1556277722, 0.0949558839, -0.0471631773 ]
https://github.com/huggingface/datasets/issues/3889
Cannot load beans dataset (Couldn't reach the dataset)
Hi ! A pull request is open to fix the dataset, we'll release a patch soon with a new release of `datasets` :)
## Describe the bug The beans dataset is unavailable to download. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('beans') ``` ## Expected results The dataset would be downloaded with no issue. ## Actual results ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ibeans/train.zip (error 403) ``` [It looks like the billing of this project has been disabled because it is associated with a delinquent account.](https://storage.googleapis.com/ibeans/train.zip ) ## Environment info Google Colab
23
Cannot load beans dataset (Couldn't reach the dataset) ## Describe the bug The beans dataset is unavailable to download. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('beans') ``` ## Expected results The dataset would be downloaded with no issue. ## Actual results ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ibeans/train.zip (error 403) ``` [It looks like the billing of this project has been disabled because it is associated with a delinquent account.](https://storage.googleapis.com/ibeans/train.zip ) ## Environment info Google Colab Hi ! A pull request is open to fix the dataset, we'll release a patch soon with a new release of `datasets` :)
[ -0.4721031785, 0.2937533557, -0.1632620394, 0.4070337117, 0.3040816784, 0.0024882513, 0.1432953626, 0.0070784665, -0.0481519289, 0.2847832739, -0.0638592616, 0.3683089912, -0.0164075736, 0.3610325158, -0.0237230491, 0.0577073209, -0.1081281304, -0.1645554006, -0.5758636594, 0.0238816254, -0.2940047979, 0.2738597095, -0.0233216621, -0.037474446, -0.2689074874, -0.0754931942, -0.0744948536, -0.0242406186, -0.4398057759, -0.2356322855, 0.3729551435, 0.0063795429, 0.1406889409, 0.516042769, -0.0001106436, -0.0160402935, 0.3975135088, 0.0894473419, -0.4802117348, -0.3550446033, -0.6385272741, -0.2208745033, 0.1271834224, -0.0056026783, -0.3249295354, 0.2984335124, 0.1365665644, -0.1640414149, 0.1632099003, 0.345636636, 0.2839321494, -0.0932647288, 0.0129740285, -0.2624520957, 0.3314787149, -0.3533499539, -0.1359379739, 0.4348132312, 0.1738160998, -0.1343371123, 0.2780842483, 0.2461380512, 0.1221311688, -0.1201089844, 0.1030773371, -0.0395470187, -0.0103167994, -0.3759793043, 0.2868285775, 0.1133011356, 1.0801270008, -0.0898184031, -0.5385799408, 0.1489835978, 0.1727024913, -0.1384823769, 0.4577842355, 0.1939820349, -0.0267162193, 0.1473180503, -0.3441677392, -0.1730314642, -0.2207688242, 0.2920138538, -0.1578499526, 0.2300724834, -0.104042381, 0.0439439863, -0.0805240721, 0.0574599877, 0.4158939123, 0.0981916487, 0.0637680963, 0.2207368165, -0.0257458873, 0.1214707717, -0.0090336418, 0.2129356414, 0.0016310919, 0.4858340025, 0.0665282235, -0.1074584872, 0.0638755411, 0.1107169315, 0.41320467, 0.0794124603, 0.057154607, 0.1571150124, 0.3623427451, 0.3630518615, -0.1413036436, -0.0843081176, -0.2615189552, -0.1784939766, 0.1232371032, 0.1265430152, 0.117468223, -0.2192620933, -0.4947874248, 0.1154304668, -0.2405763268, -0.0495444424, -0.0687741041, 0.2745155096, -0.3154755235, -0.2409536242, 0.3581920266, 0.1430876553, 0.0367647149, -0.1671222001, -0.2656649351, 0.0400254428, -0.2496528774, 0.1026044041, 0.2079625428, -0.3214916885, 0.2372713834, -0.1805182844, -0.0788536146, -0.0867456123, 0.1295171678, -0.1647741646, -0.3972166181, 0.4750948846, 0.2687707543, -0.0444379635, 0.0200608075, 0.0090054469, -0.0522283353, 0.1811433733, -0.1661706418, -0.1524893194, 0.1472980678, 0.2620905042, -0.2511985004, -0.1091173589, -0.637819171, 0.222700879, -0.0033720131, -0.0461200774, 0.0216008294, -0.13728185, -0.2391985357, -0.2655567825, 0.1706478447, 0.4565367699, -0.2245614827, -0.2256512642, -0.1552482396, -0.0981150642, 0.1407164782, 0.1574581116, -0.210204795, 0.2902570069, -0.1073639616, 0.0466604829, 0.2291445434, -0.0065962267, -0.7131427526, 0.00400902, -0.0644298717, 0.0608280748, -0.1724889129, 0.0499644391, -0.0024187174, 0.1583204269, 0.334340632, 0.5018737912, -0.1460793614, -0.1446334869, -0.1595895886, -0.3222990334, 0.1664765328, 0.1439738274, 0.3315455317, 0.1415906549, 0.2922763824, -0.2188188434, 0.1172382012, 0.2602131367, -0.1560249329, 0.4014736414, 0.2155711204, -0.0367307328, 0.0442621857, -0.337518543, -0.0303146318, 0.310862422, -0.1675975323, 0.2984000742, -0.1555654258, -0.1185258925, -0.3878890872, 0.0861208811, -0.0437085219, 0.162889272, 0.1326960176, -0.1260156929, -0.0397690311, 0.096932672, -0.0658217296, 0.4536842108, -0.0721078888, 0.2146779299, -0.4441938698, 0.5075235367, -0.0948174372, -0.2164164782, 0.1601752937, -0.1268362701, 0.2517760992, -0.1023757607, -0.2076103091, 0.1164109781, 0.0823436975, 0.1473175883, 0.1911284178, 0.2672753036, 0.1045798361, -0.368617475, -0.035487324, 0.3077382743, 0.1716678292, 0.1133882105, 0.1132221669, 0.0175088327, -0.065315485, -0.0775688514, 0.0607261248, 0.0174869746, 0.2353865951, -0.0136472471, -0.1798923314, 0.0718199164, 0.3981319964, -0.0991110355, -0.2290167212, -0.0178624336, -0.0340872929, 0.2495476007, 0.2445352525, -0.0670033321, 0.0538789295, 0.0847787932, -0.0812264234, 0.016513573, 0.1188024357, 0.125835821, 0.2569774687, 0.063255541, 0.0640145168, 0.0012469165, 0.1514452845, -0.1244455054, 0.3070988357, 0.0722187012, 0.4070845246, 0.0843799338, 0.1470548511, 0.1025903746, -0.098252587, -0.1008218825, 0.1055378616, 0.2205799073, -0.1456204951, 0.2648279071, -0.2310453951, -0.4061815739, 0.0500539616, -0.2189501226, -0.1019000709, -0.0544714704, -0.0079942821, 0.223000586, 0.0059521259, -0.0233860593, -0.0961435661, 0.2160826921, 0.1341501474, -0.212007314, -0.1477353126, 0.086633496, -0.2356079668, 0.1262639016, 0.3402315378, -0.0133194532, 0.3762079179, -0.2595165372, -0.0783541054, -0.319652468, -0.1683455259, 0.0163612682, 0.0965981334, 0.5016036034, 0.1734374166, 0.2419325858, -0.1761866212, 0.105154939, 0.2204368114, -0.1762997359, -0.1292262673, -0.1369806677, 0.0521642044, -0.0436598882, 0.0928468034, -0.5160234571, -0.45173949, -0.1908639967, 0.2059098482, 0.1073963195, 0.047600437, -0.055875171, 0.1187330037, 0.0256139692, 0.64621526, -0.0350490548, -0.2899828553, -0.296669215, 0.2920723557, -0.0896095932, -0.3089386523, 0.1453213692, 0.0308605824, 0.1981773525, 0.1397769004, -0.6269009709, 0.0151540348, -0.1387940645, 0.222799629, -0.1545993835, -0.0364992842, 0.1561370343, -0.0611624755, -0.0467446633, -0.03080732, -0.3570401967, -0.207360357, 0.20214279, 0.4101079702, 0.0098609878, 0.3165046275, -0.1672001183, 0.4252548218, -0.0655733049, 0.1472419649, 0.3459512591, 0.0186857432, 0.0972490832, -0.0367070809, -0.3450374007, 0.0455220938, -0.1867191643, -0.4984811246, -0.046965912, 0.1681821942, -0.0982533619, -0.3539893925, -0.1687483042, -0.3403347731, -0.1212658286, -0.0163754206, 0.021327164, -0.0334519967, 0.2559883595, 0.0806363076, -0.0064094621, -0.1420655996, -0.0590111688, 0.2135864645, 0.1102281362, 0.0719861314, 0.1003412232, -0.4873127639, -0.6308300495, 0.2590315044, 0.0088452976, 0.0005935165, -0.249668628, 0.3060354888, 0.1844260395, -0.0756632835, 0.5313763022, -0.4399273992, 0.094472006, 0.1971581876, -0.0292606745, -0.1677525342, -0.1670358628, -0.1104536951, 0.0464309268, 0.2916159928, 0.3247538209, -0.1762114465, 0.1861844659, -0.0434104465, 0.1506799161, -0.2367672026, -0.0932139009, -0.3798173964, -0.6025210023, -0.2135084122, -0.0858867764, 0.0441885553, 0.2464242876, -0.0789799839, -0.2623061836, -0.009695692, 0.1042344645, 0.0398111604, 0.0201016832, 0.1270266771, -0.1063594967, 0.2699290514, -0.0088693555, -0.1804514378, 0.6025006175, 1.0502082109, -0.1165461764, -0.2565758228, 0.2562055588, 0.0809695199, -0.0887011737, 0.2228074521, -0.0686735585, 0.0577802062, 0.1154898107, 0.0338717066, 0.0545060895, 0.1314465702, -0.0014486907, 0.0795607641, -0.2769930065, -0.481315881, 0.5890465379, 0.0514837094, -0.0833028182, 0.4626304507, 0.0764845461, -0.0981584042, 0.1117405593, 0.018458575, 1.0000557899, -0.3093042374, -0.1694659144, 0.0826450884, 0.0521923304, 0.5106689334, -0.3942015469, 0.3396222293, -0.2333503664, -0.4900543392, -0.1413317025, -0.0837428942, -0.0262733772, 0.1201615706, -0.1218447611, 0.3404031098, -0.4328420758, 0.0280985106, 0.1705610305, -0.0200477801, -0.4061294198, 0.2622845471, -0.4714586139, 0.2257139683, -0.1098904833, 0.4843539596, -0.2636074424, -0.0439604372, -0.1622246504, -0.0637699813, -0.464410156, 0.2727032006, -0.4714401364, 0.1058152467, 0.0112484926, -0.1514660567, -0.0012183541, 0.1900098026, 0.0384284928, 0.1586601138, -0.2470344752, 0.2703690827, -0.3114196658, -0.2426271588, -0.140345335, 0.1408325732, 0.4271161258, -0.1609935164, -0.2309474051, 0.1511425227, -0.1541255414, -0.319198817, 0.3693681955, 0.0897636861, 0.1289479136, -0.2121677697, 0.131601125, -0.0864404663, 0.0582005531, -0.1544142663, 0.1749214232, 0.1530903578, 0.1187784821, 0.2981310189, 0.260003835, -0.1723320186, -0.1849178225, 0.649255693, 0.1314345896, -0.1752389967, 0.2301988751, 0.1979459226, -0.1388301402, -0.2725519836, -0.0615974218, 0.2274573147, -0.0834279507, 0.1820786446, -0.1933255494, 0.2544179261, -0.0793543756, 0.0779068694, 0.3260914683, -0.0214935858, 0.0541562922, -0.4913090467, 0.0654710978, 0.2282152325, 0.1223481074, 0.0568456873, 0.0428704768, -0.2232793868, 0.0025577701, -0.3670656681, -0.3355792165, 0.1376216859, -0.5075805187, -0.2129920423, 0.3330509961, 0.096654743, 0.252469629, -0.1083190814, 0.1737544686, 0.0284586586, -0.027059827, -0.2387605458, -0.0479200631, 0.10127455, 0.1124922559, -0.1316351742, -0.111941658, -0.4907900393, -0.0812468827, 0.012165186, 0.1495352834, 0.2981904745, 0.0774803236, -0.3543558419, -0.1021654606, 0.1706214845, -0.3136623502, 0.1135521904, 0.0205320287, 0.2010595948, 0.0746699274, 0.0935564488, 0.3265946209, 0.0665893033, -0.3426161706, -0.1452459842, 0.0736513138, 0.0630742386, 0.4499971569, -0.3078928888, 0.0912568867, 0.0427909009, 0.055006817, 0.2085660249, -0.3299920261, -0.0483304411, 0.1488299519, 0.3005119264, -0.1982130706, -0.1970635056, -0.361692816, 0.1763960719, -0.2612361014, 0.1813091636, 0.1485963911, -0.0636727512, -0.0354004279, 0.0684747398, 0.3974278867, 0.3326659501, 0.2357759923, 0.0163202714, -0.0539103448, 0.1439306736, 0.1167980954, 0.1200697422, 0.0359146185, 0.0966370776, -0.1802593619, 0.2541478276, -0.1138430759, 0.0909309089, -0.1348901987, -0.3188881874, -0.1619253159, 0.1501044184, -0.178365171, -0.0415210314, 0.0460230559, 0.1871365607, -0.4841125906, -0.0753046125, -0.3272186816, 0.0144798588, -0.0540206134, 0.2517439127, -0.1236971021, -0.2149461359, 0.0181622338, 0.0326708183, -0.0499210507, -0.135947302, 0.2046560794, 0.0795772746, -0.1953659952, -0.3063456714, -0.0836697891, 0.232428804, 0.1232755035, -0.1454256028, 0.2666025162, -0.0451009944, -0.185487166, -0.0014179251, 0.2231113911, 0.366260767, 0.1553786844, 0.0839951038, -0.1025413722, 0.1015207097, -0.1289773732, -0.0294163562, 0.2746972144, 0.390555799, -0.1389595419, 0.1773663759, 0.1828630567, -0.1716829538, 0.2217136919, 0.0481021404, 0.5168673992, -0.0709499642, -0.0373256467, -0.3788897693, 0.0779124796, -0.1918088496, -0.0258984827, -0.3528095484, 0.0330362171, 0.2842998207, 0.022093093, 0.0686275512, -0.0735537931, 0.0757426322, -0.1510422677, 0.29442662, 0.5131561756, 0.3895953, -0.3218397498, -0.1104239523, -0.206426844, 0.1794458628, -0.1741951406, -0.0648943484, -0.0191461407, -0.0447686501, -0.1162731275, 0.0969765112, 0.2286088914, 0.0256810263, 0.3126697838, 0.1998196393, -0.3296370804, -0.3376902342, 0.0789348856, 0.1036107093, -0.1433481574, -0.2277149111, 0.0652989671, -0.6299161911, 0.041583553, -0.3009565175, -0.3014413714, 0.0595617965, 0.3727057576, 0.5544356704, 0.1101658493, 0.6199732423, -0.0560379289, -0.0528706349, -0.1523325294, -0.4463804364, -0.0727486312, 0.1186706871, 0.083198227, 0.1544065475, 0.0787032172, 0.1137927175, -0.1230502799, 0.2327875793, -0.1004422307, 0.4025148451, -0.034534581, -0.1846492887, -0.246638611, 0.1344602257, 0.0841640756, 0.0855059251, -0.0066997297, -0.1290951371, -0.2193737179, -0.1840545982, 0.4958954155, -0.1916483939, -0.1972832829, -0.3202699423, 0.1412182897, 0.2225205451, 0.0933846533, -0.2740243077, 0.0118034808, 0.232280463, -0.0494785756, -0.3282751143, 0.2603625357, -0.062167272, 0.213897869, 0.0098810485, 0.2802377045, -0.1263090968, -0.1406562626, -0.0041871462, -0.1062546521 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Hi @INF800, Please note that the `imagefolder` feature enhancement was just recently merged to our master branch (https://github.com/huggingface/datasets/commit/207be676bffe9d164740a41a883af6125edef135), but has not yet been released. We are planning to make the 2.0 release of our library in the coming days and then that feature will be available by updating your `datasets` library from PyPI. In the meantime, you can incorporate that feature if you install our library from our GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then: ```python In [1]: from datasets import load_dataset ds = load_dataset("imagefolder", data_files="https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip", split="train") Using custom data configuration default-7eb4e80d960deb18 Downloading and preparing dataset image_folder/default to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 690.19it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 852.85it/s] Dataset image_folder downloaded and prepared to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60. Subsequent calls will reuse this data. In [2]: ds Out[2]: Dataset({ features: ['image', 'label'], num_rows: 25000 }) ```
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
140
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Hi @INF800, Please note that the `imagefolder` feature enhancement was just recently merged to our master branch (https://github.com/huggingface/datasets/commit/207be676bffe9d164740a41a883af6125edef135), but has not yet been released. We are planning to make the 2.0 release of our library in the coming days and then that feature will be available by updating your `datasets` library from PyPI. In the meantime, you can incorporate that feature if you install our library from our GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then: ```python In [1]: from datasets import load_dataset ds = load_dataset("imagefolder", data_files="https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip", split="train") Using custom data configuration default-7eb4e80d960deb18 Downloading and preparing dataset image_folder/default to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60... Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 690.19it/s] Extracting data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:00<00:00, 852.85it/s] Dataset image_folder downloaded and prepared to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60. Subsequent calls will reuse this data. In [2]: ds Out[2]: Dataset({ features: ['image', 'label'], num_rows: 25000 }) ```
[ -0.28589499, 0.0791946054, -0.1641439646, 0.5192497373, 0.3978698254, 0.1942408681, 0.3166290522, 0.1429088861, 0.0455847755, 0.1703683138, 0.0783737227, -0.0138087906, -0.2019121945, 0.0991076156, -0.0279719345, -0.0610152707, -0.1374426484, 0.2016349137, -0.1800704598, 0.1053986624, -0.3243975341, 0.222762838, -0.1992963403, 0.0239699688, -0.3725245893, -0.1334148347, -0.2554859221, 0.5537114143, -0.3019846976, -0.2025516033, 0.1425678432, -0.1484532505, 0.2093803585, 0.4515587687, -0.0001075646, 0.2240584493, 0.41011253, -0.2311011106, -0.3290292025, -0.3769567907, -0.228267312, -0.0441726856, 0.0047344142, -0.3819600344, -0.1225531101, -0.0782392919, 0.2704273462, 0.0254106838, 0.3077078462, 0.2765155137, 0.258998841, 0.1214061677, 0.1843479574, -0.0169011727, -0.112183772, 0.4930899441, 0.0372764431, 0.2362049073, 0.0792013109, -0.0652796701, 0.1625441164, 0.2614590228, 0.0358876623, -0.0124442903, 0.2321917564, 0.1105271727, -0.0068237442, -0.2155939192, 0.1265501976, -0.1820919663, 0.3849570453, -0.1616748273, -0.1817634404, -0.01814574, -0.0395430736, -0.4064300656, 0.1617155224, 0.0836903453, -0.1187563911, 0.0931641608, -0.1862466782, -0.2279613614, -0.3234366477, 0.3092052639, 0.0679564923, 0.0877893418, -0.2053929567, 0.0769240707, 0.1150603369, 0.0493063368, 0.097090669, -0.3621659875, 0.044210799, 0.1265061051, 0.2593221366, 0.1461467892, -0.0195173714, 0.1517591923, 0.0959282145, 0.1028214544, -0.2983163297, -0.2555589676, -0.2526744306, 0.0793466792, 0.0006240158, 0.2288815975, -0.0557619706, 0.4583567381, 0.2230266035, 0.3975459039, -0.0246014316, -0.2443839461, -0.3011550605, -0.20050174, 0.0499580242, 0.201144591, 0.3267683685, 0.0799774528, -0.0135420058, -0.4608425796, 0.1270582229, -0.0686441287, 0.202327311, 0.2879629433, 0.2272085696, -0.0218351409, 0.1704128534, 0.237515986, 0.1398354769, 0.0984483287, -0.2554234266, 0.2842488885, -0.2523290813, -0.0051607536, -0.0439187177, -0.254650414, 0.3056448996, -0.2868964076, 0.0526929125, 0.0585396364, 0.1553368568, -0.2169874609, -0.0509816073, 0.2610355616, -0.0916735008, -0.0187397711, 0.2963451743, -0.0454206876, 0.0666983128, 0.0996684656, -0.4484413862, -0.4122204781, -0.2043375969, 0.2212546915, -0.0946172029, 0.0263819788, -0.5048217177, -0.2424767017, -0.0498434752, -0.2207407802, 0.0285938103, 0.005032144, -0.2164944559, -0.178862974, 0.2506093979, 0.577944994, -0.1442596763, 0.0715266392, -0.2689910233, -0.2302190512, 0.1847220957, 0.091796875, -0.2062634528, 0.4836925268, -0.6135779619, -0.0377430767, 0.5469893217, -0.6308556795, -0.2642134428, -0.0194764547, -0.0160561725, -0.0283729676, 0.1441947371, 0.0491675138, 0.0685672909, -0.0787953362, -0.1048155054, 0.2463386506, -0.0207472518, 0.0393031836, 0.0116021531, -0.2071621716, -0.1544010192, 0.2210116833, 0.0998416021, 0.2198762, 0.2281202078, -0.0328830034, 0.0621345192, -0.2988763452, 0.1780731082, 0.1151883006, 0.3906305134, 0.122934185, -0.1748881489, -0.0308992118, -0.3798303604, 0.2845119536, 0.1084418893, -0.060603369, -0.4644956589, 0.1427325457, -0.1616857797, -0.2617485523, -0.4119166136, -0.248648718, 0.1931681037, 0.2311270237, 0.1035525203, 0.0111391302, -0.160445869, 0.2848946452, -0.1841045022, 0.1677675545, -0.1560898274, 0.4557167292, -0.3871397674, -0.178693831, 0.1203999072, -0.0151083032, 0.0775768384, -0.2544840872, -0.0591978505, 0.2827380002, 0.1352196187, 0.1431298256, 0.3067697883, -0.0705593675, 0.1459952742, -0.3780554831, 0.1258311272, -0.1305871904, 0.3384920955, 0.0766202584, -0.0201673638, 0.1809348464, -0.1569995284, 0.0884212628, 0.0980383083, -0.1084255129, 0.0385793447, -0.0328631811, 0.1818049401, -0.1926600337, 0.0655649379, 0.2532231212, 0.203342557, -0.0350580812, 0.0116641186, -0.2331338227, 0.3495357633, 0.0617368557, 0.1215714514, 0.1810612381, -0.1412085891, 0.1114950925, 0.0055139596, 0.1075898111, 0.6850782037, 0.2946435809, -0.2348816097, 0.0732881054, 0.2798924446, -0.0077905376, 0.294909358, 0.0229825824, 0.3190515637, 0.1136219054, 0.0230564624, -0.0055125728, -0.2330719829, -0.5380803943, -0.1060533077, 0.3599245548, -0.1671121418, 0.0657729432, -0.2293884456, -0.4290292561, 0.2275749445, 0.1485641152, -0.0117522227, -0.1306970865, -0.1375132203, 0.0422426239, 0.172597453, 0.0048949686, -0.3100762069, 0.0854397938, 0.0750043541, -0.4491648078, -0.5388175845, -0.0349383615, -0.0489641242, 0.1354589313, 0.3568565845, -0.0923575461, 0.3888432384, -0.290459305, 0.1701112986, -0.5194395781, -0.1685297787, 0.0841428414, 0.0003069481, 0.1968118846, 0.3385491967, 0.3282368481, 0.2073898911, -0.1462316513, 0.4259984195, 0.0774791986, -0.3267217278, -0.012651775, -0.1966931075, -0.136250481, -0.1642073095, -0.1284639537, -0.3573231399, -0.4335587323, -0.0684305653, 0.2935094237, 0.0824880376, 0.4416909218, 0.2030845731, 0.2307363749, -0.1404057443, 0.0298973341, -0.0397703201, -0.4825535715, 0.2662041187, -0.1471426934, -0.2014240921, 0.113209255, -0.0971582681, 0.2087315172, 0.0496987551, -0.3409634233, -0.6610172987, 0.0980601609, 0.2304312736, -0.0261131376, 0.210547924, 0.2839566767, 0.0462526791, -0.0669790506, -0.0725902766, -0.0761200115, -0.0332979523, -0.0082686255, 0.276232779, 0.0866345465, 0.4856368303, 0.0010837349, 0.7047640681, 0.1602012813, -0.0056631183, 0.5541396737, -0.3467070758, 0.5346220732, -0.3130925894, -0.2578807175, 0.1735930443, 0.341232866, -0.0159563962, -0.0515232161, 0.0401616544, 0.1763602048, -0.1391911954, -0.2596902847, -0.6329511404, 0.0656899288, 0.0058210306, 0.1052417904, 0.2090756744, -0.0772288069, -0.4114921689, -0.0692851171, -0.0987140238, 0.1179210022, 0.6839740872, 0.1814013869, 0.1967116743, -0.0626502335, -0.2422279119, -0.0181402564, 0.3635978997, 0.0316876285, -0.0919875875, -0.0862803459, 0.2153066099, 0.0278756227, -0.1463745534, 0.7403360605, -0.0952512547, -0.0106748138, 0.0185242519, -0.2663870752, -0.1105065271, -0.0114450697, -0.0896123126, 0.0508681461, -0.1238246188, 0.6679436564, -0.1567234397, -0.2827460468, 0.2403853238, 0.0585821308, -0.2929204404, -0.0856067687, -0.3727973402, -0.3943953216, -0.4308893979, -0.1892431378, -0.0542828813, 0.1407850683, 0.3531168401, 0.0344412774, -0.0619447827, -0.236958459, -0.3121978939, 0.0062820753, 0.3898469508, -0.1656893343, -0.0667049587, 0.3370177746, 0.1181209087, 0.5655363202, 0.4972719848, -0.1634871811, -0.0553842485, 0.0475545749, -0.0389252119, 0.1571608186, 0.0787285566, -0.2703436315, -0.4112436771, -0.1604748219, 0.1485663056, -0.1465382278, 0.0078892894, 0.398791641, -0.0783862174, -0.029113384, -0.1448403299, 0.2277540267, 0.0546789356, 0.0983263701, 0.3387635052, 0.324274838, -0.3816369772, 0.0907324627, -0.1406768262, 0.5482309461, -0.0814892873, 0.2979001999, 0.2999085486, -0.0676595196, 0.1985688955, 0.1660830975, 0.078527309, -0.1339368671, -0.1664966643, -0.0640152097, -0.2675676346, 0.3405866325, 0.05038343, -0.1686678976, 0.446161747, -0.0890478268, -0.0910136551, -0.1511065364, 0.1167493761, -0.1589271724, 0.0434231274, -0.1021447927, 0.231270045, 0.0547329895, 0.3664604425, -0.2204427421, 0.04906746, -0.1903862655, -0.2495891154, -0.0281944145, 0.0668025762, -0.4785552919, 0.1425110698, 0.0149706779, -0.1072152555, 0.0196415782, 0.3782071471, -0.0464622751, -0.0426583178, -0.1432624757, 0.212723285, -0.14498052, 0.0518395118, -0.2401227951, 0.0420120023, 0.2063637227, -0.202194646, 0.0588727184, 0.0381664075, -0.1574334651, -0.2396248728, -0.027689945, 0.0164823849, 0.0953190699, -0.0085476004, -0.3456414044, -0.1725110412, -0.1062448993, -0.1288719177, 0.187781617, 0.0461585335, -0.0093135834, -0.0072912946, -0.1532721967, -0.1436652094, 0.0941637158, 0.0547654964, -0.0871422365, 0.1893447042, 0.4673841894, -0.1142719015, -0.0398171581, -0.3154889047, 0.4180919528, 0.0519794151, -0.0761436, 0.1887274683, 0.343999207, 0.2282513827, 0.0126233501, 0.0376789384, 0.1107444912, -0.3068039417, -0.0860225409, -0.4917868078, -0.40570274, 0.2501187325, -0.2159633785, 0.2042062432, -0.164528355, 0.1307810992, 0.2762946188, -0.2896699607, -0.3796899915, 0.2826667428, -0.3409360647, 0.1270922571, 0.3069877923, 0.0417037532, 0.4476427436, 0.0753322989, 0.2623497248, -0.1107500419, -0.2633861005, -0.2496806383, -0.0660935044, 0.0987200737, 0.1212073788, -0.1349312961, 0.118934691, -0.1618294716, -0.1342804283, 0.0923600718, -0.0060424302, -0.0304148011, -0.083675608, 0.0463244021, 0.1099072695, -0.2554641664, -0.0538077615, 0.0549374335, -0.2516523302, 0.339584589, 0.1929964274, 0.0972964987, 0.0029296146, -0.0933809578, -0.0650201067, -0.0676787198, 0.0486938208, 0.1666278839, 0.4039124846, 0.0298836268, 0.0632466599, -0.1121920571, 0.2906704843, 0.0062432983, -0.3475573361, 0.3203180134, 0.0851737931, 0.2337815613, -0.2893436253, 0.015506139, -0.0208906308, -0.1136557683, 0.0428894795, 0.0965165794, -0.3188048303, 0.1486105323, -0.1696513593, -0.054747317, 0.5481865406, -0.1903422773, 0.0021554576, 0.1467751265, -0.0801941678, 0.0933374166, 0.344751209, 0.2645243704, 0.0978688598, 0.691819191, -0.2054213732, 0.3007109761, -0.2856637537, 0.0332424082, 0.1407141685, -0.298127085, -0.0766856596, 0.0215277188, 0.0434872694, -0.0680194274, -0.4112867415, 0.0884074718, -0.0647998676, 0.1055025384, 0.0168321021, 0.248384878, -0.0025915983, 0.0401801281, -0.4531844556, -0.1871874779, -0.0388969257, -0.0258381721, 0.0873415992, -0.2519069612, -0.0297873244, 0.2510320842, -0.1083662212, 0.0434340946, 0.0168702472, 0.3450643122, -0.0300867315, -0.1923763603, 0.4467706084, 0.2444123626, 0.0670634434, 0.1131562367, 0.4939514995, 0.5180078149, 0.1998108029, 0.1143957004, -0.1387733668, -0.0202175844, -0.2906444371, -0.1736521125, 0.2180797756, 0.08240816, 0.1494477242, -0.0313944146, 0.3158107996, -0.2266180366, 0.0146623095, -0.0679810941, -0.1581364125, -0.0753930509, 0.4123803973, -0.2585468292, -0.1927515268, -0.0752794743, 0.1676986516, -0.5033450723, 0.1007693335, 0.357598424, -0.0487320162, 0.1062274724, 0.1619821638, 0.0819284469, -0.0309541598, 0.206202358, 0.354642719, -0.0052454607, -0.2769244015, -0.1777849048, -0.5345106125, -0.0729895383, 0.0316263959, -0.2679693699, -0.2681928575, -0.0328889526, -0.0879588872, -0.0230285991, 0.4180803597, 0.2050655931, 0.229786709, -0.0775726065, -0.3130339682, -0.1979031116, 0.1303407848, 0.067744486, -0.1351905316, -0.5085451007, -0.009007778, -0.2683968842, 0.1903855205, 0.0027911861, 0.0866301879, -0.1306411922, -0.11623656, 0.3766637146, -0.0107927164, 0.2907445729, -0.1698555797, -0.0047180336, -0.0407652557, -0.1496234685, -0.0286608227, -0.0606148653, 0.275436908, 0.2879386544, -0.385191679, -0.2679109871, -0.4055075943, 0.0586343184, -0.0170118976, -0.1047120988, -0.3048965037, 0.2106615603, -0.1339137554, 0.0235620886, 0.1579905897, 0.2269967943, -0.0672343075, -0.2553287446, -0.5728759766, -0.0833029076, 0.4497869313, -0.3061575294, -0.2604263425, 0.1681203246, 0.0156586915, -0.1184175834, 0.1602559239, -0.1297215223, 0.2885088623, 0.4042970836, 0.0695976317, -0.3287302852, 0.3322090805, 0.1816506088, 0.2269635797, 0.1711498797, 0.030704394, -0.1117483005, -0.1877429187, -0.0270826668, 0.0299144648 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Hey @albertvillanova. Does this load entire dataset in memory? Because I am facing huge trouble with loading very big datasets (OOM errors)
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
22
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Hey @albertvillanova. Does this load entire dataset in memory? Because I am facing huge trouble with loading very big datasets (OOM errors)
[ -0.28589499, 0.0791946054, -0.1641439646, 0.5192497373, 0.3978698254, 0.1942408681, 0.3166290522, 0.1429088861, 0.0455847755, 0.1703683138, 0.0783737227, -0.0138087906, -0.2019121945, 0.0991076156, -0.0279719345, -0.0610152707, -0.1374426484, 0.2016349137, -0.1800704598, 0.1053986624, -0.3243975341, 0.222762838, -0.1992963403, 0.0239699688, -0.3725245893, -0.1334148347, -0.2554859221, 0.5537114143, -0.3019846976, -0.2025516033, 0.1425678432, -0.1484532505, 0.2093803585, 0.4515587687, -0.0001075646, 0.2240584493, 0.41011253, -0.2311011106, -0.3290292025, -0.3769567907, -0.228267312, -0.0441726856, 0.0047344142, -0.3819600344, -0.1225531101, -0.0782392919, 0.2704273462, 0.0254106838, 0.3077078462, 0.2765155137, 0.258998841, 0.1214061677, 0.1843479574, -0.0169011727, -0.112183772, 0.4930899441, 0.0372764431, 0.2362049073, 0.0792013109, -0.0652796701, 0.1625441164, 0.2614590228, 0.0358876623, -0.0124442903, 0.2321917564, 0.1105271727, -0.0068237442, -0.2155939192, 0.1265501976, -0.1820919663, 0.3849570453, -0.1616748273, -0.1817634404, -0.01814574, -0.0395430736, -0.4064300656, 0.1617155224, 0.0836903453, -0.1187563911, 0.0931641608, -0.1862466782, -0.2279613614, -0.3234366477, 0.3092052639, 0.0679564923, 0.0877893418, -0.2053929567, 0.0769240707, 0.1150603369, 0.0493063368, 0.097090669, -0.3621659875, 0.044210799, 0.1265061051, 0.2593221366, 0.1461467892, -0.0195173714, 0.1517591923, 0.0959282145, 0.1028214544, -0.2983163297, -0.2555589676, -0.2526744306, 0.0793466792, 0.0006240158, 0.2288815975, -0.0557619706, 0.4583567381, 0.2230266035, 0.3975459039, -0.0246014316, -0.2443839461, -0.3011550605, -0.20050174, 0.0499580242, 0.201144591, 0.3267683685, 0.0799774528, -0.0135420058, -0.4608425796, 0.1270582229, -0.0686441287, 0.202327311, 0.2879629433, 0.2272085696, -0.0218351409, 0.1704128534, 0.237515986, 0.1398354769, 0.0984483287, -0.2554234266, 0.2842488885, -0.2523290813, -0.0051607536, -0.0439187177, -0.254650414, 0.3056448996, -0.2868964076, 0.0526929125, 0.0585396364, 0.1553368568, -0.2169874609, -0.0509816073, 0.2610355616, -0.0916735008, -0.0187397711, 0.2963451743, -0.0454206876, 0.0666983128, 0.0996684656, -0.4484413862, -0.4122204781, -0.2043375969, 0.2212546915, -0.0946172029, 0.0263819788, -0.5048217177, -0.2424767017, -0.0498434752, -0.2207407802, 0.0285938103, 0.005032144, -0.2164944559, -0.178862974, 0.2506093979, 0.577944994, -0.1442596763, 0.0715266392, -0.2689910233, -0.2302190512, 0.1847220957, 0.091796875, -0.2062634528, 0.4836925268, -0.6135779619, -0.0377430767, 0.5469893217, -0.6308556795, -0.2642134428, -0.0194764547, -0.0160561725, -0.0283729676, 0.1441947371, 0.0491675138, 0.0685672909, -0.0787953362, -0.1048155054, 0.2463386506, -0.0207472518, 0.0393031836, 0.0116021531, -0.2071621716, -0.1544010192, 0.2210116833, 0.0998416021, 0.2198762, 0.2281202078, -0.0328830034, 0.0621345192, -0.2988763452, 0.1780731082, 0.1151883006, 0.3906305134, 0.122934185, -0.1748881489, -0.0308992118, -0.3798303604, 0.2845119536, 0.1084418893, -0.060603369, -0.4644956589, 0.1427325457, -0.1616857797, -0.2617485523, -0.4119166136, -0.248648718, 0.1931681037, 0.2311270237, 0.1035525203, 0.0111391302, -0.160445869, 0.2848946452, -0.1841045022, 0.1677675545, -0.1560898274, 0.4557167292, -0.3871397674, -0.178693831, 0.1203999072, -0.0151083032, 0.0775768384, -0.2544840872, -0.0591978505, 0.2827380002, 0.1352196187, 0.1431298256, 0.3067697883, -0.0705593675, 0.1459952742, -0.3780554831, 0.1258311272, -0.1305871904, 0.3384920955, 0.0766202584, -0.0201673638, 0.1809348464, -0.1569995284, 0.0884212628, 0.0980383083, -0.1084255129, 0.0385793447, -0.0328631811, 0.1818049401, -0.1926600337, 0.0655649379, 0.2532231212, 0.203342557, -0.0350580812, 0.0116641186, -0.2331338227, 0.3495357633, 0.0617368557, 0.1215714514, 0.1810612381, -0.1412085891, 0.1114950925, 0.0055139596, 0.1075898111, 0.6850782037, 0.2946435809, -0.2348816097, 0.0732881054, 0.2798924446, -0.0077905376, 0.294909358, 0.0229825824, 0.3190515637, 0.1136219054, 0.0230564624, -0.0055125728, -0.2330719829, -0.5380803943, -0.1060533077, 0.3599245548, -0.1671121418, 0.0657729432, -0.2293884456, -0.4290292561, 0.2275749445, 0.1485641152, -0.0117522227, -0.1306970865, -0.1375132203, 0.0422426239, 0.172597453, 0.0048949686, -0.3100762069, 0.0854397938, 0.0750043541, -0.4491648078, -0.5388175845, -0.0349383615, -0.0489641242, 0.1354589313, 0.3568565845, -0.0923575461, 0.3888432384, -0.290459305, 0.1701112986, -0.5194395781, -0.1685297787, 0.0841428414, 0.0003069481, 0.1968118846, 0.3385491967, 0.3282368481, 0.2073898911, -0.1462316513, 0.4259984195, 0.0774791986, -0.3267217278, -0.012651775, -0.1966931075, -0.136250481, -0.1642073095, -0.1284639537, -0.3573231399, -0.4335587323, -0.0684305653, 0.2935094237, 0.0824880376, 0.4416909218, 0.2030845731, 0.2307363749, -0.1404057443, 0.0298973341, -0.0397703201, -0.4825535715, 0.2662041187, -0.1471426934, -0.2014240921, 0.113209255, -0.0971582681, 0.2087315172, 0.0496987551, -0.3409634233, -0.6610172987, 0.0980601609, 0.2304312736, -0.0261131376, 0.210547924, 0.2839566767, 0.0462526791, -0.0669790506, -0.0725902766, -0.0761200115, -0.0332979523, -0.0082686255, 0.276232779, 0.0866345465, 0.4856368303, 0.0010837349, 0.7047640681, 0.1602012813, -0.0056631183, 0.5541396737, -0.3467070758, 0.5346220732, -0.3130925894, -0.2578807175, 0.1735930443, 0.341232866, -0.0159563962, -0.0515232161, 0.0401616544, 0.1763602048, -0.1391911954, -0.2596902847, -0.6329511404, 0.0656899288, 0.0058210306, 0.1052417904, 0.2090756744, -0.0772288069, -0.4114921689, -0.0692851171, -0.0987140238, 0.1179210022, 0.6839740872, 0.1814013869, 0.1967116743, -0.0626502335, -0.2422279119, -0.0181402564, 0.3635978997, 0.0316876285, -0.0919875875, -0.0862803459, 0.2153066099, 0.0278756227, -0.1463745534, 0.7403360605, -0.0952512547, -0.0106748138, 0.0185242519, -0.2663870752, -0.1105065271, -0.0114450697, -0.0896123126, 0.0508681461, -0.1238246188, 0.6679436564, -0.1567234397, -0.2827460468, 0.2403853238, 0.0585821308, -0.2929204404, -0.0856067687, -0.3727973402, -0.3943953216, -0.4308893979, -0.1892431378, -0.0542828813, 0.1407850683, 0.3531168401, 0.0344412774, -0.0619447827, -0.236958459, -0.3121978939, 0.0062820753, 0.3898469508, -0.1656893343, -0.0667049587, 0.3370177746, 0.1181209087, 0.5655363202, 0.4972719848, -0.1634871811, -0.0553842485, 0.0475545749, -0.0389252119, 0.1571608186, 0.0787285566, -0.2703436315, -0.4112436771, -0.1604748219, 0.1485663056, -0.1465382278, 0.0078892894, 0.398791641, -0.0783862174, -0.029113384, -0.1448403299, 0.2277540267, 0.0546789356, 0.0983263701, 0.3387635052, 0.324274838, -0.3816369772, 0.0907324627, -0.1406768262, 0.5482309461, -0.0814892873, 0.2979001999, 0.2999085486, -0.0676595196, 0.1985688955, 0.1660830975, 0.078527309, -0.1339368671, -0.1664966643, -0.0640152097, -0.2675676346, 0.3405866325, 0.05038343, -0.1686678976, 0.446161747, -0.0890478268, -0.0910136551, -0.1511065364, 0.1167493761, -0.1589271724, 0.0434231274, -0.1021447927, 0.231270045, 0.0547329895, 0.3664604425, -0.2204427421, 0.04906746, -0.1903862655, -0.2495891154, -0.0281944145, 0.0668025762, -0.4785552919, 0.1425110698, 0.0149706779, -0.1072152555, 0.0196415782, 0.3782071471, -0.0464622751, -0.0426583178, -0.1432624757, 0.212723285, -0.14498052, 0.0518395118, -0.2401227951, 0.0420120023, 0.2063637227, -0.202194646, 0.0588727184, 0.0381664075, -0.1574334651, -0.2396248728, -0.027689945, 0.0164823849, 0.0953190699, -0.0085476004, -0.3456414044, -0.1725110412, -0.1062448993, -0.1288719177, 0.187781617, 0.0461585335, -0.0093135834, -0.0072912946, -0.1532721967, -0.1436652094, 0.0941637158, 0.0547654964, -0.0871422365, 0.1893447042, 0.4673841894, -0.1142719015, -0.0398171581, -0.3154889047, 0.4180919528, 0.0519794151, -0.0761436, 0.1887274683, 0.343999207, 0.2282513827, 0.0126233501, 0.0376789384, 0.1107444912, -0.3068039417, -0.0860225409, -0.4917868078, -0.40570274, 0.2501187325, -0.2159633785, 0.2042062432, -0.164528355, 0.1307810992, 0.2762946188, -0.2896699607, -0.3796899915, 0.2826667428, -0.3409360647, 0.1270922571, 0.3069877923, 0.0417037532, 0.4476427436, 0.0753322989, 0.2623497248, -0.1107500419, -0.2633861005, -0.2496806383, -0.0660935044, 0.0987200737, 0.1212073788, -0.1349312961, 0.118934691, -0.1618294716, -0.1342804283, 0.0923600718, -0.0060424302, -0.0304148011, -0.083675608, 0.0463244021, 0.1099072695, -0.2554641664, -0.0538077615, 0.0549374335, -0.2516523302, 0.339584589, 0.1929964274, 0.0972964987, 0.0029296146, -0.0933809578, -0.0650201067, -0.0676787198, 0.0486938208, 0.1666278839, 0.4039124846, 0.0298836268, 0.0632466599, -0.1121920571, 0.2906704843, 0.0062432983, -0.3475573361, 0.3203180134, 0.0851737931, 0.2337815613, -0.2893436253, 0.015506139, -0.0208906308, -0.1136557683, 0.0428894795, 0.0965165794, -0.3188048303, 0.1486105323, -0.1696513593, -0.054747317, 0.5481865406, -0.1903422773, 0.0021554576, 0.1467751265, -0.0801941678, 0.0933374166, 0.344751209, 0.2645243704, 0.0978688598, 0.691819191, -0.2054213732, 0.3007109761, -0.2856637537, 0.0332424082, 0.1407141685, -0.298127085, -0.0766856596, 0.0215277188, 0.0434872694, -0.0680194274, -0.4112867415, 0.0884074718, -0.0647998676, 0.1055025384, 0.0168321021, 0.248384878, -0.0025915983, 0.0401801281, -0.4531844556, -0.1871874779, -0.0388969257, -0.0258381721, 0.0873415992, -0.2519069612, -0.0297873244, 0.2510320842, -0.1083662212, 0.0434340946, 0.0168702472, 0.3450643122, -0.0300867315, -0.1923763603, 0.4467706084, 0.2444123626, 0.0670634434, 0.1131562367, 0.4939514995, 0.5180078149, 0.1998108029, 0.1143957004, -0.1387733668, -0.0202175844, -0.2906444371, -0.1736521125, 0.2180797756, 0.08240816, 0.1494477242, -0.0313944146, 0.3158107996, -0.2266180366, 0.0146623095, -0.0679810941, -0.1581364125, -0.0753930509, 0.4123803973, -0.2585468292, -0.1927515268, -0.0752794743, 0.1676986516, -0.5033450723, 0.1007693335, 0.357598424, -0.0487320162, 0.1062274724, 0.1619821638, 0.0819284469, -0.0309541598, 0.206202358, 0.354642719, -0.0052454607, -0.2769244015, -0.1777849048, -0.5345106125, -0.0729895383, 0.0316263959, -0.2679693699, -0.2681928575, -0.0328889526, -0.0879588872, -0.0230285991, 0.4180803597, 0.2050655931, 0.229786709, -0.0775726065, -0.3130339682, -0.1979031116, 0.1303407848, 0.067744486, -0.1351905316, -0.5085451007, -0.009007778, -0.2683968842, 0.1903855205, 0.0027911861, 0.0866301879, -0.1306411922, -0.11623656, 0.3766637146, -0.0107927164, 0.2907445729, -0.1698555797, -0.0047180336, -0.0407652557, -0.1496234685, -0.0286608227, -0.0606148653, 0.275436908, 0.2879386544, -0.385191679, -0.2679109871, -0.4055075943, 0.0586343184, -0.0170118976, -0.1047120988, -0.3048965037, 0.2106615603, -0.1339137554, 0.0235620886, 0.1579905897, 0.2269967943, -0.0672343075, -0.2553287446, -0.5728759766, -0.0833029076, 0.4497869313, -0.3061575294, -0.2604263425, 0.1681203246, 0.0156586915, -0.1184175834, 0.1602559239, -0.1297215223, 0.2885088623, 0.4042970836, 0.0695976317, -0.3287302852, 0.3322090805, 0.1816506088, 0.2269635797, 0.1711498797, 0.030704394, -0.1117483005, -0.1877429187, -0.0270826668, 0.0299144648 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Can you provide the error stack trace? The loader only stores the `data_files` dict, which can get big after globbing. Then, the OOM error would mean you don't have enough memory to keep all the paths to the image files. You can circumvent this by generating an archive and loading the dataset from there. Maybe we can optimize the globbing part in our data files resolution at some point, cc @lhoestq for visibility.
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
73
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Can you provide the error stack trace? The loader only stores the `data_files` dict, which can get big after globbing. Then, the OOM error would mean you don't have enough memory to keep all the paths to the image files. You can circumvent this by generating an archive and loading the dataset from there. Maybe we can optimize the globbing part in our data files resolution at some point, cc @lhoestq for visibility.
[ -0.28589499, 0.0791946054, -0.1641439646, 0.5192497373, 0.3978698254, 0.1942408681, 0.3166290522, 0.1429088861, 0.0455847755, 0.1703683138, 0.0783737227, -0.0138087906, -0.2019121945, 0.0991076156, -0.0279719345, -0.0610152707, -0.1374426484, 0.2016349137, -0.1800704598, 0.1053986624, -0.3243975341, 0.222762838, -0.1992963403, 0.0239699688, -0.3725245893, -0.1334148347, -0.2554859221, 0.5537114143, -0.3019846976, -0.2025516033, 0.1425678432, -0.1484532505, 0.2093803585, 0.4515587687, -0.0001075646, 0.2240584493, 0.41011253, -0.2311011106, -0.3290292025, -0.3769567907, -0.228267312, -0.0441726856, 0.0047344142, -0.3819600344, -0.1225531101, -0.0782392919, 0.2704273462, 0.0254106838, 0.3077078462, 0.2765155137, 0.258998841, 0.1214061677, 0.1843479574, -0.0169011727, -0.112183772, 0.4930899441, 0.0372764431, 0.2362049073, 0.0792013109, -0.0652796701, 0.1625441164, 0.2614590228, 0.0358876623, -0.0124442903, 0.2321917564, 0.1105271727, -0.0068237442, -0.2155939192, 0.1265501976, -0.1820919663, 0.3849570453, -0.1616748273, -0.1817634404, -0.01814574, -0.0395430736, -0.4064300656, 0.1617155224, 0.0836903453, -0.1187563911, 0.0931641608, -0.1862466782, -0.2279613614, -0.3234366477, 0.3092052639, 0.0679564923, 0.0877893418, -0.2053929567, 0.0769240707, 0.1150603369, 0.0493063368, 0.097090669, -0.3621659875, 0.044210799, 0.1265061051, 0.2593221366, 0.1461467892, -0.0195173714, 0.1517591923, 0.0959282145, 0.1028214544, -0.2983163297, -0.2555589676, -0.2526744306, 0.0793466792, 0.0006240158, 0.2288815975, -0.0557619706, 0.4583567381, 0.2230266035, 0.3975459039, -0.0246014316, -0.2443839461, -0.3011550605, -0.20050174, 0.0499580242, 0.201144591, 0.3267683685, 0.0799774528, -0.0135420058, -0.4608425796, 0.1270582229, -0.0686441287, 0.202327311, 0.2879629433, 0.2272085696, -0.0218351409, 0.1704128534, 0.237515986, 0.1398354769, 0.0984483287, -0.2554234266, 0.2842488885, -0.2523290813, -0.0051607536, -0.0439187177, -0.254650414, 0.3056448996, -0.2868964076, 0.0526929125, 0.0585396364, 0.1553368568, -0.2169874609, -0.0509816073, 0.2610355616, -0.0916735008, -0.0187397711, 0.2963451743, -0.0454206876, 0.0666983128, 0.0996684656, -0.4484413862, -0.4122204781, -0.2043375969, 0.2212546915, -0.0946172029, 0.0263819788, -0.5048217177, -0.2424767017, -0.0498434752, -0.2207407802, 0.0285938103, 0.005032144, -0.2164944559, -0.178862974, 0.2506093979, 0.577944994, -0.1442596763, 0.0715266392, -0.2689910233, -0.2302190512, 0.1847220957, 0.091796875, -0.2062634528, 0.4836925268, -0.6135779619, -0.0377430767, 0.5469893217, -0.6308556795, -0.2642134428, -0.0194764547, -0.0160561725, -0.0283729676, 0.1441947371, 0.0491675138, 0.0685672909, -0.0787953362, -0.1048155054, 0.2463386506, -0.0207472518, 0.0393031836, 0.0116021531, -0.2071621716, -0.1544010192, 0.2210116833, 0.0998416021, 0.2198762, 0.2281202078, -0.0328830034, 0.0621345192, -0.2988763452, 0.1780731082, 0.1151883006, 0.3906305134, 0.122934185, -0.1748881489, -0.0308992118, -0.3798303604, 0.2845119536, 0.1084418893, -0.060603369, -0.4644956589, 0.1427325457, -0.1616857797, -0.2617485523, -0.4119166136, -0.248648718, 0.1931681037, 0.2311270237, 0.1035525203, 0.0111391302, -0.160445869, 0.2848946452, -0.1841045022, 0.1677675545, -0.1560898274, 0.4557167292, -0.3871397674, -0.178693831, 0.1203999072, -0.0151083032, 0.0775768384, -0.2544840872, -0.0591978505, 0.2827380002, 0.1352196187, 0.1431298256, 0.3067697883, -0.0705593675, 0.1459952742, -0.3780554831, 0.1258311272, -0.1305871904, 0.3384920955, 0.0766202584, -0.0201673638, 0.1809348464, -0.1569995284, 0.0884212628, 0.0980383083, -0.1084255129, 0.0385793447, -0.0328631811, 0.1818049401, -0.1926600337, 0.0655649379, 0.2532231212, 0.203342557, -0.0350580812, 0.0116641186, -0.2331338227, 0.3495357633, 0.0617368557, 0.1215714514, 0.1810612381, -0.1412085891, 0.1114950925, 0.0055139596, 0.1075898111, 0.6850782037, 0.2946435809, -0.2348816097, 0.0732881054, 0.2798924446, -0.0077905376, 0.294909358, 0.0229825824, 0.3190515637, 0.1136219054, 0.0230564624, -0.0055125728, -0.2330719829, -0.5380803943, -0.1060533077, 0.3599245548, -0.1671121418, 0.0657729432, -0.2293884456, -0.4290292561, 0.2275749445, 0.1485641152, -0.0117522227, -0.1306970865, -0.1375132203, 0.0422426239, 0.172597453, 0.0048949686, -0.3100762069, 0.0854397938, 0.0750043541, -0.4491648078, -0.5388175845, -0.0349383615, -0.0489641242, 0.1354589313, 0.3568565845, -0.0923575461, 0.3888432384, -0.290459305, 0.1701112986, -0.5194395781, -0.1685297787, 0.0841428414, 0.0003069481, 0.1968118846, 0.3385491967, 0.3282368481, 0.2073898911, -0.1462316513, 0.4259984195, 0.0774791986, -0.3267217278, -0.012651775, -0.1966931075, -0.136250481, -0.1642073095, -0.1284639537, -0.3573231399, -0.4335587323, -0.0684305653, 0.2935094237, 0.0824880376, 0.4416909218, 0.2030845731, 0.2307363749, -0.1404057443, 0.0298973341, -0.0397703201, -0.4825535715, 0.2662041187, -0.1471426934, -0.2014240921, 0.113209255, -0.0971582681, 0.2087315172, 0.0496987551, -0.3409634233, -0.6610172987, 0.0980601609, 0.2304312736, -0.0261131376, 0.210547924, 0.2839566767, 0.0462526791, -0.0669790506, -0.0725902766, -0.0761200115, -0.0332979523, -0.0082686255, 0.276232779, 0.0866345465, 0.4856368303, 0.0010837349, 0.7047640681, 0.1602012813, -0.0056631183, 0.5541396737, -0.3467070758, 0.5346220732, -0.3130925894, -0.2578807175, 0.1735930443, 0.341232866, -0.0159563962, -0.0515232161, 0.0401616544, 0.1763602048, -0.1391911954, -0.2596902847, -0.6329511404, 0.0656899288, 0.0058210306, 0.1052417904, 0.2090756744, -0.0772288069, -0.4114921689, -0.0692851171, -0.0987140238, 0.1179210022, 0.6839740872, 0.1814013869, 0.1967116743, -0.0626502335, -0.2422279119, -0.0181402564, 0.3635978997, 0.0316876285, -0.0919875875, -0.0862803459, 0.2153066099, 0.0278756227, -0.1463745534, 0.7403360605, -0.0952512547, -0.0106748138, 0.0185242519, -0.2663870752, -0.1105065271, -0.0114450697, -0.0896123126, 0.0508681461, -0.1238246188, 0.6679436564, -0.1567234397, -0.2827460468, 0.2403853238, 0.0585821308, -0.2929204404, -0.0856067687, -0.3727973402, -0.3943953216, -0.4308893979, -0.1892431378, -0.0542828813, 0.1407850683, 0.3531168401, 0.0344412774, -0.0619447827, -0.236958459, -0.3121978939, 0.0062820753, 0.3898469508, -0.1656893343, -0.0667049587, 0.3370177746, 0.1181209087, 0.5655363202, 0.4972719848, -0.1634871811, -0.0553842485, 0.0475545749, -0.0389252119, 0.1571608186, 0.0787285566, -0.2703436315, -0.4112436771, -0.1604748219, 0.1485663056, -0.1465382278, 0.0078892894, 0.398791641, -0.0783862174, -0.029113384, -0.1448403299, 0.2277540267, 0.0546789356, 0.0983263701, 0.3387635052, 0.324274838, -0.3816369772, 0.0907324627, -0.1406768262, 0.5482309461, -0.0814892873, 0.2979001999, 0.2999085486, -0.0676595196, 0.1985688955, 0.1660830975, 0.078527309, -0.1339368671, -0.1664966643, -0.0640152097, -0.2675676346, 0.3405866325, 0.05038343, -0.1686678976, 0.446161747, -0.0890478268, -0.0910136551, -0.1511065364, 0.1167493761, -0.1589271724, 0.0434231274, -0.1021447927, 0.231270045, 0.0547329895, 0.3664604425, -0.2204427421, 0.04906746, -0.1903862655, -0.2495891154, -0.0281944145, 0.0668025762, -0.4785552919, 0.1425110698, 0.0149706779, -0.1072152555, 0.0196415782, 0.3782071471, -0.0464622751, -0.0426583178, -0.1432624757, 0.212723285, -0.14498052, 0.0518395118, -0.2401227951, 0.0420120023, 0.2063637227, -0.202194646, 0.0588727184, 0.0381664075, -0.1574334651, -0.2396248728, -0.027689945, 0.0164823849, 0.0953190699, -0.0085476004, -0.3456414044, -0.1725110412, -0.1062448993, -0.1288719177, 0.187781617, 0.0461585335, -0.0093135834, -0.0072912946, -0.1532721967, -0.1436652094, 0.0941637158, 0.0547654964, -0.0871422365, 0.1893447042, 0.4673841894, -0.1142719015, -0.0398171581, -0.3154889047, 0.4180919528, 0.0519794151, -0.0761436, 0.1887274683, 0.343999207, 0.2282513827, 0.0126233501, 0.0376789384, 0.1107444912, -0.3068039417, -0.0860225409, -0.4917868078, -0.40570274, 0.2501187325, -0.2159633785, 0.2042062432, -0.164528355, 0.1307810992, 0.2762946188, -0.2896699607, -0.3796899915, 0.2826667428, -0.3409360647, 0.1270922571, 0.3069877923, 0.0417037532, 0.4476427436, 0.0753322989, 0.2623497248, -0.1107500419, -0.2633861005, -0.2496806383, -0.0660935044, 0.0987200737, 0.1212073788, -0.1349312961, 0.118934691, -0.1618294716, -0.1342804283, 0.0923600718, -0.0060424302, -0.0304148011, -0.083675608, 0.0463244021, 0.1099072695, -0.2554641664, -0.0538077615, 0.0549374335, -0.2516523302, 0.339584589, 0.1929964274, 0.0972964987, 0.0029296146, -0.0933809578, -0.0650201067, -0.0676787198, 0.0486938208, 0.1666278839, 0.4039124846, 0.0298836268, 0.0632466599, -0.1121920571, 0.2906704843, 0.0062432983, -0.3475573361, 0.3203180134, 0.0851737931, 0.2337815613, -0.2893436253, 0.015506139, -0.0208906308, -0.1136557683, 0.0428894795, 0.0965165794, -0.3188048303, 0.1486105323, -0.1696513593, -0.054747317, 0.5481865406, -0.1903422773, 0.0021554576, 0.1467751265, -0.0801941678, 0.0933374166, 0.344751209, 0.2645243704, 0.0978688598, 0.691819191, -0.2054213732, 0.3007109761, -0.2856637537, 0.0332424082, 0.1407141685, -0.298127085, -0.0766856596, 0.0215277188, 0.0434872694, -0.0680194274, -0.4112867415, 0.0884074718, -0.0647998676, 0.1055025384, 0.0168321021, 0.248384878, -0.0025915983, 0.0401801281, -0.4531844556, -0.1871874779, -0.0388969257, -0.0258381721, 0.0873415992, -0.2519069612, -0.0297873244, 0.2510320842, -0.1083662212, 0.0434340946, 0.0168702472, 0.3450643122, -0.0300867315, -0.1923763603, 0.4467706084, 0.2444123626, 0.0670634434, 0.1131562367, 0.4939514995, 0.5180078149, 0.1998108029, 0.1143957004, -0.1387733668, -0.0202175844, -0.2906444371, -0.1736521125, 0.2180797756, 0.08240816, 0.1494477242, -0.0313944146, 0.3158107996, -0.2266180366, 0.0146623095, -0.0679810941, -0.1581364125, -0.0753930509, 0.4123803973, -0.2585468292, -0.1927515268, -0.0752794743, 0.1676986516, -0.5033450723, 0.1007693335, 0.357598424, -0.0487320162, 0.1062274724, 0.1619821638, 0.0819284469, -0.0309541598, 0.206202358, 0.354642719, -0.0052454607, -0.2769244015, -0.1777849048, -0.5345106125, -0.0729895383, 0.0316263959, -0.2679693699, -0.2681928575, -0.0328889526, -0.0879588872, -0.0230285991, 0.4180803597, 0.2050655931, 0.229786709, -0.0775726065, -0.3130339682, -0.1979031116, 0.1303407848, 0.067744486, -0.1351905316, -0.5085451007, -0.009007778, -0.2683968842, 0.1903855205, 0.0027911861, 0.0866301879, -0.1306411922, -0.11623656, 0.3766637146, -0.0107927164, 0.2907445729, -0.1698555797, -0.0047180336, -0.0407652557, -0.1496234685, -0.0286608227, -0.0606148653, 0.275436908, 0.2879386544, -0.385191679, -0.2679109871, -0.4055075943, 0.0586343184, -0.0170118976, -0.1047120988, -0.3048965037, 0.2106615603, -0.1339137554, 0.0235620886, 0.1579905897, 0.2269967943, -0.0672343075, -0.2553287446, -0.5728759766, -0.0833029076, 0.4497869313, -0.3061575294, -0.2604263425, 0.1681203246, 0.0156586915, -0.1184175834, 0.1602559239, -0.1297215223, 0.2885088623, 0.4042970836, 0.0695976317, -0.3287302852, 0.3322090805, 0.1816506088, 0.2269635797, 0.1711498797, 0.030704394, -0.1117483005, -0.1877429187, -0.0270826668, 0.0299144648 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Hey, memory error is resolved. It was fluke. But there is another issue. Currently `load_dataset("imagefolder", data_dir="./path/to/train",)` takes only `train` as arg to `split` parameter. I am creating vaildation dataset using ``` ds_valid = datasets.DatasetDict(valid=load_dataset("imagefolder", data_dir="./path/to/valid",)['train']) ```
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
36
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Hey, memory error is resolved. It was fluke. But there is another issue. Currently `load_dataset("imagefolder", data_dir="./path/to/train",)` takes only `train` as arg to `split` parameter. I am creating vaildation dataset using ``` ds_valid = datasets.DatasetDict(valid=load_dataset("imagefolder", data_dir="./path/to/valid",)['train']) ```
[ -0.28589499, 0.0791946054, -0.1641439646, 0.5192497373, 0.3978698254, 0.1942408681, 0.3166290522, 0.1429088861, 0.0455847755, 0.1703683138, 0.0783737227, -0.0138087906, -0.2019121945, 0.0991076156, -0.0279719345, -0.0610152707, -0.1374426484, 0.2016349137, -0.1800704598, 0.1053986624, -0.3243975341, 0.222762838, -0.1992963403, 0.0239699688, -0.3725245893, -0.1334148347, -0.2554859221, 0.5537114143, -0.3019846976, -0.2025516033, 0.1425678432, -0.1484532505, 0.2093803585, 0.4515587687, -0.0001075646, 0.2240584493, 0.41011253, -0.2311011106, -0.3290292025, -0.3769567907, -0.228267312, -0.0441726856, 0.0047344142, -0.3819600344, -0.1225531101, -0.0782392919, 0.2704273462, 0.0254106838, 0.3077078462, 0.2765155137, 0.258998841, 0.1214061677, 0.1843479574, -0.0169011727, -0.112183772, 0.4930899441, 0.0372764431, 0.2362049073, 0.0792013109, -0.0652796701, 0.1625441164, 0.2614590228, 0.0358876623, -0.0124442903, 0.2321917564, 0.1105271727, -0.0068237442, -0.2155939192, 0.1265501976, -0.1820919663, 0.3849570453, -0.1616748273, -0.1817634404, -0.01814574, -0.0395430736, -0.4064300656, 0.1617155224, 0.0836903453, -0.1187563911, 0.0931641608, -0.1862466782, -0.2279613614, -0.3234366477, 0.3092052639, 0.0679564923, 0.0877893418, -0.2053929567, 0.0769240707, 0.1150603369, 0.0493063368, 0.097090669, -0.3621659875, 0.044210799, 0.1265061051, 0.2593221366, 0.1461467892, -0.0195173714, 0.1517591923, 0.0959282145, 0.1028214544, -0.2983163297, -0.2555589676, -0.2526744306, 0.0793466792, 0.0006240158, 0.2288815975, -0.0557619706, 0.4583567381, 0.2230266035, 0.3975459039, -0.0246014316, -0.2443839461, -0.3011550605, -0.20050174, 0.0499580242, 0.201144591, 0.3267683685, 0.0799774528, -0.0135420058, -0.4608425796, 0.1270582229, -0.0686441287, 0.202327311, 0.2879629433, 0.2272085696, -0.0218351409, 0.1704128534, 0.237515986, 0.1398354769, 0.0984483287, -0.2554234266, 0.2842488885, -0.2523290813, -0.0051607536, -0.0439187177, -0.254650414, 0.3056448996, -0.2868964076, 0.0526929125, 0.0585396364, 0.1553368568, -0.2169874609, -0.0509816073, 0.2610355616, -0.0916735008, -0.0187397711, 0.2963451743, -0.0454206876, 0.0666983128, 0.0996684656, -0.4484413862, -0.4122204781, -0.2043375969, 0.2212546915, -0.0946172029, 0.0263819788, -0.5048217177, -0.2424767017, -0.0498434752, -0.2207407802, 0.0285938103, 0.005032144, -0.2164944559, -0.178862974, 0.2506093979, 0.577944994, -0.1442596763, 0.0715266392, -0.2689910233, -0.2302190512, 0.1847220957, 0.091796875, -0.2062634528, 0.4836925268, -0.6135779619, -0.0377430767, 0.5469893217, -0.6308556795, -0.2642134428, -0.0194764547, -0.0160561725, -0.0283729676, 0.1441947371, 0.0491675138, 0.0685672909, -0.0787953362, -0.1048155054, 0.2463386506, -0.0207472518, 0.0393031836, 0.0116021531, -0.2071621716, -0.1544010192, 0.2210116833, 0.0998416021, 0.2198762, 0.2281202078, -0.0328830034, 0.0621345192, -0.2988763452, 0.1780731082, 0.1151883006, 0.3906305134, 0.122934185, -0.1748881489, -0.0308992118, -0.3798303604, 0.2845119536, 0.1084418893, -0.060603369, -0.4644956589, 0.1427325457, -0.1616857797, -0.2617485523, -0.4119166136, -0.248648718, 0.1931681037, 0.2311270237, 0.1035525203, 0.0111391302, -0.160445869, 0.2848946452, -0.1841045022, 0.1677675545, -0.1560898274, 0.4557167292, -0.3871397674, -0.178693831, 0.1203999072, -0.0151083032, 0.0775768384, -0.2544840872, -0.0591978505, 0.2827380002, 0.1352196187, 0.1431298256, 0.3067697883, -0.0705593675, 0.1459952742, -0.3780554831, 0.1258311272, -0.1305871904, 0.3384920955, 0.0766202584, -0.0201673638, 0.1809348464, -0.1569995284, 0.0884212628, 0.0980383083, -0.1084255129, 0.0385793447, -0.0328631811, 0.1818049401, -0.1926600337, 0.0655649379, 0.2532231212, 0.203342557, -0.0350580812, 0.0116641186, -0.2331338227, 0.3495357633, 0.0617368557, 0.1215714514, 0.1810612381, -0.1412085891, 0.1114950925, 0.0055139596, 0.1075898111, 0.6850782037, 0.2946435809, -0.2348816097, 0.0732881054, 0.2798924446, -0.0077905376, 0.294909358, 0.0229825824, 0.3190515637, 0.1136219054, 0.0230564624, -0.0055125728, -0.2330719829, -0.5380803943, -0.1060533077, 0.3599245548, -0.1671121418, 0.0657729432, -0.2293884456, -0.4290292561, 0.2275749445, 0.1485641152, -0.0117522227, -0.1306970865, -0.1375132203, 0.0422426239, 0.172597453, 0.0048949686, -0.3100762069, 0.0854397938, 0.0750043541, -0.4491648078, -0.5388175845, -0.0349383615, -0.0489641242, 0.1354589313, 0.3568565845, -0.0923575461, 0.3888432384, -0.290459305, 0.1701112986, -0.5194395781, -0.1685297787, 0.0841428414, 0.0003069481, 0.1968118846, 0.3385491967, 0.3282368481, 0.2073898911, -0.1462316513, 0.4259984195, 0.0774791986, -0.3267217278, -0.012651775, -0.1966931075, -0.136250481, -0.1642073095, -0.1284639537, -0.3573231399, -0.4335587323, -0.0684305653, 0.2935094237, 0.0824880376, 0.4416909218, 0.2030845731, 0.2307363749, -0.1404057443, 0.0298973341, -0.0397703201, -0.4825535715, 0.2662041187, -0.1471426934, -0.2014240921, 0.113209255, -0.0971582681, 0.2087315172, 0.0496987551, -0.3409634233, -0.6610172987, 0.0980601609, 0.2304312736, -0.0261131376, 0.210547924, 0.2839566767, 0.0462526791, -0.0669790506, -0.0725902766, -0.0761200115, -0.0332979523, -0.0082686255, 0.276232779, 0.0866345465, 0.4856368303, 0.0010837349, 0.7047640681, 0.1602012813, -0.0056631183, 0.5541396737, -0.3467070758, 0.5346220732, -0.3130925894, -0.2578807175, 0.1735930443, 0.341232866, -0.0159563962, -0.0515232161, 0.0401616544, 0.1763602048, -0.1391911954, -0.2596902847, -0.6329511404, 0.0656899288, 0.0058210306, 0.1052417904, 0.2090756744, -0.0772288069, -0.4114921689, -0.0692851171, -0.0987140238, 0.1179210022, 0.6839740872, 0.1814013869, 0.1967116743, -0.0626502335, -0.2422279119, -0.0181402564, 0.3635978997, 0.0316876285, -0.0919875875, -0.0862803459, 0.2153066099, 0.0278756227, -0.1463745534, 0.7403360605, -0.0952512547, -0.0106748138, 0.0185242519, -0.2663870752, -0.1105065271, -0.0114450697, -0.0896123126, 0.0508681461, -0.1238246188, 0.6679436564, -0.1567234397, -0.2827460468, 0.2403853238, 0.0585821308, -0.2929204404, -0.0856067687, -0.3727973402, -0.3943953216, -0.4308893979, -0.1892431378, -0.0542828813, 0.1407850683, 0.3531168401, 0.0344412774, -0.0619447827, -0.236958459, -0.3121978939, 0.0062820753, 0.3898469508, -0.1656893343, -0.0667049587, 0.3370177746, 0.1181209087, 0.5655363202, 0.4972719848, -0.1634871811, -0.0553842485, 0.0475545749, -0.0389252119, 0.1571608186, 0.0787285566, -0.2703436315, -0.4112436771, -0.1604748219, 0.1485663056, -0.1465382278, 0.0078892894, 0.398791641, -0.0783862174, -0.029113384, -0.1448403299, 0.2277540267, 0.0546789356, 0.0983263701, 0.3387635052, 0.324274838, -0.3816369772, 0.0907324627, -0.1406768262, 0.5482309461, -0.0814892873, 0.2979001999, 0.2999085486, -0.0676595196, 0.1985688955, 0.1660830975, 0.078527309, -0.1339368671, -0.1664966643, -0.0640152097, -0.2675676346, 0.3405866325, 0.05038343, -0.1686678976, 0.446161747, -0.0890478268, -0.0910136551, -0.1511065364, 0.1167493761, -0.1589271724, 0.0434231274, -0.1021447927, 0.231270045, 0.0547329895, 0.3664604425, -0.2204427421, 0.04906746, -0.1903862655, -0.2495891154, -0.0281944145, 0.0668025762, -0.4785552919, 0.1425110698, 0.0149706779, -0.1072152555, 0.0196415782, 0.3782071471, -0.0464622751, -0.0426583178, -0.1432624757, 0.212723285, -0.14498052, 0.0518395118, -0.2401227951, 0.0420120023, 0.2063637227, -0.202194646, 0.0588727184, 0.0381664075, -0.1574334651, -0.2396248728, -0.027689945, 0.0164823849, 0.0953190699, -0.0085476004, -0.3456414044, -0.1725110412, -0.1062448993, -0.1288719177, 0.187781617, 0.0461585335, -0.0093135834, -0.0072912946, -0.1532721967, -0.1436652094, 0.0941637158, 0.0547654964, -0.0871422365, 0.1893447042, 0.4673841894, -0.1142719015, -0.0398171581, -0.3154889047, 0.4180919528, 0.0519794151, -0.0761436, 0.1887274683, 0.343999207, 0.2282513827, 0.0126233501, 0.0376789384, 0.1107444912, -0.3068039417, -0.0860225409, -0.4917868078, -0.40570274, 0.2501187325, -0.2159633785, 0.2042062432, -0.164528355, 0.1307810992, 0.2762946188, -0.2896699607, -0.3796899915, 0.2826667428, -0.3409360647, 0.1270922571, 0.3069877923, 0.0417037532, 0.4476427436, 0.0753322989, 0.2623497248, -0.1107500419, -0.2633861005, -0.2496806383, -0.0660935044, 0.0987200737, 0.1212073788, -0.1349312961, 0.118934691, -0.1618294716, -0.1342804283, 0.0923600718, -0.0060424302, -0.0304148011, -0.083675608, 0.0463244021, 0.1099072695, -0.2554641664, -0.0538077615, 0.0549374335, -0.2516523302, 0.339584589, 0.1929964274, 0.0972964987, 0.0029296146, -0.0933809578, -0.0650201067, -0.0676787198, 0.0486938208, 0.1666278839, 0.4039124846, 0.0298836268, 0.0632466599, -0.1121920571, 0.2906704843, 0.0062432983, -0.3475573361, 0.3203180134, 0.0851737931, 0.2337815613, -0.2893436253, 0.015506139, -0.0208906308, -0.1136557683, 0.0428894795, 0.0965165794, -0.3188048303, 0.1486105323, -0.1696513593, -0.054747317, 0.5481865406, -0.1903422773, 0.0021554576, 0.1467751265, -0.0801941678, 0.0933374166, 0.344751209, 0.2645243704, 0.0978688598, 0.691819191, -0.2054213732, 0.3007109761, -0.2856637537, 0.0332424082, 0.1407141685, -0.298127085, -0.0766856596, 0.0215277188, 0.0434872694, -0.0680194274, -0.4112867415, 0.0884074718, -0.0647998676, 0.1055025384, 0.0168321021, 0.248384878, -0.0025915983, 0.0401801281, -0.4531844556, -0.1871874779, -0.0388969257, -0.0258381721, 0.0873415992, -0.2519069612, -0.0297873244, 0.2510320842, -0.1083662212, 0.0434340946, 0.0168702472, 0.3450643122, -0.0300867315, -0.1923763603, 0.4467706084, 0.2444123626, 0.0670634434, 0.1131562367, 0.4939514995, 0.5180078149, 0.1998108029, 0.1143957004, -0.1387733668, -0.0202175844, -0.2906444371, -0.1736521125, 0.2180797756, 0.08240816, 0.1494477242, -0.0313944146, 0.3158107996, -0.2266180366, 0.0146623095, -0.0679810941, -0.1581364125, -0.0753930509, 0.4123803973, -0.2585468292, -0.1927515268, -0.0752794743, 0.1676986516, -0.5033450723, 0.1007693335, 0.357598424, -0.0487320162, 0.1062274724, 0.1619821638, 0.0819284469, -0.0309541598, 0.206202358, 0.354642719, -0.0052454607, -0.2769244015, -0.1777849048, -0.5345106125, -0.0729895383, 0.0316263959, -0.2679693699, -0.2681928575, -0.0328889526, -0.0879588872, -0.0230285991, 0.4180803597, 0.2050655931, 0.229786709, -0.0775726065, -0.3130339682, -0.1979031116, 0.1303407848, 0.067744486, -0.1351905316, -0.5085451007, -0.009007778, -0.2683968842, 0.1903855205, 0.0027911861, 0.0866301879, -0.1306411922, -0.11623656, 0.3766637146, -0.0107927164, 0.2907445729, -0.1698555797, -0.0047180336, -0.0407652557, -0.1496234685, -0.0286608227, -0.0606148653, 0.275436908, 0.2879386544, -0.385191679, -0.2679109871, -0.4055075943, 0.0586343184, -0.0170118976, -0.1047120988, -0.3048965037, 0.2106615603, -0.1339137554, 0.0235620886, 0.1579905897, 0.2269967943, -0.0672343075, -0.2553287446, -0.5728759766, -0.0833029076, 0.4497869313, -0.3061575294, -0.2604263425, 0.1681203246, 0.0156586915, -0.1184175834, 0.1602559239, -0.1297215223, 0.2885088623, 0.4042970836, 0.0695976317, -0.3287302852, 0.3322090805, 0.1816506088, 0.2269635797, 0.1711498797, 0.030704394, -0.1117483005, -0.1877429187, -0.0270826668, 0.0299144648 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
`data_dir="path/to/folder"` is a shorthand syntax fox `data_files={"train": "path/to/folder/**"}`, so use `data_files` in that case instead: ```python ds = load_dataset("imagefolder", data_files={"train": "path/to/train/**", "test": "path/to/test/**", "valid": "path/to/valid/**"}) ```
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
26
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` `data_dir="path/to/folder"` is a shorthand syntax fox `data_files={"train": "path/to/folder/**"}`, so use `data_files` in that case instead: ```python ds = load_dataset("imagefolder", data_files={"train": "path/to/train/**", "test": "path/to/test/**", "valid": "path/to/valid/**"}) ```
[ -0.28589499, 0.0791946054, -0.1641439646, 0.5192497373, 0.3978698254, 0.1942408681, 0.3166290522, 0.1429088861, 0.0455847755, 0.1703683138, 0.0783737227, -0.0138087906, -0.2019121945, 0.0991076156, -0.0279719345, -0.0610152707, -0.1374426484, 0.2016349137, -0.1800704598, 0.1053986624, -0.3243975341, 0.222762838, -0.1992963403, 0.0239699688, -0.3725245893, -0.1334148347, -0.2554859221, 0.5537114143, -0.3019846976, -0.2025516033, 0.1425678432, -0.1484532505, 0.2093803585, 0.4515587687, -0.0001075646, 0.2240584493, 0.41011253, -0.2311011106, -0.3290292025, -0.3769567907, -0.228267312, -0.0441726856, 0.0047344142, -0.3819600344, -0.1225531101, -0.0782392919, 0.2704273462, 0.0254106838, 0.3077078462, 0.2765155137, 0.258998841, 0.1214061677, 0.1843479574, -0.0169011727, -0.112183772, 0.4930899441, 0.0372764431, 0.2362049073, 0.0792013109, -0.0652796701, 0.1625441164, 0.2614590228, 0.0358876623, -0.0124442903, 0.2321917564, 0.1105271727, -0.0068237442, -0.2155939192, 0.1265501976, -0.1820919663, 0.3849570453, -0.1616748273, -0.1817634404, -0.01814574, -0.0395430736, -0.4064300656, 0.1617155224, 0.0836903453, -0.1187563911, 0.0931641608, -0.1862466782, -0.2279613614, -0.3234366477, 0.3092052639, 0.0679564923, 0.0877893418, -0.2053929567, 0.0769240707, 0.1150603369, 0.0493063368, 0.097090669, -0.3621659875, 0.044210799, 0.1265061051, 0.2593221366, 0.1461467892, -0.0195173714, 0.1517591923, 0.0959282145, 0.1028214544, -0.2983163297, -0.2555589676, -0.2526744306, 0.0793466792, 0.0006240158, 0.2288815975, -0.0557619706, 0.4583567381, 0.2230266035, 0.3975459039, -0.0246014316, -0.2443839461, -0.3011550605, -0.20050174, 0.0499580242, 0.201144591, 0.3267683685, 0.0799774528, -0.0135420058, -0.4608425796, 0.1270582229, -0.0686441287, 0.202327311, 0.2879629433, 0.2272085696, -0.0218351409, 0.1704128534, 0.237515986, 0.1398354769, 0.0984483287, -0.2554234266, 0.2842488885, -0.2523290813, -0.0051607536, -0.0439187177, -0.254650414, 0.3056448996, -0.2868964076, 0.0526929125, 0.0585396364, 0.1553368568, -0.2169874609, -0.0509816073, 0.2610355616, -0.0916735008, -0.0187397711, 0.2963451743, -0.0454206876, 0.0666983128, 0.0996684656, -0.4484413862, -0.4122204781, -0.2043375969, 0.2212546915, -0.0946172029, 0.0263819788, -0.5048217177, -0.2424767017, -0.0498434752, -0.2207407802, 0.0285938103, 0.005032144, -0.2164944559, -0.178862974, 0.2506093979, 0.577944994, -0.1442596763, 0.0715266392, -0.2689910233, -0.2302190512, 0.1847220957, 0.091796875, -0.2062634528, 0.4836925268, -0.6135779619, -0.0377430767, 0.5469893217, -0.6308556795, -0.2642134428, -0.0194764547, -0.0160561725, -0.0283729676, 0.1441947371, 0.0491675138, 0.0685672909, -0.0787953362, -0.1048155054, 0.2463386506, -0.0207472518, 0.0393031836, 0.0116021531, -0.2071621716, -0.1544010192, 0.2210116833, 0.0998416021, 0.2198762, 0.2281202078, -0.0328830034, 0.0621345192, -0.2988763452, 0.1780731082, 0.1151883006, 0.3906305134, 0.122934185, -0.1748881489, -0.0308992118, -0.3798303604, 0.2845119536, 0.1084418893, -0.060603369, -0.4644956589, 0.1427325457, -0.1616857797, -0.2617485523, -0.4119166136, -0.248648718, 0.1931681037, 0.2311270237, 0.1035525203, 0.0111391302, -0.160445869, 0.2848946452, -0.1841045022, 0.1677675545, -0.1560898274, 0.4557167292, -0.3871397674, -0.178693831, 0.1203999072, -0.0151083032, 0.0775768384, -0.2544840872, -0.0591978505, 0.2827380002, 0.1352196187, 0.1431298256, 0.3067697883, -0.0705593675, 0.1459952742, -0.3780554831, 0.1258311272, -0.1305871904, 0.3384920955, 0.0766202584, -0.0201673638, 0.1809348464, -0.1569995284, 0.0884212628, 0.0980383083, -0.1084255129, 0.0385793447, -0.0328631811, 0.1818049401, -0.1926600337, 0.0655649379, 0.2532231212, 0.203342557, -0.0350580812, 0.0116641186, -0.2331338227, 0.3495357633, 0.0617368557, 0.1215714514, 0.1810612381, -0.1412085891, 0.1114950925, 0.0055139596, 0.1075898111, 0.6850782037, 0.2946435809, -0.2348816097, 0.0732881054, 0.2798924446, -0.0077905376, 0.294909358, 0.0229825824, 0.3190515637, 0.1136219054, 0.0230564624, -0.0055125728, -0.2330719829, -0.5380803943, -0.1060533077, 0.3599245548, -0.1671121418, 0.0657729432, -0.2293884456, -0.4290292561, 0.2275749445, 0.1485641152, -0.0117522227, -0.1306970865, -0.1375132203, 0.0422426239, 0.172597453, 0.0048949686, -0.3100762069, 0.0854397938, 0.0750043541, -0.4491648078, -0.5388175845, -0.0349383615, -0.0489641242, 0.1354589313, 0.3568565845, -0.0923575461, 0.3888432384, -0.290459305, 0.1701112986, -0.5194395781, -0.1685297787, 0.0841428414, 0.0003069481, 0.1968118846, 0.3385491967, 0.3282368481, 0.2073898911, -0.1462316513, 0.4259984195, 0.0774791986, -0.3267217278, -0.012651775, -0.1966931075, -0.136250481, -0.1642073095, -0.1284639537, -0.3573231399, -0.4335587323, -0.0684305653, 0.2935094237, 0.0824880376, 0.4416909218, 0.2030845731, 0.2307363749, -0.1404057443, 0.0298973341, -0.0397703201, -0.4825535715, 0.2662041187, -0.1471426934, -0.2014240921, 0.113209255, -0.0971582681, 0.2087315172, 0.0496987551, -0.3409634233, -0.6610172987, 0.0980601609, 0.2304312736, -0.0261131376, 0.210547924, 0.2839566767, 0.0462526791, -0.0669790506, -0.0725902766, -0.0761200115, -0.0332979523, -0.0082686255, 0.276232779, 0.0866345465, 0.4856368303, 0.0010837349, 0.7047640681, 0.1602012813, -0.0056631183, 0.5541396737, -0.3467070758, 0.5346220732, -0.3130925894, -0.2578807175, 0.1735930443, 0.341232866, -0.0159563962, -0.0515232161, 0.0401616544, 0.1763602048, -0.1391911954, -0.2596902847, -0.6329511404, 0.0656899288, 0.0058210306, 0.1052417904, 0.2090756744, -0.0772288069, -0.4114921689, -0.0692851171, -0.0987140238, 0.1179210022, 0.6839740872, 0.1814013869, 0.1967116743, -0.0626502335, -0.2422279119, -0.0181402564, 0.3635978997, 0.0316876285, -0.0919875875, -0.0862803459, 0.2153066099, 0.0278756227, -0.1463745534, 0.7403360605, -0.0952512547, -0.0106748138, 0.0185242519, -0.2663870752, -0.1105065271, -0.0114450697, -0.0896123126, 0.0508681461, -0.1238246188, 0.6679436564, -0.1567234397, -0.2827460468, 0.2403853238, 0.0585821308, -0.2929204404, -0.0856067687, -0.3727973402, -0.3943953216, -0.4308893979, -0.1892431378, -0.0542828813, 0.1407850683, 0.3531168401, 0.0344412774, -0.0619447827, -0.236958459, -0.3121978939, 0.0062820753, 0.3898469508, -0.1656893343, -0.0667049587, 0.3370177746, 0.1181209087, 0.5655363202, 0.4972719848, -0.1634871811, -0.0553842485, 0.0475545749, -0.0389252119, 0.1571608186, 0.0787285566, -0.2703436315, -0.4112436771, -0.1604748219, 0.1485663056, -0.1465382278, 0.0078892894, 0.398791641, -0.0783862174, -0.029113384, -0.1448403299, 0.2277540267, 0.0546789356, 0.0983263701, 0.3387635052, 0.324274838, -0.3816369772, 0.0907324627, -0.1406768262, 0.5482309461, -0.0814892873, 0.2979001999, 0.2999085486, -0.0676595196, 0.1985688955, 0.1660830975, 0.078527309, -0.1339368671, -0.1664966643, -0.0640152097, -0.2675676346, 0.3405866325, 0.05038343, -0.1686678976, 0.446161747, -0.0890478268, -0.0910136551, -0.1511065364, 0.1167493761, -0.1589271724, 0.0434231274, -0.1021447927, 0.231270045, 0.0547329895, 0.3664604425, -0.2204427421, 0.04906746, -0.1903862655, -0.2495891154, -0.0281944145, 0.0668025762, -0.4785552919, 0.1425110698, 0.0149706779, -0.1072152555, 0.0196415782, 0.3782071471, -0.0464622751, -0.0426583178, -0.1432624757, 0.212723285, -0.14498052, 0.0518395118, -0.2401227951, 0.0420120023, 0.2063637227, -0.202194646, 0.0588727184, 0.0381664075, -0.1574334651, -0.2396248728, -0.027689945, 0.0164823849, 0.0953190699, -0.0085476004, -0.3456414044, -0.1725110412, -0.1062448993, -0.1288719177, 0.187781617, 0.0461585335, -0.0093135834, -0.0072912946, -0.1532721967, -0.1436652094, 0.0941637158, 0.0547654964, -0.0871422365, 0.1893447042, 0.4673841894, -0.1142719015, -0.0398171581, -0.3154889047, 0.4180919528, 0.0519794151, -0.0761436, 0.1887274683, 0.343999207, 0.2282513827, 0.0126233501, 0.0376789384, 0.1107444912, -0.3068039417, -0.0860225409, -0.4917868078, -0.40570274, 0.2501187325, -0.2159633785, 0.2042062432, -0.164528355, 0.1307810992, 0.2762946188, -0.2896699607, -0.3796899915, 0.2826667428, -0.3409360647, 0.1270922571, 0.3069877923, 0.0417037532, 0.4476427436, 0.0753322989, 0.2623497248, -0.1107500419, -0.2633861005, -0.2496806383, -0.0660935044, 0.0987200737, 0.1212073788, -0.1349312961, 0.118934691, -0.1618294716, -0.1342804283, 0.0923600718, -0.0060424302, -0.0304148011, -0.083675608, 0.0463244021, 0.1099072695, -0.2554641664, -0.0538077615, 0.0549374335, -0.2516523302, 0.339584589, 0.1929964274, 0.0972964987, 0.0029296146, -0.0933809578, -0.0650201067, -0.0676787198, 0.0486938208, 0.1666278839, 0.4039124846, 0.0298836268, 0.0632466599, -0.1121920571, 0.2906704843, 0.0062432983, -0.3475573361, 0.3203180134, 0.0851737931, 0.2337815613, -0.2893436253, 0.015506139, -0.0208906308, -0.1136557683, 0.0428894795, 0.0965165794, -0.3188048303, 0.1486105323, -0.1696513593, -0.054747317, 0.5481865406, -0.1903422773, 0.0021554576, 0.1467751265, -0.0801941678, 0.0933374166, 0.344751209, 0.2645243704, 0.0978688598, 0.691819191, -0.2054213732, 0.3007109761, -0.2856637537, 0.0332424082, 0.1407141685, -0.298127085, -0.0766856596, 0.0215277188, 0.0434872694, -0.0680194274, -0.4112867415, 0.0884074718, -0.0647998676, 0.1055025384, 0.0168321021, 0.248384878, -0.0025915983, 0.0401801281, -0.4531844556, -0.1871874779, -0.0388969257, -0.0258381721, 0.0873415992, -0.2519069612, -0.0297873244, 0.2510320842, -0.1083662212, 0.0434340946, 0.0168702472, 0.3450643122, -0.0300867315, -0.1923763603, 0.4467706084, 0.2444123626, 0.0670634434, 0.1131562367, 0.4939514995, 0.5180078149, 0.1998108029, 0.1143957004, -0.1387733668, -0.0202175844, -0.2906444371, -0.1736521125, 0.2180797756, 0.08240816, 0.1494477242, -0.0313944146, 0.3158107996, -0.2266180366, 0.0146623095, -0.0679810941, -0.1581364125, -0.0753930509, 0.4123803973, -0.2585468292, -0.1927515268, -0.0752794743, 0.1676986516, -0.5033450723, 0.1007693335, 0.357598424, -0.0487320162, 0.1062274724, 0.1619821638, 0.0819284469, -0.0309541598, 0.206202358, 0.354642719, -0.0052454607, -0.2769244015, -0.1777849048, -0.5345106125, -0.0729895383, 0.0316263959, -0.2679693699, -0.2681928575, -0.0328889526, -0.0879588872, -0.0230285991, 0.4180803597, 0.2050655931, 0.229786709, -0.0775726065, -0.3130339682, -0.1979031116, 0.1303407848, 0.067744486, -0.1351905316, -0.5085451007, -0.009007778, -0.2683968842, 0.1903855205, 0.0027911861, 0.0866301879, -0.1306411922, -0.11623656, 0.3766637146, -0.0107927164, 0.2907445729, -0.1698555797, -0.0047180336, -0.0407652557, -0.1496234685, -0.0286608227, -0.0606148653, 0.275436908, 0.2879386544, -0.385191679, -0.2679109871, -0.4055075943, 0.0586343184, -0.0170118976, -0.1047120988, -0.3048965037, 0.2106615603, -0.1339137554, 0.0235620886, 0.1579905897, 0.2269967943, -0.0672343075, -0.2553287446, -0.5728759766, -0.0833029076, 0.4497869313, -0.3061575294, -0.2604263425, 0.1681203246, 0.0156586915, -0.1184175834, 0.1602559239, -0.1297215223, 0.2885088623, 0.4042970836, 0.0695976317, -0.3287302852, 0.3322090805, 0.1816506088, 0.2269635797, 0.1711498797, 0.030704394, -0.1117483005, -0.1877429187, -0.0270826668, 0.0299144648 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
And there was another issue. I loaded black and white images (jpeg file). Using load dataset. It reads it as PIL jpeg data format. But instead of converting it into 3 channel tensor, input to collator function is coming as a single channel tensor.
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
44
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` And there was another issue. I loaded black and white images (jpeg file). Using load dataset. It reads it as PIL jpeg data format. But instead of converting it into 3 channel tensor, input to collator function is coming as a single channel tensor.
[ -0.28589499, 0.0791946054, -0.1641439646, 0.5192497373, 0.3978698254, 0.1942408681, 0.3166290522, 0.1429088861, 0.0455847755, 0.1703683138, 0.0783737227, -0.0138087906, -0.2019121945, 0.0991076156, -0.0279719345, -0.0610152707, -0.1374426484, 0.2016349137, -0.1800704598, 0.1053986624, -0.3243975341, 0.222762838, -0.1992963403, 0.0239699688, -0.3725245893, -0.1334148347, -0.2554859221, 0.5537114143, -0.3019846976, -0.2025516033, 0.1425678432, -0.1484532505, 0.2093803585, 0.4515587687, -0.0001075646, 0.2240584493, 0.41011253, -0.2311011106, -0.3290292025, -0.3769567907, -0.228267312, -0.0441726856, 0.0047344142, -0.3819600344, -0.1225531101, -0.0782392919, 0.2704273462, 0.0254106838, 0.3077078462, 0.2765155137, 0.258998841, 0.1214061677, 0.1843479574, -0.0169011727, -0.112183772, 0.4930899441, 0.0372764431, 0.2362049073, 0.0792013109, -0.0652796701, 0.1625441164, 0.2614590228, 0.0358876623, -0.0124442903, 0.2321917564, 0.1105271727, -0.0068237442, -0.2155939192, 0.1265501976, -0.1820919663, 0.3849570453, -0.1616748273, -0.1817634404, -0.01814574, -0.0395430736, -0.4064300656, 0.1617155224, 0.0836903453, -0.1187563911, 0.0931641608, -0.1862466782, -0.2279613614, -0.3234366477, 0.3092052639, 0.0679564923, 0.0877893418, -0.2053929567, 0.0769240707, 0.1150603369, 0.0493063368, 0.097090669, -0.3621659875, 0.044210799, 0.1265061051, 0.2593221366, 0.1461467892, -0.0195173714, 0.1517591923, 0.0959282145, 0.1028214544, -0.2983163297, -0.2555589676, -0.2526744306, 0.0793466792, 0.0006240158, 0.2288815975, -0.0557619706, 0.4583567381, 0.2230266035, 0.3975459039, -0.0246014316, -0.2443839461, -0.3011550605, -0.20050174, 0.0499580242, 0.201144591, 0.3267683685, 0.0799774528, -0.0135420058, -0.4608425796, 0.1270582229, -0.0686441287, 0.202327311, 0.2879629433, 0.2272085696, -0.0218351409, 0.1704128534, 0.237515986, 0.1398354769, 0.0984483287, -0.2554234266, 0.2842488885, -0.2523290813, -0.0051607536, -0.0439187177, -0.254650414, 0.3056448996, -0.2868964076, 0.0526929125, 0.0585396364, 0.1553368568, -0.2169874609, -0.0509816073, 0.2610355616, -0.0916735008, -0.0187397711, 0.2963451743, -0.0454206876, 0.0666983128, 0.0996684656, -0.4484413862, -0.4122204781, -0.2043375969, 0.2212546915, -0.0946172029, 0.0263819788, -0.5048217177, -0.2424767017, -0.0498434752, -0.2207407802, 0.0285938103, 0.005032144, -0.2164944559, -0.178862974, 0.2506093979, 0.577944994, -0.1442596763, 0.0715266392, -0.2689910233, -0.2302190512, 0.1847220957, 0.091796875, -0.2062634528, 0.4836925268, -0.6135779619, -0.0377430767, 0.5469893217, -0.6308556795, -0.2642134428, -0.0194764547, -0.0160561725, -0.0283729676, 0.1441947371, 0.0491675138, 0.0685672909, -0.0787953362, -0.1048155054, 0.2463386506, -0.0207472518, 0.0393031836, 0.0116021531, -0.2071621716, -0.1544010192, 0.2210116833, 0.0998416021, 0.2198762, 0.2281202078, -0.0328830034, 0.0621345192, -0.2988763452, 0.1780731082, 0.1151883006, 0.3906305134, 0.122934185, -0.1748881489, -0.0308992118, -0.3798303604, 0.2845119536, 0.1084418893, -0.060603369, -0.4644956589, 0.1427325457, -0.1616857797, -0.2617485523, -0.4119166136, -0.248648718, 0.1931681037, 0.2311270237, 0.1035525203, 0.0111391302, -0.160445869, 0.2848946452, -0.1841045022, 0.1677675545, -0.1560898274, 0.4557167292, -0.3871397674, -0.178693831, 0.1203999072, -0.0151083032, 0.0775768384, -0.2544840872, -0.0591978505, 0.2827380002, 0.1352196187, 0.1431298256, 0.3067697883, -0.0705593675, 0.1459952742, -0.3780554831, 0.1258311272, -0.1305871904, 0.3384920955, 0.0766202584, -0.0201673638, 0.1809348464, -0.1569995284, 0.0884212628, 0.0980383083, -0.1084255129, 0.0385793447, -0.0328631811, 0.1818049401, -0.1926600337, 0.0655649379, 0.2532231212, 0.203342557, -0.0350580812, 0.0116641186, -0.2331338227, 0.3495357633, 0.0617368557, 0.1215714514, 0.1810612381, -0.1412085891, 0.1114950925, 0.0055139596, 0.1075898111, 0.6850782037, 0.2946435809, -0.2348816097, 0.0732881054, 0.2798924446, -0.0077905376, 0.294909358, 0.0229825824, 0.3190515637, 0.1136219054, 0.0230564624, -0.0055125728, -0.2330719829, -0.5380803943, -0.1060533077, 0.3599245548, -0.1671121418, 0.0657729432, -0.2293884456, -0.4290292561, 0.2275749445, 0.1485641152, -0.0117522227, -0.1306970865, -0.1375132203, 0.0422426239, 0.172597453, 0.0048949686, -0.3100762069, 0.0854397938, 0.0750043541, -0.4491648078, -0.5388175845, -0.0349383615, -0.0489641242, 0.1354589313, 0.3568565845, -0.0923575461, 0.3888432384, -0.290459305, 0.1701112986, -0.5194395781, -0.1685297787, 0.0841428414, 0.0003069481, 0.1968118846, 0.3385491967, 0.3282368481, 0.2073898911, -0.1462316513, 0.4259984195, 0.0774791986, -0.3267217278, -0.012651775, -0.1966931075, -0.136250481, -0.1642073095, -0.1284639537, -0.3573231399, -0.4335587323, -0.0684305653, 0.2935094237, 0.0824880376, 0.4416909218, 0.2030845731, 0.2307363749, -0.1404057443, 0.0298973341, -0.0397703201, -0.4825535715, 0.2662041187, -0.1471426934, -0.2014240921, 0.113209255, -0.0971582681, 0.2087315172, 0.0496987551, -0.3409634233, -0.6610172987, 0.0980601609, 0.2304312736, -0.0261131376, 0.210547924, 0.2839566767, 0.0462526791, -0.0669790506, -0.0725902766, -0.0761200115, -0.0332979523, -0.0082686255, 0.276232779, 0.0866345465, 0.4856368303, 0.0010837349, 0.7047640681, 0.1602012813, -0.0056631183, 0.5541396737, -0.3467070758, 0.5346220732, -0.3130925894, -0.2578807175, 0.1735930443, 0.341232866, -0.0159563962, -0.0515232161, 0.0401616544, 0.1763602048, -0.1391911954, -0.2596902847, -0.6329511404, 0.0656899288, 0.0058210306, 0.1052417904, 0.2090756744, -0.0772288069, -0.4114921689, -0.0692851171, -0.0987140238, 0.1179210022, 0.6839740872, 0.1814013869, 0.1967116743, -0.0626502335, -0.2422279119, -0.0181402564, 0.3635978997, 0.0316876285, -0.0919875875, -0.0862803459, 0.2153066099, 0.0278756227, -0.1463745534, 0.7403360605, -0.0952512547, -0.0106748138, 0.0185242519, -0.2663870752, -0.1105065271, -0.0114450697, -0.0896123126, 0.0508681461, -0.1238246188, 0.6679436564, -0.1567234397, -0.2827460468, 0.2403853238, 0.0585821308, -0.2929204404, -0.0856067687, -0.3727973402, -0.3943953216, -0.4308893979, -0.1892431378, -0.0542828813, 0.1407850683, 0.3531168401, 0.0344412774, -0.0619447827, -0.236958459, -0.3121978939, 0.0062820753, 0.3898469508, -0.1656893343, -0.0667049587, 0.3370177746, 0.1181209087, 0.5655363202, 0.4972719848, -0.1634871811, -0.0553842485, 0.0475545749, -0.0389252119, 0.1571608186, 0.0787285566, -0.2703436315, -0.4112436771, -0.1604748219, 0.1485663056, -0.1465382278, 0.0078892894, 0.398791641, -0.0783862174, -0.029113384, -0.1448403299, 0.2277540267, 0.0546789356, 0.0983263701, 0.3387635052, 0.324274838, -0.3816369772, 0.0907324627, -0.1406768262, 0.5482309461, -0.0814892873, 0.2979001999, 0.2999085486, -0.0676595196, 0.1985688955, 0.1660830975, 0.078527309, -0.1339368671, -0.1664966643, -0.0640152097, -0.2675676346, 0.3405866325, 0.05038343, -0.1686678976, 0.446161747, -0.0890478268, -0.0910136551, -0.1511065364, 0.1167493761, -0.1589271724, 0.0434231274, -0.1021447927, 0.231270045, 0.0547329895, 0.3664604425, -0.2204427421, 0.04906746, -0.1903862655, -0.2495891154, -0.0281944145, 0.0668025762, -0.4785552919, 0.1425110698, 0.0149706779, -0.1072152555, 0.0196415782, 0.3782071471, -0.0464622751, -0.0426583178, -0.1432624757, 0.212723285, -0.14498052, 0.0518395118, -0.2401227951, 0.0420120023, 0.2063637227, -0.202194646, 0.0588727184, 0.0381664075, -0.1574334651, -0.2396248728, -0.027689945, 0.0164823849, 0.0953190699, -0.0085476004, -0.3456414044, -0.1725110412, -0.1062448993, -0.1288719177, 0.187781617, 0.0461585335, -0.0093135834, -0.0072912946, -0.1532721967, -0.1436652094, 0.0941637158, 0.0547654964, -0.0871422365, 0.1893447042, 0.4673841894, -0.1142719015, -0.0398171581, -0.3154889047, 0.4180919528, 0.0519794151, -0.0761436, 0.1887274683, 0.343999207, 0.2282513827, 0.0126233501, 0.0376789384, 0.1107444912, -0.3068039417, -0.0860225409, -0.4917868078, -0.40570274, 0.2501187325, -0.2159633785, 0.2042062432, -0.164528355, 0.1307810992, 0.2762946188, -0.2896699607, -0.3796899915, 0.2826667428, -0.3409360647, 0.1270922571, 0.3069877923, 0.0417037532, 0.4476427436, 0.0753322989, 0.2623497248, -0.1107500419, -0.2633861005, -0.2496806383, -0.0660935044, 0.0987200737, 0.1212073788, -0.1349312961, 0.118934691, -0.1618294716, -0.1342804283, 0.0923600718, -0.0060424302, -0.0304148011, -0.083675608, 0.0463244021, 0.1099072695, -0.2554641664, -0.0538077615, 0.0549374335, -0.2516523302, 0.339584589, 0.1929964274, 0.0972964987, 0.0029296146, -0.0933809578, -0.0650201067, -0.0676787198, 0.0486938208, 0.1666278839, 0.4039124846, 0.0298836268, 0.0632466599, -0.1121920571, 0.2906704843, 0.0062432983, -0.3475573361, 0.3203180134, 0.0851737931, 0.2337815613, -0.2893436253, 0.015506139, -0.0208906308, -0.1136557683, 0.0428894795, 0.0965165794, -0.3188048303, 0.1486105323, -0.1696513593, -0.054747317, 0.5481865406, -0.1903422773, 0.0021554576, 0.1467751265, -0.0801941678, 0.0933374166, 0.344751209, 0.2645243704, 0.0978688598, 0.691819191, -0.2054213732, 0.3007109761, -0.2856637537, 0.0332424082, 0.1407141685, -0.298127085, -0.0766856596, 0.0215277188, 0.0434872694, -0.0680194274, -0.4112867415, 0.0884074718, -0.0647998676, 0.1055025384, 0.0168321021, 0.248384878, -0.0025915983, 0.0401801281, -0.4531844556, -0.1871874779, -0.0388969257, -0.0258381721, 0.0873415992, -0.2519069612, -0.0297873244, 0.2510320842, -0.1083662212, 0.0434340946, 0.0168702472, 0.3450643122, -0.0300867315, -0.1923763603, 0.4467706084, 0.2444123626, 0.0670634434, 0.1131562367, 0.4939514995, 0.5180078149, 0.1998108029, 0.1143957004, -0.1387733668, -0.0202175844, -0.2906444371, -0.1736521125, 0.2180797756, 0.08240816, 0.1494477242, -0.0313944146, 0.3158107996, -0.2266180366, 0.0146623095, -0.0679810941, -0.1581364125, -0.0753930509, 0.4123803973, -0.2585468292, -0.1927515268, -0.0752794743, 0.1676986516, -0.5033450723, 0.1007693335, 0.357598424, -0.0487320162, 0.1062274724, 0.1619821638, 0.0819284469, -0.0309541598, 0.206202358, 0.354642719, -0.0052454607, -0.2769244015, -0.1777849048, -0.5345106125, -0.0729895383, 0.0316263959, -0.2679693699, -0.2681928575, -0.0328889526, -0.0879588872, -0.0230285991, 0.4180803597, 0.2050655931, 0.229786709, -0.0775726065, -0.3130339682, -0.1979031116, 0.1303407848, 0.067744486, -0.1351905316, -0.5085451007, -0.009007778, -0.2683968842, 0.1903855205, 0.0027911861, 0.0866301879, -0.1306411922, -0.11623656, 0.3766637146, -0.0107927164, 0.2907445729, -0.1698555797, -0.0047180336, -0.0407652557, -0.1496234685, -0.0286608227, -0.0606148653, 0.275436908, 0.2879386544, -0.385191679, -0.2679109871, -0.4055075943, 0.0586343184, -0.0170118976, -0.1047120988, -0.3048965037, 0.2106615603, -0.1339137554, 0.0235620886, 0.1579905897, 0.2269967943, -0.0672343075, -0.2553287446, -0.5728759766, -0.0833029076, 0.4497869313, -0.3061575294, -0.2604263425, 0.1681203246, 0.0156586915, -0.1184175834, 0.1602559239, -0.1297215223, 0.2885088623, 0.4042970836, 0.0695976317, -0.3287302852, 0.3322090805, 0.1816506088, 0.2269635797, 0.1711498797, 0.030704394, -0.1117483005, -0.1877429187, -0.0270826668, 0.0299144648 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
We don't apply any additional preprocessing on top of `PIL.Image.open(image_file)`, so you need to do the conversion yourself: ```python def to_rgb(batch): batch["image"] = [img.convert("RGB") for img in batch["image"]] return batch ds_rgb = ds.map(to_rgb, batched=True) ``` Please use our Forum for questions of this kind in the future.
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
47
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` We don't apply any additional preprocessing on top of `PIL.Image.open(image_file)`, so you need to do the conversion yourself: ```python def to_rgb(batch): batch["image"] = [img.convert("RGB") for img in batch["image"]] return batch ds_rgb = ds.map(to_rgb, batched=True) ``` Please use our Forum for questions of this kind in the future.
[ -0.28589499, 0.0791946054, -0.1641439646, 0.5192497373, 0.3978698254, 0.1942408681, 0.3166290522, 0.1429088861, 0.0455847755, 0.1703683138, 0.0783737227, -0.0138087906, -0.2019121945, 0.0991076156, -0.0279719345, -0.0610152707, -0.1374426484, 0.2016349137, -0.1800704598, 0.1053986624, -0.3243975341, 0.222762838, -0.1992963403, 0.0239699688, -0.3725245893, -0.1334148347, -0.2554859221, 0.5537114143, -0.3019846976, -0.2025516033, 0.1425678432, -0.1484532505, 0.2093803585, 0.4515587687, -0.0001075646, 0.2240584493, 0.41011253, -0.2311011106, -0.3290292025, -0.3769567907, -0.228267312, -0.0441726856, 0.0047344142, -0.3819600344, -0.1225531101, -0.0782392919, 0.2704273462, 0.0254106838, 0.3077078462, 0.2765155137, 0.258998841, 0.1214061677, 0.1843479574, -0.0169011727, -0.112183772, 0.4930899441, 0.0372764431, 0.2362049073, 0.0792013109, -0.0652796701, 0.1625441164, 0.2614590228, 0.0358876623, -0.0124442903, 0.2321917564, 0.1105271727, -0.0068237442, -0.2155939192, 0.1265501976, -0.1820919663, 0.3849570453, -0.1616748273, -0.1817634404, -0.01814574, -0.0395430736, -0.4064300656, 0.1617155224, 0.0836903453, -0.1187563911, 0.0931641608, -0.1862466782, -0.2279613614, -0.3234366477, 0.3092052639, 0.0679564923, 0.0877893418, -0.2053929567, 0.0769240707, 0.1150603369, 0.0493063368, 0.097090669, -0.3621659875, 0.044210799, 0.1265061051, 0.2593221366, 0.1461467892, -0.0195173714, 0.1517591923, 0.0959282145, 0.1028214544, -0.2983163297, -0.2555589676, -0.2526744306, 0.0793466792, 0.0006240158, 0.2288815975, -0.0557619706, 0.4583567381, 0.2230266035, 0.3975459039, -0.0246014316, -0.2443839461, -0.3011550605, -0.20050174, 0.0499580242, 0.201144591, 0.3267683685, 0.0799774528, -0.0135420058, -0.4608425796, 0.1270582229, -0.0686441287, 0.202327311, 0.2879629433, 0.2272085696, -0.0218351409, 0.1704128534, 0.237515986, 0.1398354769, 0.0984483287, -0.2554234266, 0.2842488885, -0.2523290813, -0.0051607536, -0.0439187177, -0.254650414, 0.3056448996, -0.2868964076, 0.0526929125, 0.0585396364, 0.1553368568, -0.2169874609, -0.0509816073, 0.2610355616, -0.0916735008, -0.0187397711, 0.2963451743, -0.0454206876, 0.0666983128, 0.0996684656, -0.4484413862, -0.4122204781, -0.2043375969, 0.2212546915, -0.0946172029, 0.0263819788, -0.5048217177, -0.2424767017, -0.0498434752, -0.2207407802, 0.0285938103, 0.005032144, -0.2164944559, -0.178862974, 0.2506093979, 0.577944994, -0.1442596763, 0.0715266392, -0.2689910233, -0.2302190512, 0.1847220957, 0.091796875, -0.2062634528, 0.4836925268, -0.6135779619, -0.0377430767, 0.5469893217, -0.6308556795, -0.2642134428, -0.0194764547, -0.0160561725, -0.0283729676, 0.1441947371, 0.0491675138, 0.0685672909, -0.0787953362, -0.1048155054, 0.2463386506, -0.0207472518, 0.0393031836, 0.0116021531, -0.2071621716, -0.1544010192, 0.2210116833, 0.0998416021, 0.2198762, 0.2281202078, -0.0328830034, 0.0621345192, -0.2988763452, 0.1780731082, 0.1151883006, 0.3906305134, 0.122934185, -0.1748881489, -0.0308992118, -0.3798303604, 0.2845119536, 0.1084418893, -0.060603369, -0.4644956589, 0.1427325457, -0.1616857797, -0.2617485523, -0.4119166136, -0.248648718, 0.1931681037, 0.2311270237, 0.1035525203, 0.0111391302, -0.160445869, 0.2848946452, -0.1841045022, 0.1677675545, -0.1560898274, 0.4557167292, -0.3871397674, -0.178693831, 0.1203999072, -0.0151083032, 0.0775768384, -0.2544840872, -0.0591978505, 0.2827380002, 0.1352196187, 0.1431298256, 0.3067697883, -0.0705593675, 0.1459952742, -0.3780554831, 0.1258311272, -0.1305871904, 0.3384920955, 0.0766202584, -0.0201673638, 0.1809348464, -0.1569995284, 0.0884212628, 0.0980383083, -0.1084255129, 0.0385793447, -0.0328631811, 0.1818049401, -0.1926600337, 0.0655649379, 0.2532231212, 0.203342557, -0.0350580812, 0.0116641186, -0.2331338227, 0.3495357633, 0.0617368557, 0.1215714514, 0.1810612381, -0.1412085891, 0.1114950925, 0.0055139596, 0.1075898111, 0.6850782037, 0.2946435809, -0.2348816097, 0.0732881054, 0.2798924446, -0.0077905376, 0.294909358, 0.0229825824, 0.3190515637, 0.1136219054, 0.0230564624, -0.0055125728, -0.2330719829, -0.5380803943, -0.1060533077, 0.3599245548, -0.1671121418, 0.0657729432, -0.2293884456, -0.4290292561, 0.2275749445, 0.1485641152, -0.0117522227, -0.1306970865, -0.1375132203, 0.0422426239, 0.172597453, 0.0048949686, -0.3100762069, 0.0854397938, 0.0750043541, -0.4491648078, -0.5388175845, -0.0349383615, -0.0489641242, 0.1354589313, 0.3568565845, -0.0923575461, 0.3888432384, -0.290459305, 0.1701112986, -0.5194395781, -0.1685297787, 0.0841428414, 0.0003069481, 0.1968118846, 0.3385491967, 0.3282368481, 0.2073898911, -0.1462316513, 0.4259984195, 0.0774791986, -0.3267217278, -0.012651775, -0.1966931075, -0.136250481, -0.1642073095, -0.1284639537, -0.3573231399, -0.4335587323, -0.0684305653, 0.2935094237, 0.0824880376, 0.4416909218, 0.2030845731, 0.2307363749, -0.1404057443, 0.0298973341, -0.0397703201, -0.4825535715, 0.2662041187, -0.1471426934, -0.2014240921, 0.113209255, -0.0971582681, 0.2087315172, 0.0496987551, -0.3409634233, -0.6610172987, 0.0980601609, 0.2304312736, -0.0261131376, 0.210547924, 0.2839566767, 0.0462526791, -0.0669790506, -0.0725902766, -0.0761200115, -0.0332979523, -0.0082686255, 0.276232779, 0.0866345465, 0.4856368303, 0.0010837349, 0.7047640681, 0.1602012813, -0.0056631183, 0.5541396737, -0.3467070758, 0.5346220732, -0.3130925894, -0.2578807175, 0.1735930443, 0.341232866, -0.0159563962, -0.0515232161, 0.0401616544, 0.1763602048, -0.1391911954, -0.2596902847, -0.6329511404, 0.0656899288, 0.0058210306, 0.1052417904, 0.2090756744, -0.0772288069, -0.4114921689, -0.0692851171, -0.0987140238, 0.1179210022, 0.6839740872, 0.1814013869, 0.1967116743, -0.0626502335, -0.2422279119, -0.0181402564, 0.3635978997, 0.0316876285, -0.0919875875, -0.0862803459, 0.2153066099, 0.0278756227, -0.1463745534, 0.7403360605, -0.0952512547, -0.0106748138, 0.0185242519, -0.2663870752, -0.1105065271, -0.0114450697, -0.0896123126, 0.0508681461, -0.1238246188, 0.6679436564, -0.1567234397, -0.2827460468, 0.2403853238, 0.0585821308, -0.2929204404, -0.0856067687, -0.3727973402, -0.3943953216, -0.4308893979, -0.1892431378, -0.0542828813, 0.1407850683, 0.3531168401, 0.0344412774, -0.0619447827, -0.236958459, -0.3121978939, 0.0062820753, 0.3898469508, -0.1656893343, -0.0667049587, 0.3370177746, 0.1181209087, 0.5655363202, 0.4972719848, -0.1634871811, -0.0553842485, 0.0475545749, -0.0389252119, 0.1571608186, 0.0787285566, -0.2703436315, -0.4112436771, -0.1604748219, 0.1485663056, -0.1465382278, 0.0078892894, 0.398791641, -0.0783862174, -0.029113384, -0.1448403299, 0.2277540267, 0.0546789356, 0.0983263701, 0.3387635052, 0.324274838, -0.3816369772, 0.0907324627, -0.1406768262, 0.5482309461, -0.0814892873, 0.2979001999, 0.2999085486, -0.0676595196, 0.1985688955, 0.1660830975, 0.078527309, -0.1339368671, -0.1664966643, -0.0640152097, -0.2675676346, 0.3405866325, 0.05038343, -0.1686678976, 0.446161747, -0.0890478268, -0.0910136551, -0.1511065364, 0.1167493761, -0.1589271724, 0.0434231274, -0.1021447927, 0.231270045, 0.0547329895, 0.3664604425, -0.2204427421, 0.04906746, -0.1903862655, -0.2495891154, -0.0281944145, 0.0668025762, -0.4785552919, 0.1425110698, 0.0149706779, -0.1072152555, 0.0196415782, 0.3782071471, -0.0464622751, -0.0426583178, -0.1432624757, 0.212723285, -0.14498052, 0.0518395118, -0.2401227951, 0.0420120023, 0.2063637227, -0.202194646, 0.0588727184, 0.0381664075, -0.1574334651, -0.2396248728, -0.027689945, 0.0164823849, 0.0953190699, -0.0085476004, -0.3456414044, -0.1725110412, -0.1062448993, -0.1288719177, 0.187781617, 0.0461585335, -0.0093135834, -0.0072912946, -0.1532721967, -0.1436652094, 0.0941637158, 0.0547654964, -0.0871422365, 0.1893447042, 0.4673841894, -0.1142719015, -0.0398171581, -0.3154889047, 0.4180919528, 0.0519794151, -0.0761436, 0.1887274683, 0.343999207, 0.2282513827, 0.0126233501, 0.0376789384, 0.1107444912, -0.3068039417, -0.0860225409, -0.4917868078, -0.40570274, 0.2501187325, -0.2159633785, 0.2042062432, -0.164528355, 0.1307810992, 0.2762946188, -0.2896699607, -0.3796899915, 0.2826667428, -0.3409360647, 0.1270922571, 0.3069877923, 0.0417037532, 0.4476427436, 0.0753322989, 0.2623497248, -0.1107500419, -0.2633861005, -0.2496806383, -0.0660935044, 0.0987200737, 0.1212073788, -0.1349312961, 0.118934691, -0.1618294716, -0.1342804283, 0.0923600718, -0.0060424302, -0.0304148011, -0.083675608, 0.0463244021, 0.1099072695, -0.2554641664, -0.0538077615, 0.0549374335, -0.2516523302, 0.339584589, 0.1929964274, 0.0972964987, 0.0029296146, -0.0933809578, -0.0650201067, -0.0676787198, 0.0486938208, 0.1666278839, 0.4039124846, 0.0298836268, 0.0632466599, -0.1121920571, 0.2906704843, 0.0062432983, -0.3475573361, 0.3203180134, 0.0851737931, 0.2337815613, -0.2893436253, 0.015506139, -0.0208906308, -0.1136557683, 0.0428894795, 0.0965165794, -0.3188048303, 0.1486105323, -0.1696513593, -0.054747317, 0.5481865406, -0.1903422773, 0.0021554576, 0.1467751265, -0.0801941678, 0.0933374166, 0.344751209, 0.2645243704, 0.0978688598, 0.691819191, -0.2054213732, 0.3007109761, -0.2856637537, 0.0332424082, 0.1407141685, -0.298127085, -0.0766856596, 0.0215277188, 0.0434872694, -0.0680194274, -0.4112867415, 0.0884074718, -0.0647998676, 0.1055025384, 0.0168321021, 0.248384878, -0.0025915983, 0.0401801281, -0.4531844556, -0.1871874779, -0.0388969257, -0.0258381721, 0.0873415992, -0.2519069612, -0.0297873244, 0.2510320842, -0.1083662212, 0.0434340946, 0.0168702472, 0.3450643122, -0.0300867315, -0.1923763603, 0.4467706084, 0.2444123626, 0.0670634434, 0.1131562367, 0.4939514995, 0.5180078149, 0.1998108029, 0.1143957004, -0.1387733668, -0.0202175844, -0.2906444371, -0.1736521125, 0.2180797756, 0.08240816, 0.1494477242, -0.0313944146, 0.3158107996, -0.2266180366, 0.0146623095, -0.0679810941, -0.1581364125, -0.0753930509, 0.4123803973, -0.2585468292, -0.1927515268, -0.0752794743, 0.1676986516, -0.5033450723, 0.1007693335, 0.357598424, -0.0487320162, 0.1062274724, 0.1619821638, 0.0819284469, -0.0309541598, 0.206202358, 0.354642719, -0.0052454607, -0.2769244015, -0.1777849048, -0.5345106125, -0.0729895383, 0.0316263959, -0.2679693699, -0.2681928575, -0.0328889526, -0.0879588872, -0.0230285991, 0.4180803597, 0.2050655931, 0.229786709, -0.0775726065, -0.3130339682, -0.1979031116, 0.1303407848, 0.067744486, -0.1351905316, -0.5085451007, -0.009007778, -0.2683968842, 0.1903855205, 0.0027911861, 0.0866301879, -0.1306411922, -0.11623656, 0.3766637146, -0.0107927164, 0.2907445729, -0.1698555797, -0.0047180336, -0.0407652557, -0.1496234685, -0.0286608227, -0.0606148653, 0.275436908, 0.2879386544, -0.385191679, -0.2679109871, -0.4055075943, 0.0586343184, -0.0170118976, -0.1047120988, -0.3048965037, 0.2106615603, -0.1339137554, 0.0235620886, 0.1579905897, 0.2269967943, -0.0672343075, -0.2553287446, -0.5728759766, -0.0833029076, 0.4497869313, -0.3061575294, -0.2604263425, 0.1681203246, 0.0156586915, -0.1184175834, 0.1602559239, -0.1297215223, 0.2885088623, 0.4042970836, 0.0695976317, -0.3287302852, 0.3322090805, 0.1816506088, 0.2269635797, 0.1711498797, 0.030704394, -0.1117483005, -0.1877429187, -0.0270826668, 0.0299144648 ]
https://github.com/huggingface/datasets/issues/3872
HTTP error 504 Server Error: Gateway Time-out
yes but is there any way you could try pushing with `git` command line directly instead of `push_to_hub`?
I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue.
18
HTTP error 504 Server Error: Gateway Time-out I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue. yes but is there any way you could try pushing with `git` command line directly instead of `push_to_hub`?
[ -0.4594691694, -0.3423294127, -0.0652929768, 0.1371454, 0.1435396522, -0.0505814515, -0.0194970034, 0.4111796021, -0.3377404511, -0.2412685603, 0.0478668362, 0.1072256789, 0.160477668, 0.4615725279, 0.0629627705, 0.0845943764, 0.0672830492, -0.0497488081, -0.0619742833, 0.0463440791, -0.1112951785, -0.0979898348, 0.1206009164, 0.070046559, -0.3712240756, -0.1621819288, 0.1178859249, 0.3222818971, -0.178284198, -0.2376810312, -0.0484963991, -0.0789996535, 0.0556954853, 0.5038566589, -0.000123036, 0.0538011417, 0.1469679773, -0.0013399118, -0.4750659168, -0.0829998776, -0.4539312422, -0.386664629, -0.0708283707, -0.1189273447, 0.028419802, 0.2812228203, -0.1359701008, 0.1021410525, 0.2842967212, 0.4920177758, 0.0959692374, -0.0434413143, 0.4811979532, -0.0423658155, 0.1924689263, -0.2092441469, -0.1680802405, 0.3687009215, 0.2202212214, 0.2428536415, 0.2456348091, -0.1315363944, 0.0969924703, -0.0060394513, 0.0635321885, -0.2721962035, 0.2240204811, -0.2437978983, -0.0002724067, 0.0724442676, 0.1163827032, -0.2122027278, -0.5422157645, -0.2486802489, -0.3864802122, -0.4973599911, 0.1339170188, 0.2904358208, -0.1851166934, 0.1525425315, -0.1982713491, -0.4529164732, -0.0287059098, 0.0408944823, 0.0086747156, 0.2050161213, 0.0213703047, 0.1482325643, 0.05044223, -0.1104723588, -0.1188034117, 0.088105157, -0.1420345455, -0.2798289359, -0.5597026348, -0.21929802, 0.0072903959, 0.0760268793, 0.2245852202, 0.3849703968, -0.0560888015, 0.0495185964, -0.0299313776, 0.055724401, 0.4683925509, 0.1254700869, -0.014622991, 0.0183219239, 0.1798044145, 0.2246979624, -0.0185643211, -0.0357361063, 0.1515417546, -0.3674013615, 0.0832112283, 0.0172200277, 0.3115284145, -0.1838993877, -0.1052803174, -0.0698644295, 0.0573113933, 0.1503529847, 0.0315771289, 0.1721199155, -0.0175112542, 0.270517379, -0.2991517782, 0.1185105816, -0.2656654418, -0.3054949045, -0.1560640633, 0.2571677566, -0.0395303294, 0.1732573658, 0.0081984214, -0.4359898269, -0.1495836973, 0.0356751084, 0.148553893, -0.1666678637, -0.0915827304, -0.1941308081, -0.09178745, 0.2071213722, 0.1778560877, 0.2568475306, 0.3273001909, -0.0330870561, -0.1217650548, -0.1881882101, -0.57270509, -0.5500556827, 0.1821069419, 0.0593974292, 0.0337619893, -0.0174245015, -0.8260688186, -0.1005647928, 0.0500260368, -0.0640472174, -0.0612551235, 0.1435671747, 0.0756096244, -0.0503597185, 0.0638356954, 0.2452339977, -0.2759175599, 0.3127144277, 0.2042500377, 0.4145079255, 0.12172997, 0.3683692813, -0.0384904668, 0.1556808501, 0.0053821416, -0.094386138, 0.2585383952, -0.6565605402, -0.193464905, 0.1358373016, -0.2571942508, -0.4090895951, -0.3261186182, -0.2345357686, 0.4298560321, -0.0620921291, 0.3848637342, 0.1825999618, 0.0465505943, 0.2894310355, -0.3203171194, -0.3113991916, -0.253444612, 0.1256614476, -0.0033070385, 0.0263339765, 0.2186244875, -0.0864017457, -0.0574540086, 0.1254656017, 0.2504202127, 0.2883918881, 0.3329431117, -0.0393705294, 0.0821882635, -0.0881392062, -0.0801146105, 0.0744921118, 0.0672906041, 0.1455755085, -0.296182245, 0.2083790898, -0.3494787812, -0.055416055, -0.03515625, 0.3873842359, -0.0087458026, -0.4085327685, 0.261374712, 0.1171605885, 0.0819787532, 0.3342570961, -0.2426545173, 0.3391056061, -0.1309417635, 0.3991455436, 0.0545263179, -0.3109301031, 0.1418358684, -0.058757361, 0.4184269607, -0.2182047963, -0.1748760492, 0.1444712281, -0.0015290877, -0.0154878022, 0.3226312399, 0.253133893, 0.1836840063, 0.0286287479, -0.1566273719, -0.1658305079, 0.0391155668, 0.0632997304, -0.0560721494, 0.1272800565, 0.0291241631, 0.4284340441, 0.1872790605, 0.2653841972, 0.2086434513, 0.0619120821, 0.3675254285, 0.2661952972, 0.0457268842, 0.1447336972, 0.0636055321, -0.4008501172, 0.3576929271, 0.148563385, 0.2496335953, 0.1606436968, 0.1435263306, 0.1142724901, 0.0840800405, -0.1353593022, 0.2016148716, 0.0559897311, -0.1880719364, 0.0411471464, -0.1017848551, -0.0729300156, 0.1412575245, -0.0097148381, 0.1402810365, 0.1210366637, 0.1121579111, -0.125827536, 0.1406338215, -0.1666153818, -0.0512535423, -0.2159144431, 0.3256113231, 0.6453016996, -0.2706489265, -0.066152662, -0.0994369537, -0.0302894507, 0.3813780546, -0.198829338, -0.4362567961, -0.4822514355, -0.0727716759, 0.1216924489, -0.2395084947, 0.1275833696, 0.2182478607, 0.0855301321, 0.3413335085, -0.1394186169, 0.109669812, -0.1680203676, 0.0577224866, -0.0128530655, 0.2426448464, 0.0127258105, 0.1688942015, 0.0366638713, -0.1379190087, -0.4979196489, 0.1132400781, 0.1936567426, -0.0989369601, 0.1575779766, -0.227905184, 0.3994493783, -0.0386525467, 0.0539091825, 0.2807823718, -0.0570956394, 0.0226627439, -0.0019252544, -0.2050584406, 0.0690857768, 0.1663832366, 0.0273344051, 0.0185611695, -0.5421041846, 0.3044731617, 0.2487784177, 0.2279746532, -0.0608672164, 0.0492311977, 0.0659480095, 0.2871102393, -0.1858739257, -0.0391794555, -0.4880356193, 0.1621869802, -0.1053929776, -0.0331925489, 0.0647962019, 0.3225999475, 0.1631533802, 0.2033633888, -0.2839033306, -0.4911909401, -0.3252580166, 0.2968625724, -0.179274857, -0.1401678622, 0.2536395192, -0.4748049378, -0.1070155576, 0.226357609, 0.076055631, 0.2198487371, 0.5247098207, -0.0732714757, 0.0258315187, 0.4122575521, 0.0557196848, 0.4103045762, 0.1028323323, 0.1694894731, 0.5648221374, -0.0723050162, 0.2292647511, -0.1496030092, -0.0323725566, -0.114664413, -0.0176309552, 0.1373803616, 0.0528381653, 0.14743343, -0.098262243, -0.3200551867, -0.6196736693, -0.0776470676, -0.3406769931, -0.2069559246, 0.0180258825, 0.0516045094, 0.0470808521, -0.0962098166, -0.2294661105, -0.1280099899, 0.0762470961, -0.0545390844, -0.0894051939, -0.1365044266, -0.1412655115, -0.155371815, -0.5547289252, 0.2692195177, -0.0087650251, 0.3187671006, -0.0622065775, 0.1735355705, 0.0958019868, -0.3215235174, 0.7063748837, -0.4964002371, 0.3165665865, -0.1399885863, 0.1110570207, -0.2298851609, -0.0491953455, 0.0671402216, 0.5040479302, 0.3228376806, 0.4788026512, -0.5162236094, -0.1750156581, -0.075126119, -0.1289159358, -0.1281861663, 0.0594615117, 0.0228706039, -0.3002933264, -0.4215447307, 0.1887880415, 0.3063989282, 0.2770501673, 0.0518917888, -0.2193970084, 0.3188140988, 0.2212809026, 0.0229088627, -0.2275489122, 0.1335599124, -0.1879023015, 0.2021278888, -0.1143594608, 0.4323266447, 0.1717755795, 0.5983044505, 0.2687431276, -0.4139603674, 0.1665770113, 0.2419051975, 0.1071366966, 0.4570726156, 0.3681820035, 0.5053195357, -0.1278749704, 0.6252368689, -0.1588731706, 0.0864875615, 0.296878159, -0.060181383, -0.4794922769, -0.0832523704, 0.3276689649, -0.0802075863, 0.2636482418, 0.3314414322, 0.5279407501, -0.1235501692, 0.0202960148, -0.0381025337, 1.1130714417, -0.0583432391, 0.0578487664, 0.0041181883, -0.0414130539, 0.4377798438, -0.4682847559, -0.1425237358, -0.2094335854, 0.1779599339, 0.0894430131, 0.134574756, -0.2345553935, 0.0899245515, -0.2019416094, 0.3505271673, -0.2769033909, 0.2809253335, -0.1588519961, 0.3916325569, -0.4058913887, -0.1583195031, -0.1284580231, 0.0584466234, -0.0909401551, -0.331125468, -0.0702784061, -0.0950872526, -0.1275932491, -0.1074143201, -0.5708923936, -0.0636013374, 0.0004358807, 0.3380931616, -0.4917285442, -0.315484941, 0.1562898904, -0.4691046774, 0.3127965033, 0.0938069597, -0.4064916372, 0.1852856874, -0.4057433307, -0.0971232951, -0.1611230671, 0.1093930379, 0.1625922024, -0.0697770864, -0.4163146317, 0.1334853023, -0.0091462918, -0.3881596029, -0.012976489, 0.1279250234, -0.1025356054, -0.2636637688, 0.1066533998, -0.0095814392, -0.3657341897, -0.2438113838, 0.0179571491, 0.0903401896, -0.1796814948, 0.2739752233, 0.296007216, -0.211983636, -0.0123951258, 0.1991844475, -0.0537809804, 0.0990788713, 0.3860095441, 0.2423333377, -0.2541514039, -0.0841523409, -0.055310417, -0.0755574927, -0.4445444047, 0.4413740039, -0.0848476738, 0.308729738, 0.1015859917, -0.0405567735, 0.0157925449, 0.2483615428, -0.0911066458, -0.1736638397, 0.1862211525, 0.1417162418, -0.1998609304, -0.0297535434, -0.1229000837, -0.0566110685, 0.1193428785, 0.1861167997, -0.1930736154, 0.3509408832, -0.4007077813, 0.2105645686, -0.1743062437, -0.3538612723, 0.0895700455, -0.2283705026, -0.0938910544, 0.1252785772, -0.1621547341, -0.1022587046, -0.0195862912, 0.1964216679, 0.083943665, -0.3124630451, -0.0875099301, -0.1530396789, -0.1308471262, 0.0268603712, 0.0356452018, -0.0677773058, 0.0334392749, -0.5789974928, 0.7358369827, -0.0361270085, -0.2518905401, 0.4608733952, 0.4714361727, 0.3461841047, -0.0389171392, 0.2725034654, 0.0916234925, 0.007640332, -0.314483434, 0.1641410291, 0.3277435601, -0.0872463286, 0.4020118415, -0.3977808654, -0.1197600812, 0.0547092445, 0.3303338587, 0.1851739734, 0.0146340625, -0.0546095967, 0.3089098334, 0.1131806448, 0.1183306277, -0.1680308133, 0.4714852571, -0.2535240352, 0.1602525711, 0.052402176, 0.2258312851, -0.0528435707, -0.1727029979, 0.0487793125, 0.6960732341, 0.0667148679, -0.1037387624, -0.008855205, 0.1603171974, -0.0028874935, 0.055256661, 0.0855943561, 0.158742249, 0.2398810983, -0.2597721517, -0.0247579031, 0.0810756683, -0.1324294209, 0.0280589908, -0.323487848, -0.1534930468, 0.1336959302, -0.1826828569, 0.0587232187, -0.0790677592, 0.4739967883, -0.1975657493, -0.010671895, -0.2928483486, 0.2152095437, -0.0161776785, 0.295820713, -0.0853673667, -0.1715694517, -0.1998127848, 0.1981723905, -0.0412851386, -0.1536490768, -0.116404295, 0.2075319886, 0.2875376344, 0.0935870856, 0.1173879057, 0.238487646, 0.3955607414, -0.1984385103, 0.0683682188, 0.3935747743, -0.3622013927, -0.2874156535, 0.1339674741, 0.7025143504, 0.0977837592, -0.1994868964, 0.3402724564, 0.4385060966, 0.0681113377, 0.1984655261, -0.0702250153, 0.1841469854, 0.061029356, 0.0633112043, 0.0504409634, -0.0872219279, -0.2890258729, -0.0295255091, 0.0431918129, 0.0946706757, 0.1488716155, 0.0338754468, -0.3392103016, -0.3985620141, -0.089110285, -0.0985588655, 0.2941328287, 0.1255174577, -0.4562630951, -0.0739454851, -0.132107988, 0.0155425603, -0.39080742, 0.8156514764, 0.3819980621, 0.2064223588, -0.1209915504, -0.2801371217, -0.0010844081, 0.1505639851, -0.6568579674, 0.0593557991, 0.2319651693, 0.2295224518, 0.0315279141, 0.0968222246, 0.1793155372, 0.2548395693, -0.3665516675, 0.3323840797, -0.3312628567, -0.0168658197, 0.2843335271, 0.0977281779, -0.0496558622, -0.2298600525, 0.4295735359, 0.1687476188, -0.1393807679, 0.0628723651, 0.012419546, 0.0647633523, -0.5121389031, -0.0849658027, -0.0206213947, 0.2823025286, 0.1471560299, -0.0703323931, -0.1107446924, -0.2706490159, -0.0874089673, -0.1798666567, -0.083949469, 0.1054444835, -0.0164783616, -0.3133306503, -0.1274044812, 0.4828971326, -0.2610628307, 0.1304242015, 0.3861735761, -0.369809866, 0.1153287217, 0.1564034075, 0.0469345525, -0.0716479123, 0.113161169, -0.061060641, -0.4114777148, -0.2768884003, 0.3244222999, -0.0343875252, -0.3580410182, -0.1551435441, 0.4170832038, 0.329598397, -0.1175906658, 0.1458362192, -0.18253842, 0.1426880807, 0.1867703199, -0.3391731679, 0.4615472853, -0.1437987685, -0.1474925429, 0.0780907273, 0.0262966994, -0.067411162, -0.3380279541, 0.0124717858, -0.0932734907 ]
https://github.com/huggingface/datasets/issues/3872
HTTP error 504 Server Error: Gateway Time-out
Okay. I didnt saved the dataset to my local machine. So, I processed the dataset and pushed it directly to the hub. I think I should try saving those dataset to my local machine by `save_to_disk` and then push it with git command line
I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue.
44
HTTP error 504 Server Error: Gateway Time-out I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue. Okay. I didnt saved the dataset to my local machine. So, I processed the dataset and pushed it directly to the hub. I think I should try saving those dataset to my local machine by `save_to_disk` and then push it with git command line
[ -0.3648714423, -0.41700387, -0.0489485897, 0.2769415677, 0.0937842503, 0.0458760969, -0.063487865, 0.3118470013, -0.3693114519, -0.2590149045, -0.0208444595, 0.03183081, 0.1456531435, 0.4787338972, 0.0548850112, 0.0348590761, 0.0170293879, -0.0898096934, -0.0503739826, 0.0089108087, -0.2298814505, -0.0986442789, 0.0768200904, 0.1580987424, -0.5101858974, -0.2459980994, 0.0203537345, 0.32590729, -0.1881614625, -0.2925831974, -0.0957959592, -0.1146255061, 0.1363119185, 0.3829472065, -0.0001243354, 0.0131835816, 0.21271348, -0.0042686146, -0.4189226329, -0.0438131839, -0.5294633508, -0.3326719999, -0.0933780968, -0.0618285537, 0.13187024, 0.0334844291, -0.2280597687, 0.0113811288, 0.3892336786, 0.4624423087, 0.0777101591, 0.0016874963, 0.4364640117, 0.0016636883, 0.0935602412, -0.2546637952, -0.0834211335, 0.3832490444, 0.1562022269, 0.1421724707, 0.2064027488, -0.0849776417, 0.065159671, -0.1451610029, 0.089583315, -0.2994664907, 0.1165324375, -0.3461744487, -0.0316027924, 0.0812003314, 0.2451851368, -0.1148740053, -0.491822958, -0.2543775737, -0.3212640882, -0.4765678942, 0.2058271021, 0.3347838223, -0.0270307288, 0.1153858826, -0.1430811733, -0.3523397446, -0.0730012655, 0.0985703096, 0.0497827791, 0.0994725525, -0.0256294925, 0.2247611731, 0.0031479157, -0.0640200898, 0.0070112273, 0.0332225785, -0.0485309437, -0.2880665362, -0.4885909557, -0.1183749363, -0.0121361623, 0.2435730547, 0.0986431092, 0.355399996, 0.0456877984, 0.0848963633, -0.0231392179, 0.1398047209, 0.4601658583, 0.0628702119, 0.0828242376, -0.0513501093, 0.1644272655, 0.2562797964, -0.0070298323, -0.0575436167, 0.2031482756, -0.2479488105, 0.118209675, 0.020458255, 0.3487369418, -0.234613508, -0.0874195099, 0.1279768348, 0.0522406064, 0.1227461696, 0.1602026373, 0.2388447076, -0.1497695148, 0.2678531408, -0.3206933737, 0.1600491554, -0.2621201575, -0.3257354498, -0.2119438648, 0.3066497147, -0.0106231198, 0.2358994037, 0.0317607932, -0.4011105597, -0.118866697, -0.0352222361, 0.0968226418, -0.2013220936, -0.0006081453, -0.2938671708, -0.0743032396, 0.1993243098, 0.1594528705, 0.3238722384, 0.3642530739, -0.0157588087, -0.0981738046, -0.2610731125, -0.4943359792, -0.5729166269, 0.1670269817, 0.0810035244, 0.0046169041, 0.0051096394, -0.6377888918, -0.1372286826, 0.1245151609, -0.0713844672, -0.019761499, 0.0858000815, -0.0165097695, -0.1163844019, 0.011094409, 0.3182049394, -0.3984923661, 0.3429354131, 0.2239505649, 0.3183431327, 0.0906293765, 0.3288417161, -0.0395095684, 0.1431097835, -0.0104262577, 0.0390742496, 0.1587816477, -0.5656517148, -0.2274550796, 0.053526774, -0.253585726, -0.4784101248, -0.3279522955, -0.2018516064, 0.4789022505, -0.0344176926, 0.4017554522, 0.1206784099, 0.0491847582, 0.1942806095, -0.3975713551, -0.230591774, -0.2206050754, 0.1402060688, 0.0143401027, -0.0524760336, 0.2036405951, -0.0655012876, -0.0400695764, 0.1687001884, 0.340934664, 0.4688006043, 0.3585641682, 0.0292496495, 0.1658181101, -0.078874737, -0.0555414334, 0.0575232394, -0.0230311304, -0.0081673479, -0.2266612351, 0.1589867324, -0.4447798133, -0.0177319646, -0.1459083706, 0.3133582473, -0.0070440345, -0.4491534233, 0.2095729858, 0.2059505433, 0.0665895268, 0.4156356752, -0.3304723799, 0.2850571573, -0.2820768058, 0.4939349592, -0.0359194018, -0.2951482832, 0.1844307184, -0.0357563421, 0.4606665671, -0.1416727453, -0.1858458817, 0.126943782, 0.0329260081, -0.023506077, 0.2240304947, 0.2105034739, 0.2136949003, -0.1325576007, -0.0039102305, -0.2529219985, 0.1083742455, 0.0477916934, -0.0671792254, 0.1531024724, -0.0917403847, 0.401150912, 0.1438847631, 0.2613969147, 0.1004068255, 0.1147189885, 0.3153219521, 0.2103767991, 0.0311467256, 0.0674576312, 0.1717839986, -0.30760324, 0.359441936, 0.1719579846, 0.1919003278, 0.1008120999, 0.1297651827, 0.0704198629, 0.0175784566, -0.1935471296, 0.2681053877, 0.1256088018, -0.0436090119, -0.0054579461, -0.0752488077, -0.0030218507, 0.1163183078, -0.0141781447, 0.0941579491, 0.1474957019, 0.1574336439, -0.0385151543, 0.063045226, -0.1052183583, -0.2076167613, -0.1995035261, 0.3377840221, 0.5914258361, -0.3241797686, -0.0554769859, -0.1580505818, -0.0424058847, 0.3093800247, -0.1118764654, -0.4721504152, -0.5671286583, -0.0967472717, 0.2416713536, -0.1971944422, 0.1089989021, 0.1592033505, 0.0338426605, 0.354346633, -0.0619836189, 0.0655318573, -0.1483709216, 0.0103209857, -0.0441738889, 0.1448936462, 0.1356775165, 0.1455859989, 0.0458419509, -0.0973373502, -0.4543622434, 0.1134635881, 0.16235964, -0.106820263, 0.1346420646, -0.2567928433, 0.4093986154, -0.1687912345, -0.0010917258, 0.3580109179, 0.0151721891, -0.0094425427, 0.0290732998, -0.1196434498, 0.1147515103, 0.3363602161, -0.0231518149, -0.0800124481, -0.4782935381, 0.3493708372, 0.080917947, 0.1185147911, -0.0613466278, 0.0385423601, 0.1592759639, 0.122783944, -0.1596942246, -0.1241164804, -0.4775104225, 0.2683080137, -0.1211214215, -0.1019164771, 0.0955674425, 0.2033238113, 0.2345987111, 0.1650903672, -0.3034330904, -0.5878692269, -0.2999355197, 0.2031785697, -0.1840878278, -0.1769933701, 0.3668120801, -0.47206375, -0.0526077971, 0.2638711333, 0.0005920682, 0.159588173, 0.5713599324, 0.0850224793, -0.1152972206, 0.4327590168, -0.0086509166, 0.4062274098, 0.1874780506, 0.2446162105, 0.6442238092, 0.0624682941, 0.252435118, -0.0907051861, -0.1085842848, -0.0318136699, -0.0781692266, 0.0590675212, -0.0743108019, 0.1091840714, -0.0450717025, -0.2861787677, -0.7629001737, -0.2342287153, -0.252428323, -0.2175187469, 0.0976447165, 0.0996207967, 0.1162403971, -0.0631670207, -0.0988733917, -0.1303604394, 0.0112975426, 0.0427343287, -0.0776237994, -0.120656006, -0.2182632089, -0.2147064507, -0.5001027584, 0.2485122234, 0.0047604442, 0.4068307579, -0.0700810254, 0.1719033867, 0.1220778152, -0.2876296639, 0.6791177988, -0.5423060656, 0.1992610544, -0.1187502816, 0.0920682326, -0.3064024746, -0.0197422579, 0.1367022246, 0.343488425, 0.1436912715, 0.383648634, -0.3782742918, -0.1382902116, -0.0461797789, -0.0542236343, -0.1838908494, 0.0242919866, -0.0130458269, -0.350669533, -0.4615066051, 0.2063190192, 0.1971237212, 0.2328436375, 0.0499810241, -0.2491837889, 0.2938704193, 0.1971767247, 0.0315761194, -0.1826688051, 0.1760503054, -0.1850256771, 0.2542938888, -0.0233506188, 0.4520507157, 0.1772683412, 0.5035805106, 0.2222455144, -0.362015903, 0.1474205852, 0.2126030326, 0.1801142097, 0.4247050285, 0.2494820803, 0.3846021891, -0.0719559714, 0.5694483519, -0.2332237959, 0.1755401641, 0.2789004147, -0.0836577564, -0.497325182, -0.0587081462, 0.4320931733, -0.0607923567, 0.1765243709, 0.4184474051, 0.5355463624, -0.0591196306, 0.1605466157, 0.0433859304, 1.1320989132, -0.0716605335, 0.135067448, 0.0246977471, -0.0520329513, 0.4068549573, -0.4646473527, -0.1458670646, -0.2379187196, 0.0497639403, 0.0273794588, 0.1407882273, -0.1654813886, 0.1719359607, -0.1419425011, 0.3067271113, -0.2201145887, 0.2395962775, -0.2107699513, 0.3776811063, -0.4999108613, -0.1972469687, -0.1881911308, 0.0686392114, -0.1250266731, -0.2047894448, -0.0782571062, 0.0261077471, -0.0882904455, -0.1274731308, -0.4388582408, -0.0639994144, -0.0230452362, 0.4366117418, -0.5056638718, -0.310908854, 0.158989206, -0.32790941, 0.2858407199, 0.0529996529, -0.3756572604, 0.1765347719, -0.3763730228, -0.249642387, -0.1331765801, -0.0179923493, 0.2088592798, -0.0930776149, -0.4191366732, 0.1723028868, 0.01184256, -0.1571647376, -0.078898944, 0.1926742345, -0.141528219, -0.3187436461, 0.0773297921, -0.0797472, -0.3127013445, -0.2848958671, 0.0222863555, 0.2038011253, -0.1312027127, 0.3634570837, 0.2197710723, -0.1533918977, -0.0883725807, 0.3674137294, -0.0462015457, -0.0170498826, 0.4849698544, 0.1882888526, -0.263043195, -0.1222348511, 0.0880573615, -0.0825303122, -0.3945291936, 0.3375799954, -0.1343203634, 0.3118005991, 0.0070515508, -0.1200267002, 0.1283357888, 0.1609352231, 0.0392794721, -0.2892076373, -0.0370033719, 0.2182650715, -0.1443807632, -0.0503765047, -0.0850190595, -0.0287177954, 0.2095367908, 0.2463982552, -0.1859001368, 0.3384511173, -0.3975348473, 0.1542497128, -0.0805828497, -0.3721835613, 0.1464253217, -0.2715952694, -0.0903199911, 0.24604249, -0.1684158146, -0.0825320482, -0.1282042414, 0.1941875368, 0.114114143, -0.291187048, -0.1177299172, -0.262206465, -0.1183813363, 0.0721108168, -0.1204072088, 0.0517700315, 0.1269715726, -0.5278906226, 0.6597738862, -0.0982215032, -0.2895028591, 0.4224205911, 0.3862870932, 0.2946652174, 0.0180433709, 0.25902614, 0.1192058474, -0.0112242866, -0.2613349557, 0.099365212, 0.2318310142, -0.2470208406, 0.4755016863, -0.4655774832, -0.130851537, 0.0057818764, 0.3280510008, 0.3156186938, 0.0400725193, -0.0189259555, 0.2739765644, 0.1037935689, 0.1195335165, -0.1298569888, 0.5332522392, -0.2314527184, 0.0282776784, 0.030091837, 0.1987112314, 0.0891260803, -0.2650690973, 0.1011112854, 0.5827302337, 0.0049592578, -0.0587967522, -0.1100753397, 0.1656648815, 0.0276534259, 0.1687588245, 0.191494137, 0.2290014476, 0.2693857253, -0.1702048033, 0.0105184698, -0.0888918042, 0.0799920261, -0.0213199351, -0.4713145792, -0.2125359178, 0.1171691045, -0.2874046564, 0.0389702655, -0.1469123363, 0.5839204788, -0.2046373487, 0.0151522914, -0.2900867164, 0.2827392817, -0.0927073509, 0.2333642542, -0.0674483702, -0.1921694577, -0.1740910113, 0.1823882461, -0.0053051547, -0.2425314933, -0.055021964, 0.1867517382, 0.217214182, -0.0036334016, 0.0880687386, 0.3314099312, 0.3492208123, -0.2202491462, -0.0010310735, 0.426422447, -0.3686761856, -0.3769829571, 0.0062471642, 0.7024786472, 0.0443985723, -0.2278697491, 0.4213348925, 0.4478732347, 0.0666886866, 0.2012877017, -0.0755780861, 0.2711393237, 0.1183594689, 0.2732107937, 0.0590920188, -0.0754483715, -0.3206909299, -0.0693344027, 0.12974374, 0.1221931428, 0.1084158793, 0.0062484117, -0.2449808568, -0.4302978218, -0.1528033614, -0.1822022945, 0.3191792071, 0.3218486607, -0.3438791931, -0.0136572812, -0.1154427975, 0.0013242483, -0.4231554568, 0.7757117748, 0.4718877673, 0.2104089707, -0.2753582895, -0.2904485166, -0.1047411561, 0.1184130237, -0.6764798164, 0.1484728903, 0.2252756953, 0.2572668791, -0.0230775662, 0.0267224256, 0.1453214139, 0.4765985906, -0.3776697218, 0.3206884563, -0.2906686068, -0.1052033082, 0.1777688265, 0.1121200025, -0.0460804701, -0.1317968518, 0.4266212285, 0.3649909198, -0.1783603877, -0.0157453101, -0.0123502081, -0.0564756729, -0.6031292081, -0.0106428191, -0.0151640866, 0.3201570809, 0.1694673449, -0.0815938562, -0.0252962057, -0.2667419314, -0.026561074, -0.0821917057, -0.0019728257, 0.2522335649, 0.0193693638, -0.2128241807, -0.1818013787, 0.5314321518, -0.2318739146, -0.0007119601, 0.3363857865, -0.2498748749, 0.2005249411, 0.2293803245, 0.203247264, -0.0488651432, 0.1227491796, 0.0568484887, -0.3809600472, -0.4019533396, 0.3589884937, 0.0320283175, -0.2525044382, -0.1025573015, 0.4198779762, 0.3418567181, -0.1071446761, 0.0331287459, -0.2029899508, 0.2100439817, 0.0490867235, -0.3177837133, 0.3706715107, -0.0683148727, -0.1723436862, -0.0182529707, -0.0036821687, -0.0346849225, -0.2987729013, 0.1694398224, -0.0941720754 ]
https://github.com/huggingface/datasets/issues/3872
HTTP error 504 Server Error: Gateway Time-out
`push_to_hub` is the preferred way of uploading a dataset to the Hub, which can then be reloaded with `load_dataset`. Feel free to try again and see if the server is working as expected now. Maybe we can add a retry mechanism in the meantime to workaround 504 errors. Regarding `save_to_disk`, this must only be used for local serialization (because it's uncompressed and compatible with memory-mapping). If you upload a dataset saved with `save_to_disk` to the Hub, then to reload it you will have to download/clone the repository locally by yourself and use `load_from_disk`.
I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue.
93
HTTP error 504 Server Error: Gateway Time-out I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue. `push_to_hub` is the preferred way of uploading a dataset to the Hub, which can then be reloaded with `load_dataset`. Feel free to try again and see if the server is working as expected now. Maybe we can add a retry mechanism in the meantime to workaround 504 errors. Regarding `save_to_disk`, this must only be used for local serialization (because it's uncompressed and compatible with memory-mapping). If you upload a dataset saved with `save_to_disk` to the Hub, then to reload it you will have to download/clone the repository locally by yourself and use `load_from_disk`.
[ -0.3772861063, -0.4499162734, -0.0528412275, 0.1917434037, 0.0723698512, -0.0209483299, -0.0438145809, 0.3406634927, -0.312343657, -0.2927145958, 0.046363499, 0.1022304744, 0.2157945335, 0.4923057258, 0.000318272, 0.0172537398, 0.0521848463, -0.0827601403, -0.069590956, 0.0098864418, -0.2126475573, -0.100777559, 0.0573989004, 0.102608107, -0.5041133165, -0.1804789752, 0.0588860512, 0.317471087, -0.2073102146, -0.3262280524, -0.1001498774, -0.0635438114, 0.1090135127, 0.3926458061, -0.0001230279, -0.0216594674, 0.2338331491, 0.054099001, -0.4372362792, -0.0317660347, -0.5582008362, -0.3422936201, -0.0521943755, 0.0205372516, 0.1528574526, 0.132682845, -0.1972375065, 0.0444326811, 0.366327554, 0.4274440408, 0.0835868344, -0.002781644, 0.4537231326, -0.0506938733, 0.0479882881, -0.3276717365, -0.077708669, 0.3646621108, 0.2345075607, 0.1147920787, 0.1570214033, -0.1149130836, 0.0852693021, -0.0804207847, 0.1531532854, -0.3478314281, 0.133223623, -0.3080151975, -0.051309187, 0.1136408299, 0.263861537, -0.1194805279, -0.4548140168, -0.2580794394, -0.3523034453, -0.3883291483, 0.2454733849, 0.24846977, -0.0582686253, 0.0855777115, -0.0945753381, -0.3569790423, -0.0088243857, 0.0881064087, 0.0153685836, 0.1452085972, 0.0376848429, 0.2416582853, 0.0324460156, -0.1029639244, -0.0202760566, 0.0545516014, -0.0840347409, -0.2581087351, -0.574162066, -0.1249884292, 0.0490085445, 0.1909157187, 0.1176392809, 0.4242338836, 0.058334928, 0.0549473278, -0.0087024393, 0.1903443635, 0.5122083426, 0.0397984199, 0.0920360163, -0.0935682952, 0.1221321076, 0.3158602715, 0.0388411246, -0.0440220013, 0.1751120985, -0.304929167, 0.0441845246, -0.0188138597, 0.3481652141, -0.1553940028, -0.1164541394, 0.0018176481, 0.0745817423, 0.1376428157, 0.1933188587, 0.1995637566, -0.130138889, 0.2826623917, -0.2764199972, 0.1464176327, -0.2691442072, -0.3223248422, -0.2157494724, 0.3450805843, -0.1025023013, 0.1868946105, 0.0564511567, -0.4378087223, -0.2004394382, 0.0410473123, 0.1210930943, -0.2015158534, -0.0477600433, -0.2085365951, -0.1417891979, 0.1327200383, 0.1441733688, 0.3217042387, 0.3593087494, 0.0129725998, -0.1133808419, -0.2661960125, -0.5282152295, -0.5475773811, 0.1796761751, 0.0934403688, 0.0455197766, -0.0095182797, -0.6094771624, -0.1043544561, 0.0460515954, -0.1117110699, -0.0221506581, 0.1141242608, 0.006195914, -0.068589747, -0.0053341743, 0.3328401446, -0.3689288199, 0.3342685103, 0.2272831202, 0.3300445378, 0.0489414446, 0.2875009775, -0.0070693926, 0.0427442491, 0.0023080388, 0.0187260602, 0.1254795641, -0.5967650414, -0.1963546574, 0.1106652617, -0.2966757417, -0.4900277853, -0.3088030517, -0.1809913963, 0.3949463069, -0.0236609988, 0.445764333, 0.1896989346, 0.0662896931, 0.1714085788, -0.3383088708, -0.1754683256, -0.2017685622, 0.1565120667, -0.0494083799, -0.0386829898, 0.1746988744, -0.0316736363, -0.0445854291, 0.2224467844, 0.2885768116, 0.3772687316, 0.3414939642, 0.0119067747, 0.1740316749, -0.0245585945, -0.0152711682, 0.0807040557, 0.0001534309, 0.0971041545, -0.2636392415, 0.1844609529, -0.4588822722, 0.0368184075, -0.1217055023, 0.3685609996, 0.0073170899, -0.4713351727, 0.1921050549, 0.1543769985, 0.0744092092, 0.440138191, -0.3341597319, 0.3136613071, -0.2858884335, 0.4719208777, 0.0496251658, -0.2516776323, 0.1786372513, 0.0064208265, 0.4598092735, -0.1051865816, -0.1383993924, 0.1695702225, 0.0664446652, -0.0392953679, 0.2962171435, 0.2412146181, 0.1962246597, -0.0406321734, -0.0043244641, -0.2264465392, 0.089443922, 0.0042662332, -0.0276942048, 0.1333101243, -0.1059096754, 0.4462153018, 0.1466102004, 0.3094750643, 0.0979240164, 0.1129173487, 0.2934960127, 0.2406596541, 0.0499259755, 0.0656435341, 0.1304173023, -0.3172136247, 0.4150718749, 0.1408966929, 0.1054711789, 0.0937836319, 0.1073967442, 0.0168836191, 0.0300994869, -0.2142565697, 0.2729046941, 0.1389678717, -0.1399904042, 0.0015076702, -0.0354148746, -0.0304886792, 0.0872797146, 0.0086764498, 0.070699513, 0.0661744475, 0.1159540415, -0.0652362481, 0.0378654823, -0.1451426446, -0.2076563835, -0.2965589464, 0.3471050262, 0.5851224065, -0.2722340822, -0.0760578737, -0.0934427232, 0.0025231836, 0.352065742, -0.1693074852, -0.4985731244, -0.624808073, -0.1138168275, 0.2236973196, -0.1728802025, 0.1125550941, 0.1429986805, 0.0158261713, 0.3831650019, -0.1117201298, 0.0530792214, -0.127046138, 0.0445872657, -0.0313239396, 0.1610207558, 0.1035084054, 0.1107824445, 0.052759055, -0.0737086311, -0.4350571036, 0.0797682852, 0.1725901067, -0.117003575, 0.085238412, -0.2009636462, 0.391400367, -0.1197733656, 0.0257479902, 0.3599486947, 0.0036055369, 0.0367536396, 0.0960721672, -0.1412958652, 0.0780100971, 0.3443881571, -0.0033616603, 0.0245374124, -0.4813534319, 0.3068942428, 0.0519865863, 0.0885203779, -0.0098566022, 0.1157792434, 0.1113718674, 0.1694014519, -0.1469597667, -0.1351214349, -0.430834651, 0.2510930002, -0.0657347292, -0.0581847653, 0.105586648, 0.2321407944, 0.2221334875, 0.1953172684, -0.2368519753, -0.6319937706, -0.3062055707, 0.2223103493, -0.2175772041, -0.1988438815, 0.314576, -0.4653943777, -0.0926440582, 0.2337777317, 0.0226953514, 0.1406391859, 0.5354372859, 0.0512210838, -0.0658347383, 0.4104046822, 0.0699984059, 0.3227867782, 0.1647178978, 0.2501215339, 0.6182125807, 0.0641317815, 0.2593075335, -0.0502896048, -0.0372431129, -0.0439009629, -0.0754939169, 0.0896015093, -0.0988884643, 0.1053452864, -0.0607170723, -0.3346976042, -0.6989380717, -0.1717125028, -0.2218552232, -0.2112388015, 0.0262055378, 0.1027499065, 0.0962333009, -0.0718278512, -0.1176459864, -0.1446139365, 0.0452132188, -0.0200926643, -0.0828907639, -0.177695781, -0.1801809818, -0.1849022806, -0.5194340348, 0.248007521, -0.0203985926, 0.4212552905, -0.054823678, 0.1310512871, 0.1483282745, -0.2613049448, 0.7312479019, -0.5161095262, 0.2746118605, -0.1243339479, 0.1168731004, -0.3054800034, -0.0004268129, 0.1011431068, 0.4197648764, 0.1286041886, 0.3470369875, -0.4188014865, -0.1536201239, -0.0875729918, -0.1629940569, -0.0652560145, -0.0217597876, 0.0392206684, -0.3634940684, -0.4332827032, 0.1869644374, 0.224339813, 0.3152446151, 0.0752789974, -0.2680261135, 0.3399879336, 0.237409696, 0.0798882246, -0.1668510139, 0.1390552521, -0.1917203367, 0.2325055897, -0.0674916133, 0.4107229412, 0.1451956034, 0.5120453238, 0.2425270826, -0.3981743455, 0.1337016523, 0.2474293113, 0.1608482897, 0.4346154332, 0.3546937406, 0.4573098123, -0.0887425318, 0.5387046933, -0.2356045395, 0.1500217617, 0.340618968, -0.0447144099, -0.4956270158, -0.0940764397, 0.4283449948, -0.0712071359, 0.1665332764, 0.4588761926, 0.5559258461, -0.0291157831, 0.0715861171, -0.0137206372, 1.1410956383, -0.0898692831, 0.0795999989, 0.0607651472, -0.0490855165, 0.3497400284, -0.4840098023, -0.1093857586, -0.2556850314, 0.0792067572, 0.0477240048, 0.1669708788, -0.2107742578, 0.166461125, -0.1416442394, 0.2369490415, -0.2661263943, 0.2666552663, -0.224679023, 0.3441508412, -0.5798579454, -0.1894835234, -0.2013470232, 0.0835155472, -0.1098297462, -0.2823024988, -0.056098897, 0.0001183418, -0.0514120422, -0.1521113813, -0.4326385558, -0.0545988902, 0.0055446704, 0.3984855711, -0.4449181855, -0.285081327, 0.1967767179, -0.3261274993, 0.2251020074, -0.0047956831, -0.3410493433, 0.242571041, -0.376588732, -0.2556345463, -0.134843722, 0.0373433121, 0.1977632493, -0.0512339659, -0.4340999126, 0.1899852306, 0.0318929553, -0.1899991781, -0.0319830254, 0.2556156218, -0.156069532, -0.3534346521, 0.0916972235, -0.0213755332, -0.2832479477, -0.2555398941, 0.037538033, 0.1713808626, -0.1869624555, 0.2569414973, 0.2760370374, -0.1942100525, -0.0149445264, 0.3523929417, -0.063598372, -0.0291228369, 0.4457247853, 0.2616585195, -0.2812935114, -0.0920945331, -0.0193217527, -0.0408693478, -0.3535611928, 0.3419842124, -0.0976322144, 0.3158707023, 0.0203648414, -0.1284968704, 0.0846381485, 0.1907529831, 0.0445815101, -0.2679667771, 0.1185180992, 0.220980987, -0.2354140878, -0.0755165145, -0.1379645169, -0.0784479678, 0.204768911, 0.2407327592, -0.1995057613, 0.3568956256, -0.3408789635, 0.1477590203, -0.0999007076, -0.3749539256, 0.1399076581, -0.2528009415, -0.0771048293, 0.1878044605, -0.2232020795, -0.0878619701, -0.0713951737, 0.1737956703, 0.1528784186, -0.3083553016, -0.1157089993, -0.211824283, -0.1686434597, 0.0615140423, -0.0535667539, 0.0241018906, 0.0261853933, -0.5437908173, 0.6901686192, -0.0337901339, -0.226235047, 0.4388383627, 0.4387869537, 0.2871043682, 0.0362131372, 0.2266632766, 0.0943536088, 0.010257218, -0.2475427687, 0.1852563024, 0.2896845937, -0.3038806319, 0.4492393434, -0.4570130706, -0.0927494243, -0.0316662081, 0.382805109, 0.3346947134, 0.0081991022, -0.0327369347, 0.1973814219, 0.1158614382, 0.1352485865, -0.1415356249, 0.4935930371, -0.2298129648, 0.0898133591, -0.0481583402, 0.2454786897, 0.0431831665, -0.2397916913, 0.096276544, 0.5723032355, -0.0141143855, -0.0657788962, -0.0848180205, 0.1314654201, 0.008704395, 0.2142960578, 0.2010815442, 0.150536254, 0.2861434519, -0.1769967377, 0.0183733441, -0.0889582261, 0.0118961036, -0.0674722865, -0.4578289092, -0.190704301, 0.1789800674, -0.2289018035, 0.0210214686, -0.1354828626, 0.6381880045, -0.2579309046, 0.0890590921, -0.3094947934, 0.1735785455, -0.0804855973, 0.2170229405, -0.0697485432, -0.2011755854, -0.2782911062, 0.1671056449, 0.0328368619, -0.202955842, -0.039053496, 0.1150846556, 0.2712127268, -0.0519858077, 0.0554296449, 0.3578363955, 0.3496869206, -0.2462415099, -0.0559865125, 0.402076453, -0.3054605126, -0.2541733086, -0.0044271359, 0.7304106951, 0.0409446359, -0.2821246386, 0.3888534904, 0.3772557974, 0.0610688403, 0.2251241803, -0.0372579768, 0.2488499582, 0.1040934026, 0.1679991335, 0.0763118491, -0.0924874395, -0.3448625803, -0.0483266897, 0.1420931667, 0.0986588076, 0.0733516738, -0.032429181, -0.2239595354, -0.4697710872, -0.1464133859, -0.1780818552, 0.2751026452, 0.2795330882, -0.3543000817, -0.0764485523, -0.1343853623, 0.0071038227, -0.4176899195, 0.7556754351, 0.4292467535, 0.2070270032, -0.185498476, -0.3326607943, -0.0468664579, 0.117415376, -0.6595676541, 0.0857731923, 0.2385707647, 0.1802423894, 0.0086635072, 0.0070753628, 0.1475753337, 0.4343186617, -0.4128697217, 0.2836045623, -0.239723444, -0.1079278663, 0.1811424494, 0.0887703896, -0.0916691199, -0.1448605657, 0.3818054497, 0.3393015862, -0.1804896891, -0.0101211611, -0.0533149764, -0.0487413406, -0.576906383, -0.0218948331, 0.0276895445, 0.3918241262, 0.148707822, -0.0625502542, -0.1128145158, -0.3028452396, -0.0601509772, -0.1033009067, -0.0425254442, 0.1872610152, 0.0493385047, -0.2441274524, -0.1064656675, 0.6185083389, -0.2498245686, -0.0227706786, 0.2796123028, -0.2736497819, 0.1929461807, 0.2718500197, 0.1305132359, -0.096392639, 0.1618336737, 0.031764444, -0.331386596, -0.3723554611, 0.3325309753, 0.0157229882, -0.3335413933, -0.1063186154, 0.3659931719, 0.2957769036, -0.0850151107, 0.0395430736, -0.1851031929, 0.1074979827, 0.1047272161, -0.3212812543, 0.3764309287, -0.1184101626, -0.1591961235, -0.0234437753, -0.0273170173, -0.0368770845, -0.2985756695, 0.149431169, -0.080319114 ]
https://github.com/huggingface/datasets/issues/3869
Making the Hub the place for datasets in Portuguese
Hi @omarespejel! I think the philosophy for `datasets` issues is to create concrete issues with proposals to add a specific, individual dataset rather than umbrella issues for things such as datasets for a language, since we could end up with hundreds of issues (one per language). I see NILC - USP has many datasets, I would suggest to either create an issue for their datasets, or even better, we are trying to push to upload datasets as community datasets instead of adding them to the core library as guided in https://huggingface.co/docs/datasets/share. That would have the additional benefit that the dataset would live under the NILC organization. @lhoestq correct me if I'm wrong please πŸ˜„
Let's make Hugging Face Datasets the central hub for datasets in Portuguese :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the Portuguese speaking community. What are some datasets in Portuguese worth integrating into the Hugging Face hub? Special thanks to @augusnunes for his collaboration on identifying the first ones: - [NILC - USP](http://www.nilc.icmc.usp.br/nilc/index.php/tools-and-resources). Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). cc @osanseviero
114
Making the Hub the place for datasets in Portuguese Let's make Hugging Face Datasets the central hub for datasets in Portuguese :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the Portuguese speaking community. What are some datasets in Portuguese worth integrating into the Hugging Face hub? Special thanks to @augusnunes for his collaboration on identifying the first ones: - [NILC - USP](http://www.nilc.icmc.usp.br/nilc/index.php/tools-and-resources). Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). cc @osanseviero Hi @omarespejel! I think the philosophy for `datasets` issues is to create concrete issues with proposals to add a specific, individual dataset rather than umbrella issues for things such as datasets for a language, since we could end up with hundreds of issues (one per language). I see NILC - USP has many datasets, I would suggest to either create an issue for their datasets, or even better, we are trying to push to upload datasets as community datasets instead of adding them to the core library as guided in https://huggingface.co/docs/datasets/share. That would have the additional benefit that the dataset would live under the NILC organization. @lhoestq correct me if I'm wrong please πŸ˜„
[ -0.131591633, -0.1661401093, -0.1073713973, 0.1489173174, 0.1300486773, 0.0739368051, -0.0666677207, 0.1329706907, -0.0110315746, 0.121694997, -0.1681374013, -0.1752085686, -0.2794049382, 0.3597371578, 0.1305481941, -0.048543185, 0.3864607513, -0.0830101892, -0.0624550879, -0.0828536227, -0.1374317855, 0.1895622313, 0.061765343, -0.0221431982, -0.5731897354, 0.1409572959, -0.0939550027, 0.0365144275, -0.3856600821, -0.19780536, 0.1432899237, 0.426669836, 0.090236634, 0.5395274758, -0.0001211487, -0.2174620628, 0.159408167, -0.1447674483, -0.2986885011, -0.169572711, 0.0326141603, -0.1636140496, -0.1418242306, 0.1509007514, -0.0745384172, 0.0511059575, 0.1221260354, -0.2501288354, 0.0561026298, 0.2037096769, 0.0912350193, 0.2442047447, -0.1495299041, -0.1610298604, -0.0387695841, 0.6321375966, -0.1935620904, 0.059310928, 0.4104388356, 0.1063096374, 0.235214904, 0.2215269804, 0.1410434693, -0.467097491, 0.3823817968, -0.2803386152, -0.4004033506, -0.2770624757, -0.0423025414, 0.1242937371, 0.1987912059, -0.2461835444, -0.2474579364, -0.4921058118, 0.0139160324, 0.1875504106, -0.2977492213, 0.1847518831, 0.2452213466, 0.3560603857, 0.0315591134, -0.2882725, 0.1818153411, 0.2682682872, 0.295742631, 0.0275269765, -0.0491329022, -0.0506848469, 0.2020261884, -0.1031646654, 0.1342059225, -0.1309854984, -0.0159255695, -0.04993058, -0.0759665966, -0.0581398234, 0.2431373596, 0.8860695958, 0.4592111409, 0.0544611923, -0.1236671656, -0.0864407495, -0.1197907105, -0.0680439323, 0.0989301577, -0.169865042, 0.0282051861, -0.0124786347, 0.2145706564, -0.1661823392, 0.2371470034, -0.1121406332, -0.0572517738, 0.1770240217, -0.5738756657, -0.0291802045, 0.2026152909, -0.1842243671, 0.1285064667, -0.0909485817, 0.144572258, 0.0694066286, 0.2824079394, -0.043278534, 0.1853730679, 0.6113048792, -0.3046365976, 0.3581270278, -0.1008843705, -0.3880586922, -0.1439416707, 0.0923061669, -0.2378260642, 0.248875767, 0.2912693024, -0.3875368536, 0.2446027547, -0.0087733753, 0.4553106427, 0.0281120017, -0.2456565052, -0.0742892623, 0.1293115765, 0.0697322711, -0.2896449268, 0.0684678108, 0.133508265, -0.1016680375, -0.240012899, -0.1670934856, 0.1790441424, -0.5289663672, -0.0218971726, 0.0132679315, -0.2663722336, 0.1690118909, -0.3024172485, 0.4685302377, -0.3699346185, -0.0393563583, 0.206171602, 0.2481364906, 0.0510200001, -0.1277461946, 0.2412736714, 0.6300534606, 0.0377108157, -0.174281776, -0.127555266, 0.0633501932, -0.4614667594, 0.0972271338, -0.0286226664, 0.1539488137, -0.1885392815, 0.1348287016, -0.081708394, -0.6641499996, -0.3157549202, -0.0829361603, -0.1803592592, -0.1249794513, 0.0885742381, 0.2131190896, -0.0083146142, -0.0988805369, -0.1562615037, 0.5355111361, -0.2057670653, -0.0337911509, -0.0276394114, -0.0478941128, -0.129408747, 0.4071318805, -0.1085286587, -0.0236553028, -0.0337489098, -0.0042960607, -0.0357252546, -0.0537790284, 0.1478104591, -0.0229944382, 0.2204061151, -0.1225178391, 0.0035037762, -0.1432752311, -0.3713415861, 0.0224535614, 0.4397057891, -0.0184888393, -0.2415880859, -0.3776561022, -0.0927998871, 0.0042515043, 0.1056183204, -0.0966359228, 0.0067479624, 0.134582147, 0.255669266, 0.25519225, -0.4083373547, 0.7855484486, -0.1428624243, 0.1725247651, -0.2973932624, 0.5154007077, -0.0483334213, 0.0722943917, 0.102919504, 0.479944557, -0.0764072463, -0.1337702572, 0.1641645133, 0.220173642, 0.0016051355, 0.3779307008, 0.567072928, 0.475422889, 0.1197953597, -0.2813847959, -0.023902772, -0.2028404623, 0.0514219292, -0.1336178035, 0.2067035437, 0.3131611943, -0.1323532164, 0.2396896183, -0.1656132489, 0.0645312741, -0.1844848841, 0.1721070856, -0.3553673923, -0.1945158094, 0.2536899149, 0.0979762226, 0.3489033878, 0.2706533968, -0.2374919355, 0.0542007424, 0.2087432295, -0.171474129, 0.0665511489, 0.1935506463, -0.1335209906, -0.1604190469, 0.1225586459, -0.1097093225, 0.2408243716, 0.2086319774, -0.162147209, 0.099259235, 0.3856135607, -0.1148335487, -0.0195256807, 0.2653053999, -0.2230740637, 0.0193460286, -0.1154296622, 0.0193106085, -0.3221114576, -0.1735145152, -0.281242162, 0.0938106999, 0.0336781181, -0.0889408067, 0.180270955, -0.0666613728, 0.1396655142, -0.1225464568, -0.4491800964, -0.3087419868, -0.0089613833, 0.0020320509, 0.1701337546, 0.0678951144, 0.002519367, 0.9409674406, -0.5917714238, -0.0620855801, -0.4047403634, -0.3535037339, -0.0995388851, -0.0466991663, 0.1837836504, 0.274238497, 0.3022246063, -0.5940197706, 0.6496315002, -0.2287512422, -0.3201067448, 0.0258850623, -0.0548168421, 0.070123218, 0.0754912719, -0.0691082403, -0.287502408, -0.2037698478, -0.0288400967, -0.1162000895, -0.0645866022, -0.262730062, -0.1277712882, -0.1480118781, 0.1535638869, 0.0850044936, -0.4657579958, -0.5379078984, 0.5167249441, -0.3488322496, -0.2513884604, -0.0740197822, -0.1845286191, -0.0474964119, -0.3764563501, -0.0889545232, 0.0197534468, -0.6336108446, 0.0812262818, -0.3316433132, -0.1158537939, -0.2799674273, -0.0714232028, 0.0966373384, -0.1886214018, -0.430767417, -0.0967626125, -0.0947271287, 0.2228374928, 0.2035657018, 0.2204393297, 0.1103640273, 0.0290477742, 0.1553382427, -0.1185185835, -0.2977028489, -0.1957879066, 0.3906811178, 0.0355604701, 0.0752059147, -0.1335882694, -0.0349808484, 0.1788535118, 0.2315438986, -0.0303470306, 0.3484861255, 0.2604825497, 0.7044516802, -0.2761177123, -0.6298712492, 0.3409236073, 0.1282878369, 0.0985818207, 0.3123501241, 0.2659704983, 0.3521720767, -0.2984626889, -0.2890528738, -0.2787261903, -0.1021419093, 0.0319611505, -0.0892595947, 0.1340893507, -0.0796950236, -0.3037730455, -0.2762391269, 0.0055756364, 0.178121075, 0.3156473041, 0.2637830675, 0.1593564153, -0.4496569932, 0.0506463461, -0.4350969493, 0.0286332089, -0.0834937319, 0.0277654193, -0.2872440219, 0.1243409961, -0.0155177414, 0.3020316064, 0.5010741353, -0.4627040625, -0.3750757277, -0.0835244805, -0.0452279486, -0.4481319487, 0.2399284244, 0.174422577, 0.0991462246, 0.0201045945, 0.5470129848, -0.3816356957, -0.1793590933, 0.0778586715, 0.3437147141, 0.2454933077, -0.1098846868, 0.1401211768, -0.0395979285, -0.2551209331, 0.0522988401, 0.234842822, 0.0608285591, 0.3756413162, 0.1613721848, -0.0081421779, -0.0085295616, 0.3181886673, 0.0635790527, 0.0956415311, 0.3299135566, 0.1250904053, 0.3565492034, 0.1257640719, 0.0813936964, 0.4600448906, -0.103100948, -0.3325390518, 0.018049892, 0.0187631231, 0.4460802078, 0.4090420306, 0.3528386354, 0.0948661491, -0.1463460028, 0.1064758599, -0.4354938567, 0.2747194171, 0.1546071768, 0.0915199816, -0.6227211952, 0.0057117464, 0.2836583853, 0.1699803621, -0.0209741443, 0.0242461823, 0.5000159144, -0.0666573197, 0.162238434, -0.0212295186, 1.2814406157, 0.0306201894, 0.3506726325, -0.0910653025, -0.2932294011, 0.3880875707, -0.4585595727, -0.3509110808, -0.076993838, -0.0687188357, -0.1504484862, -0.1354081482, 0.1045115665, 0.0349229686, -0.1715274453, -0.138056919, -0.1751627773, 0.4455627501, -0.1257737279, 0.3872150183, -0.0800505355, -0.3859553635, -0.1812046915, 0.048873648, 0.0386584811, 0.3579772413, -0.0709320754, -0.0708124489, -0.3025323749, 0.0138006266, -0.3341619074, -0.3518308997, 0.0765018165, -0.0855416283, -0.0177972876, -0.2151673585, 0.161170572, 0.3796373606, 0.8023501039, -0.012503475, -0.183453694, 0.1447488368, -0.2255019546, -0.1270361692, 0.1588340849, -0.246926412, -0.059523005, 0.077742599, -0.256772697, -0.1376380473, 0.2534031868, 0.0689041167, -0.4549590349, -0.1640684158, -0.0540851131, -0.0764518231, -0.1563777775, 0.2891178727, 0.1379412711, -0.0262174979, 0.0448227637, 0.2070728987, 0.183184728, -0.0861591771, 0.282874316, -0.1800874323, -0.3314346373, 0.1453333944, -0.2751038373, -0.3978299201, -0.1087431237, 0.1017369553, -0.1542727947, -0.1445782483, 0.4042247534, 0.7960071564, -0.5436835289, -0.191205278, -0.0167749468, -0.3174434602, -0.2319292873, -0.1668548286, 0.4084506631, -0.2947187722, 0.1856442839, -0.0930638462, -0.464854598, 0.4665230513, 0.0197520126, 0.0800259858, -0.0342462249, -0.2211100906, 0.0716456771, 0.0969707742, -0.2060425729, 0.0988568664, -0.1230667308, -0.0590946116, 0.1347630769, -0.105664432, 0.0507246889, -0.3255159259, -0.0268895384, -0.099529542, -0.3310014904, -0.0472693443, -0.1712853462, 0.1683941036, 0.2580997646, 0.1482056081, 0.1792015582, -0.1318468899, -0.0084947869, -0.3457370996, -0.0256478004, 0.3582673669, 0.1457123905, 0.004321299, 0.2627405822, -0.0176472552, -0.1014993563, 0.2126301676, 0.3162955344, 0.1597969532, 0.1699696034, -0.0048060431, 0.0185763072, -0.0573535971, 0.0681892112, 0.4030791521, 0.285634011, 0.0003099586, 0.0577897765, 0.2785390019, 0.2887374461, 0.4055800438, 0.0909806564, 0.0843959153, -0.0690553561, 0.1522457153, 0.4183631837, 0.0378189348, -0.1314867139, -0.1623412073, 0.3322449625, 0.0518226139, -0.0072953296, 0.2941961288, 0.3229218125, 0.2708404064, -0.1028986499, -0.1401838213, 0.2261171937, 0.2419091612, 0.3832582533, 0.2261759043, 0.1841527969, 0.0727445185, 0.2365759015, 0.4836842716, 0.1023308039, 0.2414347827, -0.4062743485, 0.3869890869, 0.0453082323, 0.2055114657, 0.5408613682, -0.0200030375, 0.3065029085, -0.0046312064, 0.3064008355, -0.2196163386, -0.0991489813, 0.393329531, -0.1443473995, -0.2670765221, -0.0972207114, 0.1568288356, 0.0110795349, -0.0662266687, 0.2687399983, -0.1898756921, -0.3233627677, -0.1038714871, -0.1042375863, -0.4898508489, 0.1022604182, 0.1346721649, 0.0842935815, -0.1518446952, -0.0884893015, 0.1236495376, 0.2763845026, 0.0336595029, -0.1603794843, -0.3558162451, 0.0522783436, 0.301995486, 0.4895030856, 0.1665110886, -0.0273016617, -0.032658115, 0.276476711, -0.1548821479, 0.1478998065, 0.0577428453, 0.2079315186, 0.0207234956, 0.1577070057, 0.014965713, 0.1048894897, -0.0346004739, -0.293892771, -0.1673111171, -0.0427118912, -0.2574443519, 0.2563550174, -0.1897948384, 0.1242670044, -0.1401751488, 0.2362000346, -0.3905721605, 0.0155808423, 0.3123401403, 0.0398541093, -0.0907937437, -0.1958524585, -0.0005092901, -0.0061819758, 0.1628811061, 0.5433220267, 0.0941990167, -0.137589708, -0.4844082892, -0.273776263, 0.0698690265, 0.1508650631, 0.1837805957, 0.0796685144, -0.3364924192, 0.2814252675, 0.3538081944, -0.2569881678, 0.1662513763, -0.2404090166, -0.0729886368, -0.2004629672, 0.1455369741, -0.1309274286, 0.3199680746, 0.1058382913, 0.289973706, 0.0072465641, 0.3487944901, -0.0833607391, -0.2817961276, 0.1491418183, -0.2510602474, -0.3408100903, 0.2015607655, 0.0390898809, -0.0604160689, 0.0412548669, -0.1576018631, -0.2897750139, -0.2982508242, -0.0011439221, 0.2216180563, -0.11711137, 0.1046376526, -0.5871732831, -0.5231029987, -0.0399865098, -0.1761122793, 0.1304780543, 0.3363565505, -0.1043335125, 0.0210592523, -0.0154403504, 0.0635851249, 0.161105305, 0.2428489625, -0.2332326621, 0.0272240303, -0.0092312749, -0.0756739676, 0.464440912, 0.1457891911, 0.033635579, 0.0218161643, 0.1079365015, 0.2135596126, -0.2925237119, -0.4114643633, 0.0276578218, 0.0759121627, -0.0119735012, 0.0162201896, 0.3236319423, 0.0344686434, -0.1407233477, -0.0655364841, 0.0765418932, -0.0258608926, 0.0743144527, 0.4699128866, -0.0616689995 ]