html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/4525
Out of memory error on workers while running Beam+Dataflow
@albertvillanova Since we have already processed the NQ dataset on our machines can we upload it to datasets so the NQ PR can be merged?
## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Train data files are larger than dev ones and apparently worker...
25
Out of memory error on workers while running Beam+Dataflow ## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Tr...
[ -0.3179207444190979, -0.12448765337467194, -0.04219004511833191, 0.325805127620697, 0.3414510488510132, -0.14221429824829102, -0.09138506650924683, 0.4362598657608032, -0.1771542876958847, 0.3672865331172943, 0.2916374206542969, 0.17966338992118835, -0.20729193091392517, 0.2970901727676391...
https://github.com/huggingface/datasets/issues/4525
Out of memory error on workers while running Beam+Dataflow
Maybe @lhoestq can give a more accurate answer as I am not sure about the authentication requirements to upload those files to our cloud bucket. Anyway I propose to continue this discussion on the dedicated PR for Natural questions dataset: - #4368
## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Train data files are larger than dev ones and apparently worker...
42
Out of memory error on workers while running Beam+Dataflow ## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Tr...
[ -0.3179207444190979, -0.12448765337467194, -0.04219004511833191, 0.325805127620697, 0.3414510488510132, -0.14221429824829102, -0.09138506650924683, 0.4362598657608032, -0.1771542876958847, 0.3672865331172943, 0.2916374206542969, 0.17966338992118835, -0.20729193091392517, 0.2970901727676391...
https://github.com/huggingface/datasets/issues/4525
Out of memory error on workers while running Beam+Dataflow
> I asked my colleague who ran the code and he said apache beam. He looked into it further and he just used DirectRunner. @albertvillanova
## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Train data files are larger than dev ones and apparently worker...
25
Out of memory error on workers while running Beam+Dataflow ## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Tr...
[ -0.3179207444190979, -0.12448765337467194, -0.04219004511833191, 0.325805127620697, 0.3414510488510132, -0.14221429824829102, -0.09138506650924683, 0.4362598657608032, -0.1771542876958847, 0.3672865331172943, 0.2916374206542969, 0.17966338992118835, -0.20729193091392517, 0.2970901727676391...
https://github.com/huggingface/datasets/issues/4525
Out of memory error on workers while running Beam+Dataflow
OK, thank you @seirasto for your hint. That explains why you did not encounter the out of memory error: this only appears when the processing is distributed (on workers memory) and DirectRunner does not distribute the processing (all is done in a single machine).
## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Train data files are larger than dev ones and apparently worker...
44
Out of memory error on workers while running Beam+Dataflow ## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Tr...
[ -0.3179207444190979, -0.12448765337467194, -0.04219004511833191, 0.325805127620697, 0.3414510488510132, -0.14221429824829102, -0.09138506650924683, 0.4362598657608032, -0.1771542876958847, 0.3672865331172943, 0.2916374206542969, 0.17966338992118835, -0.20729193091392517, 0.2970901727676391...
https://github.com/huggingface/datasets/issues/4525
Out of memory error on workers while running Beam+Dataflow
@albertvillanova Doesn't DirectRunner offer distributed processing through? https://beam.apache.org/documentation/runners/direct/ ``` Setting parallelism Number of threads or subprocesses is defined by setting the direct_num_workers pipeline option. From 2.22.0, direct_num_workers = 0 is supported. When direc...
## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Train data files are larger than dev ones and apparently worker...
130
Out of memory error on workers while running Beam+Dataflow ## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Tr...
[ -0.3179207444190979, -0.12448765337467194, -0.04219004511833191, 0.325805127620697, 0.3414510488510132, -0.14221429824829102, -0.09138506650924683, 0.4362598657608032, -0.1771542876958847, 0.3672865331172943, 0.2916374206542969, 0.17966338992118835, -0.20729193091392517, 0.2970901727676391...
https://github.com/huggingface/datasets/issues/4525
Out of memory error on workers while running Beam+Dataflow
Unrelated to the OOM issue, but we deprecated datasets with Beam scripts in #6474. I think we can close this issue
## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Train data files are larger than dev ones and apparently worker...
21
Out of memory error on workers while running Beam+Dataflow ## Describe the bug While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files). Previously we ran the preprocessing for the "dev" config (only dev files) with success. Tr...
[ -0.3179207444190979, -0.12448765337467194, -0.04219004511833191, 0.325805127620697, 0.3414510488510132, -0.14221429824829102, -0.09138506650924683, 0.4362598657608032, -0.1771542876958847, 0.3672865331172943, 0.2916374206542969, 0.17966338992118835, -0.20729193091392517, 0.2970901727676391...
https://github.com/huggingface/datasets/issues/4524
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException)
Hi @dan-the-meme-man, thanks for reporting. We are investigating a similar issue but with Beam+Dataflow (instead of Beam+Flink): - #4525 In order to go deeper into the root cause, we need as much information as possible: logs from the main process + logs from the workers are very informative. In the case of ...
## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I have been playing with package versions a lot, because unfortunately, the different dependencies required by these packag...
67
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException) ## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I ...
[ -0.1141185313463211, 0.04956594109535217, -0.06658198684453964, 0.2739277184009552, -0.010553043335676193, 0.06644310802221298, 0.2546956241130829, 0.23666155338287354, 0.049875009804964066, 0.20283326506614685, 0.2942869961261749, -0.005584292113780975, -0.030993543565273285, -0.128714531...
https://github.com/huggingface/datasets/issues/4524
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException)
As I continued working on this today, I came to suspect that it is in fact an out of memory issue - I have a few more notebooks that I've left running, and if they produce the same error, I will try to get the logs. In the meantime, if there's any chance that there is a repo out there with those three languages already...
## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I have been playing with package versions a lot, because unfortunately, the different dependencies required by these packag...
88
Downloading via Apache Pipeline, client cancelled (org.apache.beam.vendor.grpc.v1p43p2.io.grpc.StatusRuntimeException) ## Describe the bug When downloading some `wikipedia` languages (in particular, I'm having a hard time with Spanish, Cebuano, and Russian) via FlinkRunner, I encounter the exception in the title. I ...
[ -0.1141185313463211, 0.04956594109535217, -0.06658198684453964, 0.2739277184009552, -0.010553043335676193, 0.06644310802221298, 0.2546956241130829, 0.23666155338287354, 0.049875009804964066, 0.20283326506614685, 0.2942869961261749, -0.005584292113780975, -0.030993543565273285, -0.128714531...
https://github.com/huggingface/datasets/issues/4521
Datasets method `.map` not hashing
Didn't realize it's a bug when I asked the question yesterday! Free free to post an answer if you are sure the cause has been addressed. https://stackoverflow.com/questions/72664827/can-pickle-dill-foo-but-not-lambda-x-foox
## Describe the bug Datasets method `.map` not hashing, even with an empty no-op function ## Steps to reproduce the bug ```python from datasets import load_dataset # download 9MB dummy dataset ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean") def prepare_dataset(batch): return(b...
27
Datasets method `.map` not hashing ## Describe the bug Datasets method `.map` not hashing, even with an empty no-op function ## Steps to reproduce the bug ```python from datasets import load_dataset # download 9MB dummy dataset ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean") def p...
[ -0.208235964179039, -0.014491558074951172, 0.05189582332968712, -0.06907941401004791, 0.21113190054893494, 0.06441668421030045, 0.46527957916259766, 0.33714061975479126, 0.18764156103134155, 0.09930907934904099, -0.049112237989902496, 0.6498112678527832, -0.21225260198116302, -0.2695936262...
https://github.com/huggingface/datasets/issues/4520
Failure to hash `dataclasses` - results in functions that cannot be hashed or cached in `.map`
I think this has been fixed by #4516, let me know if you encounter this again :) I re-ran your code in 3.7 and 3.9 and it works fine
Dataclasses cannot be hashed. As a result, they cannot be hashed or cached if used in the `.map` method. Dataclasses are used extensively in Transformers examples scripts: (c.f. [CTC example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py)). Since...
29
Failure to hash `dataclasses` - results in functions that cannot be hashed or cached in `.map` Dataclasses cannot be hashed. As a result, they cannot be hashed or cached if used in the `.map` method. Dataclasses are used extensively in Transformers examples scripts: (c.f. [CTC example](https://github.com/huggingface...
[ 0.013226669281721115, -0.08187210559844971, 0.06473235785961151, 0.08420798927545547, 0.52198326587677, 0.1191551461815834, 0.47535276412963867, 0.29460152983665466, 0.015639130026102066, 0.014600217342376709, -0.06058335304260254, 0.2825549840927124, -0.2347131371498108, -0.15448817610740...
https://github.com/huggingface/datasets/issues/4508
cast_storage method from datasets.features
Hi! We've recently added a check to the `ClassLabel` type to ensure the values are in the valid label range `-1, 0, ..., num_classes-1` (-1 is used for missing values). The error in your case happens only if the `labels` column is of type `Sequence(ClassLabel(...))` before the `map` call and can be avoided by calling `...
## Describe the bug A bug occurs when mapping a function to a dataset object. I ran the same code with the same data yesterday and it worked just fine. It works when i run locally on an old version of datasets. ## Steps to reproduce the bug Steps are: - load whatever datset - write a preprocessing function such ...
86
cast_storage method from datasets.features ## Describe the bug A bug occurs when mapping a function to a dataset object. I ran the same code with the same data yesterday and it worked just fine. It works when i run locally on an old version of datasets. ## Steps to reproduce the bug Steps are: - load whatever d...
[ -0.3089793622493744, -0.13102863729000092, 0.1109490692615509, 0.05474085733294487, 0.5661734342575073, -0.1985185593366623, 0.3588041365146637, 0.22773292660713196, 0.02829030156135559, 0.24875777959823608, -0.12301083654165268, 0.45689085125923157, -0.14625199139118195, 0.057177990674972...
https://github.com/huggingface/datasets/issues/4507
How to let `load_dataset` return a `Dataset` instead of `DatasetDict` in customized loading script
Hi @liyucheng09. Users can pass the `split` parameter to `load_dataset`. For example, if your split name is "train", ```python ds = load_dataset("dataset_name", split="train") ``` will return a `Dataset` instance.
If the dataset does not need splits, i.e., no training and validation split, more like a table. How can I let the `load_dataset` function return a `Dataset` object directly rather than return a `DatasetDict` object with only one key-value pair. Or I can paraphrase the question in the following way: how to skip `_spl...
29
How to let `load_dataset` return a `Dataset` instead of `DatasetDict` in customized loading script If the dataset does not need splits, i.e., no training and validation split, more like a table. How can I let the `load_dataset` function return a `Dataset` object directly rather than return a `DatasetDict` object with...
[ -0.1562710702419281, -0.02551160752773285, 0.021684885025024414, 0.1328735053539276, 0.20360057055950165, 0.0798845961689949, 0.37073591351509094, 0.2622440457344055, 0.40183335542678833, 0.30113378167152405, 0.04661203920841217, 0.5615159273147583, -0.18064871430397034, 0.5828617811203003...
https://github.com/huggingface/datasets/issues/4506
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results
Important info: As hashes are generated randomly for functions, it leads to **false identifying some results as already hashed** (mapping function is not executed after a method update) when there's a `pytorch_lightning.seed_everything(123)`
## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform datasets.arrow_dataset.Dataset. _map_single couldn't be hashed properly, a random hash was used instead. Make sur...
32
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results ## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform data...
[ 0.10672178864479065, 0.02344939112663269, 0.008314356207847595, -0.041032254695892334, 0.2454584389925003, 0.06037779897451401, 0.33440572023391724, 0.32415586709976196, -0.10414811968803406, 0.049883536994457245, 0.278200626373291, 0.43940889835357666, -0.22675356268882751, -0.48845225572...
https://github.com/huggingface/datasets/issues/4506
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results
Hi ! Thanks for reporting. This bug seems to appear in python 3.9 using dill 3.5.1 As a workaround you can use an older version of dill: ``` pip install "dill<0.3.5" ```
## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform datasets.arrow_dataset.Dataset. _map_single couldn't be hashed properly, a random hash was used instead. Make sur...
32
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results ## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform data...
[ 0.10672178864479065, 0.02344939112663269, 0.008314356207847595, -0.041032254695892334, 0.2454584389925003, 0.06037779897451401, 0.33440572023391724, 0.32415586709976196, -0.10414811968803406, 0.049883536994457245, 0.278200626373291, 0.43940889835357666, -0.22675356268882751, -0.48845225572...
https://github.com/huggingface/datasets/issues/4506
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results
installing `dill<0.3.5` after installing `datasets` by pip results in dependency conflict with the version required for `multiprocess`. It can be solved by installing `pip install datasets "dill<0.3.5"` (simultaneously) on a clean environment
## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform datasets.arrow_dataset.Dataset. _map_single couldn't be hashed properly, a random hash was used instead. Make sur...
32
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results ## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform data...
[ 0.10672178864479065, 0.02344939112663269, 0.008314356207847595, -0.041032254695892334, 0.2454584389925003, 0.06037779897451401, 0.33440572023391724, 0.32415586709976196, -0.10414811968803406, 0.049883536994457245, 0.278200626373291, 0.43940889835357666, -0.22675356268882751, -0.48845225572...
https://github.com/huggingface/datasets/issues/4506
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results
This has been fixed in https://github.com/huggingface/datasets/pull/4516, we will do a new release soon to include the fix :)
## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform datasets.arrow_dataset.Dataset. _map_single couldn't be hashed properly, a random hash was used instead. Make sur...
18
Failure to hash (and cache) a `.map(...)` (almost always) - using this method can produce incorrect results ## Describe the bug Sometimes I get messages about not being able to hash a method: `Parameter 'function'=<function StupidDataModule._separate_speaker_id_from_dialogue at 0x7f1b27180d30> of the transform data...
[ 0.10672178864479065, 0.02344939112663269, 0.008314356207847595, -0.041032254695892334, 0.2454584389925003, 0.06037779897451401, 0.33440572023391724, 0.32415586709976196, -0.10414811968803406, 0.049883536994457245, 0.278200626373291, 0.43940889835357666, -0.22675356268882751, -0.48845225572...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
would you like to give it a try, @dgrnd4? (maybe with the help of the dataset author?)
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
17
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.12982690334320068, -0.02184317260980606, -0.26575279235839844, 0.05526488646864891, 0.33157873153686523, 0.19605645537376404, 0.2535150945186615, 0.05323366820812225, -0.025000901892781258, 0.030048981308937073, -0.09646065533161163, 0.20942679047584534, -0.4501248002052307, 0.144205600...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
@julien-c i am sorry but I have no idea about how it works: can I add the dataset by myself, following "instructions to add a new dataset"? Can I add a dataset even if it's not mine? (it's public in the link that I wrote on the post)
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
48
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ 0.08427636325359344, -0.12082664668560028, -0.15506309270858765, 0.1512756049633026, 0.045617736876010895, 0.33660900592803955, 0.18082308769226074, -0.31590980291366577, 0.04788215085864067, 0.019760869443416595, -0.15998469293117523, 0.044231925159692764, -0.32589292526245117, 0.06469511...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
Hi! The [ADD NEW DATASET](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md) instructions are indeed the best place to start. It's also perfectly fine to add a dataset if it's public, even if it's not yours. Let me know if you need some additional pointers.
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
38
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.12172883749008179, -0.15024302899837494, -0.256136417388916, 0.09812013804912567, 0.25901880860328674, 0.13260456919670105, 0.21233467757701874, 0.00907139666378498, -0.04137581214308739, 0.06831177324056625, -0.18167166411876678, 0.15071354806423187, -0.3092351257801056, 0.155020281672...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
@khushmeeet this is the [link](https://huggingface.co/datasets/dgrnd4/stanford_dog_dataset) where I added the dataset already. If you can I would ask you to do this: 1) The dataset it's all in TRAINING SET: can you please divide it in Training,Test and Validation Set? If you can for each class, take the 80% for the Tr...
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
90
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.07577362656593323, -0.18577826023101807, -0.29640257358551025, 0.2010549157857895, 0.2948474884033203, 0.2695193588733673, 0.10719704627990723, 0.1294497549533844, -0.08582490682601929, 0.06191099435091019, -0.17495477199554443, 0.09391450136899948, -0.28657326102256775, 0.1928495168685...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
Hi @khushmeeet! Thanks for the interest. You can self-assign the issue by commenting `#self-assign` on it. Also, I think we can skip @dgrnd4's steps as we try to avoid any custom processing on top of raw data. One can later copy the script and override `_post_process` in it to perform such processing on the generat...
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
56
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.1389414221048355, 0.02761271595954895, -0.236250102519989, -0.057336024940013885, 0.3817545175552368, 0.14256751537322998, 0.25735872983932495, 0.23157717287540436, 0.07796628773212433, 0.07889313995838165, 0.0585329532623291, 0.2988729178905487, -0.2866286039352417, 0.28567075729370117...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
Thanks @mariosasko @dgrnd4 As dataset is there on Hub, and preprocessing is not recommended. I am not sure if there is any other task to do. However, I can't seem to find relevant `.py` files for this dataset in GitHub repo.
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
41
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.07234163582324982, -0.032903194427490234, -0.19228975474834442, 0.013616308569908142, 0.3984454274177551, 0.3349185883998871, 0.18423841893672943, 0.17232801020145416, -0.005711143836379051, 0.02213815599679947, -0.027520904317498207, 0.247980535030365, -0.425009161233902, 0.22979290783...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
@khushmeeet @mariosasko The point is that the images must be processed and must have the same size in order to can be used for things for example "Training".
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
28
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.2149370163679123, -0.10248972475528717, -0.27574843168258667, 0.14668580889701843, 0.31519389152526855, 0.1649947166442871, 0.281547874212265, 0.14766480028629303, -0.06717328727245331, 0.16918781399726868, -0.1325804889202118, 0.143001988530159, -0.27342158555984497, 0.2193804979324340...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
@dgrnd4 Yes, but this can be done after loading (`map` to resize images and `train_test_split` to create extra splits) @khushmeeet The linked version is implemented as a no-code dataset and is generated directly from the ZIP archive, but our "GitHub" datasets (these are datasets without a user/org namespace on the H...
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
81
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.28047019243240356, -0.03134824335575104, -0.23792597651481628, -0.0007146522402763367, 0.3346448540687561, 0.20852002501487732, 0.3596326410770416, 0.26991406083106995, 0.026867929846048355, 0.16869819164276123, -0.04397056996822357, 0.23781660199165344, -0.3617058992385864, 0.169341653...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
@mariosasko The point is that if I use something like this: x_train, x_test = train_test_split(dataset, test_size=0.1) to get Train 90% and Test 10%, and then to get the Validation Set (10% of the whole 100%): ``` train_ratio = 0.80 validation_ratio = 0.10 test_ratio = 0.10 x_train, x_test, y_train, y_tes...
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
188
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.04853156581521034, 0.04088391363620758, -0.23490816354751587, 0.2604948878288269, 0.2773860692977905, 0.2617972493171692, 0.09477178752422333, 0.24227535724639893, -0.07477828860282898, 0.21417784690856934, -0.23354315757751465, 0.11394212394952774, -0.2905992865562439, 0.15919646620750...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
@mariosasko in order to resize images I'm trying this method: ``` for i in range(0,len(dataset['train'])): #len(dataset['train']) ex = dataset['train'][i] #i image = ex['image'] image = image.convert("RGB") # <class 'PIL.Image.Image'> <PIL.Image.Image image mode=RGB size=500x333 at 0x7F84F1948150> imag...
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
82
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ 0.071012943983078, 0.08556994795799255, -0.19832843542099, -0.02605009824037552, 0.5032886862754822, 0.08034733682870865, 0.32811617851257324, 0.0018623340874910355, 0.02315497398376465, 0.24949143826961517, -0.15840865671634674, 0.41953423619270325, -0.16828472912311554, -0.00214500166475...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
I have raised PR for adding stanford-dog dataset. I have not added any data preprocessing code. Only dataset generation script is there. Let me know any changes required, or anything to add to README.
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
34
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.14530375599861145, -0.08699163794517517, -0.13207146525382996, 0.005853027105331421, 0.36713820695877075, 0.2498159408569336, 0.056138232350349426, 0.026251953095197678, -0.01628139242529869, 0.012564361095428467, 0.053610511124134064, 0.27112671732902527, -0.36588555574417114, 0.212984...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
Is this issue still open, i am new to open source thus want to take this one as my start.
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
20
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.12723146378993988, -0.025075674057006836, -0.17746062576770782, 0.1357826292514801, 0.24956050515174866, 0.06755302101373672, 0.24362221360206604, -0.07059194147586823, -0.14677967131137848, -0.014682725071907043, -0.0788627564907074, 0.1004960685968399, -0.34198376536369324, 0.20703056...
https://github.com/huggingface/datasets/issues/4504
Can you please add the Stanford dog dataset?
@zutarich This issue should have been closed since the dataset in question is available on the Hub [here](https://huggingface.co/datasets/dgrnd4/stanford_dog_dataset).
## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Data:** *[link to the Github...
18
Can you please add the Stanford dog dataset? ## Adding a Dataset - **Name:** *Stanford dog dataset* - **Description:** *The dataset is about 120 classes for a total of 20.580 images. You can find the dataset here http://vision.stanford.edu/aditya86/ImageNetDogs/* - **Paper:** *http://vision.stanford.edu/aditya86/I...
[ -0.06610347330570221, -0.16350549459457397, -0.2129981368780136, 0.13738146424293518, 0.35532766580581665, 0.17979979515075684, 0.26349377632141113, 0.04641661420464516, -0.050476931035518646, 0.13695375621318817, -0.12249834090471268, 0.16249635815620422, -0.27745142579078674, 0.108232371...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
Hi @cccntu you're right, as when `batch_examples={}` the current if-statement won't be triggered as the condition won't be satisfied, I'll prepare a PR to address it as well as add the regression tests so that this issue is handled properly.
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
40
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.12480945885181427, -0.17950332164764404, -0.13585320115089417, 0.3129453659057617, -0.39193952083587646, -0.37311267852783203, 0.25738805532455444, 0.24794600903987885, -0.030070852488279343, 0.1524513214826584, 0.7762278914451599, 0.34563717246055603, -0.29168418049812317, -0.004225462...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
Hi @alvarobartt , Thanks for answering. Do you know when and why an empty batch is passed to this function? This only happened to me when processing with multiple workers, while chunking examples, I think.
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
35
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.09734825789928436, -0.1500798910856247, -0.06967028975486755, 0.26273229718208313, -0.4199848175048828, -0.3879684507846832, 0.4252557158470154, 0.2011992186307907, -0.16761356592178345, 0.35478317737579346, 0.8012019395828247, 0.17099955677986145, -0.256452739238739, -0.123259946703910...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
> Hi @alvarobartt , Thanks for answering. Do you know when and why an empty batch is passed to this function? This only happened to me when processing with multiple workers, while chunking examples, I think. So it depends on how you're actually chunking the data as if you're not handling empty chunks `batch_examples...
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
94
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.17684607207775116, -0.07852309197187424, -0.07085539400577545, 0.22444646060466766, -0.24380652606487274, -0.29227858781814575, 0.4010692536830902, 0.3219434916973114, -0.1609073430299759, 0.1594407856464386, 0.6263853311538696, 0.23006677627563477, -0.25662946701049805, 0.0598545223474...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
Thanks, I added a if-print and I found it does return an empty examples in the chunking function that is passed to `.map()`.
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
23
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.02882998064160347, -0.23289898037910461, -0.07871413975954056, 0.385270893573761, -0.3537974953651428, -0.2756931483745575, 0.2524556517601013, 0.3592056334018707, -0.1052880585193634, 0.22964051365852356, 0.5770529508590698, 0.2991335988044739, -0.3447277545928955, -0.0568801686167717,...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
Hi ! We consider an empty batch to look like this: ```python empty_batch = { "column_1": [], "column_2": [], ... } ``` While `{}` corresponds to a batch with no columns. Therefore calling this code should fail, because the two batches don't have the same columns: ```python writer.write_batch(...
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
74
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.07702673971652985, -0.060662977397441864, -0.11207488179206848, 0.21322551369667053, -0.26052290201187134, -0.09497606009244919, 0.43844541907310486, 0.23383910953998566, -0.013233703561127186, 0.1725667119026184, 0.5886095762252808, 0.139727383852005, -0.278473436832428, -0.04112795367...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
Makes sense, then the if-statement should remain the same or is it better to handle both cases separately using `if not batch_examples or len(next(iter(batch_examples.values()))) == 0: ...`? Updating the regressions tests with an empty batch formatted as `{"col_1": [], "col_2": []}` instead of `{}` works fine with t...
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
58
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.08192890882492065, -0.09121504426002502, -0.1058342456817627, 0.10733091831207275, -0.5200847387313843, -0.2911529242992401, 0.41263827681541443, 0.2771487236022949, -0.050778746604919434, 0.09768649935722351, 0.6894097328186035, 0.20096954703330994, -0.2975051999092102, -0.053153224289...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
> Makes sense, then the if-statement should remain the same or is it better to handle both cases separately using if not batch_examples or len(next(iter(batch_examples.values()))) == 0: ...? There's a check later in the code that makes sure that the columns are the right ones, so I don't think we need to check for `...
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
141
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.10326462984085083, -0.06579649448394775, -0.1186390370130539, 0.10876263678073883, -0.3907516598701477, -0.2757003903388977, 0.4332886338233948, 0.2744450271129608, 0.021547142416238785, 0.09205905348062515, 0.6777893900871277, 0.1979449987411499, -0.2900208532810211, -0.003341689705848...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
Great thanks for the response! So I'll just add that regression test and remove the current if-statement.
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
17
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.097380630671978, -0.20760247111320496, -0.13539300858974457, 0.1912723332643509, -0.3743368983268738, -0.2949843108654022, 0.37354913353919983, 0.26020359992980957, 0.0011964943259954453, 0.10691031813621521, 0.7534400820732117, 0.29630473256111145, -0.3206688463687897, -0.0292243342846...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
Hi @lhoestq , Thanks for your explanation. Now I get it that `{}` means the columns are different. But wouldn't it be nice if the code can ignore it, like it ignores `{"a": []}`? --- BTW, > There's a check later in the code that makes sure that the columns are the right ones, so I don't think we need to che...
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
130
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.044797539710998535, -0.03950556367635727, -0.12906379997730255, 0.3717550039291382, -0.12446045875549316, -0.13376332819461823, 0.31636980175971985, 0.230211079120636, -0.11289307475090027, 0.15248221158981323, 0.5265920162200928, 0.26466530561447144, -0.13810232281684875, 0.00214848294...
https://github.com/huggingface/datasets/issues/4502
Logic bug in arrow_writer?
> But wouldn't it be nice if the code can ignore it, like it ignores {"a": []}? I think it would make things confusing because it doesn't follow our definition of a batch: "the columns of a batch = the keys of the dict". It would probably break certain behaviors as well. For example if you remove all the columns of ...
https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(iter(batch_examples.values())...
154
Logic bug in arrow_writer? https://github.com/huggingface/datasets/blob/88a902d6474fae8d793542d57a4f3b0d187f3c5b/src/datasets/arrow_writer.py#L475-L488 I got some error, and I found it's caused by `batch_examples` being `{}`. I wonder if the code should be as follows: ``` - if batch_examples and len(next(...
[ -0.16384296119213104, 0.0012407675385475159, -0.11076225340366364, 0.2590092122554779, -0.15944330394268036, -0.14531826972961426, 0.23462404310703278, 0.1775006502866745, 0.06671126186847687, 0.09348008036613464, 0.6439661979675293, 0.2104954719543457, -0.3761604428291321, 0.1091927811503...
https://github.com/huggingface/datasets/issues/4498
WER and CER > 1
WER can have values bigger than 1.0, this is expected when there are too many insertions From [wikipedia](https://en.wikipedia.org/wiki/Word_error_rate): > Note that since N is the number of words in the reference, the word error rate can be larger than 1.0
## Describe the bug It seems that in some cases in which the `prediction` is longer than the `reference` we may have word/character error rate higher than 1 which is a bit odd. If it's a real bug I think I can solve it with a PR changing [this](https://github.com/huggingface/datasets/blob/master/metrics/wer/wer.py#...
40
WER and CER > 1 ## Describe the bug It seems that in some cases in which the `prediction` is longer than the `reference` we may have word/character error rate higher than 1 which is a bit odd. If it's a real bug I think I can solve it with a PR changing [this](https://github.com/huggingface/datasets/blob/master/m...
[ 0.08050602674484253, -0.24610258638858795, 0.013707701116800308, 0.11002663522958755, 0.34324967861175537, -0.032203178852796555, -0.007795404642820358, 0.29825055599212646, -0.2060740739107132, 0.4188823103904724, 0.07657532393932343, -0.18652565777301788, 0.18944966793060303, -0.08954507...
https://github.com/huggingface/datasets/issues/4491
Dataset Viewer issue for Pavithree/test
This issue can be resolved according to this post https://stackoverflow.com/questions/70566660/parquet-with-null-columns-on-pyarrow. It looks like first data entry in the json file must not have any null values as pyarrow uses this first file to infer schema for entire dataset.
### Link https://huggingface.co/datasets/Pavithree/test ### Description I have extracted the subset of original eli5 dataset found at hugging face. However, while loading the dataset It throws ArrowNotImplementedError: Unsupported cast from string to null using function cast_null error. Is there anything missi...
38
Dataset Viewer issue for Pavithree/test ### Link https://huggingface.co/datasets/Pavithree/test ### Description I have extracted the subset of original eli5 dataset found at hugging face. However, while loading the dataset It throws ArrowNotImplementedError: Unsupported cast from string to null using functio...
[ -0.20974165201187134, -0.019854888319969177, 0.07286107540130615, 0.5056530237197876, 0.2623708248138428, 0.0765271857380867, -0.14816786348819733, 0.09210750460624695, -0.2811114192008972, 0.016643308103084564, 0.038595207035541534, 0.3998318314552307, 0.05336083471775055, -0.037922613322...
https://github.com/huggingface/datasets/issues/4490
Use `torch.nested_tensor` for arrays of varying length in torch formatter
Currently, we return a list of Torch tensors if their shapes don't match. If they do, we consolidate them into a single Torch tensor.
Use `torch.nested_tensor` for arrays of varying length in `TorchFormatter`. The PyTorch API of nested tensors is in the prototype stage, so wait for it to become more mature.
24
Use `torch.nested_tensor` for arrays of varying length in torch formatter Use `torch.nested_tensor` for arrays of varying length in `TorchFormatter`. The PyTorch API of nested tensors is in the prototype stage, so wait for it to become more mature. Currently, we return a list of Torch tensors if their shapes don...
[ -0.2889707386493683, -0.8526350259780884, -0.14302437007427216, 0.3550807237625122, -0.11105459928512573, -0.1379697471857071, 0.7188710570335388, 0.3091636300086975, 0.10368740558624268, 0.28996431827545166, -0.05615556240081787, -0.058852799236774445, -0.145664244890213, -0.0906401947140...
https://github.com/huggingface/datasets/issues/4483
Dataset.map throws pyarrow.lib.ArrowNotImplementedError when converting from list of empty lists
Hi @sanderland ! Thanks for reporting :) This is a bug, I opened a PR to fix it. We'll do a new release soon In the meantime you can fix it by specifying in advance that the "label" are integers: ```python import numpy as np ds = Dataset.from_dict( { "text": ["the lazy dog jumps over the quick fox...
## Describe the bug Dataset.map throws pyarrow.lib.ArrowNotImplementedError: Unsupported cast from int64 to null using function cast_null when converting from a type of 'empty lists' to 'lists with some type'. This appears to be due to the interaction of arrow internals and some assumptions made by datasets. T...
102
Dataset.map throws pyarrow.lib.ArrowNotImplementedError when converting from list of empty lists ## Describe the bug Dataset.map throws pyarrow.lib.ArrowNotImplementedError: Unsupported cast from int64 to null using function cast_null when converting from a type of 'empty lists' to 'lists with some type'. This ...
[ -0.30657368898391724, 0.06802217662334442, 0.04475703462958336, 0.33611345291137695, 0.4247973561286926, 0.17650875449180603, 0.4541992247104645, 0.2517310380935669, 0.07251892983913422, 0.04165443032979965, -0.12167252600193024, 0.640252947807312, -0.295364111661911, -0.47698280215263367,...
https://github.com/huggingface/datasets/issues/4480
Bigbench tensorflow GPU dependency
Thanks for reporting ! :) cc @andersjohanandreassen can you take a look at this ? Also @cceyda feel free to open an issue at [BIG-Bench](https://github.com/google/BIG-bench) as well regarding the `AttributeError`
## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_proverbs (download: Unknown size, genera...
30
Bigbench tensorflow GPU dependency ## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_pro...
[ -0.2978525459766388, -0.26817411184310913, -0.07095292210578918, 0.27338606119155884, 0.11652650684118271, -0.19607090950012207, 0.18151375651359558, 0.31028833985328674, 0.41639018058776855, 0.09090413898229599, 0.4150956869125366, 0.24147586524486542, 0.17177844047546387, 0.1970205903053...
https://github.com/huggingface/datasets/issues/4480
Bigbench tensorflow GPU dependency
I'm on vacation for the next week, so won't be able to do much debugging at the moment. Sorry for the inconvenience. But I did quickly take a look: **pypi**: I managed to reproduce the above error with the pypi version begin out of date. The version on `https://storage.googleapis.com/public_research_data/bigbenc...
## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_proverbs (download: Unknown size, genera...
199
Bigbench tensorflow GPU dependency ## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_pro...
[ -0.2978525459766388, -0.26817411184310913, -0.07095292210578918, 0.27338606119155884, 0.11652650684118271, -0.19607090950012207, 0.18151375651359558, 0.31028833985328674, 0.41639018058776855, 0.09090413898229599, 0.4150956869125366, 0.24147586524486542, 0.17177844047546387, 0.1970205903053...
https://github.com/huggingface/datasets/issues/4480
Bigbench tensorflow GPU dependency
Solved. Yes it works on colab, and somehow magically on my machine too now. hmm not sure what was wrong before I had used a fresh venv both times with just the dataloading code, and tried multiple times. (maybe just a wrong tensorflow version got mixed up somehow) The tensorflow call seems to come from the bigbench si...
## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_proverbs (download: Unknown size, genera...
84
Bigbench tensorflow GPU dependency ## Describe the bug Loading bigbech ```py from datasets import load_dataset dataset = load_dataset("bigbench","swedish_to_german_proverbs") ``` tries to use gpu and fails with OOM with the following error ``` Downloading and preparing dataset bigbench/swedish_to_german_pro...
[ -0.2978525459766388, -0.26817411184310913, -0.07095292210578918, 0.27338606119155884, 0.11652650684118271, -0.19607090950012207, 0.18151375651359558, 0.31028833985328674, 0.41639018058776855, 0.09090413898229599, 0.4150956869125366, 0.24147586524486542, 0.17177844047546387, 0.1970205903053...
https://github.com/huggingface/datasets/issues/4478
Dataset slow during model training
Hi ! cc @Rocketknight1 maybe you know better ? I'm not too familiar with `tf.data.experimental.save`. Note that `datasets` uses memory mapping, so depending on your hardware and the disk you are using you can expect performance differences with a dataset loaded in RAM
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
43
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.3647408187389374, -0.04376630485057831, -0.051781658083200455, 0.16746309399604797, 0.4417370557785034, 0.3758905231952667, 0.13192279636859894, 0.5064499974250793, -0.27916309237480164, -0.0450834184885025, 0.006873017176985741, 0.39136049151420593, -0.28453540802001953, -0.07079442590...
https://github.com/huggingface/datasets/issues/4478
Dataset slow during model training
Hi @lehrig, I suspect what's happening here is that our `to_tf_dataset()` method has some performance issues when streaming samples. This is usually not a problem, but they become apparent when streaming a vision dataset into a very small vision model, which will need a lot of sample throughput to saturate the GPU. ...
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
207
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.3647408187389374, -0.04376630485057831, -0.051781658083200455, 0.16746309399604797, 0.4417370557785034, 0.3758905231952667, 0.13192279636859894, 0.5064499974250793, -0.27916309237480164, -0.0450834184885025, 0.006873017176985741, 0.39136049151420593, -0.28453540802001953, -0.07079442590...
https://github.com/huggingface/datasets/issues/4478
Dataset slow during model training
Thanks for the information! I have now updated the training code like so: ``` dataset = load_from_disk(prep_data_dir) train_dataset = dataset["train"][:] validation_dataset = dataset["dev"][:] ... model.fit( train_dataset["pixel_values"], train_dataset["label"], epochs=epochs, valida...
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
282
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.3647408187389374, -0.04376630485057831, -0.051781658083200455, 0.16746309399604797, 0.4417370557785034, 0.3758905231952667, 0.13192279636859894, 0.5064499974250793, -0.27916309237480164, -0.0450834184885025, 0.006873017176985741, 0.39136049151420593, -0.28453540802001953, -0.07079442590...
https://github.com/huggingface/datasets/issues/4478
Dataset slow during model training
Regarding the new long ~5 min. wait introduced by the in-memory dataset update: this might be causing it? https://datascience.stackexchange.com/questions/33364/why-model-fit-generator-in-keras-is-taking-so-much-time-even-before-picking-the For now, my save/load hack is still more performant, even though having more ...
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
35
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.3647408187389374, -0.04376630485057831, -0.051781658083200455, 0.16746309399604797, 0.4417370557785034, 0.3758905231952667, 0.13192279636859894, 0.5064499974250793, -0.27916309237480164, -0.0450834184885025, 0.006873017176985741, 0.39136049151420593, -0.28453540802001953, -0.07079442590...
https://github.com/huggingface/datasets/issues/4478
Dataset slow during model training
That 5 minute wait is quite surprising! I don't have a good explanation for why it's happening, but it can't be an issue with `datasets` or `tf.data` because you're just fitting directly on Numpy arrays at this point. All I can suggest is seeing if you can isolate the issue - for example, does fitting on a smaller data...
## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset following https://discuss.huggingface.co/...
101
Dataset slow during model training ## Describe the bug While migrating towards 🤗 Datasets, I encountered an odd performance degradation: training suddenly slows down dramatically. I train with an image dataset using Keras and execute a `to_tf_dataset` just before training. First, I have optimized my dataset foll...
[ -0.3647408187389374, -0.04376630485057831, -0.051781658083200455, 0.16746309399604797, 0.4417370557785034, 0.3758905231952667, 0.13192279636859894, 0.5064499974250793, -0.27916309237480164, -0.0450834184885025, 0.006873017176985741, 0.39136049151420593, -0.28453540802001953, -0.07079442590...
https://github.com/huggingface/datasets/issues/4477
Dataset Viewer issue for fgrezes/WIESP2022-NER
https://huggingface.co/datasets/fgrezes/WIESP2022-NER The error: ``` Message: Couldn't find a dataset script at /src/services/worker/fgrezes/WIESP2022-NER/WIESP2022-NER.py or any data file in the same directory. Couldn't find 'fgrezes/WIESP2022-NER' on the Hugging Face Hub either: FileNotFoundError: Unable...
### Link _No response_ ### Description _No response_ ### Owner _No response_
152
Dataset Viewer issue for fgrezes/WIESP2022-NER ### Link _No response_ ### Description _No response_ ### Owner _No response_ https://huggingface.co/datasets/fgrezes/WIESP2022-NER The error: ``` Message: Couldn't find a dataset script at /src/services/worker/fgrezes/WIESP2022-NER/WIESP2022-NER.py or...
[ -0.4396257698535919, 0.3505886197090149, -0.05238764360547066, 0.16105759143829346, 0.2094472497701645, 0.12234855443239212, 0.11481259763240814, 0.5527941584587097, 0.29441162943840027, 0.2716500759124756, -0.10764260590076447, -0.05584201216697693, 0.022150326520204544, 0.379539698362350...
https://github.com/huggingface/datasets/issues/4477
Dataset Viewer issue for fgrezes/WIESP2022-NER
Apparently it finds `scoring-scripts/compute_seqeval.py` which matches `**eval*`, a regex that detects a test split. We should probably improve the regex because it's not supposed to catch this kind of files. It must also only check for files with supported extensions: txt, csv, png etc.
### Link _No response_ ### Description _No response_ ### Owner _No response_
44
Dataset Viewer issue for fgrezes/WIESP2022-NER ### Link _No response_ ### Description _No response_ ### Owner _No response_ Apparently it finds `scoring-scripts/compute_seqeval.py` which matches `**eval*`, a regex that detects a test split. We should probably improve the regex because it's not supposed to catc...
[ -0.6337704658508301, 0.39804190397262573, -0.05149029195308685, 0.19421985745429993, 0.1848124861717224, -0.07042665779590607, 0.18268021941184998, 0.5746141076087952, 0.017154686152935028, 0.12912003695964813, -0.08567668497562408, 0.025144238024950027, 0.07798018306493759, 0.405405282974...
https://github.com/huggingface/datasets/issues/4476
`to_pandas` doesn't take into account format.
Thanks for opening a discussion :) Note that you can use `.remove_columns(...)` to keep only the ones you're interested in before calling `.to_pandas()`
**Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`. **Describe the solu...
23
`to_pandas` doesn't take into account format. **Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want a...
[ 0.042921606451272964, -0.19340446591377258, -0.06355650722980499, -0.11052922904491425, 0.4232199192047119, 0.28547611832618713, 0.3418155908584595, 0.5453059077262878, -0.08412414789199829, 0.14698955416679382, -0.1475684493780136, 0.24611078202724457, -0.09738370776176453, 0.462826430797...
https://github.com/huggingface/datasets/issues/4476
`to_pandas` doesn't take into account format.
Yes I can do that thank you! Do you think that conceptually my example should work? If not, I'm happy to close this issue. If yes, I can start working on it.
**Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`. **Describe the solu...
32
`to_pandas` doesn't take into account format. **Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want a...
[ 0.08143512904644012, -0.22471924126148224, -0.044288553297519684, -0.07012303173542023, 0.48298579454421997, 0.2592376470565796, 0.32011792063713074, 0.5277534127235413, -0.11461843550205231, 0.0853550136089325, -0.09834136068820953, 0.24285635352134705, -0.10698223859071732, 0.45728233456...
https://github.com/huggingface/datasets/issues/4476
`to_pandas` doesn't take into account format.
Hi! Instead of `with_format(columns=['a', 'b']).to_pandas()`, use `with_format("pandas", columns=["a", "b"])` for easy conversion of the parts of the dataset to pandas via indexing/slicing. The full code: ```python from datasets import Dataset ds = Dataset.from_dict({'a': [1,2,3], 'b': [5,6,7], 'c': [8,9,10]}) ...
**Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want and then call `to_pandas`. **Describe the solu...
44
`to_pandas` doesn't take into account format. **Is your feature request related to a problem? Please describe.** I have a large dataset that I need to convert part of to pandas to do some further analysis. Calling `to_pandas` directly on it is expensive. So I thought I could simply select the columns that I want a...
[ 0.04485657438635826, -0.2022828608751297, -0.06910037249326706, -0.10313864052295685, 0.47545236349105835, 0.280233234167099, 0.3150918185710907, 0.5535863041877747, -0.08521560579538345, 0.1245804876089096, -0.1309104561805725, 0.30377277731895447, -0.10908091813325882, 0.4659910500049591...
https://github.com/huggingface/datasets/issues/4467
Transcript string 'null' converted to [None] by load_dataset()
Hi @mbarnig, thanks for reporting. Please note that is an expected behavior by `pandas` (we use the `pandas` library to parse CSV files): https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html ``` By default the following values are interpreted as NaN: ‘’, ‘#N/A’, ‘#N/A N/A’, ‘#NA’, ‘-1.#IND’, ‘-1.#QN...
## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.map(prepare_dataset)` the following error was issued: ``` ...
104
Transcript string 'null' converted to [None] by load_dataset() ## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.m...
[ -0.1377425491809845, -0.03448756784200668, 0.09885776042938232, 0.26334843039512634, 0.17446957528591156, -0.05979602411389351, 0.48916545510292053, 0.20321351289749146, -0.06966747343540192, 0.24052365124225616, 0.0718797817826271, 0.545098066329956, -0.3162612020969391, -0.12006296962499...
https://github.com/huggingface/datasets/issues/4467
Transcript string 'null' converted to [None] by load_dataset()
@albertvillanova I also ran into this issue, it had me scratching my head for a while! In my case it was tripped by a literal "NA" comment collected from a user-facing form (e.g., this question does not apply to me). Thankfully this answer was here, but I feel it is such a common trap that it deserves to be noted in th...
## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.map(prepare_dataset)` the following error was issued: ``` ...
75
Transcript string 'null' converted to [None] by load_dataset() ## Issue I am training a luxembourgish speech-recognition model in Colab with a custom dataset, including a dictionary of luxembourgish words, for example the speaken numbers 0 to 9. When preparing the dataset with the script `ds_train1 = mydataset.m...
[ -0.1377425491809845, -0.03448756784200668, 0.09885776042938232, 0.26334843039512634, 0.17446957528591156, -0.05979602411389351, 0.48916545510292053, 0.20321351289749146, -0.06966747343540192, 0.24052365124225616, 0.0718797817826271, 0.545098066329956, -0.3162612020969391, -0.12006296962499...
https://github.com/huggingface/datasets/issues/4462
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter
Yup it can also work, and maybe it's simpler this way. Opening a PR to fix bigbench instead of https://github.com/huggingface/datasets/pull/4463
As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `NonMatchingSplitsSizesError`. This is because it will check for expected the number ...
20
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `...
[ -0.5403623580932617, -0.3582238554954529, 0.011093351989984512, 0.3671172261238098, 0.05378848686814308, -0.1841181367635727, -0.01696135476231575, 0.4620932936668396, 0.11047019064426422, 0.2697080969810486, 0.27880728244781494, 0.10549081861972809, -0.13502831757068634, 0.300633549690246...
https://github.com/huggingface/datasets/issues/4462
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter
Hi @lhoestq, Thank you for taking a look at this issue, and proposing a solution. Unfortunately, after trying the fix in #4465 I still see the same issue. I think there is some subtlety where the config name gets overwritten somewhere when `BUILDER_CONFIGS`[(link)](https://github.com/huggingface/datasets/blob/m...
As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `NonMatchingSplitsSizesError`. This is because it will check for expected the number ...
140
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `...
[ -0.296103835105896, -0.3113393187522888, 0.09185461699962616, 0.4651556611061096, 0.10660169273614883, -0.11537007987499237, -0.0237538181245327, 0.41597819328308105, -0.0015082992613315582, 0.23245978355407715, 0.3906216025352478, 0.08338918536901474, -0.136163592338562, 0.215621650218963...
https://github.com/huggingface/datasets/issues/4461
AttributeError: module 'datasets' has no attribute 'load_dataset'
I had a folder named 'datasets' so this is why it can't find the import, it's looking in the wrong place
## Describe the bug I have piped install datasets, but this package doesn't have these attributes: load_dataset, load_metric. ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-5.13.0-44-generic-x86_64-with-debian-bullseye-sid - Python version: 3.6.13 - PyArrow version: 6.0.1
21
AttributeError: module 'datasets' has no attribute 'load_dataset' ## Describe the bug I have piped install datasets, but this package doesn't have these attributes: load_dataset, load_metric. ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-5.13.0-44-generic-x86_64-with-debian-bullseye-sid - P...
[ -0.38473716378211975, 0.09812600910663605, -0.16463899612426758, 0.2966442108154297, 0.38724029064178467, 0.11337792128324509, 0.14504976570606232, 0.015103591606020927, 0.2565525472164154, 0.07296447455883026, -0.025026794523000717, 0.22762179374694824, -0.043027568608522415, 0.1178294643...
https://github.com/huggingface/datasets/issues/4456
Workflow for Tabular data
I use below to load a dataset: ``` dataset = datasets.load_dataset("scikit-learn/auto-mpg") df = pd.DataFrame(dataset["train"]) ``` TBH as said, tabular folk split their own dataset, they sometimes have two splits, sometimes three. Maybe somehow avoiding it for tabular datasets might be good for later. (it's just ...
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
47
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.2491477131843567, 0.07358591258525848, -0.17000502347946167, -0.3053778409957886, 0.17729002237319946, -0.06776853650808334, 0.42263904213905334, 0.4514343738555908, 0.3860595226287842, 0.10520576685667038, -0.2380918264389038, 0.6696101427078247, -0.04544596001505852, 0.711423277854919...
https://github.com/huggingface/datasets/issues/4456
Workflow for Tabular data
is very slow batch access of a dataset (tabular, csv) with many columns to be expected?
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
16
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.39244958758354187, 0.14258205890655518, -0.20618796348571777, -0.31092143058776855, 0.17349998652935028, -0.06509330868721008, 0.4074799120426178, 0.4767451882362366, 0.3228021562099457, 0.07285264134407043, -0.19770486652851105, 0.42343634366989136, -0.040627192705869675, 0.62046253681...
https://github.com/huggingface/datasets/issues/4456
Workflow for Tabular data
~20k! I was surprised batch loading with as few as 32 samples was really slow. I was speculating the columnar format was the cause -- or do you see good performance with this approx size of tabular data?
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
38
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.46042799949645996, 0.11330518126487732, -0.18204757571220398, -0.3295387029647827, 0.1515868604183197, -0.1130647212266922, 0.5216742157936096, 0.555488109588623, 0.3649042546749115, 0.08977203071117401, -0.23160405457019806, 0.36944109201431274, -0.06016477197408676, 0.6334143280982971...
https://github.com/huggingface/datasets/issues/4456
Workflow for Tabular data
20k can be a lot for a columnar format but maybe we can optimize a few things. It would be cool to profile the code to see if there's an unoptimized part of the code that slows everything down. (it's also possible to kill the job when it accesses the batch, it often gives you the traceback at the location where t...
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
65
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.5319504141807556, 0.14949926733970642, -0.1688041090965271, -0.3950577974319458, 0.17301659286022186, -0.11785034835338593, 0.41590750217437744, 0.6188486814498901, 0.23808684945106506, 0.14929921925067902, -0.1270846724510193, 0.534894585609436, -0.1121787503361702, 0.7199985384941101,...
https://github.com/huggingface/datasets/issues/4456
Workflow for Tabular data
@wconnell I'm not sure what you mean by my secret, I load them into a numpy array 😁 An example dataset is [here](https://portal.gdc.cancer.gov/repository?facetTab=files&filters=%7B%22content%22%3A%5B%7B%22content%22%3A%7B%22field%22%3A%22cases.project.project_id%22%2C%22value%22%3A%5B%22TCGA-CESC%22%5D%7D%2C%22op%...
Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an array of features and y an arra...
40
Workflow for Tabular data Tabular data are treated very differently than data for NLP, audio, vision, etc. and therefore the worflow for tabular data in `datasets` is not ideal. For example for tabular data, it is common to use pandas/spark/dask to process the data, and then load the data into X and y (X is an arr...
[ -0.29446810483932495, 0.201296865940094, -0.2063637375831604, -0.3129569888114929, 0.10777847468852997, -0.022809673100709915, 0.347158819437027, 0.5121543407440186, 0.26903143525123596, 0.014075465500354767, -0.25779950618743896, 0.644679605960846, -0.018886268138885498, 0.667198121547699...
https://github.com/huggingface/datasets/issues/4453
Dataset Viewer issue for Yaxin/SemEval2015
I understand that the issue is that a remote file (URL) is being loaded as a local file. Right @albertvillanova @lhoestq? ``` Message: [Errno 2] No such file or directory: 'https://raw.githubusercontent.com/YaxinCui/ABSADataset/main/SemEval2015Task12Corrected/train/restaurants_train.xml' ```
### Link _No response_ ### Description _No response_ ### Owner _No response_
32
Dataset Viewer issue for Yaxin/SemEval2015 ### Link _No response_ ### Description _No response_ ### Owner _No response_ I understand that the issue is that a remote file (URL) is being loaded as a local file. Right @albertvillanova @lhoestq? ``` Message: [Errno 2] No such file or directory: 'https://...
[ -0.36048176884651184, -0.09973987191915512, 0.039635058492422104, 0.38937652111053467, 0.3074730634689331, -0.012752644717693329, 0.36254897713661194, 0.40173691511154175, 0.19438962638378143, 0.19511646032333374, -0.09984879195690155, -0.13383282721042633, -0.03990144282579422, 0.00724946...
https://github.com/huggingface/datasets/issues/4453
Dataset Viewer issue for Yaxin/SemEval2015
`xml.dom.minidom.parse` is not supported in streaming mode. I opened a PR here to fix it: https://huggingface.co/datasets/Yaxin/SemEval2015/discussions/1 Please review the PR @WithYouTo and let me know if it works !
### Link _No response_ ### Description _No response_ ### Owner _No response_
29
Dataset Viewer issue for Yaxin/SemEval2015 ### Link _No response_ ### Description _No response_ ### Owner _No response_ `xml.dom.minidom.parse` is not supported in streaming mode. I opened a PR here to fix it: https://huggingface.co/datasets/Yaxin/SemEval2015/discussions/1 Please review the PR @WithYouTo a...
[ -0.6567187905311584, -0.29029330611228943, 0.03281590715050697, 0.10222400724887848, 0.45500969886779785, 0.07929102331399918, 0.23468732833862305, 0.3523225486278534, 0.0021390244364738464, 0.07026992738246918, -0.16250793635845184, -0.05907224118709564, -0.004859239794313908, 0.196241095...
https://github.com/huggingface/datasets/issues/4452
Trying to load FEVER dataset results in NonMatchingChecksumError
Thanks for reporting @santhnm2. We are fixing it. Data owners updated their URLs recently. We have to align with them, otherwise you do not download anything (that is why ignore_verifications does not work).
## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but then that raised a `json.decoder.JSONDecodeError`. ## Steps to r...
33
Trying to load FEVER dataset results in NonMatchingChecksumError ## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but ...
[ 0.055092860013246536, 0.07758583128452301, -0.00831948034465313, 0.3154527544975281, 0.2888719439506531, 0.20612165331840515, 0.011998016387224197, 0.28212815523147583, 0.09228794276714325, -0.005048893392086029, -0.0823885053396225, 0.34708812832832336, 0.0801294595003128, 0.0386856347322...
https://github.com/huggingface/datasets/issues/4452
Trying to load FEVER dataset results in NonMatchingChecksumError
Hello! Is there any update on this? I am having the same issue 6 months later.
## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but then that raised a `json.decoder.JSONDecodeError`. ## Steps to r...
16
Trying to load FEVER dataset results in NonMatchingChecksumError ## Describe the bug Trying to load the `fever` dataset fails with `datasets.utils.info_utils.NonMatchingChecksumError`. I tried with `download_mode="force_redownload"` but that did not fix the error. I also tried with `ignore_verification=True` but ...
[ 0.055092860013246536, 0.07758583128452301, -0.00831948034465313, 0.3154527544975281, 0.2888719439506531, 0.20612165331840515, 0.011998016387224197, 0.28212815523147583, 0.09228794276714325, -0.005048893392086029, -0.0823885053396225, 0.34708812832832336, 0.0801294595003128, 0.0386856347322...
https://github.com/huggingface/datasets/issues/4448
New Preprocessing Feature - Deduplication [Request]
Hi! The [datasets_sql](https://github.com/mariosasko/datasets_sql) package lets you easily find distinct rows in a dataset (an example with `SELECT DISTINCT` is in the readme). Deduplication is (still) not part of the official API because it's hard to implement for datasets bigger than RAM while only using the native P...
**Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature that allows one to easily deduplicate a dataset can be...
55
New Preprocessing Feature - Deduplication [Request] **Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature...
[ -0.32169559597969055, -0.19249114394187927, -0.1381891667842865, -0.0009355023503303528, 0.010670781135559082, 0.06374194473028183, -0.16842442750930786, 0.4268958270549774, -0.35620686411857605, 0.2864800989627838, 0.03303627297282219, 0.6406441330909729, 0.015022692270576954, 0.030571157...
https://github.com/huggingface/datasets/issues/4448
New Preprocessing Feature - Deduplication [Request]
Here is an example using the [datasets_sql](https://github.com/mariosasko/datasets_sql) mentioned ```python from datasets_sql import query dataset = load_dataset("imdb", split="train") # If you dont have an id column just add one by enumerating dataset=dataset.add_column("id", range(len(dataset))) id_co...
**Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature that allows one to easily deduplicate a dataset can be...
79
New Preprocessing Feature - Deduplication [Request] **Is your feature request related to a problem? Please describe.** Many large datasets are full of duplications and it has been shown that deduplicating datasets can lead to better performance while training, and more truthful evaluation at test-time. A feature...
[ -0.322091281414032, -0.25996482372283936, -0.11233982443809509, -0.14556145668029785, -0.041646793484687805, 0.179482102394104, -0.04290088638663292, 0.5064113140106201, -0.2167438566684723, 0.2552605867385864, 0.04862014949321747, 0.7056498527526855, -0.025995317846536636, 0.1206626519560...
https://github.com/huggingface/datasets/issues/4443
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
If I understand correctly, this is due to the key `split` missing in the line https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/blob/main/nimrod-uk-1km.py#L41 of the script. Maybe @albertvillanova could confirm.
### Link _No response_ ### Description _No response_ ### Owner _No response_
23
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ If I understand correctly, this is due to the key `split` missing in the line https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/blob/main/nimrod-uk-1km.py#L41 of the scr...
[ -0.48776763677597046, -0.009561307728290558, -0.027109097689390182, 0.2157333940267563, -0.0026691555976867676, -0.0184626467525959, 0.31159064173698425, 0.4936908185482025, 0.09518557786941528, 0.34265607595443726, -0.10089908540248871, 0.3467600345611572, -0.0434107668697834, 0.425457328...
https://github.com/huggingface/datasets/issues/4443
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
Indeed there are several issues in this dataset loading script. The one pointed out by @severo: for the default configuration "crops": https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/blob/main/nimrod-uk-1km.py#L244 - The download manager downloads `_URL` - But `_URL` is not defined: https://huggingfa...
### Link _No response_ ### Description _No response_ ### Owner _No response_
89
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ Indeed there are several issues in this dataset loading script. The one pointed out by @severo: for the default configuration "crops": https://huggingface.co/datasets/openclimat...
[ -0.4990963339805603, 0.16815906763076782, 0.017822936177253723, 0.30690211057662964, 0.18004819750785828, -0.19324231147766113, 0.25078245997428894, 0.34333208203315735, 0.15782618522644043, 0.20260143280029297, -0.016974888741970062, 0.35529038310050964, -0.2488403469324112, 0.21139055490...
https://github.com/huggingface/datasets/issues/4443
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
Would anyone want to submit a Hub PR (or open a Discussion for the authors to be aware) to this dataset? https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km
### Link _No response_ ### Description _No response_ ### Owner _No response_
22
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ Would anyone want to submit a Hub PR (or open a Discussion for the authors to be aware) to this dataset? https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km
[ -0.47888436913490295, -0.12609872221946716, -0.013959435746073723, 0.4152287244796753, 0.2487771213054657, -0.04992640018463135, 0.17155525088310242, 0.3034141957759857, 0.12617866694927216, 0.37934786081314087, 0.06974230706691742, 0.3841482698917389, -0.38796260952949524, 0.2619203031063...
https://github.com/huggingface/datasets/issues/4443
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
Hi, I'm the main author for that dataset, so I'll work on updating it! I was working on debugging some stuff awhile ago, which is what broke it.
### Link _No response_ ### Description _No response_ ### Owner _No response_
28
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ Hi, I'm the main author for that dataset, so I'll work on updating it! I was working on debugging some stuff awhile ago, which is what broke it.
[ -0.5738492608070374, 0.16284745931625366, -0.02706160955131054, 0.22329145669937134, 0.16078142821788788, -0.16488930583000183, 0.37284186482429504, 0.3347889482975006, 0.030218269675970078, 0.3588322401046753, 0.10172003507614136, 0.40525710582733154, -0.3044203221797943, 0.18825744092464...
https://github.com/huggingface/datasets/issues/4443
Dataset Viewer issue for openclimatefix/nimrod-uk-1km
I've opened a Discussion page, so that we can ask/answer and propose fixes until the script works properly: https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/discussions/1 CC: @julien-c @jacobbieker
### Link _No response_ ### Description _No response_ ### Owner _No response_
22
Dataset Viewer issue for openclimatefix/nimrod-uk-1km ### Link _No response_ ### Description _No response_ ### Owner _No response_ I've opened a Discussion page, so that we can ask/answer and propose fixes until the script works properly: https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km/discussions...
[ -0.6805039644241333, 0.13112330436706543, -0.03437969461083412, 0.1487870216369629, 0.1187773197889328, -0.26213064789772034, 0.4099898338317871, 0.5005975365638733, 0.13961611688137054, 0.47502803802490234, 0.12022458761930466, 0.4043653905391693, -0.2316914051771164, 0.3663710951805115, ...
https://github.com/huggingface/datasets/issues/4439
TIMIT won't load after manual download: Errors about files that don't exist
To have some context, please see: - #4145 Please, also note that we have recently made some fixes to the script, which are in our GitHub master branch but not yet released: - #4422 - #4425 - #4436
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
38
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtai...
[ 0.13059167563915253, -0.2234242707490921, 0.07193812727928162, 0.07531831413507462, 0.14005018770694733, 0.04869215935468674, -0.008748825639486313, 0.28026852011680603, -0.49403584003448486, -0.04652264714241028, -0.12519943714141846, 0.06427090615034103, -0.09158769249916077, 0.384990692...
https://github.com/huggingface/datasets/issues/4439
TIMIT won't load after manual download: Errors about files that don't exist
Thanks Albert! I'll try pulling `datasets` from the git repo instead of PyPI, and/or just wait for the next release.
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
20
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtai...
[ 0.13059167563915253, -0.2234242707490921, 0.07193812727928162, 0.07531831413507462, 0.14005018770694733, 0.04869215935468674, -0.008748825639486313, 0.28026852011680603, -0.49403584003448486, -0.04652264714241028, -0.12519943714141846, 0.06427090615034103, -0.09158769249916077, 0.384990692...
https://github.com/huggingface/datasets/issues/4439
TIMIT won't load after manual download: Errors about files that don't exist
I'm closing this issue then. Please, feel free to reopen it again if the problem persists.
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
16
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtai...
[ 0.13059167563915253, -0.2234242707490921, 0.07193812727928162, 0.07531831413507462, 0.14005018770694733, 0.04869215935468674, -0.008748825639486313, 0.28026852011680603, -0.49403584003448486, -0.04652264714241028, -0.12519943714141846, 0.06427090615034103, -0.09158769249916077, 0.384990692...
https://github.com/huggingface/datasets/issues/4435
Load a local cached dataset that has been modified
Hi! `datasets` caches every modification/loading, so you can either rerun the pipeline up to the `map` call or use `Dataset.from_file(modified_dataset)` to load the dataset directly from the cache file.
## Describe the bug I have loaded a dataset as follows: ``` d = load_dataset("emotion", split="validation") ``` Afterwards I make some modifications to the dataset via a `map` call: ``` d.map(some_update_func, cache_file_name=modified_dataset) ``` This generates a cached version of the dataset on my local syst...
29
Load a local cached dataset that has been modified ## Describe the bug I have loaded a dataset as follows: ``` d = load_dataset("emotion", split="validation") ``` Afterwards I make some modifications to the dataset via a `map` call: ``` d.map(some_update_func, cache_file_name=modified_dataset) ``` This gener...
[ -0.10946343839168549, 0.20976367592811584, 0.043923672288656235, 0.272295743227005, -0.10988190770149231, 0.2734677195549011, 0.2665173411369324, 0.23619261384010315, 0.3935365676879883, -0.09648334980010986, -0.20715457201004028, 0.545515239238739, 0.15295112133026123, -0.3519518375396728...
https://github.com/huggingface/datasets/issues/4430
Add ability to load newer, cleaner version of Multi-News
Hi! Our versioning is based on Git revisions (the `revision` param in `load_dataset`), so you can just replace the old URL with the new one and open a PR :). I can also give you some pointers if needed.
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
39
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.2597789168357849, 0.07839801907539368, -0.07855775952339172, -0.08194296061992645, -0.20508787035942078, 0.012279495596885681, 0.32760506868362427, 0.2581801414489746, 0.04155837371945381, 0.008546561002731323, -0.1402484029531479, 0.2975924015045166, -0.07111411541700363, 0.24845163524...
https://github.com/huggingface/datasets/issues/4430
Add ability to load newer, cleaner version of Multi-News
@mariosasko Awesome thanks! I will do that. Looks like this new version of the data is not available as a zip but as three files (train/dev/test). How is this usually handled in HF Datasets, should `_URL` be a dict with keys `train`, `val`, `test` perhaps?
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
45
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.14610418677330017, 0.11213615536689758, -0.05282742530107498, -0.10732312500476837, -0.3316490650177002, 0.04110230505466461, 0.3071531653404236, 0.2734023928642273, 0.07105764746665955, 0.014758601784706116, -0.30019688606262207, 0.17131134867668152, -0.031777750700712204, 0.2504991292...
https://github.com/huggingface/datasets/issues/4430
Add ability to load newer, cleaner version of Multi-News
Yes! Let me help you with more detailed instructions. In the first step, we need to update the URLs. One of the possible dictionary structures is as follows: ```python _URLs = { "train": {"src": "https://drive.google.com/uc?export=download&id=1wHAWDOwOoQWSj7HYpyJ3Aeud8WhhaJ7P", "tgt": "https://drive.google.co...
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
141
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.18265461921691895, 0.1126437783241272, -0.10607783496379852, -0.05953238159418106, -0.14160370826721191, 0.06452877074480057, 0.3196961283683777, 0.2980671226978302, 0.06817598640918732, -0.032039105892181396, -0.22333283722400665, 0.2548075020313263, -0.21407854557037354, 0.27223262190...
https://github.com/huggingface/datasets/issues/4430
Add ability to load newer, cleaner version of Multi-News
Awesome! Thanks for the detailed help, that was straightforward with your instruction. However, I think I am being blocked by this issue: https://github.com/huggingface/datasets/issues/4428
**Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news/multi_news.py#L47), but this has [known errors in it](https...
23
Add ability to load newer, cleaner version of Multi-News **Is your feature request related to a problem? Please describe.** The [Multi-News dataloader points to the original version of the Multi-News dataset](https://github.com/huggingface/datasets/blob/12540dd75015678ec6019f258d811ee107439a73/datasets/multi_news...
[ -0.16652260720729828, -0.023137688636779785, -0.08440636843442917, -0.060711897909641266, -0.12671545147895813, 0.07482241839170456, 0.2727241814136505, 0.19914156198501587, 0.0301169753074646, 0.021154746413230896, -0.187438502907753, 0.25123006105422974, -0.08516962081193924, 0.285584479...
https://github.com/huggingface/datasets/issues/4426
Add loading variable number of columns for different splits
Hi! Indeed the column is missing, but you shouldn't get an error? Have you made some modifications (locally) to the loading script? I've opened a PR to add the missing columns to the script.
**Is your feature request related to a problem? Please describe.** The original dataset `blended_skill_talk` consists of different sets of columns for the different splits: (test/valid) splits have additional data column `label_candidates` that the (train) doesn't have. When loading such data, an exception occurs at ...
34
Add loading variable number of columns for different splits **Is your feature request related to a problem? Please describe.** The original dataset `blended_skill_talk` consists of different sets of columns for the different splits: (test/valid) splits have additional data column `label_candidates` that the (train) ...
[ -0.09027811884880066, -0.2585310935974121, -0.04823273420333862, 0.1493133008480072, 0.5014791488647461, 0.16222140192985535, 0.49423909187316895, 0.3203108012676239, 0.3934251070022583, 0.2607402801513672, -0.02070060558617115, 0.3569554090499878, -0.2077334225177765, 0.6640576720237732, ...
https://github.com/huggingface/datasets/issues/4422
Cannot load timit_asr data set
@bhaddow we have also made a fix so that you don't have to convert to uppercase the file extensions of the LDC data. Would you mind checking if it works OK now for you and reporting if there are any issues? Thanks.
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
42
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.11117299646139145, -0.30005016922950745, 0.10342074930667877, 0.5051798224449158, 0.26155364513397217, 0.09815844148397446, 0.2501973807811737, 0.15714696049690247, -0.3770354688167572, -0.0910203754901886, -0.1131468191742897, 0.4798595607280731, -0.06322288513183594, 0.177757695317268...
https://github.com/huggingface/datasets/issues/4422
Cannot load timit_asr data set
Hi @albertvillanova -It loads fine on a copy of the data from deepai - although I have to remove the copies of the .WAV files (with extension .WAV,wav). On a copy of the data that was obtained from the LDC, the glob still fails to find the files. The LDC copy looks like it was copied from CD, in 2004, so the structure...
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
70
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.12274299561977386, -0.28387558460235596, 0.11440135538578033, 0.419750452041626, 0.24682165682315826, 0.013537831604480743, 0.16538842022418976, 0.16519787907600403, -0.35715633630752563, 0.01091025024652481, -0.19361940026283264, 0.395245760679245, -0.13379591703414917, 0.0935468301177...
https://github.com/huggingface/datasets/issues/4422
Cannot load timit_asr data set
Ah, if I change the train/ and test/ directories to TRAIN/ and TEST/ then it works!
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
16
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.11325687170028687, -0.18663489818572998, 0.12861932814121246, 0.4597626328468323, 0.3614996075630188, 0.1456907093524933, 0.29637080430984497, 0.1980886608362198, -0.4100964367389679, -0.04298688471317291, -0.1318950355052948, 0.4366244673728943, -0.0733189731836319, 0.12590375542640686...
https://github.com/huggingface/datasets/issues/4422
Cannot load timit_asr data set
Thanks for your investigation and report, @bhaddow. I'm adding another fix for the TRAIN/train and TEST/test directory names.
## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all. ## Steps to reproduce the bug...
18
Cannot load timit_asr data set ## Describe the bug I am trying to load the timit_asr data set. I have tried with a copy from the LDC, and a copy from deepai. In both cases they fail with a "duplicate key" error. With the LDC version I have to convert the file extensions all to upper-case before I can load it at all....
[ -0.12912718951702118, -0.21241958439350128, 0.11182968318462372, 0.47808653116226196, 0.3360818028450012, 0.13902851939201355, 0.30126529932022095, 0.20190095901489258, -0.37618187069892883, -0.0309751033782959, -0.13144448399543762, 0.4844801127910614, -0.08096881210803986, 0.170102894306...
https://github.com/huggingface/datasets/issues/4420
Metric evaluation problems in multi-node, shared file system
If you call `metric.compute` in a distributed setup like yours, then `metric.compute` is called in each process. `metric.compute` first calls `metric.add_batch`, and it looks like your error appears at that stage. To make sure that all the processes have started writing their predictions/references at the same time,...
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
134
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.1226465255022049, -0.29547232389450073, 0.07963378727436066, 0.36486637592315674, 0.062170859426259995, -0.3332039713859558, 0.3804205656051636, 0.10030752420425415, 0.1567913144826889, 0.28335070610046387, -0.17039130628108978, 0.10685503482818604, -0.18573790788650513, -0.358416885137...
https://github.com/huggingface/datasets/issues/4420
Metric evaluation problems in multi-node, shared file system
We've finally been able to isolate the problem, it wasn't a timing problem, but rather a file locking one. The locks produced by calling `flock` where not visible between nodes (so the master node couldn't check other node's locks nor the other way around). We are now having issues with the pre-processing in our ...
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
207
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.1226465255022049, -0.29547232389450073, 0.07963378727436066, 0.36486637592315674, 0.062170859426259995, -0.3332039713859558, 0.3804205656051636, 0.10030752420425415, 0.1567913144826889, 0.28335070610046387, -0.17039130628108978, 0.10685503482818604, -0.18573790788650513, -0.358416885137...
https://github.com/huggingface/datasets/issues/4420
Metric evaluation problems in multi-node, shared file system
Cool, I'm glad you managed to make evaluation work :) I'm not completely aware of the differences between lockf and flock, but I've read somewhere that flock is preferable over lockf in multithreading and multiprocessing situations. Here we definitely are in such a situation so unless it is super important I don't t...
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
58
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.1226465255022049, -0.29547232389450073, 0.07963378727436066, 0.36486637592315674, 0.062170859426259995, -0.3332039713859558, 0.3804205656051636, 0.10030752420425415, 0.1567913144826889, 0.28335070610046387, -0.17039130628108978, 0.10685503482818604, -0.18573790788650513, -0.358416885137...
https://github.com/huggingface/datasets/issues/4420
Metric evaluation problems in multi-node, shared file system
> * We had to change slightly the `_check_all_processes_locks` method so that the main process (i.e. process 0) didn't check it's own lock (because `lockf` permits recursive locks and thus checking it only replaced the current lock with a new one). Hi @panserbjorn , Can you share your `_check_all_processes_locks` fu...
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
51
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.1226465255022049, -0.29547232389450073, 0.07963378727436066, 0.36486637592315674, 0.062170859426259995, -0.3332039713859558, 0.3804205656051636, 0.10030752420425415, 0.1567913144826889, 0.28335070610046387, -0.17039130628108978, 0.10685503482818604, -0.18573790788650513, -0.358416885137...
https://github.com/huggingface/datasets/issues/4420
Metric evaluation problems in multi-node, shared file system
``` def _check_all_processes_locks(self): expected_lock_file_names = [ os.path.join(self.data_dir, f"{self.experiment_id}-{self.num_process}-{process_id}.arrow.lock") for process_id in range(self.num_process) ] #for expected_lock_file_name in expected_lock_file_name...
## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/transformers/issues/17412) ## Steps to reproduce the bug 1. c...
386
Metric evaluation problems in multi-node, shared file system ## Describe the bug Metric evaluation fails in multi-node within a shared file system, because the master process cannot find the lock files from other nodes. (This issue was originally mentioned in the transformers repo https://github.com/huggingface/tran...
[ -0.1226465255022049, -0.29547232389450073, 0.07963378727436066, 0.36486637592315674, 0.062170859426259995, -0.3332039713859558, 0.3804205656051636, 0.10030752420425415, 0.1567913144826889, 0.28335070610046387, -0.17039130628108978, 0.10685503482818604, -0.18573790788650513, -0.358416885137...
https://github.com/huggingface/datasets/issues/4419
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual`
Hi! If the only goal is to improve readability, it's better to use `assertTupleEqual` than `assertSequenceEqual` for Python tuples. Also, note that this function is called internally by `assertEqual`, but I guess we can accept a PR to be more verbose.
**Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittest` added that function in `v3.1`, as detailed at https://docs.python.org/3/library...
41
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual` **Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unitt...
[ -0.11732026934623718, 0.17830273509025574, -0.2007409632205963, -0.219443216919899, 0.15809227526187897, 0.19009238481521606, 0.1293112188577652, 0.25092408061027527, 0.16732637584209442, 0.057909045368433, 0.2828997075557709, 0.30522221326828003, -0.16012747585773468, -0.09168107807636261...
https://github.com/huggingface/datasets/issues/4419
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual`
Hi @mariosasko, right! I'll update the issue title/desc with `assertTupleEqual` even though as you said it seems to be internally using `assertEqual` so I'm not sure whether it's worth it or not... https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTupleEqual
**Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittest` added that function in `v3.1`, as detailed at https://docs.python.org/3/library...
33
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual` **Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unitt...
[ -0.096736378967762, 0.1710253357887268, -0.20067532360553741, -0.21332524716854095, 0.13387863337993622, 0.18414059281349182, 0.16805149614810944, 0.2551600933074951, 0.19010868668556213, 0.08620865643024445, 0.27008143067359924, 0.30105939507484436, -0.13259562849998474, -0.10468018800020...
https://github.com/huggingface/datasets/issues/4417
how to convert a dict generator into a huggingface dataset.
Hi ! As mentioned on the [forum](https://discuss.huggingface.co/t/how-to-wrap-a-generator-with-hf-dataset/18464), the simplest for now would be to define a [dataset script](https://huggingface.co/docs/datasets/dataset_script) which can contain your generator. But we can also explore adding something like `ds = Dataset....
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
34
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.2356611043214798, -0.5294454097747803, 0.023818079382181168, 0.32638633251190186, 0.4359237551689148, -0.018439490348100662, 0.05949658155441284, 0.2877725660800934, 0.22911503911018372, 0.24235397577285767, -0.2977548837661743, 0.10299661755561829, -0.22395963966846466, 0.5133184194564...
https://github.com/huggingface/datasets/issues/4417
how to convert a dict generator into a huggingface dataset.
@lhoestq , hey i did as you instructed, but sadly i cannot get pass through the download_manager, as i dont have anything to download. i was skipping the ` def _split_generators(self, dl_manager):` function. but i cannot get around it. I get a `NotImplementedError: ` the following is my code for the same: ``...
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
311
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.2356611043214798, -0.5294454097747803, 0.023818079382181168, 0.32638633251190186, 0.4359237551689148, -0.018439490348100662, 0.05949658155441284, 0.2877725660800934, 0.22911503911018372, 0.24235397577285767, -0.2977548837661743, 0.10299661755561829, -0.22395963966846466, 0.5133184194564...
https://github.com/huggingface/datasets/issues/4417
how to convert a dict generator into a huggingface dataset.
@lhoestq , just to make things clear ... the following is my original code, thats not in the HF dataset loading script: ``` import functools import seqio import tensorflow as tf import t5.data from datasets import load_from_disk from t5.data import postprocessors from t5.data import preprocessors from t...
### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface dataset. The generator contains all the samples needed for ...
264
how to convert a dict generator into a huggingface dataset. ### Link _No response_ ### Description Hey there, I have used seqio to get a well distributed mixture of samples from multiple dataset. However the resultant output from seqio is a python generator dict, which I cannot produce back into huggingface...
[ -0.2356611043214798, -0.5294454097747803, 0.023818079382181168, 0.32638633251190186, 0.4359237551689148, -0.018439490348100662, 0.05949658155441284, 0.2877725660800934, 0.22911503911018372, 0.24235397577285767, -0.2977548837661743, 0.10299661755561829, -0.22395963966846466, 0.5133184194564...