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/4632
'sort' method sorts one column only
Hi ! `ds.sort()` does sort the full dataset, not just one column: ```python from datasets import * ds = Dataset.from_dict({"foo": [3, 2, 1], "bar": ["c", "b", "a"]}) print(d.sort("foo").to_pandas() # foo bar # 0 1 a # 1 2 b # 2 3 c ``` What made you think it was not the case ? Did you ex...
The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order.
67
'sort' method sorts one column only The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order. Hi ! `ds.sort()` does sort the full d...
[ 0.28042128682136536, -0.11438897997140884, -0.09566597640514374, 0.1052810400724411, 0.24284778535366058, -0.04496185481548309, 0.2915063202381134, 0.1874726563692093, 0.02114611119031906, 0.3759722113609314, 0.05880950391292572, 0.3416837155818939, 0.3120458126068115, 0.060936711728572845...
https://github.com/huggingface/datasets/issues/4632
'sort' method sorts one column only
Hi! thank you for your quick reply! I wanted to sort the `cnn_dailymail` dataset by the length of the labels (num of characters). I added a new column to the dataset (`ds.add_column`) with the lengths and then sorted by this new column. Only the new length column was sorted, the reset left in their original order.
The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order.
56
'sort' method sorts one column only The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order. Hi! thank you for your quick reply! ...
[ 0.3292351961135864, -0.11990857869386673, -0.042574502527713776, 0.08674963563680649, 0.1433679312467575, -0.13137592375278473, 0.26586341857910156, 0.07707978785037994, 0.11549831926822662, 0.33633139729499817, 0.020844804123044014, 0.3247247338294983, 0.1618967354297638, 0.13079890608787...
https://github.com/huggingface/datasets/issues/4623
Loading MNIST as Pytorch Dataset
Hi ! We haven't implemented the conversion from images data to PyTorch tensors yet I think cc @mariosasko
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
18
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833067119121552, -0.09968702495098114, 0.01369825005531311, 0.1784951090812683, 0.29652881622314453, -0.1651548445224762, 0.4545488953590393, 0.44875994324684143, 0.09683285653591156, 0.34280669689178467, -0.03596876561641693, 0.7176253795623779, -0.16904443502426147, -0.1498889476060...
https://github.com/huggingface/datasets/issues/4623
Loading MNIST as Pytorch Dataset
So I understand: set_format() does not properly do the conversion to pytorch tensors from PIL images. So that someone who stumbles on this can use the package: ```python dataset = load_dataset("mnist", split="train") def transform_func(examples): examples["image"] = [np.array(img) for img in examples["i...
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
48
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833067119121552, -0.09968702495098114, 0.01369825005531311, 0.1784951090812683, 0.29652881622314453, -0.1651548445224762, 0.4545488953590393, 0.44875994324684143, 0.09683285653591156, 0.34280669689178467, -0.03596876561641693, 0.7176253795623779, -0.16904443502426147, -0.1498889476060...
https://github.com/huggingface/datasets/issues/4623
Loading MNIST as Pytorch Dataset
This then appears to work with pytorch dataloaders as: ``` dataloader=torch.utils.data.DataLoader(dataset,batch_size=1) ``` and tensorflow as: ``` dataset=dataset.to_tf_dataset(batch_size=1) ```
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
18
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833067119121552, -0.09968702495098114, 0.01369825005531311, 0.1784951090812683, 0.29652881622314453, -0.1651548445224762, 0.4545488953590393, 0.44875994324684143, 0.09683285653591156, 0.34280669689178467, -0.03596876561641693, 0.7176253795623779, -0.16904443502426147, -0.1498889476060...
https://github.com/huggingface/datasets/issues/4623
Loading MNIST as Pytorch Dataset
Hi! `set_transform`/`with_transform` is indeed the correct solution for the conversion. Improving this part of the API is one of the things I'm working on currently, so stay tuned!
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
28
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833067119121552, -0.09968702495098114, 0.01369825005531311, 0.1784951090812683, 0.29652881622314453, -0.1651548445224762, 0.4545488953590393, 0.44875994324684143, 0.09683285653591156, 0.34280669689178467, -0.03596876561641693, 0.7176253795623779, -0.16904443502426147, -0.1498889476060...
https://github.com/huggingface/datasets/issues/4619
np arrays get turned into native lists
If you add the line `dataset2.set_format('np')` before calling `dataset2[0]['tmp']` it should return `np.ndarray`. I believe internally it will not store it as a list, it is only returning a list when you index it. ``` In [1]: import datasets, numpy as np In [2]: dataset = datasets.load_dataset("glue", "mrpc")["v...
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
71
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import d...
[ 0.1432117521762848, -0.08071322739124298, -0.051935769617557526, 0.08374571800231934, 0.3818095326423645, 0.12156004458665848, 0.3182193338871002, 0.20185120403766632, 0.3359062969684601, 0.1461300551891327, -0.0025853863917291164, 0.6777687668800354, 0.1720501333475113, -0.083465047180652...
https://github.com/huggingface/datasets/issues/4619
np arrays get turned into native lists
I see, thanks! Any idea if the default numpy → list conversion might cause precision loss?
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
16
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import d...
[ 0.0756758600473404, -0.06403491646051407, -0.04665675759315491, 0.016813814640045166, 0.369318425655365, 0.0984451100230217, 0.3085053563117981, 0.158713236451149, 0.2478821575641632, 0.1558501273393631, 0.03274393826723099, 0.6403751373291016, 0.18294264376163483, -0.10110799968242645, ...
https://github.com/huggingface/datasets/issues/4619
np arrays get turned into native lists
I'm not super familiar with our datasets works internally, but I think your `np` array will be stored in a `pyarrow` format, and then you take a view of this as a python array. In which case, I think the precision should be preserved.
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
44
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import d...
[ 0.08610011637210846, -0.04592133313417435, -0.05543023347854614, 0.03548063337802887, 0.3768509030342102, 0.09786156564950943, 0.27538272738456726, 0.1547374129295349, 0.1943834275007248, 0.1570320874452591, 0.01732492446899414, 0.6573179364204407, 0.1881696730852127, -0.07049423456192017,...
https://github.com/huggingface/datasets/issues/4618
contribute data loading for object detection datasets with yolo data format
Hi! The `imagefolder` script is already quite complex, so a standalone script sounds better. Also, I suggest we create an org on the Hub (e.g. `hf-loaders`) and store such scripts there for easier maintenance rather than having them as packaged modules (IMO only very generic loaders should be packaged). WDYT @lhoestq @...
**Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://hugging...
53
contribute data loading for object detection datasets with yolo data format **Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading ...
[ -0.19951283931732178, -0.22327779233455658, 0.030088167637586594, 0.22801147401332855, 0.002493320032954216, -0.1767904907464981, 0.3969922959804535, 0.3359566926956177, 0.7367866635322571, 0.016155928373336792, -0.36364102363586426, -0.009577297605574131, -0.22434969246387482, 0.555282354...
https://github.com/huggingface/datasets/issues/4618
contribute data loading for object detection datasets with yolo data format
Thank you for the suggestion @mariosasko . I agree with the point, but I have a few doubts 1. How would the user access the script if it's not a part of the core codebase? 2. Could you direct me as to what will be the tasks I have to do to contribute to the code? As per my understanding, it would be like 1. Cr...
**Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://hugging...
135
contribute data loading for object detection datasets with yolo data format **Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading ...
[ -0.08097722381353378, -0.0058672428131103516, 0.01908848062157631, 0.14947840571403503, -0.14927737414836884, -0.057615093886852264, 0.4828805923461914, 0.22512643039226532, 0.6821538805961609, 0.06522554159164429, -0.3322116434574127, -0.11917440593242645, -0.2263093888759613, 0.496855676...
https://github.com/huggingface/datasets/issues/4618
contribute data loading for object detection datasets with yolo data format
1. Like this: `load_dataset("hf-loaders/yolo", data_files=...)` 2. The steps would be: 1. Create a new org `hf-community-loaders` (IMO a better name than "hf-loaders") and add me (as an admin) 2. Create a new dataset repo `yolo` and add the loading script to it (`yolo.py`) 3. Open a discussion to reques...
**Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://hugging...
73
contribute data loading for object detection datasets with yolo data format **Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading ...
[ -0.18556027114391327, -0.03586704283952713, 0.03169272840023041, 0.21702206134796143, -0.050836190581321716, -0.15607544779777527, 0.4227236807346344, 0.3171769976615906, 0.5954245924949646, 0.0406724289059639, -0.3604072332382202, -0.0022463675122708082, -0.19751162827014923, 0.4584817588...
https://github.com/huggingface/datasets/issues/4612
Release 2.3.0 broke custom iterable datasets
Apparently, `fsspec` does not allow access to attribute-based modules anymore, such as `fsspec.async`. However, this is a fairly simple fix: - Change the import to: `from fsspec import asyn`; - Change line 18 to: `asyn.iothread[0] = None`; - Change line 19 to `asyn.loop[0] = None`.
## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `next(iter(custom_iterable_dataset))` should retu...
45
Release 2.3.0 broke custom iterable datasets ## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `n...
[ -0.2921886742115021, -0.13219138979911804, -0.06178423762321472, 0.08947064727544785, -0.027991287410259247, -0.06942635774612427, 0.4363798201084137, 0.08186624944210052, -0.10973890125751495, 0.03781239688396454, 0.07510139048099518, 0.42103448510169983, -0.2893877327442169, 0.1537691503...
https://github.com/huggingface/datasets/issues/4612
Release 2.3.0 broke custom iterable datasets
Hi! I think it's easier to replace `import fsspec` with `import fsspec.asyn` and leave the rest unchanged. @gugarosa Are you interested in submitting a PR?
## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `next(iter(custom_iterable_dataset))` should retu...
25
Release 2.3.0 broke custom iterable datasets ## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `n...
[ -0.29491984844207764, -0.20614497363567352, -0.09534762799739838, 0.046741463243961334, -0.0868976041674614, -0.041585780680179596, 0.4108291268348694, 0.09821152687072754, -0.09093771874904633, 0.013974092900753021, 0.0952100083231926, 0.3712005317211151, -0.28548166155815125, 0.191101893...
https://github.com/huggingface/datasets/issues/4610
codeparrot/github-code failing to load
I believe the issue is in `codeparrot/github-code`. `base_path` param is missing - https://huggingface.co/datasets/codeparrot/github-code/blob/main/github-code.py#L169 Function definition has changed. https://github.com/huggingface/datasets/blob/0e1c629cfb9f9ba124537ba294a0ec451584da5f/src/datasets/data_files.py#L5...
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
38
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.21699845790863037, -0.06861083209514618, -0.08182676136493683, 0.21229784190654755, 0.22685489058494568, 0.02494252473115921, 0.42694762349128723, 0.5157313346862793, 0.07178185880184174, -0.03193691372871399, 0.2613385021686554, 0.543058454990387, -0.08034840226173401, 0.21459496021270...
https://github.com/huggingface/datasets/issues/4610
codeparrot/github-code failing to load
Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
17
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.21699845790863037, -0.06861083209514618, -0.08182676136493683, 0.21229784190654755, 0.22685489058494568, 0.02494252473115921, 0.42694762349128723, 0.5157313346862793, 0.07178185880184174, -0.03193691372871399, 0.2613385021686554, 0.543058454990387, -0.08034840226173401, 0.21459496021270...
https://github.com/huggingface/datasets/issues/4610
codeparrot/github-code failing to load
> Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it I can't wait for that releasee. Broke my application
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
27
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.21699845790863037, -0.06861083209514618, -0.08182676136493683, 0.21229784190654755, 0.22685489058494568, 0.02494252473115921, 0.42694762349128723, 0.5157313346862793, 0.07178185880184174, -0.03193691372871399, 0.2613385021686554, 0.543058454990387, -0.08034840226173401, 0.21459496021270...
https://github.com/huggingface/datasets/issues/4610
codeparrot/github-code failing to load
This simple workaround should fix: https://huggingface.co/datasets/codeparrot/github-code/discussions/2 `get_patterns_in_dataset_repository` can treat whether `base_path=None`, so we just need to make sure that codeparrot/github-code `_split_generators` calls with such an argument.
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
26
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.21699845790863037, -0.06861083209514618, -0.08182676136493683, 0.21229784190654755, 0.22685489058494568, 0.02494252473115921, 0.42694762349128723, 0.5157313346862793, 0.07178185880184174, -0.03193691372871399, 0.2613385021686554, 0.543058454990387, -0.08034840226173401, 0.21459496021270...
https://github.com/huggingface/datasets/issues/4610
codeparrot/github-code failing to load
I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ? @lvwerra do you think we s...
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
57
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.21699845790863037, -0.06861083209514618, -0.08182676136493683, 0.21229784190654755, 0.22685489058494568, 0.02494252473115921, 0.42694762349128723, 0.5157313346862793, 0.07178185880184174, -0.03193691372871399, 0.2613385021686554, 0.543058454990387, -0.08034840226173401, 0.21459496021270...
https://github.com/huggingface/datasets/issues/4610
codeparrot/github-code failing to load
Actually I think it's just simpler to fix it in the dataset itself, let me open a PR EDIT: PR opened here: https://huggingface.co/datasets/codeparrot/github-code/discussions/3
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
23
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.21699845790863037, -0.06861083209514618, -0.08182676136493683, 0.21229784190654755, 0.22685489058494568, 0.02494252473115921, 0.42694762349128723, 0.5157313346862793, 0.07178185880184174, -0.03193691372871399, 0.2613385021686554, 0.543058454990387, -0.08034840226173401, 0.21459496021270...
https://github.com/huggingface/datasets/issues/4610
codeparrot/github-code failing to load
> I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ? > @lvwerra do you think we...
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
83
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.21699845790863037, -0.06861083209514618, -0.08182676136493683, 0.21229784190654755, 0.22685489058494568, 0.02494252473115921, 0.42694762349128723, 0.5157313346862793, 0.07178185880184174, -0.03193691372871399, 0.2613385021686554, 0.543058454990387, -0.08034840226173401, 0.21459496021270...
https://github.com/huggingface/datasets/issues/4609
librispeech dataset has to download whole subset when specifing the split to use
Hi! You can use streaming to fetch only a subset of the data: ```python raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100", streaming=True) ``` Also, we plan to make it possible to download a particular split in the non-streaming mode, but this task is not easy due to how our dataset scripts a...
## Describe the bug librispeech dataset has to download whole subset when specifing the split to use ## Steps to reproduce the bug see below # Sample code to reproduce the bug ``` !pip install datasets from datasets import load_dataset raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100") ...
51
librispeech dataset has to download whole subset when specifing the split to use ## Describe the bug librispeech dataset has to download whole subset when specifing the split to use ## Steps to reproduce the bug see below # Sample code to reproduce the bug ``` !pip install datasets from datasets import load_...
[ -0.49825435876846313, -0.36330586671829224, -0.023367539048194885, 0.420921266078949, 0.11685515195131302, 0.11956607550382614, 0.21420486271381378, 0.34216219186782837, 0.1499776989221573, 0.17393366992473602, -0.174717977643013, 0.13586130738258362, 0.07201629877090454, 0.330099821090698...
https://github.com/huggingface/datasets/issues/4606
evaluation result changes after `datasets` version change
Hi! The GH/no-namespace datasets versioning is synced with the version of the `datasets` lib, which means that the `wikiann` script was modified between the two compared versions. In this scenario, you can ensure reproducibility by pinning the script version, which is done by passing `revision="x.y.z"` (e.g. `revision=...
## Describe the bug evaluation result changes after `datasets` version change ## Steps to reproduce the bug 1. Train a model on WikiAnn 2. reload the ckpt -> test accuracy becomes same as eval accuracy 3. such behavior is gone after downgrading `datasets` https://colab.research.google.com/drive/1kYz7-aZRGdaya...
49
evaluation result changes after `datasets` version change ## Describe the bug evaluation result changes after `datasets` version change ## Steps to reproduce the bug 1. Train a model on WikiAnn 2. reload the ckpt -> test accuracy becomes same as eval accuracy 3. such behavior is gone after downgrading `dataset...
[ -0.3407287299633026, 0.09586314857006073, 0.020146872848272324, -0.01970648020505905, -0.04399851709604263, -0.23062801361083984, 0.2176782339811325, 0.22050531208515167, -0.3871918022632599, 0.3351339101791382, -0.11347246915102005, 0.53521728515625, 0.14174818992614746, 0.088672518730163...
https://github.com/huggingface/datasets/issues/4605
Dataset Viewer issue for boris/gis_filtered
Yes, this dataset is "gated": you first have to go to https://huggingface.co/datasets/boris/gis_filtered and click "Access repository" (if you accept to share your contact information with the repository authors).
### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datase...
28
Dataset Viewer issue for boris/gis_filtered ### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unautho...
[ -0.05149029195308685, 0.05963234603404999, -0.0058195143938064575, 0.38931983709335327, 0.31956732273101807, -0.06691604852676392, 0.355448842048645, 0.21970373392105103, -0.0030774977058172226, 0.0706980973482132, -0.39205777645111084, -0.05367268621921539, -0.12292274087667465, 0.2470500...
https://github.com/huggingface/datasets/issues/4605
Dataset Viewer issue for boris/gis_filtered
I could reproduce the error, even though I provided my token and accepted the gate form. It looks like an error from `datasets`
### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datase...
23
Dataset Viewer issue for boris/gis_filtered ### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unautho...
[ -0.05710578337311745, 0.05060245096683502, 0.023847457021474838, 0.37848860025405884, 0.28513962030410767, -0.09058096259832382, 0.34150850772857666, 0.21559298038482666, 0.024247795343399048, 0.0655883252620697, -0.2898719012737274, -0.04889508709311485, -0.045673105865716934, 0.273820132...
https://github.com/huggingface/datasets/issues/4605
Dataset Viewer issue for boris/gis_filtered
This is indeed a bug in `datasets`. Parquet datasets in gated/private repositories can't be streamed properly, which caused the viewer to fail. I opened a PR at https://github.com/huggingface/datasets/pull/4608
### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datase...
28
Dataset Viewer issue for boris/gis_filtered ### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unautho...
[ -0.14007112383842468, 0.04953332245349884, 0.04688606038689613, 0.3444433808326721, 0.29429692029953003, -0.07629621773958206, 0.27279728651046753, 0.17340967059135437, 0.020985424518585205, -0.004625663161277771, -0.27167198061943054, 0.023459542542696, -0.12111867219209671, 0.33108198642...
https://github.com/huggingface/datasets/issues/4597
Streaming issue for financial_phrasebank
cc @huggingface/datasets: it seems like https://www.researchgate.net/ is flaky for datasets hosting (I put the "hosted-on-google-drive" tag since it's the same kind of issue I think)
### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dat...
25
Streaming issue for financial_phrasebank ### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), the...
[ -0.2937469482421875, 0.2318277657032013, 0.024344317615032196, 0.15282395482063293, 0.20251834392547607, 0.07448122650384903, 0.25727370381355286, 0.04684041440486908, -0.1045924574136734, -0.0768115222454071, 0.08009576052427292, -0.2597599923610687, -0.04459284618496895, 0.51984709501266...
https://github.com/huggingface/datasets/issues/4597
Streaming issue for financial_phrasebank
License is Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0). We can host their data on the Hub.
### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dat...
18
Streaming issue for financial_phrasebank ### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), the...
[ -0.4084222614765167, -0.05966586619615555, 0.04682924225926399, 0.19916777312755585, 0.36410027742385864, -0.008550085127353668, 0.2073410451412201, 0.13552851974964142, -0.3094407916069031, 0.007971175014972687, -0.06648747622966766, 0.07511910051107407, 0.014804861508309841, 0.5022214651...
https://github.com/huggingface/datasets/issues/4596
Dataset Viewer issue for universal_dependencies
Finally fixed! We updated the dataset viewer and it fixed the issue. https://huggingface.co/datasets/universal_dependencies/viewer/aqz_tudet/train <img width="1561" alt="Capture d’écran 2022-09-07 à 13 29 18" src="https://user-images.githubusercontent.com/1676121/188867795-4f7dd438-d4f2-46cd-8a92-20a37fb2d6bc.p...
### Link https://huggingface.co/datasets/universal_dependencies ### Description invalid json response body at https://datasets-server.huggingface.co/splits?dataset=universal_dependencies reason: Unexpected token I in JSON at position 0 ### Owner _No response_
23
Dataset Viewer issue for universal_dependencies ### Link https://huggingface.co/datasets/universal_dependencies ### Description invalid json response body at https://datasets-server.huggingface.co/splits?dataset=universal_dependencies reason: Unexpected token I in JSON at position 0 ### Owner _No response_ Fin...
[ -0.09011424332857132, -0.10586247593164444, 0.0025288015604019165, 0.2226160317659378, 0.22986696660518646, -0.08204885572195053, 0.12817791104316711, 0.41559115052223206, -0.0217602401971817, 0.07179193943738937, 0.05254892259836197, 0.21133314073085785, -0.061486609280109406, 0.128121510...
https://github.com/huggingface/datasets/issues/4595
Dataset Viewer issue with False positive PII redaction
The value is in the data, it's not an issue with the "dataset-viewer". <img width="1161" alt="Capture d’écran 2022-06-29 à 10 25 51" src="https://user-images.githubusercontent.com/1676121/176389325-4d2a9a7f-1583-45b8-aa7a-960ffaa6a36a.png"> Maybe open a PR: https://huggingface.co/datasets/cakiki/rosetta-code/d...
### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_
28
Dataset Viewer issue with False positive PII redaction ### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_ The val...
[ -0.11811712384223938, -0.08623331040143967, -0.10206471383571625, 0.35337501764297485, 0.058472007513046265, -0.22175273299217224, 0.5019266605377197, 0.25943246483802795, -0.08828498423099518, 0.018016092479228973, -0.006201356649398804, 0.37329521775245667, 0.26952117681503296, 0.6419990...
https://github.com/huggingface/datasets/issues/4595
Dataset Viewer issue with False positive PII redaction
This was indeed a scraping issue which I assumed was a display issue; sorry about that!
### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_
16
Dataset Viewer issue with False positive PII redaction ### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_ This wa...
[ -0.22150667011737823, -0.1319754272699356, -0.07619376480579376, 0.3510569930076599, 0.10179245471954346, -0.28258123993873596, 0.42188581824302673, 0.26795342564582825, -0.015597673133015633, 0.01566368341445923, 0.03597968816757202, 0.3285611867904663, 0.21663859486579895, 0.773828268051...
https://github.com/huggingface/datasets/issues/4592
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
Hi @faizankshaikh Please note that we have recently launched the Community feature, specifically targeted to create Discussions (about issues/questions/asking-for-help) on each Dataset on the Hub: - Blog post: https://huggingface.co/blog/community-update - Docs: https://huggingface.co/docs/hub/repositories-pull-re...
### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c...
74
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test ### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https:...
[ -0.32051923871040344, 0.07623693346977234, 0.006530933082103729, 0.5506225228309631, 0.24864014983177185, -0.1461583971977234, 0.5403976440429688, 0.4607197642326355, 0.33619260787963867, 0.08060021698474884, 0.06632126867771149, 0.05398640036582947, -0.29010137915611267, 0.127565264701843...
https://github.com/huggingface/datasets/issues/4592
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
Thank you @albertvillanova , I will keep that in mind. Just a quick note - I posted the issue on Github because the dataset viewer suggested me to "open an issue for direct support". Maybe it can be updated with your suggestion ![image](https://user-images.githubusercontent.com/8406903/176397633-7b077d81-2044-448...
### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c...
43
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test ### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https:...
[ -0.32051923871040344, 0.07623693346977234, 0.006530933082103729, 0.5506225228309631, 0.24864014983177185, -0.1461583971977234, 0.5403976440429688, 0.4607197642326355, 0.33619260787963867, 0.08060021698474884, 0.06632126867771149, 0.05398640036582947, -0.29010137915611267, 0.127565264701843...
https://github.com/huggingface/datasets/issues/4592
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
Thank you pointing this out: yes, definitely, we should fix the error message. We are working on this.
### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c...
18
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test ### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https:...
[ -0.32051923871040344, 0.07623693346977234, 0.006530933082103729, 0.5506225228309631, 0.24864014983177185, -0.1461583971977234, 0.5403976440429688, 0.4607197642326355, 0.33619260787963867, 0.08060021698474884, 0.06632126867771149, 0.05398640036582947, -0.29010137915611267, 0.127565264701843...
https://github.com/huggingface/datasets/issues/4591
Can't push Images to hub with manual Dataset
Hi, thanks for reporting! This issue stems from the changes introduced in https://github.com/huggingface/datasets/pull/4282 (cc @lhoestq), in which list casts are ignored if they don't change the list type (required to preserve `null` values). And `push_to_hub` does a special cast to embed external image files but does...
## Describe the bug If I create a dataset including an 'Image' feature manually, when pushing to hub decoded images are not pushed, instead it looks for image where image local path is/used to be. This doesn't (at least didn't used to) happen with imagefolder. I want to build dataset manually because it is compli...
52
Can't push Images to hub with manual Dataset ## Describe the bug If I create a dataset including an 'Image' feature manually, when pushing to hub decoded images are not pushed, instead it looks for image where image local path is/used to be. This doesn't (at least didn't used to) happen with imagefolder. I want...
[ -0.20560722053050995, -0.46868687868118286, 0.04066668078303337, 0.185354083776474, 0.12482734769582748, 0.027340427041053772, 0.48910850286483765, 0.07770438492298126, 0.16731096804141998, 0.2342737913131714, 0.14223827421665192, 0.45452797412872314, -0.15583676099777222, -0.0233688354492...
https://github.com/huggingface/datasets/issues/4581
Dataset Viewer issue for pn_summary
Note that I refreshed twice this dataset, and I still have (another) error on one of the splits ``` Status code: 400 Exception: ClientResponseError Message: 403, message='Forbidden', url=URL('https://doc-14-4c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/pgotjmcuh77q0lk7p4...
### Link https://huggingface.co/datasets/pn_summary/viewer/1.0.0/validation ### Description Getting an index error on the `validation` and `test` splits: ``` Server error Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner No
51
Dataset Viewer issue for pn_summary ### Link https://huggingface.co/datasets/pn_summary/viewer/1.0.0/validation ### Description Getting an index error on the `validation` and `test` splits: ``` Server error Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner ...
[ -0.2351139485836029, 0.13610345125198364, -0.07504594326019287, 0.5219371318817139, -0.1526188999414444, 0.10366693884134293, 0.15769927203655243, 0.2575743794441223, 0.06413610279560089, 0.12530608475208282, -0.40464234352111816, -0.283712774515152, 0.19132331013679504, 0.3474635481834411...
https://github.com/huggingface/datasets/issues/4580
Dataset Viewer issue for multi_news
Thanks for reporting, @lewtun. I forced the refreshing of the preview and it worked OK for train and validation splits. I guess the error has to do with the data files being hosted at Google Drive: this gives errors when requested automatically using scripts. We should host them to fix the error. Let's see if th...
### Link https://huggingface.co/datasets/multi_news ### Description Not sure what the index error is referring to here: ``` Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner No
59
Dataset Viewer issue for multi_news ### Link https://huggingface.co/datasets/multi_news ### Description Not sure what the index error is referring to here: ``` Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner No Thanks for reporting, @lewtun. I forced ...
[ -0.3764558434486389, 0.062172845005989075, -0.00379360094666481, 0.3940582871437073, 0.07749432325363159, 0.26052284240722656, 0.5084827542304993, 0.5233292579650879, 0.2843765616416931, 0.22748655080795288, -0.20431534945964813, 0.1423681080341339, -0.11377085000276566, 0.3871573209762573...
https://github.com/huggingface/datasets/issues/4578
[Multi Configs] Use directories to differentiate between subsets/configurations
How to set new split names, instead of train/test/validation? For example, I have a local dataset, consists of several subsets, named "A", "B", and "C". How can I create a huggingface dataset, with splits A/B/C ? The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets...
Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per confi...
64
[Multi Configs] Use directories to differentiate between subsets/configurations Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (fo...
[ -0.23412667214870453, -0.324768602848053, 0.02036118507385254, 0.10792143642902374, 0.03106473758816719, 0.026850387454032898, 0.4918360710144043, -0.024805400520563126, 0.018607832491397858, 0.2816470265388489, -0.2329690307378769, -0.11118800938129425, -0.18601039052009583, 0.56383150815...
https://github.com/huggingface/datasets/issues/4578
[Multi Configs] Use directories to differentiate between subsets/configurations
> The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets with subsets that is hosted on another server. How to do it if my datasets are local? It works the same - you just need to use local paths instead of URLs
Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per confi...
44
[Multi Configs] Use directories to differentiate between subsets/configurations Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (fo...
[ -0.3164813220500946, -0.3242611885070801, 0.0012742448598146439, 0.04537622630596161, 0.015546109527349472, -0.05239991098642349, 0.37209489941596985, -0.055787112563848495, 0.04607052728533745, 0.3564247488975525, -0.12246962636709213, 0.01523202657699585, -0.1700369417667389, 0.513029932...
https://github.com/huggingface/datasets/issues/4575
Problem about wmt17 zh-en dataset
@winterfell2021 Hi, I wonder where the code you provided should be added. I tried to add them in the `datasets/table.py` in `array_cast` function, however, the 'zh' item is none.
It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`. So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception: ``` Traceback (most recent call last): File "train.py", line 78, in <module> data = load_dataset(args....
29
Problem about wmt17 zh-en dataset It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`. So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception: ``` Traceback (most recent call last): File "train.py", line 78, in <mo...
[ -0.3377845883369446, -0.467081218957901, 0.042393047362565994, 0.32191354036331177, 0.3430138826370239, 0.13319173455238342, 0.2732115089893341, 0.07307456433773041, 0.004815666005015373, 0.0498819500207901, 0.11882953345775604, 0.1963013857603073, 0.06979179382324219, 0.09495574235916138,...
https://github.com/huggingface/datasets/issues/4575
Problem about wmt17 zh-en dataset
I found some 'zh' item is none while 'c[hn]' is not. So the code may change to: ```python if 'c[hn]' in str(array.type): py_array = array.to_pylist() data_list = [] for vo in py_array: tmp = { 'en': vo['en'], } if vo.get('zh'): ...
It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`. So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception: ``` Traceback (most recent call last): File "train.py", line 78, in <module> data = load_dataset(args....
58
Problem about wmt17 zh-en dataset It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`. So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception: ``` Traceback (most recent call last): File "train.py", line 78, in <mo...
[ -0.3377845883369446, -0.467081218957901, 0.042393047362565994, 0.32191354036331177, 0.3430138826370239, 0.13319173455238342, 0.2732115089893341, 0.07307456433773041, 0.004815666005015373, 0.0498819500207901, 0.11882953345775604, 0.1963013857603073, 0.06979179382324219, 0.09495574235916138,...
https://github.com/huggingface/datasets/issues/4575
Problem about wmt17 zh-en dataset
I just pushed a fix, we'll do a new release of `datasets` soon to include this fix. In the meantime you can use the fixed dataset by passing `revision="main"` to `load_dataset`
It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`. So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception: ``` Traceback (most recent call last): File "train.py", line 78, in <module> data = load_dataset(args....
31
Problem about wmt17 zh-en dataset It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`. So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception: ``` Traceback (most recent call last): File "train.py", line 78, in <mo...
[ -0.3377845883369446, -0.467081218957901, 0.042393047362565994, 0.32191354036331177, 0.3430138826370239, 0.13319173455238342, 0.2732115089893341, 0.07307456433773041, 0.004815666005015373, 0.0498819500207901, 0.11882953345775604, 0.1963013857603073, 0.06979179382324219, 0.09495574235916138,...
https://github.com/huggingface/datasets/issues/4572
Dataset Viewer issue for mlsum
Thanks for reporting, @lewtun. After investigation, it seems that the server https://gitlab.lip6.fr does not allow HTTP Range requests. We are trying to find a workaround...
### Link https://huggingface.co/datasets/mlsum/viewer/de/train ### Description There's seems to be a problem with the download / streaming of this dataset: ``` Server error Status code: 400 Exception: BadZipFile Message: File is not a zip file ``` ### Owner No
25
Dataset Viewer issue for mlsum ### Link https://huggingface.co/datasets/mlsum/viewer/de/train ### Description There's seems to be a problem with the download / streaming of this dataset: ``` Server error Status code: 400 Exception: BadZipFile Message: File is not a zip file ``` ### Owner No ...
[ -0.35809168219566345, -0.02585393190383911, 0.009452801197767258, 0.3169584274291992, 0.4466959238052368, -0.05746515095233917, 0.17195793986320496, 0.09539017081260681, -0.32190221548080444, 0.04269435256719589, -0.26268523931503296, 0.11927293241024017, 0.007780604064464569, 0.0432305932...
https://github.com/huggingface/datasets/issues/4571
move under the facebook org?
I'm just wondering why we don't have this dataset under: - the `facebook` namespace - or the canonical dataset `flores`: why does this only have 2 languages?
### Link https://huggingface.co/datasets/gsarti/flores_101 ### Description It seems like streaming isn't supported for this dataset: ``` Server Error Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://dl.fbaipublicfiles.com/flores101/dataset...
27
move under the facebook org? ### Link https://huggingface.co/datasets/gsarti/flores_101 ### Description It seems like streaming isn't supported for this dataset: ``` Server Error Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://dl.fbaipu...
[ -0.14406871795654297, -0.047828659415245056, -0.07658962905406952, 0.3923361897468567, 0.26025283336639404, -0.10837806016206741, -0.03830387070775032, 0.1519559770822525, -0.05295983701944351, 0.35567304491996765, -0.1331866830587387, -0.42659792304039, 0.1303248554468155, 0.4247348010540...
https://github.com/huggingface/datasets/issues/4570
Dataset sharding non-contiguous?
This was silly; I was sure I'd looked for a `contiguous` argument, and was certain there wasn't one the first time I looked :smile: Sorry about that.
## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pull request (https://github.com/huggi...
27
Dataset sharding non-contiguous? ## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pul...
[ 0.046326231211423874, -0.2496725171804428, 0.015279624611139297, 0.20713412761688232, 0.06308206915855408, -0.04221672937273979, 0.4303715229034424, 0.027586719021201134, -0.5185225009918213, -0.03165164589881897, 0.07158948481082916, -0.06453613936901093, 0.289346307516098, -0.10150031000...
https://github.com/huggingface/datasets/issues/4570
Dataset sharding non-contiguous?
Hi! You can pass `contiguous=True` to `.shard()` get contiguous shards. More info on this and the default behavior can be found in the [docs](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.shard). EDIT: Answered as you closed the thread 😄
## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pull request (https://github.com/huggi...
32
Dataset sharding non-contiguous? ## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pul...
[ 0.03986923024058342, -0.2767412066459656, 0.018833663314580917, 0.2221575379371643, 0.08324537426233292, -0.04516338184475899, 0.4172833561897278, 0.02987079881131649, -0.535105288028717, -0.012742787599563599, 0.03597630560398102, -0.05815023183822632, 0.2801959812641144, -0.0886437222361...
https://github.com/huggingface/datasets/issues/4570
Dataset sharding non-contiguous?
Hahaha I'm sorry; my excuse is: it's Sunday. (Which makes me all the more grateful for your response :smiley:
## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pull request (https://github.com/huggi...
19
Dataset sharding non-contiguous? ## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pul...
[ 0.043960053473711014, -0.2885074019432068, 0.01620539277791977, 0.22780950367450714, 0.07851532101631165, -0.04400944709777832, 0.44279545545578003, 0.02506532520055771, -0.5470185875892639, -0.02623714506626129, 0.01898418553173542, -0.061626043170690536, 0.2754443883895874, -0.0275831390...
https://github.com/huggingface/datasets/issues/4570
Dataset sharding non-contiguous?
@mariosasko Sorry for reviving this, but I was curious as to why `contiguous=False` was the default. This might be a personal bias, but I feel that a user would expect the opposite to be the default. :thinking:
## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pull request (https://github.com/huggi...
37
Dataset sharding non-contiguous? ## Describe the bug I'm not sure if this is a bug; more likely normal behavior but i wanted to double check. Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset? This might be related to this pul...
[ 0.015164632350206375, -0.28071820735931396, 0.009299837052822113, 0.1995406448841095, 0.06202252581715584, -0.04880893975496292, 0.4298073351383209, 0.01510808989405632, -0.5076970458030701, -0.009925439953804016, 0.02195538952946663, -0.09410683065652847, 0.3282988965511322, -0.1315434277...
https://github.com/huggingface/datasets/issues/4569
Dataset Viewer issue for sst2
Hi @lewtun, thanks for reporting. I have checked locally and refreshed the preview and it seems working smooth now: ```python In [8]: ds Out[8]: DatasetDict({ train: Dataset({ features: ['idx', 'sentence', 'label'], num_rows: 67349 }) validation: Dataset({ features: ['i...
### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up after 5 attempts with Connectio...
57
Dataset Viewer issue for sst2 ### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up...
[ -0.33056482672691345, 0.08098076283931732, -0.036532819271087646, 0.4152414798736572, 0.323622465133667, 0.05482601374387741, 0.2566252052783966, 0.2366028130054474, 0.158323273062706, -0.027765780687332153, -0.06476853042840958, 0.14777663350105286, 0.08745720982551575, 0.2538834512233734...
https://github.com/huggingface/datasets/issues/4569
Dataset Viewer issue for sst2
Thanks @albertvillanova - it is indeed working now (not sure what caused the error in the first place). Closing this :)
### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up after 5 attempts with Connectio...
21
Dataset Viewer issue for sst2 ### Link https://huggingface.co/datasets/sst2 ### Description Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem): ``` Status code: 400 Exception: Exception Message: Give up...
[ -0.5275052785873413, 0.003740087151527405, -0.06523788720369339, 0.36791014671325684, 0.20841823518276215, -0.02099015563726425, 0.21451550722122192, 0.2552020847797394, 0.14038358628749847, 0.13036814332008362, -0.06094881147146225, 0.09275010973215103, 0.17426402866840363, 0.254013150930...
https://github.com/huggingface/datasets/issues/4568
XNLI cache reload is very slow
Hi, Could you tell us how you are running this code? I tested on my machine (M1 Mac). And it is running fine both on and off internet. <img width="1033" alt="Screen Shot 2022-07-03 at 1 32 25 AM" src="https://user-images.githubusercontent.com/8711912/177026364-4ad7cedb-e524-4513-97f7-7961bbb34c90.png"> Tested on ...
### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the ...
46
XNLI cache reload is very slow ### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only...
[ -0.14584548771381378, 0.058431729674339294, 0.006329108029603958, -0.04914678633213043, 0.02681650221347809, -0.23214468359947205, 0.19745635986328125, 0.2437468022108078, 0.18252934515476227, -0.08453693985939026, 0.04058806598186493, 0.3258123993873596, 0.08739824593067169, -0.1938986629...
https://github.com/huggingface/datasets/issues/4568
XNLI cache reload is very slow
Sure, I was running it on a Linux machine. I found that if I turn the Internet off, it would still try to make a HTTPS call which would slow down the cache loading. If you can't reproduce then we can close the issue.
### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the ...
44
XNLI cache reload is very slow ### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only...
[ -0.14584548771381378, 0.058431729674339294, 0.006329108029603958, -0.04914678633213043, 0.02681650221347809, -0.23214468359947205, 0.19745635986328125, 0.2437468022108078, 0.18252934515476227, -0.08453693985939026, 0.04058806598186493, 0.3258123993873596, 0.08739824593067169, -0.1938986629...
https://github.com/huggingface/datasets/issues/4568
XNLI cache reload is very slow
Hi @Muennighoff! You can set the env variable `HF_DATASETS_OFFLINE` to `1` to avoid this behavior in offline mode. More info is available [here](https://huggingface.co/docs/datasets/master/en/loading#offline).
### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the ...
23
XNLI cache reload is very slow ### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only...
[ -0.14584548771381378, 0.058431729674339294, 0.006329108029603958, -0.04914678633213043, 0.02681650221347809, -0.23214468359947205, 0.19745635986328125, 0.2437468022108078, 0.18252934515476227, -0.08453693985939026, 0.04058806598186493, 0.3258123993873596, 0.08739824593067169, -0.1938986629...
https://github.com/huggingface/datasets/issues/4566
Document link #load_dataset_enhancing_performance points to nowhere
Hi! This is indeed the link the docstring should point to. Are you interested in submitting a PR to fix this?
## Describe the bug A clear and concise description of what the bug is. ![image](https://user-images.githubusercontent.com/11674033/175752806-5b066b92-9d28-4771-9112-5c8606f07741.png) The [load_dataset_enhancing_performance](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#load_dat...
21
Document link #load_dataset_enhancing_performance points to nowhere ## Describe the bug A clear and concise description of what the bug is. ![image](https://user-images.githubusercontent.com/11674033/175752806-5b066b92-9d28-4771-9112-5c8606f07741.png) The [load_dataset_enhancing_performance](https://huggingf...
[ -0.02718716859817505, -0.4029790461063385, -0.0349782332777977, 0.5097891092300415, 0.22108270227909088, 0.2674890160560608, -0.04379759356379509, 0.26350343227386475, 0.029088251292705536, 0.066148541867733, 0.18902206420898438, 0.17872244119644165, 0.14725759625434875, -0.163204625248909...
https://github.com/huggingface/datasets/issues/4566
Document link #load_dataset_enhancing_performance points to nowhere
https://github.com/huggingface/datasets/blame/master/docs/source/cache.mdx#L93 There seems already an anchor here. Somehow it doesn't work. I am not very familiar with how this online documentation works.
## Describe the bug A clear and concise description of what the bug is. ![image](https://user-images.githubusercontent.com/11674033/175752806-5b066b92-9d28-4771-9112-5c8606f07741.png) The [load_dataset_enhancing_performance](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#load_dat...
22
Document link #load_dataset_enhancing_performance points to nowhere ## Describe the bug A clear and concise description of what the bug is. ![image](https://user-images.githubusercontent.com/11674033/175752806-5b066b92-9d28-4771-9112-5c8606f07741.png) The [load_dataset_enhancing_performance](https://huggingf...
[ 0.1365206241607666, -0.38280370831489563, -0.01797308772802353, 0.29911839962005615, 0.16445033252239227, 0.22764623165130615, 0.12776066362857819, 0.10991497337818146, -0.04557114094495773, 0.07462498545646667, 0.09591522812843323, 0.052384138107299805, 0.24965134263038635, -0.18142722547...
https://github.com/huggingface/datasets/issues/4562
Dataset Viewer issue for allocine
Note that the underlying issue is that datasets containing TAR files are not streamable out of the box: they need being iterated with `dl_manager.iter_archive` to avoid performance issues because they access their file content *sequentially* (no random access).
### Link https://huggingface.co/datasets/allocine ### Description Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed: ``` Status code: 400 Exception: AttributeError Message: 'TarContainedFile' object has no attribute 'readable' ``` ### Owner No
38
Dataset Viewer issue for allocine ### Link https://huggingface.co/datasets/allocine ### Description Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed: ``` Status code: 400 Exception: AttributeError Message: 'TarContainedFile' object has no attrib...
[ -0.367940217256546, -0.06806222349405289, -0.00010710582137107849, 0.7290315628051758, 0.31127840280532837, 0.09571170061826706, -0.12551069259643555, 0.329306036233902, -0.08155284076929092, 0.26617664098739624, -0.33151957392692566, 0.09606558829545975, -0.3103848099708557, 0.04245790094...
https://github.com/huggingface/datasets/issues/4562
Dataset Viewer issue for allocine
> Note that the underlying issue is that datasets containing TAR files are not streamable out of the box: they need being iterated with `dl_manager.iter_archive` to avoid performance issues because they access their file content _sequentially_ (no random access). Ah thanks for the clarification! I'll look out for th...
### Link https://huggingface.co/datasets/allocine ### Description Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed: ``` Status code: 400 Exception: AttributeError Message: 'TarContainedFile' object has no attribute 'readable' ``` ### Owner No
57
Dataset Viewer issue for allocine ### Link https://huggingface.co/datasets/allocine ### Description Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed: ``` Status code: 400 Exception: AttributeError Message: 'TarContainedFile' object has no attrib...
[ -0.3704456388950348, -0.07295586168766022, 0.011078424751758575, 0.676191508769989, 0.3053102493286133, 0.07710147649049759, -0.09609650075435638, 0.38547754287719727, -0.09366674721240997, 0.21664907038211823, -0.3123401403427124, 0.11120874434709549, -0.2770206332206726, 0.09945391863584...
https://github.com/huggingface/datasets/issues/4550
imdb source error
Thanks for reporting, @Muhtasham. Indeed IMDB dataset is not accessible from yesterday, because the data is hosted on the data owners servers at Stanford (http://ai.stanford.edu/) and these are down due to a power outage originated by a fire: https://twitter.com/StanfordAILab/status/1539472302399623170?s=20&t=1HU1hr...
## Describe the bug imdb dataset not loading ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("imdb") ``` ## Expected results ## Actual results ```bash 06/23/2022 14:45:18 - INFO - datasets.builder - Dataset not on Hf google storage. Downloading and pr...
58
imdb source error ## Describe the bug imdb dataset not loading ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("imdb") ``` ## Expected results ## Actual results ```bash 06/23/2022 14:45:18 - INFO - datasets.builder - Dataset not on Hf google storage...
[ -0.45994019508361816, 0.15562114119529724, -0.12848222255706787, 0.2241038978099823, 0.0967068299651146, 0.1051640585064888, 0.30303269624710083, 0.24203068017959595, 0.25008004903793335, 0.16574518382549286, -0.13026617467403412, -0.16933122277259827, 0.2551252245903015, 0.082684017717838...
https://github.com/huggingface/datasets/issues/4548
Metadata.jsonl for Imagefolder is ignored if it's in a parent directory to the splits directories/do not have "{split}_" prefix
I agree it would be nice to support this. It doesn't fit really well in the current data_files.py, where files of each splits are separated in different folder though, maybe we have to modify a bit the logic here. One idea would be to extend `get_patterns_in_dataset_repository` and `get_patterns_locally` to additio...
If data contains a single `metadata.jsonl` file for several splits, it won't be included in a dataset's `data_files` and therefore ignored. This happens when a directory is structured like as follows: ``` train/ file_1.jpg file_2.jpg test/ file_3.jpg file_4.jpg metadata.jsonl ``` or like as follows:...
91
Metadata.jsonl for Imagefolder is ignored if it's in a parent directory to the splits directories/do not have "{split}_" prefix If data contains a single `metadata.jsonl` file for several splits, it won't be included in a dataset's `data_files` and therefore ignored. This happens when a directory is structured like...
[ -0.13286085426807404, 0.3551522493362427, -0.035635486245155334, 0.39058631658554077, -0.1205938309431076, -0.20107102394104004, 0.4794278144836426, 0.27004241943359375, -0.1125064492225647, 0.1683419793844223, 0.014017962850630283, 0.23228803277015686, -0.3527262210845947, 0.2398290187120...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
This has so much potential to be great! Also I think you tagged some poor random dude on the internet whose name is also Joao, lol, edited that for you!
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
30
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.18132002651691437, -0.35117894411087036, -0.21138040721416473, 0.33765530586242676, 0.22188808023929596, 0.08644422143697739, 0.13927793502807617, 0.6314025521278381, -0.2770540118217468, 0.0345197468996048, -0.16364216804504395, 0.53013014793396, 0.017655998468399048, -0.15838204324245...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Noted and I will look into the thread in detail tomorrow once I log back in.
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
16
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.21949516236782074, -0.3593602776527405, -0.19776371121406555, 0.32190948724746704, 0.21467049419879913, 0.10271384567022324, 0.16388170421123505, 0.6277858018875122, -0.2596612870693207, 0.027159854769706726, -0.17608962953090668, 0.525818407535553, 0.025152914226055145, -0.151396855711...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
@lhoestq I have used TFRecords with `tf.data` for both vision and text and I can say that they are quite performant. I haven't worked with Feather yet as similarly as I have with TFRecords. If you haven't started the benchmarking script yet, I can prepare a Colab notebook that loads Feather files, converts them into a ...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
86
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.25734996795654297, -0.35805952548980713, -0.19969205558300018, 0.3299427032470703, 0.14493732154369354, 0.08801896125078201, 0.19334548711776733, 0.6237207651138306, -0.2784808576107025, 0.0033727511763572693, -0.17989224195480347, 0.471015602350235, 0.02251257747411728, -0.234227359294...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> Not yet sure if it's good for modalities like images. We store images pretty much the same way as tensorflow_datasets (i.e. storing the encoded image bytes, or a path to the local image, so that the image can be decoded on-the-fly), so as long as we use something similar as TFDS for image decoding it should be ok
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
59
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.19923469424247742, -0.30785703659057617, -0.22012363374233246, 0.33751946687698364, 0.2104814350605011, 0.10459720343351364, 0.13910046219825745, 0.6205322742462158, -0.28925469517707825, 0.033259548246860504, -0.20853188633918762, 0.4609624147415161, -0.0301036573946476, -0.17199487984...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
So for image datasets, we could potentially store the paths in the feather format and decode and read them on the fly? But it introduces an I/O redundancy of having to read the images every time. With caching it could be somewhat mitigated but it's not a good solution for bigger image datasets.
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
53
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.22257301211357117, -0.2932806611061096, -0.1837540715932846, 0.36468958854675293, 0.22176894545555115, 0.07951072603464127, 0.16813993453979492, 0.5981181859970093, -0.2809324562549591, 0.04962294548749924, -0.19159699976444244, 0.5340715646743774, -0.17334376275539398, -0.1502863913774...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> So for image datasets, we could potentially store the paths in the feather format and decode and read them on the fly? hopefully yes :) I double-checked the TFDS source code and they always save the bytes actually, not the path. Anyway we'll see if we run into issues or not (as a first step we can require the ...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
67
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.2071114033460617, -0.289401113986969, -0.1920882612466812, 0.39897215366363525, 0.2264755666255951, 0.07998507469892502, 0.11777102202177048, 0.5918859243392944, -0.32529881596565247, 0.028287097811698914, -0.18735376000404358, 0.5183919668197632, -0.16292768716812134, -0.18630404770374...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Yes. For images, TFDS actually prepares TFRecords first for encoding and then reuses them for every subsequent call.
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
18
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.23023538291454315, -0.326091468334198, -0.20041286945343018, 0.3456084132194519, 0.22998730838298798, 0.09835710376501083, 0.17120975255966187, 0.5812535285949707, -0.31902188062667847, 0.059196870774030685, -0.1856551468372345, 0.4404829442501068, -0.0058611733838915825, -0.21482475101...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
@lhoestq @Rocketknight1 I worked on [this PoC](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59) that * Creates Feather files from a medium resolution dataset (`tf_flowers`). * Explores different options with TensorFlow IO to load the Feather files. I haven't benchmarked those different option...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
61
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.215074822306633, -0.34239041805267334, -0.19228726625442505, 0.3727593421936035, 0.12391891330480576, 0.09236171096563339, 0.11055265367031097, 0.6560563445091248, -0.299883097410202, 0.0027167871594429016, -0.1586039811372757, 0.5379610657691956, 0.04900551959872246, -0.216002464294433...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Cool thanks ! If I understand correctly in your PoC you store the flattened array of pixels in the feather file. This will take a lot of disk space. Maybe we could just save the encoded bytes and let users apply a `map` to decode/transform them into the format they need for training ? Users can use tf.image to do so...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
63
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.16578981280326843, -0.348147451877594, -0.16695056855678558, 0.35054653882980347, 0.2775442898273468, 0.07106592506170273, 0.1695111095905304, 0.5484029650688171, -0.3050580322742462, 0.1729336977005005, -0.13176727294921875, 0.335033655166626, -0.04377017542719841, -0.02583644911646843...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
@lhoestq this is what I tried: ```py def read_image(path): with open(path, "rb") as f: return f.read() total_images_written = 0 for step in tqdm.tnrange(int(math.ceil(len(image_paths) / batch_size))): batch_image_paths = image_paths[step * batch_size : (step + 1) * batch_size] batch_...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
413
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.2916852831840515, -0.34014731645584106, -0.19338682293891907, 0.39395976066589355, 0.2313348352909088, 0.16601523756980896, 0.12490998208522797, 0.6766043901443481, -0.31396815180778503, -0.03397534787654877, -0.20921370387077332, 0.5446645021438599, -0.07021685689687729, -0.25731316208...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
@lhoestq I think I was able to make it work in the way you were envisioning. Here's the PoC: https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb Some details: * I am currently serializing the images as strings with `base64`). In comparison to the flattened arrays as...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
107
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.15111899375915527, -0.2583698034286499, -0.17873255908489227, 0.33229172229766846, 0.2542518377304077, 0.1207948550581932, 0.17362992465496063, 0.6264511942863464, -0.30424678325653076, 0.08291283249855042, -0.2909771502017975, 0.4283265173435211, -0.04531325399875641, -0.21035680174827...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Cool thanks ! Too bad the Arrow binary type doesn't seem to be supported in `arrow_io.ArrowFeatherDataset` :/ We would also need it to support Arrow struct type. Indeed images in `datasets` are represented using an Arrow type ```python pa.struct({"path": pa.string(), "bytes": pa.binary()}) ``` not sure yet how hard...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
78
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.22203543782234192, -0.3213922381401062, -0.18058297038078308, 0.3587227463722229, 0.23031316697597504, 0.08110857754945755, 0.14607404172420502, 0.6311078667640686, -0.2608279585838318, -0.05396699905395508, -0.17374618351459503, 0.5902265310287476, -0.04628640413284302, -0.139491319656...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
If the ArrowFeatherDataset doesn't yet support it, I guess our hands are a bit tied at the moment. IIUC, in my [latest PoC notebook](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb), you wanted to see each entry in the feather file to be represented like so? ```...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
52
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.2572590708732605, -0.2702956199645996, -0.19007010757923126, 0.3072047531604767, 0.25379329919815063, 0.10088399797677994, 0.10707797110080719, 0.6265484690666199, -0.3587113618850708, -0.042664989829063416, -0.206526517868042, 0.5051928758621216, 0.01807660423219204, -0.131314232945442...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> IIUC, in my [latest PoC notebook](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb), you wanted to see each entry in the feather file to be represented like so? > > pa.struct({"path": pa.string(), "bytes": pa.binary()}) Yea because that's the data format we're u...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
108
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.25264889001846313, -0.32756614685058594, -0.18621915578842163, 0.32281363010406494, 0.25000661611557007, 0.11986025422811508, 0.11895257979631424, 0.6613963842391968, -0.35216501355171204, -0.03672116994857788, -0.2022198736667633, 0.4895215630531311, 0.030787024646997452, -0.1554339826...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> Maybe it would take too much time to be worth exploring, but according to https://github.com/tensorflow/io/issues/1361#issuecomment-819029002 it's possible to add support for binary type in ArrowFeatherDataset. Should be possible as per the comment but there hasn't been any progress and it's been more than a year....
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
117
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.17058022320270538, -0.3873800039291382, -0.1889611780643463, 0.3548506498336792, 0.22678060829639435, 0.13572287559509277, 0.1497403383255005, 0.6562891006469727, -0.2997130751609802, -0.03184419870376587, -0.14510926604270935, 0.4352554678916931, -0.026862874627113342, -0.2127152383327...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> I don't understand this. I would think TFRecords would also need something similar but I need the context you're coming from. Users already have a copy of the dataset in Arrow format (we can change this to Feather). So to load the Arrow/feather files to a TF dataset we need TF IO or something like that. Otherwise ...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
116
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.11969158053398132, -0.34964945912361145, -0.19668905436992645, 0.4366620182991028, 0.21471460163593292, 0.18524745106697083, 0.13212405145168304, 0.6460262537002563, -0.342017263174057, -0.03586047887802124, -0.22465965151786804, 0.37848100066185, 0.03197769448161125, -0.299623847007751...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Yeah, it looks like in its current state the tfio support for `Feather` is incomplete, so we'd end up having to write a lot of it, or do a conversion that defeats the whole point (because if we're going to convert the whole dataset we might as well convert to `TFRecord`).
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
51
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.22031497955322266, -0.3183137774467468, -0.1723816841840744, 0.3096850514411926, 0.25142696499824524, 0.12205082923173904, 0.14120136201381683, 0.6504305601119995, -0.3065379858016968, 0.01626821607351303, -0.21796773374080658, 0.5098268389701843, 0.03138432651758194, -0.118344426155090...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
@lhoestq Although I think this is a dead-end for now unfortunately, because of the limitations at TF's end, we could still explore automatic conversion to TFRecord, or I could dive into refining `to_tf_dataset()` to yield unbatched samples and/or load samples with multiprocessing to improve throughput. Do you have any ...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
51
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.24478371441364288, -0.3425455689430237, -0.1803840696811676, 0.28472524881362915, 0.2043169140815735, 0.11832699924707413, 0.0859355553984642, 0.6752026081085205, -0.2810034453868866, -0.013641074299812317, -0.15951956808567047, 0.5657948851585388, -0.040372978895902634, -0.206431671977...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> @lhoestq Although I think this is a dead-end for now unfortunately, because of the limitations at TF's end, we could still explore automatic conversion to TFRecord, or I could dive into refining `to_tf_dataset()` to yield unbatched samples and/or load samples with multiprocessing to improve throughput. Do you have an...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
58
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.24645575881004333, -0.34320536255836487, -0.1833573579788208, 0.28056204319000244, 0.20292077958583832, 0.10813478380441666, 0.10141293704509735, 0.6635622382164001, -0.2711960971355438, -0.009996876120567322, -0.15782709419727325, 0.5561668872833252, -0.03692617267370224, -0.1901673078...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
If `to_tf_dataset` can be unbatched, then it should be fairly easy for users to convert the TF dataset to TFRecords right ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
22
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.19158858060836792, -0.3452412486076355, -0.1851748377084732, 0.33419305086135864, 0.21170924603939056, 0.14207971096038818, 0.1280040591955185, 0.6166422963142395, -0.33440226316452026, 0.02891974151134491, -0.22360369563102722, 0.5038834810256958, 0.0003141304478049278, -0.219684004783...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> If to_tf_dataset can be unbatched, then it should be fairly easy for users to convert the TF dataset to TFRecords right ? Sort of! A `tf.data.Dataset` is more like an iterator, and does not support sample indexing. `to_tf_dataset()` creates an iterator, but to convert that to `TFRecord`, the user would have to ite...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
67
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.2197135090827942, -0.31706297397613525, -0.1883411854505539, 0.2767757773399353, 0.1667056530714035, 0.14267495274543762, 0.16800734400749207, 0.6147660613059998, -0.2690677344799042, 0.09936442971229553, -0.1987474113702774, 0.5110944509506226, -0.03801554813981056, -0.2157175391912460...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Someone would like to try to dive into tfio to fix this ? Sounds like a good opportunity to learn what are the best ways to load a dataset for TF, and also the connections between Arrow and TF. If we can at least have the Arrow `binary` type working for TF that would be awesome already (issue https://github.com/tens...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
68
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.19004784524440765, -0.2709863781929016, -0.16404575109481812, 0.3839750289916992, 0.2847211956977844, 0.12409123033285141, 0.1592927724123001, 0.6563934087753296, -0.3040992319583893, -0.03179715573787689, -0.18088248372077942, 0.5398513674736023, 0.03200758993625641, -0.103591144084930...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
> Sounds like a good opportunity to learn what are the best ways to load a dataset for TF The recommended way would likely be a combination of TFRecords and `tf.data`. Exploring the connection between Arrow and TensorFlow is definitely worth pursuing though. But I am not sure about the implications of storing im...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
91
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.19480963051319122, -0.2943651080131531, -0.2003171145915985, 0.38074421882629395, 0.19934654235839844, 0.11298234015703201, 0.20417383313179016, 0.605063259601593, -0.240081787109375, -0.01243242621421814, -0.19916443526744843, 0.4508001208305359, -0.03618120402097702, -0.13049414753913...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
I am currently working on a fine-tuning notebook for the TFSegFormer model (Semantic Segmentation). The resolution is high for both the input images and the labels - (512, 512, 3). Here's the [Colab Notebook](https://colab.research.google.com/drive/1jAtR7Z0lYX6m6JsDI5VByh5vFaNhHIbP?usp=sharing) (it's a WIP so please be...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
62
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.31573164463043213, -0.282195508480072, -0.1356143057346344, 0.35996705293655396, 0.1856335699558258, 0.08832024782896042, 0.11754545569419861, 0.6270353198051453, -0.39910072088241577, -0.0722702145576477, -0.15658274292945862, 0.49510547518730164, -0.05284678190946579, -0.1015544980764...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Here's a notebook showing the performance difference: https://colab.research.google.com/gist/sayakpaul/d7ca67c90beb47e354942c9d8c0bd8ef/scratchpad.ipynb. Note that I acknowledge that it's not an apples-to-apples comparison in many aspects (the dataset isn't the same, data serialization format isn't the same, etc.) ...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
41
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.21969950199127197, -0.3385400176048279, -0.20645871758460999, 0.30945885181427, 0.17953848838806152, 0.08475372940301895, 0.15653382241725922, 0.6617066264152527, -0.29074788093566895, 0.01681845635175705, -0.2021189033985138, 0.5323149561882019, 0.02723846584558487, -0.1731978505849838...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Thanks ! I think the speed difference can be partly explained: you use ds.shuffle in your dataset, which is an exact shuffling (compared to TFDS which does buffer shuffling): it slows down query time by 2x to 10x since it has to play with data that are not contiguous. The rest of the speed difference seems to be cau...
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
66
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.22871193289756775, -0.3641956150531769, -0.18967565894126892, 0.3243299126625061, 0.14951056241989136, 0.09072578698396683, 0.10503315925598145, 0.594196081161499, -0.3187565803527832, 0.09548544883728027, -0.26880747079849243, 0.511590838432312, 0.06493517756462097, -0.2542146742343902...
https://github.com/huggingface/datasets/issues/4542
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
Fair enough. Can do one without shuffling too. But it's an important one to consider I guess.
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory. It seems that using `tensorflow_...
17
[to_tf_dataset] Use Feather for better compatibility with TensorFlow ? To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, a...
[ -0.169965922832489, -0.3561721742153168, -0.17893844842910767, 0.3590160608291626, 0.1892334222793579, 0.12650755047798157, 0.1364956796169281, 0.6386116147041321, -0.2957867980003357, 0.028843954205513, -0.20244094729423523, 0.528727650642395, -0.007805046625435352, -0.15644265711307526, ...
https://github.com/huggingface/datasets/issues/4540
Avoid splitting by` .py` for the file.
Hi @espoirMur, thanks for reporting. You are right: that code line could be improved and made more generically valid. On the other hand, I would suggest using `os.path.splitext` instead. Are you willing to open a PR? :)
https://github.com/huggingface/datasets/blob/90b3a98065556fc66380cafd780af9b1814b9426/src/datasets/load.py#L272 Hello, Thanks you for this library . I was using it and I had one edge case. my home folder name ends with `.py` it is `/home/espoir.py` so anytime I am running the code to load a local module thi...
37
Avoid splitting by` .py` for the file. https://github.com/huggingface/datasets/blob/90b3a98065556fc66380cafd780af9b1814b9426/src/datasets/load.py#L272 Hello, Thanks you for this library . I was using it and I had one edge case. my home folder name ends with `.py` it is `/home/espoir.py` so anytime I am ru...
[ -0.21035058796405792, 0.06515146791934967, -0.009108252823352814, 0.2573428750038147, 0.44132304191589355, -0.036031629890203476, 0.3877999782562256, 0.417031466960907, 0.02596573904156685, 0.09560815989971161, -0.20950430631637573, 0.44398683309555054, -0.029078099876642227, 0.27612841129...
https://github.com/huggingface/datasets/issues/4538
Dataset Viewer issue for Pile of Law
Thanks so much for adding the docs. I was able to successfully hide the viewer using the ``` viewer: false ``` flag in the README.md of the dataset. I'm closing the issue because this is resolved. Thanks again!
### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines...
38
Dataset Viewer issue for Pile of Law ### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that th...
[ 0.005177520215511322, 0.5496143102645874, -0.01175617054104805, 0.19413918256759644, 0.005248352885246277, 0.1945982277393341, 0.5157575607299805, 0.20660868287086487, 0.024734079837799072, 0.14431758224964142, -0.05432166904211044, 0.18721716105937958, -0.1687048375606537, 0.0285667683929...
https://github.com/huggingface/datasets/issues/4538
Dataset Viewer issue for Pile of Law
Just for the record: - the doc <img width="1430" alt="Capture d’écran 2022-06-27 à 09 29 27" src="https://user-images.githubusercontent.com/1676121/175884089-bca6c0d5-6387-473e-98ca-86a910ede4bd.png"> - the dataset main page <img width="1134" alt="Capture d’écran 2022-06-27 à 09 29 05" src="https://us...
### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines...
47
Dataset Viewer issue for Pile of Law ### Link https://huggingface.co/datasets/pile-of-law/pile-of-law ### Description Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that th...
[ -0.037661753594875336, 0.6128958463668823, -0.03957809507846832, 0.17966030538082123, 0.0031195469200611115, 0.17033958435058594, 0.5186964869499207, 0.20412862300872803, -0.04262673109769821, 0.14952965080738068, -0.052597276866436005, 0.14462190866470337, -0.12436025589704514, 0.07956277...
https://github.com/huggingface/datasets/issues/4531
Dataset Viewer issue for CSV datasets
Confirmed, it's fixed now. Thanks for reporting, and thanks @coyotte508 for fixing it <img width="1123" alt="Capture d’écran 2022-06-21 à 10 28 05" src="https://user-images.githubusercontent.com/1676121/174753833-1b453a5a-6a90-4717-bca1-1b5fc6b75e4a.png">
### Link https://huggingface.co/datasets/scikit-learn/breast-cancer-wisconsin ### Description I'm populating CSV datasets [here](https://huggingface.co/scikit-learn) but the viewer is not enabled and it looks for a dataset loading script, the datasets aren't on queue as well. You can replicate the problem by sim...
23
Dataset Viewer issue for CSV datasets ### Link https://huggingface.co/datasets/scikit-learn/breast-cancer-wisconsin ### Description I'm populating CSV datasets [here](https://huggingface.co/scikit-learn) but the viewer is not enabled and it looks for a dataset loading script, the datasets aren't on queue as well. ...
[ -0.2977893650531769, -0.1538040041923523, -0.04626820981502533, 0.11964289844036102, 0.2975062131881714, 0.15254339575767517, 0.32641035318374634, 0.08021751046180725, 0.3668113350868225, 0.1949506253004074, 0.17112113535404205, 0.08126784861087799, -0.08213744312524796, 0.2713307440280914...
https://github.com/huggingface/datasets/issues/4529
Ecoset
Hi! Very cool dataset! I answered your questions on the forum. Also, feel free to comment `#self-assign` on this issue to self-assign it.
## Adding a Dataset - **Name:** *Ecoset* - **Description:** *https://www.kietzmannlab.org/ecoset/* - **Paper:** *https://doi.org/10.1073/pnas.2011417118* - **Data:** *https://codeocean.com/capsule/9570390/tree/v1* - **Motivation:** **Ecoset** was created as a clean and ecologically valid alternative to **Imagen...
23
Ecoset ## Adding a Dataset - **Name:** *Ecoset* - **Description:** *https://www.kietzmannlab.org/ecoset/* - **Paper:** *https://doi.org/10.1073/pnas.2011417118* - **Data:** *https://codeocean.com/capsule/9570390/tree/v1* - **Motivation:** **Ecoset** was created as a clean and ecologically valid alternative to...
[ -0.16670556366443634, -0.11438922584056854, -0.16410377621650696, 0.23576483130455017, 0.18277928233146667, 0.05192003399133682, 0.004891350865364075, 0.02119327336549759, 0.19682440161705017, 0.03119056671857834, -0.2643848657608032, 0.29552116990089417, -0.3128073513507843, 0.49795812368...
https://github.com/huggingface/datasets/issues/4529
Ecoset
Hey There, thanks for closing 🤗 Forgot the issue existed, so I didn't close it after implementing the downloader :)
## Adding a Dataset - **Name:** *Ecoset* - **Description:** *https://www.kietzmannlab.org/ecoset/* - **Paper:** *https://doi.org/10.1073/pnas.2011417118* - **Data:** *https://codeocean.com/capsule/9570390/tree/v1* - **Motivation:** **Ecoset** was created as a clean and ecologically valid alternative to **Imagen...
20
Ecoset ## Adding a Dataset - **Name:** *Ecoset* - **Description:** *https://www.kietzmannlab.org/ecoset/* - **Paper:** *https://doi.org/10.1073/pnas.2011417118* - **Data:** *https://codeocean.com/capsule/9570390/tree/v1* - **Motivation:** **Ecoset** was created as a clean and ecologically valid alternative to...
[ -0.30091434717178345, -0.10279533267021179, -0.14716804027557373, 0.3084726929664612, 0.17652015388011932, -0.03046783059835434, -0.059655409306287766, 0.08555851131677628, 0.2404097020626068, 0.07148589193820953, -0.2491772174835205, 0.2522232234477997, -0.32661518454551697, 0.46639496088...
https://github.com/huggingface/datasets/issues/4528
Memory leak when iterating a Dataset
Here is a modified repro example that makes it easier to see the leak: ``` $ cat ds2.py import gc, sys import time from datasets import load_dataset import os, psutil process = psutil.Process(os.getpid()) print(process.memory_info().rss/2**20) corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_mem...
e## Describe the bug It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop) ## Steps to reproduce the bug ```python import gc import logging import time import pyarrow from datasets import load_dataset from tqdm import trange import os, psutil logging.ba...
160
Memory leak when iterating a Dataset e## Describe the bug It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop) ## Steps to reproduce the bug ```python import gc import logging import time import pyarrow from datasets import load_dataset from tqdm import ...
[ -0.15567363798618317, -0.16557979583740234, -0.01564326509833336, 0.3840182423591614, 0.13620826601982117, -0.029722709208726883, -0.06453169882297516, 0.019132450222969055, -0.13223832845687866, -0.10357432067394257, 0.16322122514247894, 0.3858795762062073, -0.14323654770851135, -0.215461...
https://github.com/huggingface/datasets/issues/4528
Memory leak when iterating a Dataset
@NouamaneTazi, please check my analysis here https://github.com/huggingface/datasets/issues/4883#issuecomment-1242599722 so if you agree with my research this Issue can be closed as well. I also made a suggestion at how to proceed to hunt for a real leak here https://github.com/huggingface/datasets/issues/4883#issue...
e## Describe the bug It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop) ## Steps to reproduce the bug ```python import gc import logging import time import pyarrow from datasets import load_dataset from tqdm import trange import os, psutil logging.ba...
49
Memory leak when iterating a Dataset e## Describe the bug It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop) ## Steps to reproduce the bug ```python import gc import logging import time import pyarrow from datasets import load_dataset from tqdm import ...
[ -0.15567363798618317, -0.16557979583740234, -0.01564326509833336, 0.3840182423591614, 0.13620826601982117, -0.029722709208726883, -0.06453169882297516, 0.019132450222969055, -0.13223832845687866, -0.10357432067394257, 0.16322122514247894, 0.3858795762062073, -0.14323654770851135, -0.215461...
https://github.com/huggingface/datasets/issues/4528
Memory leak when iterating a Dataset
Amazing job! Thanks for taking time to debug this 🤗 For my side, I tried to do some more research as well, but to no avail. https://github.com/huggingface/datasets/issues/4883#issuecomment-1243415957
e## Describe the bug It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop) ## Steps to reproduce the bug ```python import gc import logging import time import pyarrow from datasets import load_dataset from tqdm import trange import os, psutil logging.ba...
27
Memory leak when iterating a Dataset e## Describe the bug It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop) ## Steps to reproduce the bug ```python import gc import logging import time import pyarrow from datasets import load_dataset from tqdm import ...
[ -0.15567363798618317, -0.16557979583740234, -0.01564326509833336, 0.3840182423591614, 0.13620826601982117, -0.029722709208726883, -0.06453169882297516, 0.019132450222969055, -0.13223832845687866, -0.10357432067394257, 0.16322122514247894, 0.3858795762062073, -0.14323654770851135, -0.215461...
https://github.com/huggingface/datasets/issues/4526
split cache used when processing different split
I was not able to reproduce this behavior (I tried without using pytorch lightning though, since I don't know what code you ran in pytorch lightning to get this). If you can provide a MWE that would be perfect ! :)
## Describe the bug` ``` ds1 = load_dataset('squad', split='validation') ds2 = load_dataset('squad', split='train') ds1 = ds1.map(some_function) ds2 = ds2.map(some_function) assert ds1 == ds2 ``` This happens when ds1 and ds2 are created in `pytorch_lightning.DataModule` through ``` class myDataModule: ...
41
split cache used when processing different split ## Describe the bug` ``` ds1 = load_dataset('squad', split='validation') ds2 = load_dataset('squad', split='train') ds1 = ds1.map(some_function) ds2 = ds2.map(some_function) assert ds1 == ds2 ``` This happens when ds1 and ds2 are created in `pytorch_lightning.D...
[ -0.1003216803073883, -0.33055466413497925, 0.004680555313825607, 0.4497182369232178, 0.16972169280052185, -0.1791902631521225, 0.5268461108207703, 0.2223835587501526, 0.14494961500167847, 0.14330217242240906, -0.16518135368824005, 0.34816986322402954, 0.07826729863882065, -0.08422911167144...
https://github.com/huggingface/datasets/issues/4526
split cache used when processing different split
Hi, I think the issue happened because I was loading datasets under an `if` ... `else` statement and the condition would change the dataset I would need to load but instead the cached one was always returned. However, I believe that is expected behaviour, if so I'll close the issue. Otherwise I will try to provide a...
## Describe the bug` ``` ds1 = load_dataset('squad', split='validation') ds2 = load_dataset('squad', split='train') ds1 = ds1.map(some_function) ds2 = ds2.map(some_function) assert ds1 == ds2 ``` This happens when ds1 and ds2 are created in `pytorch_lightning.DataModule` through ``` class myDataModule: ...
58
split cache used when processing different split ## Describe the bug` ``` ds1 = load_dataset('squad', split='validation') ds2 = load_dataset('squad', split='train') ds1 = ds1.map(some_function) ds2 = ds2.map(some_function) assert ds1 == ds2 ``` This happens when ds1 and ds2 are created in `pytorch_lightning.D...
[ -0.06270444393157959, -0.32965248823165894, 0.018213652074337006, 0.5120728611946106, 0.11805802583694458, -0.165624737739563, 0.46178877353668213, 0.24098673462867737, 0.1695212423801422, 0.01483328640460968, -0.1850869357585907, 0.3030513823032379, 0.07645106315612793, -0.114253744482994...
https://github.com/huggingface/datasets/issues/4525
Out of memory error on workers while running Beam+Dataflow
Some naive ideas to cope with this: - enable more RAM on each worker - force the spanning of more workers - others?
## 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...
23
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 We were finally able to process the full NQ dataset on our machines using 600 gb with 5 workers. Maybe these numbers will work for you as well.
## 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...
29
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
Thanks a lot for the hint, @seirasto. I have one question: what runner did you use? Direct, Apache Flink/Nemo/Samza/Spark, Google Dataflow...? Thank you.
## 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...
23
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...