html_url
stringlengths
51
51
comments
stringlengths
67
24.7k
title
stringlengths
6
280
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
list
https://github.com/huggingface/datasets/issues/5717
@yairl-dn You should be able to bypass this issue by reducing `datasets.config.DEFAULT_MAX_BATCH_SIZE` (1000 by default) In Datasets 3.0, the Image storage format will be simplified, so this should be easier to fix then.
Errror when saving to disk a dataset of images
### Describe the bug Hello! I have an issue when I try to save on disk my dataset of images. The error I get is: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1442, in save_...
33
Errror when saving to disk a dataset of images ### Describe the bug Hello! I have an issue when I try to save on disk my dataset of images. The error I get is: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-package...
[ -0.07521145045757294, -0.44404372572898865, -0.10260006785392761, 0.3910185396671295, 0.4102981388568878, 0.2558813691139221, 0.09858540445566177, 0.14438162744045258, -0.23703399300575256, 0.16042831540107727, 0.12004079669713974, 0.2100370079278946, -0.37237343192100525, -0.1631561964750...
https://github.com/huggingface/datasets/issues/5717
The same error occurs with my save_to_disk() of Audio() items. I still get it with: ```python import datasets datasets.config.DEFAULT_MAX_BATCH_SIZE=35 from datasets import Features, Array2D, Value, Dataset, Sequence, Audio ``` ``` Saving the dataset (41/47 shards): 88%|███████████████████████████████████████...
Errror when saving to disk a dataset of images
### Describe the bug Hello! I have an issue when I try to save on disk my dataset of images. The error I get is: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 1442, in save_...
187
Errror when saving to disk a dataset of images ### Describe the bug Hello! I have an issue when I try to save on disk my dataset of images. The error I get is: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-package...
[ -0.07521145045757294, -0.44404372572898865, -0.10260006785392761, 0.3910185396671295, 0.4102981388568878, 0.2558813691139221, 0.09858540445566177, 0.14438162744045258, -0.23703399300575256, 0.16042831540107727, 0.12004079669713974, 0.2100370079278946, -0.37237343192100525, -0.1631561964750...
https://github.com/huggingface/datasets/issues/5716
Hi! Can you share one of the problematic audio files with us? I tried to reproduce the error with the following code: ```python import soundfile as sf import numpy as np from datasets import Audio sf.write("empty.wav", np.array([]), 16000) Audio(sampling_rate=24000).decode_example({"path": "empty.wav", "by...
Handle empty audio
Some audio paths exist, but they are empty, and an error will be reported when reading the audio path.How to use the filter function to avoid the empty audio path? when a audio is empty, when do resample , it will break: `array, sampling_rate = sf.read(f) array = librosa.resample(array, orig_sr=sampling_rate, target_...
67
Handle empty audio Some audio paths exist, but they are empty, and an error will be reported when reading the audio path.How to use the filter function to avoid the empty audio path? when a audio is empty, when do resample , it will break: `array, sampling_rate = sf.read(f) array = librosa.resample(array, orig_sr=s...
[ 0.12720604240894318, 0.0029352009296417236, 0.006146043539047241, 0.06452380120754242, 0.19623878598213196, -0.4187437891960144, 0.1112334132194519, -0.03900868818163872, 0.06735233962535858, 0.5490593314170837, -0.14358477294445038, -0.01921803504228592, -0.2331731617450714, -0.0182341560...
https://github.com/huggingface/datasets/issues/5715
Hi! You can use [`.set_format("np")`](https://huggingface.co/docs/datasets/process#format) to get NumPy arrays (or Pytorch tensors with `.set_format("torch")`) in `__getitem__`. Also, have you been able to reproduce the linked PyTorch issue with a HF dataset?
Return Numpy Array (fixed length) Mode, in __get_item__, Instead of List
### Feature request There are old known issues, but they can be easily forgettable problems in multiprocessing with pytorch-dataloader: Too high usage of RAM or shared-memory in pytorch when we set num workers > 1 and returning type of dataset or dataloader is "List" or "Dict". https://github.com/pytorch/pytorch...
31
Return Numpy Array (fixed length) Mode, in __get_item__, Instead of List ### Feature request There are old known issues, but they can be easily forgettable problems in multiprocessing with pytorch-dataloader: Too high usage of RAM or shared-memory in pytorch when we set num workers > 1 and returning type of dat...
[ -0.048069775104522705, -0.5935409665107727, -0.04750343784689903, 0.0750245749950409, 0.1531980186700821, -0.2710416913032532, 0.7023616433143616, 0.27597472071647644, 0.42940554022789, 0.23772947490215302, -0.1788683384656906, 0.4016181528568268, -0.44294512271881104, 0.3425402045249939, ...
https://github.com/huggingface/datasets/issues/5713
Hi Julien ! This sounds related to https://github.com/huggingface/datasets/issues/5695 - TL;DR: you need to have shards smaller than 2GB to avoid this issue The number of rows per shard is computed using an estimated size of the full dataset, which can sometimes lead to shards bigger than `max_shard_size`. The estim...
ArrowNotImplementedError when loading dataset from the hub
### Describe the bug Hello, I have created a dataset by using the image loader. Once the dataset is created I try to download it and I get the error: ``` Traceback (most recent call last): File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-packages/datasets/builder.py", line 1860, in _prepare_split_...
108
ArrowNotImplementedError when loading dataset from the hub ### Describe the bug Hello, I have created a dataset by using the image loader. Once the dataset is created I try to download it and I get the error: ``` Traceback (most recent call last): File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site...
[ -0.4514244794845581, -0.029354557394981384, -0.004574500024318695, 0.5526852011680603, 0.22211842238903046, -0.007330708205699921, 0.42876574397087097, 0.3120574951171875, -0.25685614347457886, 0.31078779697418213, -0.14230012893676758, 0.5280890464782715, -0.031971681863069534, -0.1513498...
https://github.com/huggingface/datasets/issues/5713
Hi Quentin! Thanks a lot! Using `num_shards` instead of `max_shard_size` works as expected. Indeed the way you describe how the size is computed cannot really work with the dataset I'm building as all the image doesn't have the same resolution and then size. Opening an issue on this might be a good idea.
ArrowNotImplementedError when loading dataset from the hub
### Describe the bug Hello, I have created a dataset by using the image loader. Once the dataset is created I try to download it and I get the error: ``` Traceback (most recent call last): File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site-packages/datasets/builder.py", line 1860, in _prepare_split_...
53
ArrowNotImplementedError when loading dataset from the hub ### Describe the bug Hello, I have created a dataset by using the image loader. Once the dataset is created I try to download it and I get the error: ``` Traceback (most recent call last): File "/home/jplu/miniconda3/envs/image-xp/lib/python3.10/site...
[ -0.4514244794845581, -0.029354557394981384, -0.004574500024318695, 0.5526852011680603, 0.22211842238903046, -0.007330708205699921, 0.42876574397087097, 0.3120574951171875, -0.25685614347457886, 0.31078779697418213, -0.14230012893676758, 0.5280890464782715, -0.031971681863069534, -0.1513498...
https://github.com/huggingface/datasets/issues/5712
> Closing since this is a duplicate of #5711 Sorry @mariosasko , my internet went down went submitting the issue, and somehow it ended up creating a duplicate
load_dataset in v2.11.0 raises "ValueError: seek of closed file" in np.load()
### Describe the bug Hi, I have some `dataset_load()` code of a custom offline dataset that works with datasets v2.10.1. ```python ds = datasets.load_dataset(path=dataset_dir, name=configuration, data_dir=dataset_dir, ...
28
load_dataset in v2.11.0 raises "ValueError: seek of closed file" in np.load() ### Describe the bug Hi, I have some `dataset_load()` code of a custom offline dataset that works with datasets v2.10.1. ```python ds = datasets.load_dataset(path=dataset_dir, name=conf...
[ -0.39707982540130615, 0.21128320693969727, 0.020410917699337006, 0.5140681862831116, 0.09784124791622162, -0.00237254798412323, 0.40202948451042175, 0.38422852754592896, 0.0661887675523758, 0.14102311432361603, -0.13914933800697327, 0.1929495483636856, -0.19966956973075867, 0.2623779773712...
https://github.com/huggingface/datasets/issues/5711
It seems like https://github.com/huggingface/datasets/pull/5626 has introduced this error. cc @albertvillanova I think replacing: https://github.com/huggingface/datasets/blob/0803a006db1c395ac715662cc6079651f77c11ea/src/datasets/download/streaming_download_manager.py#L777-L778 with: ```python return np.load...
load_dataset in v2.11.0 raises "ValueError: seek of closed file" in np.load()
### Describe the bug Hi, I have some `dataset_load()` code of a custom offline dataset that works with datasets v2.10.1. ```python ds = datasets.load_dataset(path=dataset_dir, name=configuration, data_dir=dataset_dir, ...
37
load_dataset in v2.11.0 raises "ValueError: seek of closed file" in np.load() ### Describe the bug Hi, I have some `dataset_load()` code of a custom offline dataset that works with datasets v2.10.1. ```python ds = datasets.load_dataset(path=dataset_dir, name=config...
[ -0.39707982540130615, 0.21128320693969727, 0.020410917699337006, 0.5140681862831116, 0.09784124791622162, -0.00237254798412323, 0.40202948451042175, 0.38422852754592896, 0.0661887675523758, 0.14102311432361603, -0.13914933800697327, 0.1929495483636856, -0.19966956973075867, 0.2623779773712...
https://github.com/huggingface/datasets/issues/5710
Hi! This error means that PyArrow's internal [`mmap`](https://man7.org/linux/man-pages/man2/mmap.2.html) call failed to allocate memory, which can be tricky to debug. Since this error is more related to PyArrow than us, I think it's best to report this issue in their [repo](https://github.com/apache/arrow) (they are mo...
OSError: Memory mapping file failed: Cannot allocate memory
### Describe the bug Hello, I have a series of datasets each of 5 GB, 600 datasets in total. So together this makes 3TB. When I trying to load all the 600 datasets into memory, I get the above error message. Is this normal because I'm hitting the max size of memory mapping of the OS? Thank you ```te...
60
OSError: Memory mapping file failed: Cannot allocate memory ### Describe the bug Hello, I have a series of datasets each of 5 GB, 600 datasets in total. So together this makes 3TB. When I trying to load all the 600 datasets into memory, I get the above error message. Is this normal because I'm hitting the ...
[ -0.12390999495983124, -0.45371362566947937, -0.03239832818508148, 0.634951114654541, 0.3504887521266937, 0.07127010822296143, -0.1335451453924179, 0.3299615979194641, 0.4003358483314514, 0.19658923149108887, -0.004465721547603607, 0.01819867640733719, -0.25141748785972595, -0.2797099947929...
https://github.com/huggingface/datasets/issues/5709
hi @jplu ! Did I understand you correctly that you create the dataset, push it to the Hub with `.push_to_hub` and you see a `dataset_infos.json` file there, then you edit this file, load the dataset with `load_dataset` and you don't see any changes in `.info` attribute of a dataset object? This is actually weird th...
Manually dataset info made not taken into account
### Describe the bug Hello, I'm manually building an image dataset with the `from_dict` approach. I also build the features with the `cast_features` methods. Once the dataset is created I push it on the hub, and a default `dataset_infos.json` file seems to have been automatically added to the repo in same time. Hen...
125
Manually dataset info made not taken into account ### Describe the bug Hello, I'm manually building an image dataset with the `from_dict` approach. I also build the features with the `cast_features` methods. Once the dataset is created I push it on the hub, and a default `dataset_infos.json` file seems to have be...
[ -0.2274862825870514, -0.0038239210844039917, -0.03542531281709671, 0.2053673267364502, 0.16327960789203644, 0.12050522118806839, 0.18317842483520508, 0.11353832483291626, -0.0990067645907402, 0.09088581800460815, 0.1578717827796936, 0.3468891978263855, 0.228308767080307, 0.3312079608440399...
https://github.com/huggingface/datasets/issues/5709
Hi @polinaeterna Yes I have created the dataset with `Dataset.from_dict` applied some updates afterward and when I pushed to the hub I had a `dataset_infos.json` file and there was a `README.md` file as well. I didn't know that the JSON file was deprecated. So I have built my dataset with `ImageBuilder` instead and ...
Manually dataset info made not taken into account
### Describe the bug Hello, I'm manually building an image dataset with the `from_dict` approach. I also build the features with the `cast_features` methods. Once the dataset is created I push it on the hub, and a default `dataset_infos.json` file seems to have been automatically added to the repo in same time. Hen...
96
Manually dataset info made not taken into account ### Describe the bug Hello, I'm manually building an image dataset with the `from_dict` approach. I also build the features with the `cast_features` methods. Once the dataset is created I push it on the hub, and a default `dataset_infos.json` file seems to have be...
[ -0.2274862825870514, -0.0038239210844039917, -0.03542531281709671, 0.2053673267364502, 0.16327960789203644, 0.12050522118806839, 0.18317842483520508, 0.11353832483291626, -0.0990067645907402, 0.09088581800460815, 0.1578717827796936, 0.3468891978263855, 0.228308767080307, 0.3312079608440399...
https://github.com/huggingface/datasets/issues/5708
looks great! Do you encode the fact that you've already converted a dataset? (to not convert it twice) or do you base yourself on the info contained in `dataset_info`
Dataset sizes are in MiB instead of MB in dataset cards
As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the same, we see a mismatch because the viewer shows MB, while t...
29
Dataset sizes are in MiB instead of MB in dataset cards As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the sa...
[ -0.30520763993263245, -0.430510938167572, 0.051380690187215805, 0.3353791832923889, 0.126092329621315, -0.03623035550117493, 0.07882920652627945, 0.1869267225265503, 0.11231429874897003, 0.2592553198337555, -0.06472647190093994, 0.08979273587465286, 0.030698761343955994, 0.5333747267723083...
https://github.com/huggingface/datasets/issues/5708
I am only looping trough the dataset cards, assuming that all of them were created with MiB. I agree we should only run the bulk edit once for all canonical datasets: I'm using a for-loop over canonical datasets.
Dataset sizes are in MiB instead of MB in dataset cards
As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the same, we see a mismatch because the viewer shows MB, while t...
38
Dataset sizes are in MiB instead of MB in dataset cards As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the sa...
[ -0.23767679929733276, -0.37029165029525757, 0.017483960837125778, 0.2873428761959076, 0.08194397389888763, 0.007679581642150879, 0.09554731845855713, 0.2410692572593689, 0.20588989555835724, 0.19727198779582977, -0.166701540350914, 0.003100067377090454, 0.013803843408823013, 0.501407325267...
https://github.com/huggingface/datasets/issues/5708
I have just included as well the conversion from MB to GB if necessary. See: - https://huggingface.co/datasets/bookcorpus/discussions/2/files - https://huggingface.co/datasets/asnq/discussions/2/files
Dataset sizes are in MiB instead of MB in dataset cards
As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the same, we see a mismatch because the viewer shows MB, while t...
19
Dataset sizes are in MiB instead of MB in dataset cards As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the sa...
[ -0.25288209319114685, -0.4595600664615631, 0.030742637813091278, 0.40320414304733276, 0.05378488823771477, -0.04627220332622528, 0.06590965390205383, 0.1412510722875595, 0.09253361821174622, 0.29250848293304443, -0.07427690923213959, 0.032737456262111664, 0.0014762841165065765, 0.554290950...
https://github.com/huggingface/datasets/issues/5708
First, I tested some batches to check the changes made. Then I incorporated the MB to GB conversion. Now I'm running the rest.
Dataset sizes are in MiB instead of MB in dataset cards
As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the same, we see a mismatch because the viewer shows MB, while t...
23
Dataset sizes are in MiB instead of MB in dataset cards As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the sa...
[ -0.24703067541122437, -0.4211527705192566, 0.07354752719402313, 0.29551488161087036, 0.10169419646263123, -0.006690613925457001, 0.08733142167329788, 0.22690634429454803, 0.15091241896152496, 0.26976513862609863, -0.11977491527795792, 0.11481043696403503, -0.047404877841472626, 0.494101792...
https://github.com/huggingface/datasets/issues/5708
Thanks a lot! The sizes now match as expected! <img width="1446" alt="Capture d’écran 2023-04-05 à 16 10 15" src="https://user-images.githubusercontent.com/1676121/230107044-ac2a76ea-a4fe-4e81-a925-f464b85f5edd.png">
Dataset sizes are in MiB instead of MB in dataset cards
As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the same, we see a mismatch because the viewer shows MB, while t...
19
Dataset sizes are in MiB instead of MB in dataset cards As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the sa...
[ -0.25985187292099, -0.421073853969574, 0.01803220435976982, 0.34752607345581055, 0.05826717987656593, -0.10421357303857803, 0.16397622227668762, 0.18023625016212463, 0.11308826506137848, 0.26625874638557434, -0.05506281182169914, 0.022360142320394516, 0.05824898183345795, 0.525748610496521...
https://github.com/huggingface/datasets/issues/5708
I made another bulk edit of ancient canonical datasets that were moved to community organization. I have parsed 11 datasets and opened a PR on 3 of them: - [x] "allenai/scicite": https://huggingface.co/datasets/allenai/scicite/discussions/3 - [x] "allenai/scifact": https://huggingface.co/datasets/allenai/scifact/disc...
Dataset sizes are in MiB instead of MB in dataset cards
As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the same, we see a mismatch because the viewer shows MB, while t...
40
Dataset sizes are in MiB instead of MB in dataset cards As @severo reported in an internal discussion (https://github.com/huggingface/moon-landing/issues/5929): Now we show the dataset size: - from the dataset card (in the side column) - from the datasets-server (in the viewer) But, even if the size is the sa...
[ -0.2266460657119751, -0.3218250572681427, 0.04137040674686432, 0.3185628056526184, 0.14769849181175232, -0.11843086779117584, 0.032626692205667496, 0.19912543892860413, 0.12102067470550537, 0.24956467747688293, -0.09855564683675766, -0.013729743659496307, -0.00844629481434822, 0.5083847641...
https://github.com/huggingface/datasets/issues/5706
Hi ! We could definitely a type that holds the categories and uses a DictionaryType storage. There's a ClassLabel type that is similar with a 'names' parameter (similar to a id2label in deep learning frameworks) that uses an integer array as storage. It can be added in `features.py`. Here are some pointers: - the c...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
105
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
Hey folks -- I'm thinking about trying a PR for this. As far as I can tell the only sticky point is that auto-generation of features from a pyarrow schema will fail under the current `generate_from_arrow_type` function because there is no encoding of the categorical string label -> int map in the pa.dictionary type its...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
170
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
Maybe we don't need to store the string label -> int map in the categorical for the corresponding `datasets` feature ?
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
21
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
I think that does need to be stored in the Feature object. Similar to how `ClassLabel` needs the class names for some of the provided default functionality (e.g., encoding or decoding values) here, a categorical feature needs the same. Without storing that information, would you suggest that categorical features ju...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
124
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
Well IIRC you can concatenate two Arrow arrays with different dictionaries together. But for `datasets` would mean updating the `datasets` features when concatenating two arrays of the same type, which is not supported right now. That's why if there is a way to have it without storing the mapping in the feature object ...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
168
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
Hmm, that is a good point. What if we implemented this feature first in a manner that didn't allow concatenation of arrays with different index to category maps? Then concatenation would be very straightforward, and I think this is reasonable if the index to category map is stored in the schema as well. Obviously, ...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
326
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
@lhoestq @mariosasko just re-pinging on this so I can push forward further here. What are your thoughts on disallowing concatenation of categorical arrays for now such that the index to category map can be stored in the schema metadata? And/or other approaches that should be taken here?
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
47
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
I think the easiest for now would be to add a `dictionary_decode` argument to the parquet loaders that would convert the dictionary type back to strings when set to `True`, and make `dictionary_decode=False` raise `NotImplementedError` for now if there are dictionary type columns. Would that be ok as a first step ?
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
52
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
I mean, that would certainly be easiest but I don't think it really solves this issue in a meaningful way. This just changes the burden from string conversion from the user to HF Datasets, but doesn't actually enable HF Datasets to take advantage of the (very significant) storage and associated speed/memory savings off...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
128
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
> This just changes the burden from string conversion from the user to HF Datasets, but doesn't actually enable HF Datasets to take advantage of the (very significant) storage and associated speed/memory savings offered by using categorical types. There's already a ClassLabel type that does pretty much the same thin...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
109
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
But how often in the cases where concatenation is done now would the categorical label vocabulary actually change? I think it would be in basically none of them. And in such cases, concatenation remains very easy, no? On Fri, Sep 22, 2023, 12:02 PM Quentin Lhoest ***@***.***> wrote: > This just changes the bu...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
203
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5706
Arrow IPC seems to require unified dictionaries anyway so actually we could surely focus only on this use case indeed @mmcdermott So defining a new Feature type in `datasets` that contains the dictionary mapping should be fine (and concatenation would work out of the box), and it should also take care of checking t...
Support categorical data types for Parquet
### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is currently thrown when attempting to read a Parq...
93
Support categorical data types for Parquet ### Feature request Huggingface datasets does not seem to support categorical / dictionary data types for Parquet as of now. There seems to be a `TODO` in the code for this feature but no implementation yet. Below you can find sample code to reproduce the error that is cu...
[ -0.152938574552536, -0.06370358169078827, 0.07160879671573639, 0.32455649971961975, 0.4551955461502075, 0.06469179689884186, -0.1901731789112091, 0.22342005372047424, 0.203786700963974, -0.2283174693584442, -0.11718685179948807, 0.5124905109405518, -0.2902349531650543, 0.44914382696151733,...
https://github.com/huggingface/datasets/issues/5705
Hi! It can take some time to iterate over Parquet files as big as yours, convert the samples to Python, and find the first one that matches a filter predicate before yielding it...
Getting next item from IterableDataset took forever.
### Describe the bug I have a large dataset, about 500GB. The format of the dataset is parquet. I then load the dataset and try to get the first item ```python def get_one_item(): dataset = load_dataset("path/to/datafiles", split="train", cache_dir=".", streaming=True) dataset = dataset.filter(lambda...
33
Getting next item from IterableDataset took forever. ### Describe the bug I have a large dataset, about 500GB. The format of the dataset is parquet. I then load the dataset and try to get the first item ```python def get_one_item(): dataset = load_dataset("path/to/datafiles", split="train", cache_dir="....
[ -0.17987139523029327, -0.20914414525032043, -0.07754886150360107, 0.08410445600748062, 0.05860540643334389, -0.14915384352207184, 0.3101743757724762, 0.061246104538440704, -0.12543584406375885, 0.10807236284017563, 0.48884737491607666, 0.10770764946937561, -0.14268681406974792, 0.130114659...
https://github.com/huggingface/datasets/issues/5705
Thanks @mariosasko, I figured it was the filter operation. I'm closing this issue because it is not a bug, it is the expected beheaviour.
Getting next item from IterableDataset took forever.
### Describe the bug I have a large dataset, about 500GB. The format of the dataset is parquet. I then load the dataset and try to get the first item ```python def get_one_item(): dataset = load_dataset("path/to/datafiles", split="train", cache_dir=".", streaming=True) dataset = dataset.filter(lambda...
24
Getting next item from IterableDataset took forever. ### Describe the bug I have a large dataset, about 500GB. The format of the dataset is parquet. I then load the dataset and try to get the first item ```python def get_one_item(): dataset = load_dataset("path/to/datafiles", split="train", cache_dir="....
[ -0.18538573384284973, -0.2582932412624359, -0.07853778451681137, 0.1548646092414856, 0.08571982383728027, -0.11423484981060028, 0.4109131395816803, 0.027603592723608017, -0.15032730996608734, 0.12063391506671906, 0.4529627561569214, 0.08845274150371552, -0.08613321185112, 0.054511807858943...
https://github.com/huggingface/datasets/issues/5702
Hi ! `datasets` uses Apache Arrow as backend to store the data, and it requires each column to have a fixed type. Therefore a column can't have a mix of dicts/lists/strings. Though it's possible to have one (nullable) field for each type: ```python features = Features({ "text_alone": Value("string"), "te...
Is it possible or how to define a `datasets.Sequence` that could potentially be either a dict, a str, or None?
### Feature request Hello! Apologies if my question sounds naive: I was wondering if it’s possible, or how one would go about defining a 'datasets.Sequence' element in datasets.Features that could potentially be either a dict, a str, or None? Specifically, I’d like to define a feature for a list that contains 18...
109
Is it possible or how to define a `datasets.Sequence` that could potentially be either a dict, a str, or None? ### Feature request Hello! Apologies if my question sounds naive: I was wondering if it’s possible, or how one would go about defining a 'datasets.Sequence' element in datasets.Features that could potent...
[ 0.0013286545872688293, -0.11238649487495422, -0.18370550870895386, -0.0726836621761322, 0.01916148141026497, 0.018123596906661987, 0.2247791886329651, -0.04078936576843262, 0.10549765825271606, -0.12959596514701843, 0.4297468066215515, 0.08127593994140625, -0.4116147458553314, 0.3690172731...
https://github.com/huggingface/datasets/issues/5702
@lhoestq Thank you! I further wonder if it's possible to use list subscripts as keys of a feature? Like ```python features = Features({ 0: Value("string"), 1: { "text": Value("string"), "idxes": [Value("int64")] }, 2: Value("string"), # ... }) ```
Is it possible or how to define a `datasets.Sequence` that could potentially be either a dict, a str, or None?
### Feature request Hello! Apologies if my question sounds naive: I was wondering if it’s possible, or how one would go about defining a 'datasets.Sequence' element in datasets.Features that could potentially be either a dict, a str, or None? Specifically, I’d like to define a feature for a list that contains 18...
38
Is it possible or how to define a `datasets.Sequence` that could potentially be either a dict, a str, or None? ### Feature request Hello! Apologies if my question sounds naive: I was wondering if it’s possible, or how one would go about defining a 'datasets.Sequence' element in datasets.Features that could potent...
[ 0.0013286545872688293, -0.11238649487495422, -0.18370550870895386, -0.0726836621761322, 0.01916148141026497, 0.018123596906661987, 0.2247791886329651, -0.04078936576843262, 0.10549765825271606, -0.12959596514701843, 0.4297468066215515, 0.08127593994140625, -0.4116147458553314, 0.3690172731...
https://github.com/huggingface/datasets/issues/5702
Column names need to be strings, so you could use "1", "2", etc. or give appropriate column names
Is it possible or how to define a `datasets.Sequence` that could potentially be either a dict, a str, or None?
### Feature request Hello! Apologies if my question sounds naive: I was wondering if it’s possible, or how one would go about defining a 'datasets.Sequence' element in datasets.Features that could potentially be either a dict, a str, or None? Specifically, I’d like to define a feature for a list that contains 18...
18
Is it possible or how to define a `datasets.Sequence` that could potentially be either a dict, a str, or None? ### Feature request Hello! Apologies if my question sounds naive: I was wondering if it’s possible, or how one would go about defining a 'datasets.Sequence' element in datasets.Features that could potent...
[ 0.0013286545872688293, -0.11238649487495422, -0.18370550870895386, -0.0726836621761322, 0.01916148141026497, 0.018123596906661987, 0.2247791886329651, -0.04078936576843262, 0.10549765825271606, -0.12959596514701843, 0.4297468066215515, 0.08127593994140625, -0.4116147458553314, 0.3690172731...
https://github.com/huggingface/datasets/issues/5695
Hi ! It looks like an issue with PyArrow: https://issues.apache.org/jira/browse/ARROW-5030 It appears it can happen when you have parquet files with row groups larger than 2GB. I can see that your parquet files are around 10GB. It is usually advised to keep a value around the default value 500MB to avoid these issu...
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError
### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install datasets` 2. `!huggingface-cli login` 3. This step will throw the e...
106
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError ### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install dat...
[ -0.36002859473228455, 0.04276201128959656, 0.11041624844074249, 0.5041696429252625, 0.22531577944755554, -0.20803719758987427, 0.2163711041212082, 0.19029837846755981, -0.20871645212173462, 0.20421102643013, -0.09125034511089325, 0.6012040376663208, -0.11784866452217102, -0.129016399383544...
https://github.com/huggingface/datasets/issues/5695
Hey, thanks for the reply! I've since switched to working with the locally-saved dataset (which works). Maybe it makes sense to show a warning for uploads with large shard sizes? Since the functionality completely breaks (due to the PyArrow bug).
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError
### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install datasets` 2. `!huggingface-cli login` 3. This step will throw the e...
40
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError ### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install dat...
[ -0.36002859473228455, 0.04276201128959656, 0.11041624844074249, 0.5041696429252625, 0.22531577944755554, -0.20803719758987427, 0.2163711041212082, 0.19029837846755981, -0.20871645212173462, 0.20421102643013, -0.09125034511089325, 0.6012040376663208, -0.11784866452217102, -0.129016399383544...
https://github.com/huggingface/datasets/issues/5695
Just tried uploading the same dataset with 500MB shards, I get an errors 4 hours in: ``` Pushing dataset shards to the dataset hub: 25%|██▍ | 358/1453 [4:40:31<14:18:00, 47.01s/it] Traceback (most recent call last): File "/cluster/home/tamariucai/.local/lib/python3.8/site-packages/huggingface_hub/_commit...
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError
### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install datasets` 2. `!huggingface-cli login` 3. This step will throw the e...
336
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError ### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install dat...
[ -0.36002859473228455, 0.04276201128959656, 0.11041624844074249, 0.5041696429252625, 0.22531577944755554, -0.20803719758987427, 0.2163711041212082, 0.19029837846755981, -0.20871645212173462, 0.20421102643013, -0.09125034511089325, 0.6012040376663208, -0.11784866452217102, -0.129016399383544...
https://github.com/huggingface/datasets/issues/5695
Leaving this other error here for the record, which occurs when I load the +700GB dataset from the hub with shard sizes of 500MB: ``` Traceback (most recent call last): File "/cluster/home/tamariucai/.local/lib/python3.10/site-packages/datasets/builder.py"...
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError
### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install datasets` 2. `!huggingface-cli login` 3. This step will throw the e...
83
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError ### Describe the bug Calling `datasets.load_dataset` to load the (publicly available) dataset `theodor1289/wit` fails with `pyarrow.lib.ArrowNotImplementedError`. ### Steps to reproduce the bug Steps to reproduce this behavior: 1. `!pip install dat...
[ -0.36002859473228455, 0.04276201128959656, 0.11041624844074249, 0.5041696429252625, 0.22531577944755554, -0.20803719758987427, 0.2163711041212082, 0.19029837846755981, -0.20871645212173462, 0.20421102643013, -0.09125034511089325, 0.6012040376663208, -0.11784866452217102, -0.129016399383544...
https://github.com/huggingface/datasets/issues/5694
Originally we also though about adding it to the YAML part of the README.md: ```yaml builder_config: data_dir: data data_files: - split: train pattern: "train-[0-9][0-9][0-9][0-9]-of-[0-9][0-9][0-9][0-9][0-9]*.*" ``` Having it in the README.md could make it easier to modify it in the UI on HF, and...
Dataset configuration
Following discussions from https://github.com/huggingface/datasets/pull/5331 We could have something like `config.json` to define the configuration of a dataset. ```json { "data_dir": "data" "data_files": { "train": "train-[0-9][0-9][0-9][0-9]-of-[0-9][0-9][0-9][0-9][0-9]*.*" } } ``` ...
47
Dataset configuration Following discussions from https://github.com/huggingface/datasets/pull/5331 We could have something like `config.json` to define the configuration of a dataset. ```json { "data_dir": "data" "data_files": { "train": "train-[0-9][0-9][0-9][0-9]-of-[0-9][0-9][0-9][0-9][0...
[ -0.38154855370521545, -0.206382155418396, -0.05068372189998627, 0.06326279789209366, 0.23064163327217102, 0.11939957737922668, 0.3019181787967682, 0.30645936727523804, 0.1979321539402008, 0.18720629811286926, -0.05301390215754509, 0.19325807690620422, -0.11306318640708923, 0.44481527805328...
https://github.com/huggingface/datasets/issues/5694
From internal discussions we agreed to go with the YAML approach, since it's the one that seems more appropriate to be modified by a human on the Hub or locally (while JSON e.g. for models are usually created programmatically).
Dataset configuration
Following discussions from https://github.com/huggingface/datasets/pull/5331 We could have something like `config.json` to define the configuration of a dataset. ```json { "data_dir": "data" "data_files": { "train": "train-[0-9][0-9][0-9][0-9]-of-[0-9][0-9][0-9][0-9][0-9]*.*" } } ``` ...
39
Dataset configuration Following discussions from https://github.com/huggingface/datasets/pull/5331 We could have something like `config.json` to define the configuration of a dataset. ```json { "data_dir": "data" "data_files": { "train": "train-[0-9][0-9][0-9][0-9]-of-[0-9][0-9][0-9][0-9][0...
[ -0.3235020041465759, -0.33107948303222656, -0.08555613458156586, 0.14359715580940247, 0.23720470070838928, 0.1515040099620819, 0.2792743742465973, 0.2076961249113083, 0.24624988436698914, 0.1725151538848877, -0.07195708155632019, 0.3215893805027008, -0.15135310590267181, 0.5376594662666321...
https://github.com/huggingface/datasets/issues/5692
Hi! The link pointing to the code that generated the dataset is broken. Can you please fix it to make debugging easier?
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
22
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceb...
[ -0.2805249094963074, 0.09721410274505615, -0.010183371603488922, 0.40840592980384827, 0.1494453102350235, 0.06983813643455505, 0.20628100633621216, 0.5558909177780151, -0.2604309320449829, -0.011714830994606018, -0.03858485817909241, 0.6745288372039795, 0.05063933506608009, -0.112265080213...
https://github.com/huggingface/datasets/issues/5692
> Hi! The link pointing to the code that generated the dataset is broken. Can you please fix it to make debugging easier? Sorry about that, it's fixed now.
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
29
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceb...
[ -0.2805249094963074, 0.09721410274505615, -0.010183371603488922, 0.40840592980384827, 0.1494453102350235, 0.06983813643455505, 0.20628100633621216, 0.5558909177780151, -0.2604309320449829, -0.011714830994606018, -0.03858485817909241, 0.6745288372039795, 0.05063933506608009, -0.112265080213...
https://github.com/huggingface/datasets/issues/5692
@cyanic-selkie could you explain how you fixed it? I met the same error in loading other datasets, is it due to the version of the library enviroment?
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
27
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceb...
[ -0.2805249094963074, 0.09721410274505615, -0.010183371603488922, 0.40840592980384827, 0.1494453102350235, 0.06983813643455505, 0.20628100633621216, 0.5558909177780151, -0.2604309320449829, -0.011714830994606018, -0.03858485817909241, 0.6745288372039795, 0.05063933506608009, -0.112265080213...
https://github.com/huggingface/datasets/issues/5692
@MingsYang I never fixed it. If you're referring to my comment above, I only meant I fixed the link to my code. Anyway, I managed to work around the issue by using `streaming` when loading the dataset.
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
37
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceb...
[ -0.2805249094963074, 0.09721410274505615, -0.010183371603488922, 0.40840592980384827, 0.1494453102350235, 0.06983813643455505, 0.20628100633621216, 0.5558909177780151, -0.2604309320449829, -0.011714830994606018, -0.03858485817909241, 0.6745288372039795, 0.05063933506608009, -0.112265080213...
https://github.com/huggingface/datasets/issues/5692
@cyanic-selkie Emm, I get it. I just tried to use a new version python enviroment, and it show no errors anymore.
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types
### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceback (most recent call last): File "/home/sven/code/rector/answer-detection/trai...
21
pyarrow.lib.ArrowInvalid: Unable to merge: Field <field> has incompatible types ### Describe the bug When loading the dataset [wikianc-en](https://huggingface.co/datasets/cyanic-selkie/wikianc-en) which I created using [this](https://github.com/cyanic-selkie/wikianc) code, I get the following error: ``` Traceb...
[ -0.2805249094963074, 0.09721410274505615, -0.010183371603488922, 0.40840592980384827, 0.1494453102350235, 0.06983813643455505, 0.20628100633621216, 0.5558909177780151, -0.2604309320449829, -0.011714830994606018, -0.03858485817909241, 0.6745288372039795, 0.05063933506608009, -0.112265080213...
https://github.com/huggingface/datasets/issues/5690
Hi @wccccp, thanks for reporting. That's weird since `huggingface_hub` _has_ a module called `hf_api` and you are using a recent version of it. Which version of `datasets` are you using? And is it a bug that you experienced only recently? (cc @lhoestq can it be somehow related to the recent release of `datasets`?...
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api
### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__init__.py", line 37, in <module> from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, Dat...
82
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api ### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__...
[ -0.29969364404678345, -0.360951691865921, -0.0473315455019474, 0.36517247557640076, 0.42924559116363525, -0.0765240490436554, 0.24430179595947266, 0.5703027844429016, -0.040128376334905624, 0.29361385107040405, -0.03497811034321785, 0.2826228737831116, -0.0843978226184845, 0.17554573714733...
https://github.com/huggingface/datasets/issues/5690
@wccccp Actually I have also been able to reproduce the error so it's not an issue with your setup. @huggingface/datasets I found this issue quite weird. Is this a module that is not used very often? The problematic line is [this one](https://github.com/huggingface/datasets/blame/c33e8ce68b5000988bf6b2e4bca27ffaa46...
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api
### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__init__.py", line 37, in <module> from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, Dat...
113
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api ### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__...
[ -0.29969364404678345, -0.360951691865921, -0.0473315455019474, 0.36517247557640076, 0.42924559116363525, -0.0765240490436554, 0.24430179595947266, 0.5703027844429016, -0.040128376334905624, 0.29361385107040405, -0.03497811034321785, 0.2826228737831116, -0.0843978226184845, 0.17554573714733...
https://github.com/huggingface/datasets/issues/5690
For context, I tried to run `import huggingface_hub; huggingface_hub.hf_api.DatasetInfo` in the terminal with different versions of `hfh` and I need to go back to `huggingface_hub==0.7.0` to make it work (latest is 0.13.3).
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api
### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__init__.py", line 37, in <module> from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, Dat...
32
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api ### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__...
[ -0.29969364404678345, -0.360951691865921, -0.0473315455019474, 0.36517247557640076, 0.42924559116363525, -0.0765240490436554, 0.24430179595947266, 0.5703027844429016, -0.040128376334905624, 0.29361385107040405, -0.03497811034321785, 0.2826228737831116, -0.0843978226184845, 0.17554573714733...
https://github.com/huggingface/datasets/issues/5690
Before the error happens at line 120 in `data_files.py`, `datasets.filesystems.hffilesystem` is imported at the top of `data_files.py` and this file does `from huggingface_hub.hf_api import DatasetInfo` - so `huggingface_hub.hf_api` is imported. Not sure how the error could happen, what version of `datasets` are you us...
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api
### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__init__.py", line 37, in <module> from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, Dat...
46
raise AttributeError(f"No {package_name} attribute {name}") AttributeError: No huggingface_hub attribute hf_api ### Describe the bug rta.sh Traceback (most recent call last): File "run.py", line 7, in <module> import datasets File "/home/appuser/miniconda3/envs/pt2/lib/python3.8/site-packages/datasets/__...
[ -0.29969364404678345, -0.360951691865921, -0.0473315455019474, 0.36517247557640076, 0.42924559116363525, -0.0765240490436554, 0.24430179595947266, 0.5703027844429016, -0.040128376334905624, 0.29361385107040405, -0.03497811034321785, 0.2826228737831116, -0.0843978226184845, 0.17554573714733...
https://github.com/huggingface/datasets/issues/5688
Hi @adrianfagerland, thanks for reporting. Please note that "wikipedia" is a special dataset, with an Apache Beam builder: https://beam.apache.org/ You can find more info about Beam datasets in our docs: https://huggingface.co/docs/datasets/beam It was implemented to be run in parallel processing, using one of t...
Wikipedia download_and_prepare for GCS
### Describe the bug I am unable to download the wikipedia dataset onto GCS. When I run the script provided the memory firstly gets eaten up, then it crashes. I tried running this on a VM with 128GB RAM and all I got was a two empty files: _data_builder.lock_, _data.incomplete/beam-temp-wikipedia-train-1ab2039a...
135
Wikipedia download_and_prepare for GCS ### Describe the bug I am unable to download the wikipedia dataset onto GCS. When I run the script provided the memory firstly gets eaten up, then it crashes. I tried running this on a VM with 128GB RAM and all I got was a two empty files: _data_builder.lock_, _data.inco...
[ -0.14688315987586975, 0.12495306134223938, 0.043897926807403564, 0.5361847877502441, 0.2786172926425934, 0.15908744931221008, -0.07821910083293915, 0.18579792976379395, 0.21924205124378204, 0.07019755244255066, 0.4104774296283722, 0.11143122613430023, -0.12108080834150314, -0.4063335061073...
https://github.com/huggingface/datasets/issues/5688
When running this using : ``` import datasets from apache_beam.options.pipeline_options import PipelineOptions from gcsfs import GCSFileSystem storage_options = {"project":"tdt4310", "token":"cloud"} fs = GCSFileSystem(**storage_options) output_dir = "gcs://quiz_transformer/" beam_options = PipelineOptions(...
Wikipedia download_and_prepare for GCS
### Describe the bug I am unable to download the wikipedia dataset onto GCS. When I run the script provided the memory firstly gets eaten up, then it crashes. I tried running this on a VM with 128GB RAM and all I got was a two empty files: _data_builder.lock_, _data.incomplete/beam-temp-wikipedia-train-1ab2039a...
103
Wikipedia download_and_prepare for GCS ### Describe the bug I am unable to download the wikipedia dataset onto GCS. When I run the script provided the memory firstly gets eaten up, then it crashes. I tried running this on a VM with 128GB RAM and all I got was a two empty files: _data_builder.lock_, _data.inco...
[ -0.14688315987586975, 0.12495306134223938, 0.043897926807403564, 0.5361847877502441, 0.2786172926425934, 0.15908744931221008, -0.07821910083293915, 0.18579792976379395, 0.21924205124378204, 0.07019755244255066, 0.4104774296283722, 0.11143122613430023, -0.12108080834150314, -0.4063335061073...
https://github.com/huggingface/datasets/issues/5687
Great idea! Should we also take this opportunity to include some audio/image file formats? Currently, it still reads very text heavy. Something like: > We support many text, audio, and image data extensions such as `.zip`, `.rar`, `.mp3`, and `.jpg` among many others. For data extensions like `.csv`, `.json`, `.j...
Document to compress data files before uploading
In our docs to [Share a dataset to the Hub](https://huggingface.co/docs/datasets/upload_dataset), we tell users to upload directly their data files, like CSV, JSON, JSON-Lines, text,... However, these extensions are not tracked by Git LFS by default, as they are not in the `.giattributes` file. Therefore, if they are t...
102
Document to compress data files before uploading In our docs to [Share a dataset to the Hub](https://huggingface.co/docs/datasets/upload_dataset), we tell users to upload directly their data files, like CSV, JSON, JSON-Lines, text,... However, these extensions are not tracked by Git LFS by default, as they are not in...
[ -0.2533719539642334, 0.054745256900787354, 0.005586832761764526, 0.27009162306785583, 0.11869227886199951, 0.05874861776828766, -0.044740378856658936, 0.4713585376739502, -0.01798579841852188, 0.14153584837913513, -0.1133246198296547, 0.055356815457344055, -0.06797626614570618, 0.223861798...
https://github.com/huggingface/datasets/issues/5687
Hi @stevhliu, thanks for your suggestion. I agree it is a good opportunity to mention that audio/image file formats are also supported. Nit: I would not mention .zip, .rar after "text, audio, and image data extensions". Those are "compression" extensions and not "text, audio, and image data extensions". What ...
Document to compress data files before uploading
In our docs to [Share a dataset to the Hub](https://huggingface.co/docs/datasets/upload_dataset), we tell users to upload directly their data files, like CSV, JSON, JSON-Lines, text,... However, these extensions are not tracked by Git LFS by default, as they are not in the `.giattributes` file. Therefore, if they are t...
181
Document to compress data files before uploading In our docs to [Share a dataset to the Hub](https://huggingface.co/docs/datasets/upload_dataset), we tell users to upload directly their data files, like CSV, JSON, JSON-Lines, text,... However, these extensions are not tracked by Git LFS by default, as they are not in...
[ -0.3402373790740967, -0.011479124426841736, -0.006043870002031326, 0.18851113319396973, 0.09288416802883148, 0.03134346008300781, -0.012564806267619133, 0.41845306754112244, -0.02043207734823227, 0.10502022504806519, -0.06398440152406693, 0.03946533426642418, -0.028320204466581345, 0.12046...
https://github.com/huggingface/datasets/issues/5685
Hi! You can fix the viewer by adding the `dataset_info` YAML field deleted in https://huggingface.co/datasets/Francesco/cell-towers/commit/b95b59ddd91ebe9c12920f0efe0ed415cd0d4298 back to the metadata section of the card. To avoid this issue in the feature, you can use `huggingface_hub`'s [RepoCard](https://hug...
Broken Image render on the hub website
### Describe the bug Hi :wave: Not sure if this is the right place to ask, but I am trying to load a huge amount of datasets on the hub (:partying_face: ) but I am facing a little issue with the `image` type ![image](https://user-images.githubusercontent.com/15908060/228587875-427a37f1-3a31-4e17-8bbe-0f75900391...
111
Broken Image render on the hub website ### Describe the bug Hi :wave: Not sure if this is the right place to ask, but I am trying to load a huge amount of datasets on the hub (:partying_face: ) but I am facing a little issue with the `image` type ![image](https://user-images.githubusercontent.com/15908060/228...
[ -0.43464988470077515, -0.4146606922149658, -0.09680424630641937, 0.5902366638183594, 0.461051881313324, -0.005445204675197601, 0.29988235235214233, 0.4036051332950592, 0.023893944919109344, 0.15203532576560974, 0.01003292202949524, 0.05818457528948784, -0.102505162358284, 0.064158573746681...
https://github.com/huggingface/datasets/issues/5685
Thanks for reporting @FrancescoSaverioZuppichini. For future issues with your specific dataset, you can use its "Community" tab to start a conversation: https://huggingface.co/datasets/Francesco/cell-towers/discussions/new
Broken Image render on the hub website
### Describe the bug Hi :wave: Not sure if this is the right place to ask, but I am trying to load a huge amount of datasets on the hub (:partying_face: ) but I am facing a little issue with the `image` type ![image](https://user-images.githubusercontent.com/15908060/228587875-427a37f1-3a31-4e17-8bbe-0f75900391...
22
Broken Image render on the hub website ### Describe the bug Hi :wave: Not sure if this is the right place to ask, but I am trying to load a huge amount of datasets on the hub (:partying_face: ) but I am facing a little issue with the `image` type ![image](https://user-images.githubusercontent.com/15908060/228...
[ -0.43464988470077515, -0.4146606922149658, -0.09680424630641937, 0.5902366638183594, 0.461051881313324, -0.005445204675197601, 0.29988235235214233, 0.4036051332950592, 0.023893944919109344, 0.15203532576560974, 0.01003292202949524, 0.05818457528948784, -0.102505162358284, 0.064158573746681...
https://github.com/huggingface/datasets/issues/5685
Thanks @albertvillanova , @mariosasko I was not aware of this requirement from the doc (must have skipped :sweat_smile: ) Confirmed, adding back `dataset_info` fixed the issu
Broken Image render on the hub website
### Describe the bug Hi :wave: Not sure if this is the right place to ask, but I am trying to load a huge amount of datasets on the hub (:partying_face: ) but I am facing a little issue with the `image` type ![image](https://user-images.githubusercontent.com/15908060/228587875-427a37f1-3a31-4e17-8bbe-0f75900391...
26
Broken Image render on the hub website ### Describe the bug Hi :wave: Not sure if this is the right place to ask, but I am trying to load a huge amount of datasets on the hub (:partying_face: ) but I am facing a little issue with the `image` type ![image](https://user-images.githubusercontent.com/15908060/228...
[ -0.43464988470077515, -0.4146606922149658, -0.09680424630641937, 0.5902366638183594, 0.461051881313324, -0.005445204675197601, 0.29988235235214233, 0.4036051332950592, 0.023893944919109344, 0.15203532576560974, 0.01003292202949524, 0.05818457528948784, -0.102505162358284, 0.064158573746681...
https://github.com/huggingface/datasets/issues/5681
Good idea, I think I've seen this a couple of times before too on the forums. I can work on this :)
Add information about patterns search order to the doc about structuring repo
Following [this](https://github.com/huggingface/datasets/issues/5650) issue I think we should add a note about the order of patterns that is used to find splits, see [my comment](https://github.com/huggingface/datasets/issues/5650#issuecomment-1488412527). Also we should reference this page in pages about packaged load...
22
Add information about patterns search order to the doc about structuring repo Following [this](https://github.com/huggingface/datasets/issues/5650) issue I think we should add a note about the order of patterns that is used to find splits, see [my comment](https://github.com/huggingface/datasets/issues/5650#issuecomm...
[ -0.03904266655445099, -0.3705797493457794, -0.1258505880832672, 0.17808911204338074, 0.1903303861618042, -0.36044180393218994, 0.18976858258247375, 0.0783003568649292, 0.15238475799560547, 0.1930197924375534, -0.13044577836990356, 0.2470816820859909, 0.16735267639160156, 0.5323824286460876...
https://github.com/huggingface/datasets/issues/5679
Hi ! AFAIK a dataset must be present on a local disk to be able to efficiently memory map the datasets Arrow files. What makes you think that it is possible to load from a cloud storage and have good performance ? Anyway it's already possible to download_and_prepare a dataset as Arrow files in a cloud storage with: ...
Allow load_dataset to take a working dir for intermediate data
### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help the use case for using datasets with cloud storage as cache. It wi...
81
Allow load_dataset to take a working dir for intermediate data ### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help t...
[ -0.22743752598762512, 0.12301477789878845, -0.09564196318387985, 0.038734182715415955, 0.24622029066085815, 0.15327858924865723, 0.2675952911376953, 0.1366892158985138, 0.27905985713005066, -0.035340793430805206, 0.1501983255147934, 0.10304774343967438, -0.23229822516441345, 0.141606971621...
https://github.com/huggingface/datasets/issues/5679
In my use case, I am trying to mount the S3 bucket as local system with S3FS-FUSE / [goofys](https://github.com/kahing/goofys). I want to use S3 to save the download data and save checkpoint for training for persistent. Setting the s3 location as cache directory is not fast enough. That is why I want to set a work dire...
Allow load_dataset to take a working dir for intermediate data
### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help the use case for using datasets with cloud storage as cache. It wi...
72
Allow load_dataset to take a working dir for intermediate data ### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help t...
[ -0.2566339671611786, 0.023805156350135803, -0.053285229951143265, 0.0076834531500935555, 0.3601284921169281, 0.07705654948949814, 0.29493626952171326, 0.07726917415857315, 0.20917001366615295, 0.01784486696124077, -0.18246030807495117, 0.20428483188152313, -0.2562048137187958, 0.2634580433...
https://github.com/huggingface/datasets/issues/5679
You can try setting `HF_DATASETS_DOWNLOADED_DATASETS_PATH` and `HF_DATASETS_EXTRACTED_DATASETS_PATH` to S3, and `HF_DATASETS_CACHE` to your local disk. This way all your downloaded and extracted data are on your mounted S3, but the datasets Arrow files are on your local disk
Allow load_dataset to take a working dir for intermediate data
### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help the use case for using datasets with cloud storage as cache. It wi...
38
Allow load_dataset to take a working dir for intermediate data ### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help t...
[ -0.19982753694057465, 0.03733693063259125, -0.08418058604001999, 0.1201605424284935, 0.2349478006362915, -0.006300181150436401, 0.28975820541381836, 0.13399635255336761, 0.19774851202964783, 0.10961408913135529, -0.2626340687274933, 0.25090765953063965, 0.010908156633377075, 0.229562431573...
https://github.com/huggingface/datasets/issues/5679
If we hope to also persist the Arrow files on the mounted S3 but work with the efficiency of local disk, is there any recommended way to do this, other than copying the Arrow files from local disk to S3?
Allow load_dataset to take a working dir for intermediate data
### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help the use case for using datasets with cloud storage as cache. It wi...
40
Allow load_dataset to take a working dir for intermediate data ### Feature request As a user, I can set a working dir for intermediate data creation. The processed files will be moved to the cache dir, like ``` load_dataset(…, working_dir=”/temp/dir”, cache_dir=”/cloud_dir”). ``` ### Motivation This will help t...
[ -0.08383795619010925, -0.033123135566711426, -0.07087063789367676, 0.20988696813583374, 0.22888898849487305, -0.08875510096549988, 0.3452471196651459, -0.048271454870700836, 0.09551674127578735, 0.07929646968841553, -0.05972505360841751, 0.4497453272342682, -0.21414722502231598, 0.15620225...
https://github.com/huggingface/datasets/issues/5678
if i read spark Dataframe , got an error on multi-node Spark cluster. Did the Api (Dataset.from_spark) support Spark cluster, read dataframe and save_to_disk? Error: _pickle.PicklingError: Could not serialize object: RuntimeError: It appears that you are attempting to reference SparkContext from a broadcast vari...
Add support to create a Dataset from spark dataframe
### Feature request Add a new API `Dataset.from_spark` to create a Dataset from Spark DataFrame. ### Motivation Spark is a distributed computing framework that can handle large datasets. By supporting loading Spark DataFrames directly into Hugging Face Datasets, we enable take the advantages of spark to processing t...
87
Add support to create a Dataset from spark dataframe ### Feature request Add a new API `Dataset.from_spark` to create a Dataset from Spark DataFrame. ### Motivation Spark is a distributed computing framework that can handle large datasets. By supporting loading Spark DataFrames directly into Hugging Face Datasets,...
[ -0.6102316379547119, -0.3675934076309204, -0.06564702093601227, 0.3130309581756592, 0.1362481266260147, 0.16130802035331726, 0.30632686614990234, 0.08133542537689209, 0.29441624879837036, 0.24111407995224, 0.023319222033023834, 0.5314666032791138, -0.2611978352069855, 0.6833664178848267, ...
https://github.com/huggingface/datasets/issues/5675
The dataset still can be found, if instead of using the search form you just enter the language code in the url, like https://huggingface.co/datasets?language=language:myv. But of course having a more complete list of languages in the search form (or just a fallback to the language codes, if they are missing from t...
Filter datasets by language code
Hi! I use the language search field on https://huggingface.co/datasets However, some of the datasets tagged by ISO language code are not accessible by this search form. For example, [myv_ru_2022](https://huggingface.co/datasets/slone/myv_ru_2022) is has `myv` language tag but it is not included in Languages search fo...
59
Filter datasets by language code Hi! I use the language search field on https://huggingface.co/datasets However, some of the datasets tagged by ISO language code are not accessible by this search form. For example, [myv_ru_2022](https://huggingface.co/datasets/slone/myv_ru_2022) is has `myv` language tag but it is ...
[ -0.06282593309879303, -0.20659342408180237, -0.17733187973499298, 0.23492112755775452, 0.07310470938682556, -0.2612895369529724, -0.009905064478516579, 0.3076384663581848, 0.44437944889068604, 0.15708518028259277, -0.44240567088127136, -0.1137557327747345, -0.27763545513153076, 0.299900949...
https://github.com/huggingface/datasets/issues/5675
Thanks @mariosasko! Do you think it is possible to turn this into a more scalable pipeline? Such as: 1. Looping through all the datasets on the hub and collecting the set of all their language codes; 2. Selecting the codes not covered yet in `Language.ts` 3. Looking up their codes at https://iso639-3.sil.org/code_t...
Filter datasets by language code
Hi! I use the language search field on https://huggingface.co/datasets However, some of the datasets tagged by ISO language code are not accessible by this search form. For example, [myv_ru_2022](https://huggingface.co/datasets/slone/myv_ru_2022) is has `myv` language tag but it is not included in Languages search fo...
62
Filter datasets by language code Hi! I use the language search field on https://huggingface.co/datasets However, some of the datasets tagged by ISO language code are not accessible by this search form. For example, [myv_ru_2022](https://huggingface.co/datasets/slone/myv_ru_2022) is has `myv` language tag but it is ...
[ -0.23549909889698029, -0.3141016364097595, -0.16945230960845947, 0.31763502955436707, 0.04180864617228508, -0.19436626136302948, -0.02594975009560585, 0.31811797618865967, 0.4529891312122345, 0.14891573786735535, -0.3567380905151367, -0.07253128290176392, -0.27924197912216187, 0.4948565363...
https://github.com/huggingface/datasets/issues/5675
@avidale This has been discussed in https://github.com/huggingface/datasets/issues/4881, so also feel free to share your opinion there.
Filter datasets by language code
Hi! I use the language search field on https://huggingface.co/datasets However, some of the datasets tagged by ISO language code are not accessible by this search form. For example, [myv_ru_2022](https://huggingface.co/datasets/slone/myv_ru_2022) is has `myv` language tag but it is not included in Languages search fo...
16
Filter datasets by language code Hi! I use the language search field on https://huggingface.co/datasets However, some of the datasets tagged by ISO language code are not accessible by this search form. For example, [myv_ru_2022](https://huggingface.co/datasets/slone/myv_ru_2022) is has `myv` language tag but it is ...
[ -0.055522847920656204, -0.318469762802124, -0.17925629019737244, 0.3371954560279846, 0.19591617584228516, -0.26104849576950073, 0.01392504945397377, 0.2177552729845047, 0.4539124071598053, 0.12786586582660675, -0.5019581317901611, -0.06373956054449081, -0.30710846185684204, 0.4141940474510...
https://github.com/huggingface/datasets/issues/5672
Hi ! It's been fixed by https://github.com/huggingface/datasets/pull/5598. We're doing a new release tomorrow with the fix and you'll be able to push your 100k images ;) Basically `push_to_hub` used to fail if the remote repository already exists and has a README.md without dataset_info in the YAML tags. In the m...
Pushing dataset to hub crash
### Describe the bug Uploading a dataset with `push_to_hub()` fails without error description. ### Steps to reproduce the bug Hey there, I've built a image dataset of 100k images + text pair as described here https://huggingface.co/docs/datasets/image_dataset#imagefolder Now I'm trying to push it to the hub b...
56
Pushing dataset to hub crash ### Describe the bug Uploading a dataset with `push_to_hub()` fails without error description. ### Steps to reproduce the bug Hey there, I've built a image dataset of 100k images + text pair as described here https://huggingface.co/docs/datasets/image_dataset#imagefolder Now I'm...
[ -0.3978685140609741, -0.49170318245887756, 0.0054841674864292145, 0.4743315875530243, 0.26180773973464966, 0.009896665811538696, -0.0037007853388786316, 0.22173283994197845, 0.23481225967407227, 0.11129070073366165, -0.04022059962153435, 0.032485585659742355, -0.4445820450782776, 0.2870788...
https://github.com/huggingface/datasets/issues/5672
Hi @lhoestq , What version of datasets library fix this case? I am using the last `v2.10.1` and I get the same error.
Pushing dataset to hub crash
### Describe the bug Uploading a dataset with `push_to_hub()` fails without error description. ### Steps to reproduce the bug Hey there, I've built a image dataset of 100k images + text pair as described here https://huggingface.co/docs/datasets/image_dataset#imagefolder Now I'm trying to push it to the hub b...
23
Pushing dataset to hub crash ### Describe the bug Uploading a dataset with `push_to_hub()` fails without error description. ### Steps to reproduce the bug Hey there, I've built a image dataset of 100k images + text pair as described here https://huggingface.co/docs/datasets/image_dataset#imagefolder Now I'm...
[ -0.3978685140609741, -0.49170318245887756, 0.0054841674864292145, 0.4743315875530243, 0.26180773973464966, 0.009896665811538696, -0.0037007853388786316, 0.22173283994197845, 0.23481225967407227, 0.11129070073366165, -0.04022059962153435, 0.032485585659742355, -0.4445820450782776, 0.2870788...
https://github.com/huggingface/datasets/issues/5671
Sounds like an issue with incompatible `transformers` dependencies versions. Can you try to update `transformers` ? EDIT: I checked the `transformers` dependencies and it seems like you need `tokenizers>=0.10.1,<0.11` with `transformers==4.5.1` EDIT2: this old version of `datasets` seems to import `transformer...
How to use `load_dataset('glue', 'cola')`
### Describe the bug I'm new to use HuggingFace datasets but I cannot use `load_dataset('glue', 'cola')`. - I was stacked by the following problem: ```python from datasets import load_dataset cola_dataset = load_dataset('glue', 'cola') ------------------------------------------------------------------------...
59
How to use `load_dataset('glue', 'cola')` ### Describe the bug I'm new to use HuggingFace datasets but I cannot use `load_dataset('glue', 'cola')`. - I was stacked by the following problem: ```python from datasets import load_dataset cola_dataset = load_dataset('glue', 'cola') ----------------------------...
[ -0.22955703735351562, -0.36152297258377075, 0.02578902244567871, 0.3840595781803131, 0.17230817675590515, 0.07655145227909088, 0.31120720505714417, -0.01677183248102665, 0.4112164378166199, 0.025528445839881897, -0.3663536012172699, 0.050917595624923706, 0.02579551562666893, 0.285823673009...
https://github.com/huggingface/datasets/issues/5671
Thank you for advising me to update these libraries versions. I can implement codes using `datasets==2.10.1` and `transformers==4.27.3`
How to use `load_dataset('glue', 'cola')`
### Describe the bug I'm new to use HuggingFace datasets but I cannot use `load_dataset('glue', 'cola')`. - I was stacked by the following problem: ```python from datasets import load_dataset cola_dataset = load_dataset('glue', 'cola') ------------------------------------------------------------------------...
18
How to use `load_dataset('glue', 'cola')` ### Describe the bug I'm new to use HuggingFace datasets but I cannot use `load_dataset('glue', 'cola')`. - I was stacked by the following problem: ```python from datasets import load_dataset cola_dataset = load_dataset('glue', 'cola') ----------------------------...
[ -0.22955703735351562, -0.36152297258377075, 0.02578902244567871, 0.3840595781803131, 0.17230817675590515, 0.07655145227909088, 0.31120720505714417, -0.01677183248102665, 0.4112164378166199, 0.025528445839881897, -0.3663536012172699, 0.050917595624923706, 0.02579551562666893, 0.285823673009...
https://github.com/huggingface/datasets/issues/5669
Hi! The first dataset stores images as bytes (the "image" column type is `datasets.Image()`) and decodes them as `PIL.Image` objects and the second dataset stores them as variable-length lists (the "image" column type is `datasets.Sequence(...)`)), so I guess going from `arrow bytes -> NumPy -> decoding as PIL.Imag...
Almost identical datasets, huge performance difference
### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torch.utils.data import DataLoader dataset = load_dataset(...
104
Almost identical datasets, huge performance difference ### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torc...
[ -0.12182904034852982, -0.2700640559196472, -0.0735313817858696, 0.2854200005531311, 0.14487147331237793, 0.04311932623386383, 0.1386280208826065, 0.35452738404273987, -0.22428296506404877, 0.2321704626083374, -0.019009819254279137, 0.6346409320831299, -0.1887723207473755, -0.28684741258621...
https://github.com/huggingface/datasets/issues/5669
Thanks, @mariosasko. I could not understand why a (decoded) sequence should be MUCH slower than an encoded image (that must be decoded every time). At any rate, I tried you suggestion. It made the `map` step to run extremely slow (consumes all the 16GB of memory and starts swapping) I tried also the easiest (as I se...
Almost identical datasets, huge performance difference
### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torch.utils.data import DataLoader dataset = load_dataset(...
254
Almost identical datasets, huge performance difference ### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torc...
[ -0.1453673094511032, -0.3491884768009186, -0.06639406085014343, 0.33127361536026, 0.20194268226623535, 0.09923874586820602, 0.10682331770658493, 0.3263128697872162, -0.21502655744552612, 0.2893214225769043, 0.0024473294615745544, 0.5300883650779724, -0.1816093623638153, -0.3050787746906280...
https://github.com/huggingface/datasets/issues/5669
Correction: the `beans` dataset stores the image file paths, not the bytes. For your use case, I think it makes more sense to use `with_tranform` than `map` and lazily decode images with `cv2.imread` when indexing an example/batch: ```python import cv2 def transform(batch): batch["image2"] = np.stack([cv2...
Almost identical datasets, huge performance difference
### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torch.utils.data import DataLoader dataset = load_dataset(...
55
Almost identical datasets, huge performance difference ### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torc...
[ -0.2065252661705017, -0.17120826244354248, -0.06908885389566422, 0.2150074988603592, 0.19906581938266754, 0.05381663143634796, 0.1543339192867279, 0.3986895680427551, -0.16916751861572266, 0.24308669567108154, -0.025165587663650513, 0.6264331340789795, -0.12338794767856598, -0.223262816667...
https://github.com/huggingface/datasets/issues/5669
This is incorrect. Did you try to run it? dataset[0] returns a tensor of numbers. dataset2[0] returns the same tensor, but after a few long seconds. Looping over a thousand of images cannot take 15 minutes. On Fri, 24 Mar 2023 at 19:28 Mario Šaško ***@***.***> wrote: > Correction: the beans dataset stores the imag...
Almost identical datasets, huge performance difference
### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torch.utils.data import DataLoader dataset = load_dataset(...
147
Almost identical datasets, huge performance difference ### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torc...
[ -0.20905712246894836, -0.22886568307876587, -0.08028101921081543, 0.2549530863761902, 0.23452545702457428, 0.024585843086242676, 0.20100745558738708, 0.43278390169143677, -0.24287205934524536, 0.2857791781425476, 0.0024026259779930115, 0.5662869811058044, -0.16168633103370667, -0.217614233...
https://github.com/huggingface/datasets/issues/5669
I updated the transform with the NumPy -> PyTorch conversion. I'm sharing the entire code: ```python import cv2 import numpy as np import datasets import torch from datasets import load_dataset from torch.utils.data import DataLoader dataset = load_dataset("beans", split="train") def transform(batch): ...
Almost identical datasets, huge performance difference
### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torch.utils.data import DataLoader dataset = load_dataset(...
97
Almost identical datasets, huge performance difference ### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torc...
[ -0.1086694598197937, -0.3165908753871918, -0.0370158776640892, 0.20473462343215942, 0.11170768737792969, -0.0067077502608299255, 0.1725558638572693, 0.3824242651462555, -0.3159745931625366, 0.21421703696250916, 0.011232253164052963, 0.6077688932418823, -0.12937991321086884, -0.328779727220...
https://github.com/huggingface/datasets/issues/5669
Thanks, @mariosasko My question remain unanswered though. Why is the `map`ed dataset so slow? My understanding is that a dataset of numpy arrays should be must faster than a dataset that has to decode images into numpy arrays every time one accesses an item.
Almost identical datasets, huge performance difference
### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torch.utils.data import DataLoader dataset = load_dataset(...
44
Almost identical datasets, huge performance difference ### Describe the bug I am struggling to understand (huge) performance difference between two datasets that are almost identical. ### Steps to reproduce the bug # Fast (normal) dataset speed: ```python import cv2 from datasets import load_dataset from torc...
[ -0.09605950117111206, -0.22668693959712982, -0.11022147536277771, 0.26627662777900696, 0.2136155068874359, 0.205649733543396, 0.2483494132757187, 0.3349485397338867, -0.05455964058637619, 0.16616234183311462, -0.12629826366901398, 0.6400960087776184, -0.16121694445610046, -0.29643967747688...
https://github.com/huggingface/datasets/issues/5660
You can convert any dataset to pandas to be used with imbalanced-learn using `.to_pandas()` Otherwise if you want to keep a `Dataset` object and still use e.g. [make_imbalance](https://imbalanced-learn.org/stable/references/generated/imblearn.datasets.make_imbalance.html#imblearn.datasets.make_imbalance), you just n...
integration with imbalanced-learn
### Feature request Wouldn't it be great if the various class balancing operations from imbalanced-learn were available as part of datasets? ### Motivation I'm trying to use imbalanced-learn to balance a dataset, but it's not clear how to get the two to interoperate - what would be great would be some examples. I'v...
62
integration with imbalanced-learn ### Feature request Wouldn't it be great if the various class balancing operations from imbalanced-learn were available as part of datasets? ### Motivation I'm trying to use imbalanced-learn to balance a dataset, but it's not clear how to get the two to interoperate - what would b...
[ -0.4059140682220459, -0.0036018192768096924, -0.10110694169998169, 0.21088753640651703, 0.1698371022939682, 0.2346896529197693, 0.4644748568534851, -0.06730081140995026, 0.11677782982587814, -0.1608097404241562, -0.5748015642166138, 0.3132125437259674, 0.037380628287792206, 0.3158548176288...
https://github.com/huggingface/datasets/issues/5659
@sanchit-gandhi can you please also post the logs of `pip install soundfile==0.12.1`? To check what wheel is being installed or if it's being built from source (I think it's the latter case). Required `libsndfile` binary **should** be bundeled with `soundfile` wheel but I assume it **might not** be the case for some ...
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
197
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
Not sure if it may help, but you could also try updating `pip` before installing soundfile
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
16
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
@lhoestq @sanchit-gandhi. I encountered the same error (also on the TPU v4) when trying to run `datasets` from source. Downgrading soundfile with `pip install soundfile==0.12.0` seems to fix the issue for me.
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
32
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
Maybe let's open an issue at https://github.com/bastibe/python-soundfile/issues in case they might know why you get `OSError: cannot load library 'libsndfile.so'` ?
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
21
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
> @sanchit-gandhi can you please also post the logs of `pip install soundfile==0.12.1`? To check what wheel is being installed or if it's being built from source (I think it's the latter case). Required `libsndfile` binary **should** be bundeled with `soundfile` wheel but I assume it **might not** be the case for some ...
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
119
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
Thank you so much for the comprehensive instructions @polinaeterna! Also confirming that they worked for me 🤗 In my case, I had to run several of these commands under "sudo" for privileges, but otherwise this workaround gave a successful `libsndfile` install: 1. Grab source code: ``` git clone https://github.com/...
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
120
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
On a different machine, I also tried separately by first upgrading pip, then installing soundfile. This worked too! Thanks @lhoestq 🙌
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
21
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
> @sanchit-gandhi can you please also post the logs of `pip install soundfile==0.12.1`? To check what wheel is being installed or if it's being built from source (I think it's the latter case). Required `libsndfile` binary **should** be bundeled with `soundfile` wheel but I assume it **might not** be the case for some ...
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
257
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
> Thank you so much for the comprehensive instructions @polinaeterna! Also confirming that they worked for me 🤗 In my case, I had to run several of these commands under "sudo" for privileges, but otherwise this workaround gave a successful `libsndfile` install: > > 1. Grab source code: > > ``` > git clone https...
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
171
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
I had the same issue but it is working now! Thanks for all of your comments!
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
16
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5659
I had the same issue on SageMaker but not on Colab; The `soundfile` versioning was fine. my approach to solve it was to match {"numpy", "numba"} exact versions ``` ! pip install "numpy==1.23.5" ! pip install "numpy==0.58.1" ``` the numbers are from Colab where successfully I could do the job.
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files
### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundfile`/`libsndfile` libraries for loading audio samples, regardless of their file t...
50
[Audio] Soundfile/libsndfile requirements too stringent for decoding mp3 files ### Describe the bug I'm encountering several issues trying to load mp3 audio files using `datasets` on a TPU v4. The PR https://github.com/huggingface/datasets/pull/5573 updated the audio loading logic to rely solely on the `soundf...
[ -0.049880754202604294, 0.21389538049697876, -0.02552657201886177, 0.37763962149620056, 0.36412861943244934, -0.05396618694067001, 0.2889644503593445, 0.11923642456531525, -0.2776981592178345, 0.2703988552093506, -0.33914411067962646, 0.02121618017554283, -0.19508084654808044, -0.0524478666...
https://github.com/huggingface/datasets/issues/5654
Upd. the above code works if we replace `25` with `1`, but the result value at key "hr" is not a tensor but a list of lists of lists of uint8. Adding `train_data.set_format("torch")` after map fixes this, but the original issue remains
Offset overflow when executing Dataset.map
### Describe the bug Hi, I'm trying to use `.map` method to cache multiple random crops from the image to speed up data processing during training, as the image size is too big. The map function executes all iterations, and then returns the following error: ```bash Traceback (most recent call last): ...
42
Offset overflow when executing Dataset.map ### Describe the bug Hi, I'm trying to use `.map` method to cache multiple random crops from the image to speed up data processing during training, as the image size is too big. The map function executes all iterations, and then returns the following error: ```bash ...
[ -0.3162172734737396, -0.13853387534618378, 0.012086600065231323, 0.2913801670074463, 0.0989006906747818, 0.006209701299667358, 0.33761030435562134, 0.2682550549507141, -0.08812040835618973, 0.15623009204864502, 0.31795451045036316, 0.34499314427375793, -0.07823392003774643, -0.283382773399...
https://github.com/huggingface/datasets/issues/5654
As a workaround, one can replace `return {"hr": torch.stack([crop_transf(tensor) for _ in range(25)])}` with `return {f"hr_crop_{i}": crop_transf(tensor) for i in range(25)}` and then choose appropriate crop randomly in further processing, but I still don't understand why the original approach doesn't work(
Offset overflow when executing Dataset.map
### Describe the bug Hi, I'm trying to use `.map` method to cache multiple random crops from the image to speed up data processing during training, as the image size is too big. The map function executes all iterations, and then returns the following error: ```bash Traceback (most recent call last): ...
41
Offset overflow when executing Dataset.map ### Describe the bug Hi, I'm trying to use `.map` method to cache multiple random crops from the image to speed up data processing during training, as the image size is too big. The map function executes all iterations, and then returns the following error: ```bash ...
[ -0.3162172734737396, -0.13853387534618378, 0.012086600065231323, 0.2913801670074463, 0.0989006906747818, 0.006209701299667358, 0.33761030435562134, 0.2682550549507141, -0.08812040835618973, 0.15623009204864502, 0.31795451045036316, 0.34499314427375793, -0.07823392003774643, -0.283382773399...
https://github.com/huggingface/datasets/issues/5651
Hello, It says `save_to_disk` is deprecated in 2.8.0, so the alternative to this will be `storage_options`? https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.save_to_disk
expanduser in save_to_disk
### Describe the bug save_to_disk() does not expand `~` 1. `dataset = load_datasets("any dataset")` 2. `dataset.save_to_disk("~/data")` 3. a folder named "~" created in current folder 4. FileNotFoundError is raised, because the expanded path does not exist (`/home/<user>/data`) related issue https://github....
17
expanduser in save_to_disk ### Describe the bug save_to_disk() does not expand `~` 1. `dataset = load_datasets("any dataset")` 2. `dataset.save_to_disk("~/data")` 3. a folder named "~" created in current folder 4. FileNotFoundError is raised, because the expanded path does not exist (`/home/<user>/data`) ...
[ -0.14264874160289764, -0.273425430059433, 0.08651530742645264, 0.28257906436920166, 0.5655992031097412, 0.011892750859260559, 0.2978208363056183, 0.001508474349975586, -0.016337838023900986, 0.1727750301361084, -0.26282215118408203, 0.012623298913240433, -0.23922722041606903, -0.1030168086...
https://github.com/huggingface/datasets/issues/5651
@ashikshafi08 I think you misunderstood the warning. The method `save_to_disk` is not deprecated only the optional parameter `fs`. Also @benjaminbrown038 as I cannot find your PR I would like to work on this if you don't mind.
expanduser in save_to_disk
### Describe the bug save_to_disk() does not expand `~` 1. `dataset = load_datasets("any dataset")` 2. `dataset.save_to_disk("~/data")` 3. a folder named "~" created in current folder 4. FileNotFoundError is raised, because the expanded path does not exist (`/home/<user>/data`) related issue https://github....
37
expanduser in save_to_disk ### Describe the bug save_to_disk() does not expand `~` 1. `dataset = load_datasets("any dataset")` 2. `dataset.save_to_disk("~/data")` 3. a folder named "~" created in current folder 4. FileNotFoundError is raised, because the expanded path does not exist (`/home/<user>/data`) ...
[ -0.25514593720436096, -0.28579622507095337, 0.08033251017332077, 0.1457454115152359, 0.5986451506614685, -0.061253517866134644, 0.3984640836715698, 0.04652600362896919, -0.06246251240372658, 0.2774219512939453, -0.22879323363304138, -0.00004668533802032471, -0.2396613508462906, -0.16584624...
https://github.com/huggingface/datasets/issues/5651
@mariosasko It's been several months and the PR is not reviewed. Could you please take a look? I assume this is not complicated and could be merged fairly soon.
expanduser in save_to_disk
### Describe the bug save_to_disk() does not expand `~` 1. `dataset = load_datasets("any dataset")` 2. `dataset.save_to_disk("~/data")` 3. a folder named "~" created in current folder 4. FileNotFoundError is raised, because the expanded path does not exist (`/home/<user>/data`) related issue https://github....
29
expanduser in save_to_disk ### Describe the bug save_to_disk() does not expand `~` 1. `dataset = load_datasets("any dataset")` 2. `dataset.save_to_disk("~/data")` 3. a folder named "~" created in current folder 4. FileNotFoundError is raised, because the expanded path does not exist (`/home/<user>/data`) ...
[ -0.13998648524284363, -0.30963942408561707, 0.10560639947652817, 0.3240334391593933, 0.577688455581665, -0.023360684514045715, 0.37770694494247437, -0.03220584616065025, -0.06492868065834045, 0.20577020943164825, -0.12886083126068115, -0.05877376347780228, -0.19510626792907715, -0.11477270...
https://github.com/huggingface/datasets/issues/5650
> Can you post a reproducible code snippet of what you tried to do? > > ```python from datasets import load_dataset dataset = load_dataset("my_folder_name", split="train") ```
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
26
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.11089533567428589, -0.048615962266922, -0.09447897970676422, 0.8409000635147095, 0.41031262278556824, 0.09188073873519897, 0.31935685873031616, 0.09225237369537354, 0.16247890889644623, 0.06351488828659058, -0.05847581475973129, 0.022202815860509872, -0.1759265661239624, 0.0732908174395...
https://github.com/huggingface/datasets/issues/5650
hi @WiNE-iNEFF ! can you please also tell a bit more about how your data is structured (directory structure and filenames patterns)?
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
22
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.27253055572509766, 0.130905419588089, -0.04990464821457863, 0.8561934232711792, 0.33972540497779846, -0.01824251562356949, 0.3219378590583801, 0.07428555190563202, 0.32509735226631165, 0.04825328290462494, -0.07098022103309631, -0.043963488191366196, -0.1462162286043167, 0.1275608390569...
https://github.com/huggingface/datasets/issues/5650
> hi @WiNE-iNEFF ! can you please also tell a bit more about how your data is structured (directory structure and filenames patterns)? All file have format .png converted in RGBA. In main folder "MyData" contain 4 folder with images. In function load_dataset i use folder "MyData"
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
47
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.25661343336105347, 0.14332899451255798, -0.04390154778957367, 0.8268578052520752, 0.3386569023132324, -0.021963924169540405, 0.29721972346305847, 0.07901491224765778, 0.2955476641654968, 0.07517315447330475, -0.06626254320144653, -0.01015043631196022, -0.09799881279468536, 0.14573709666...
https://github.com/huggingface/datasets/issues/5650
@WiNE-iNEFF I'm sorry there is still not enough information to answer your question :( For now I can only assume that your [filenames contain split names](https://huggingface.co/docs/datasets/repository_structure#splits-and-file-names) which are somehow incorrectly parsed. What would be the output if you omit `split`...
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
50
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.1758604347705841, -0.209586501121521, 0.01980317384004593, 0.8191556930541992, 0.2988639771938324, 0.09997572004795074, 0.16577008366584778, 0.09318815171718597, 0.2899940013885498, 0.08995870500802994, -0.20960387587547302, -0.0025026053190231323, -0.10109251737594604, 0.31656891107559...
https://github.com/huggingface/datasets/issues/5650
> @WiNE-iNEFF I'm sorry there is still not enough information to answer your question :( For now I can only assume that your [filenames contain split names](https://huggingface.co/docs/datasets/repository_structure#splits-and-file-names) which are somehow incorrectly parsed. > What would be the output if you omit `spl...
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
67
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.14027895033359528, -0.21775709092617035, 0.01905115693807602, 0.8180442452430725, 0.31160062551498413, 0.09880086779594421, 0.18401458859443665, 0.10137102007865906, 0.2914615273475647, 0.06977254152297974, -0.187803715467453, -0.019470302388072014, -0.10439877212047577, 0.3186274170875...
https://github.com/huggingface/datasets/issues/5650
@WiNE-iNEFF My only guess is that 4 images in your data have `"train"` string in their names (something like `"train_image_0.png"`) and others do not and the loader ignores all the files that do not contain split name in filename. If it's true, please try to remove "train" from filenames. Or maybe they are inside a di...
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
102
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.3184143006801605, 0.11623577773571014, 0.004813235253095627, 0.7473567128181458, 0.23421408236026764, 0.041685715317726135, 0.33594438433647156, 0.21330620348453522, 0.4263291656970978, 0.17171671986579895, -0.10355032980442047, 0.196505606174469, -0.14578336477279663, 0.100111372768878...
https://github.com/huggingface/datasets/issues/5650
> @WiNE-iNEFF My only guess is that 4 images in your data have `"train"` string in their names (something like `"train_image_0.png"`) and others do not and the loader ignores all the files that do not contain split name in filename. If it's true, please try to remove "train" from filenames. Or maybe they are inside a ...
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
136
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.2607296109199524, 0.10786649584770203, 0.006297808140516281, 0.7898244261741638, 0.23361162841320038, 0.042052723467350006, 0.34163764119148254, 0.20830076932907104, 0.4157722592353821, 0.1736869066953659, -0.1088019534945488, 0.15200349688529968, -0.10837976634502411, 0.094674482941627...
https://github.com/huggingface/datasets/issues/5650
@WiNE-iNEFF Probably they are named inconsistently so that the correct pattern for which files should correspond to which split cannot be inferred. You can make it clearer to the loader by removing split names from filenames and putting files in separate folder for each split (you can take a look at the [documentation ...
load_dataset can't work correct with my image data
I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the problem and did not understand. Tried converting imag...
145
load_dataset can't work correct with my image data I have about 20000 images in my folder which divided into 4 folders with class names. When i use load_dataset("my_folder_name", split="train") this function create dataset in which there are only 4 images, the remaining 19000 images were not added there. What is the...
[ -0.15141336619853973, -0.10156199336051941, 0.011981703341007233, 0.8929697871208191, 0.24488727748394012, 0.015088357031345367, 0.38042744994163513, 0.0658925324678421, 0.4348651170730591, 0.12483051419258118, -0.14608129858970642, 0.009876273572444916, -0.0752858892083168, 0.263866633176...