id
stringlengths
18
24
number
int64
2
8.48k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
createdAt
timestamp[s]date
2020-04-14 18:18:51
2026-08-13 03:02:44
updatedAt
timestamp[s]date
2020-04-29 09:23:05
2026-08-15 04:47:12
closedAt
timestamp[s]date
2020-04-29 09:23:05
2026-07-28 10:29:56
url
stringlengths
48
51
author
dict
labels
dict
comments
listlengths
0
30
I_kwDODunzps5ZrNLT
5,381
Wrong URL for the_pile dataset
### Describe the bug When trying to load `the_pile` dataset from the library, I get a `FileNotFound` error. ### Steps to reproduce the bug Steps to reproduce: Run: ``` from datasets import load_dataset dataset = load_dataset("the_pile") ``` I get the output: "name": "FileNotFoundError", "message...
CLOSED
2022-12-20T12:40:14
2023-02-15T16:24:57
2023-02-15T16:24:57
https://github.com/huggingface/datasets/issues/5381
{ "login": "LeoGrin" }
{ "nodes": [] }
[ "Hi! This error can happen if there is a local file/folder with the same name as the requested dataset. And to avoid it, rename the local file/folder.\r\n\r\nSoon, it will be possible to explicitly request a Hub dataset as follows:https://github.com/huggingface/datasets/issues/5228#issuecomment-1313494020" ]
I_kwDODunzps5Zq2JL
5,380
Improve dataset `.skip()` speed in streaming mode
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
OPEN
2022-12-20T11:25:23
2025-11-10T20:05:37
null
https://github.com/huggingface/datasets/issues/5380
{ "login": "versae" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good second issue" } ] }
[ "Hi! I agree `skip` can be inefficient to use in the current state.\r\n\r\nTo make it fast, we could use \"statistics\" stored in Parquet metadata and read only the chunks needed to form a dataset. \r\n\r\nAnd thanks to the \"datasets-server\" project, which aims to store the Parquet versions of the Hub datasets (o...
I_kwDODunzps5Zo4CU
5,378
The dataset "the_pile", subset "enron_emails" , load_dataset() failure
### Describe the bug When run "datasets.load_dataset("the_pile","enron_emails")" failure ![image](https://user-images.githubusercontent.com/52023469/208565302-cfab7b89-0b97-4fa6-a5ba-c11b0b629b1a.png) ### Steps to reproduce the bug Run below code in python cli: >>> import datasets >>> datasets.load_dataset(...
CLOSED
2022-12-20T02:19:13
2022-12-20T07:52:54
2022-12-20T07:52:54
https://github.com/huggingface/datasets/issues/5378
{ "login": "shaoyuta" }
{ "nodes": [] }
[ "Thanks for reporting @shaoyuta. We are investigating it.\r\n\r\nWe are transferring the issue to \"the_pile\" Community tab on the Hub: https://huggingface.co/datasets/the_pile/discussions/4" ]
I_kwDODunzps5ZhMMx
5,374
Using too many threads results in: Got disconnected from remote data host. Retrying in 5sec
### Describe the bug `streaming_download_manager` seems to disconnect if too many runs access the same underlying dataset 🧐 The code works fine for me if I have ~100 runs in parallel, but disconnects once scaling to 200. Possibly related: - https://github.com/huggingface/datasets/pull/3100 - https://github.com/...
CLOSED
2022-12-18T11:38:58
2023-07-24T15:23:07
2023-07-24T15:23:07
https://github.com/huggingface/datasets/issues/5374
{ "login": "Muennighoff" }
{ "nodes": [] }
[ "The data files are hosted on HF at https://huggingface.co/datasets/allenai/c4/tree/main\r\n\r\nYou have 200 runs streaming the same files in parallel. So this is probably a Hub limitation. Maybe rate limiting ? cc @julien-c \r\n\r\nMaybe you can also try to reduce the number of HTTP requests by increasing the bloc...
I_kwDODunzps5ZfRLM
5,371
Add a robustness benchmark dataset for vision
### Name ImageNet-C ### Paper Benchmarking Neural Network Robustness to Common Corruptions and Perturbations ### Data https://github.com/hendrycks/robustness ### Motivation It's a known fact that vision models are brittle when they meet with slightly corrupted and perturbed data. This is also corre...
OPEN
2022-12-17T12:35:13
2022-12-20T06:21:41
null
https://github.com/huggingface/datasets/issues/5371
{ "login": "sayakpaul" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "Ccing @nazneenrajani @lvwerra @osanseviero " ]
I_kwDODunzps5ZTEe1
5,363
Dataset.from_generator() crashes on simple example
CLOSED
2022-12-15T10:21:28
2022-12-15T11:51:33
2022-12-15T11:51:33
https://github.com/huggingface/datasets/issues/5363
{ "login": "villmow" }
{ "nodes": [] }
[]
I_kwDODunzps5ZRDrg
5,362
Run 'GPT-J' failure due to download dataset fail (' ConnectionError: Couldn't reach http://eaidata.bmk.sh/data/enron_emails.jsonl.zst ' )
### Describe the bug Run model "GPT-J" with dataset "the_pile" fail. The fail out is as below: ![image](https://user-images.githubusercontent.com/52023469/207750127-118d9896-35f4-4ee9-90d4-d0ab9aae9c74.png) Looks like which is due to "http://eaidata.bmk.sh/data/enron_emails.jsonl.zst" unreachable . ### Steps to ...
CLOSED
2022-12-15T01:23:03
2022-12-15T07:45:54
2022-12-15T07:45:53
https://github.com/huggingface/datasets/issues/5362
{ "login": "shaoyuta" }
{ "nodes": [] }
[ "Thanks for reporting, @shaoyuta.\r\n\r\nWe have checked and yes, apparently there is an issue with the server hosting the data of the \"enron_emails\" subset of \"the_pile\" dataset: http://eaidata.bmk.sh/data/enron_emails.jsonl.zst\r\nIt seems to be down: The connection has timed out.\r\n\r\nPlease note that at t...
I_kwDODunzps5ZPMFh
5,361
How concatenate `Audio` elements using batch mapping
### Describe the bug I am trying to do concatenate audios in a dataset e.g. `google/fleurs`. ```python print(dataset) # Dataset({ # features: ['path', 'audio'], # num_rows: 24 # }) def mapper_function(batch): # to merge every 3 audio # np.concatnate(audios[i: i+3]) for i in range(i, len(batc...
CLOSED
2022-12-14T18:13:55
2023-07-21T14:30:51
2023-07-21T14:30:51
https://github.com/huggingface/datasets/issues/5361
{ "login": "bayartsogt-ya" }
{ "nodes": [] }
[ "You can try something like this ?\r\n```python\r\ndef mapper_function(batch):\r\n return {\"concatenated_audio\": [np.concatenate([audio[\"array\"] for audio in batch[\"audio\"]])]}\r\n\r\ndataset = dataset.map(\r\n mapper_function,\r\n batched=True,\r\n batch_size=3,\r\n remove_columns=list(dataset....
I_kwDODunzps5ZOZnp
5,360
IterableDataset returns duplicated data using PyTorch DDP
As mentioned in https://github.com/huggingface/datasets/issues/3423, when using PyTorch DDP the dataset ends up with duplicated data. We already check for the PyTorch `worker_info` for single node, but we should also check for `torch.distributed.get_world_size()` and `torch.distributed.get_rank()`
CLOSED
2022-12-14T16:06:19
2023-06-15T09:51:13
2023-01-16T13:33:33
https://github.com/huggingface/datasets/issues/5360
{ "login": "lhoestq" }
{ "nodes": [] }
[ "If you use huggingface trainer, you will find the trainer has wrapped a `IterableDatasetShard` to avoid duplication.\r\nSee:\r\nhttps://github.com/huggingface/transformers/blob/dfd818420dcbad68e05a502495cf666d338b2bfb/src/transformers/trainer.py#L835\r\n", "If you want to support it by datasets natively, maybe w...
I_kwDODunzps5Y8MUt
5,354
Consider using "Sequence" instead of "List"
### Feature request Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below. **How to reproduce** ```py ...
OPEN
2022-12-12T15:39:45
2026-07-11T12:20:28
null
https://github.com/huggingface/datasets/issues/5354
{ "login": "tranhd95" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good first issue" } ] }
[ "Hi! Linking a comment to provide more info on the issue: https://stackoverflow.com/a/39458225. This means we should replace all (most of) the occurrences of `List` with `Sequence` in function signatures.\r\n\r\n@tranhd95 Would you be interested in submitting a PR?", "Hi all! I tried to reproduce this issue and d...
I_kwDODunzps5Y7Eo0
5,353
Support remote file systems for `Audio`
### Feature request Hi there! It would be super cool if `Audio()`, and potentially other features, could read files from a remote file system. ### Motivation Large amounts of data is often stored in buckets. `load_from_disk` is able to retrieve data from cloud storage but to my knowledge actually copies the datas...
CLOSED
2022-12-12T13:22:13
2022-12-12T13:37:14
2022-12-12T13:37:14
https://github.com/huggingface/datasets/issues/5353
{ "login": "OllieBroadhurst" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Just seen https://github.com/huggingface/datasets/issues/5281" ]
I_kwDODunzps5Y279-
5,352
__init__() got an unexpected keyword argument 'input_size'
### Describe the bug I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html But when I load the dataset, I got an error "__init__() got an unexpected keyword argument...
OPEN
2022-12-12T02:52:03
2022-12-19T01:38:48
null
https://github.com/huggingface/datasets/issues/5352
{ "login": "J-shel" }
{ "nodes": [] }
[ "Hi @J-shel, thanks for reporting.\r\n\r\nI think the issue comes from your call to `load_dataset`. As first argument, you should pass:\r\n- either the name of your dataset (\"mrf\") if this is already published on the Hub\r\n- or the path to the loading script of your dataset (\"path/to/your/local/mrf.py\").", "...
I_kwDODunzps5Y2aiw
5,351
Do we need to implement `_prepare_split`?
### Describe the bug I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to im...
CLOSED
2022-12-12T01:38:54
2022-12-20T18:20:57
2022-12-12T16:48:56
https://github.com/huggingface/datasets/issues/5351
{ "login": "jmwoloso" }
{ "nodes": [] }
[ "Hi! `DatasetBuilder` is a parent class for concrete builders: `GeneratorBasedBuilder`, `ArrowBasedBuilder` and `BeamBasedBuilder`. When writing a builder script, these classes are the ones you should inherit from. And since all of them implement `_prepare_split`, you only have to implement the three methods mentio...
I_kwDODunzps5YoXKK
5,348
The data downloaded in the download folder of the cache does not respect `umask`
### Describe the bug For a project on a cluster we are several users to share the same cache for the datasets library. And we have a problem with the permissions on the data downloaded in the cache. Indeed, it seems that the data is downloaded by giving read and write permissions only to the user launching the com...
OPEN
2022-12-09T15:46:27
2022-12-09T17:21:26
null
https://github.com/huggingface/datasets/issues/5348
{ "login": "SaulLu" }
{ "nodes": [] }
[ "note, that `datasets` already did some of that umask fixing in the past and also at the hub - the recent work on the hub about the same: https://github.com/huggingface/huggingface_hub/pull/1220\r\n\r\nAlso I noticed that each file has a .json counterpart and the latter always has the correct perms:\r\n\r\n```\r\n-...
I_kwDODunzps5YoBB3
5,346
[Quick poll] Give your opinion on the future of the Hugging Face Open Source ecosystem!
Thanks to all of you, Datasets is just about to pass 15k stars! Since the last survey, a lot has happened: the [diffusers](https://github.com/huggingface/diffusers), [evaluate](https://github.com/huggingface/evaluate) and [skops](https://github.com/skops-dev/skops) libraries were born. `timm` joined the Hugging Face...
CLOSED
2022-12-09T14:48:02
2023-06-02T20:24:44
2023-01-25T19:35:40
https://github.com/huggingface/datasets/issues/5346
{ "login": "LysandreJik" }
{ "nodes": [] }
[ "As the survey is finished, can we close this issue, @LysandreJik ?", "Yes! I'll post a public summary on the forums shortly.", "Is the summary available? I would be interested in reading your findings." ]
I_kwDODunzps5Ymwj4
5,345
Wrong dtype for array in audio features
### Describe the bug When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged. ### Steps to repro...
OPEN
2022-12-09T11:05:11
2023-02-10T14:39:28
null
https://github.com/huggingface/datasets/issues/5345
{ "login": "qmeeus" }
{ "nodes": [] }
[ "After some more investigation, this is due to [this line of code](https://github.com/huggingface/datasets/blob/main/src/datasets/features/audio.py#L279). The function `sf.read(file)` should be updated to `sf.read(file, dtype=\"float32\")`\r\n\r\nIndeed, the default value in soundfile is `float64` ([see here](https...
I_kwDODunzps5Yh9if
5,343
T5 for Q&A produces truncated sentence
Dear all, I am fine-tuning T5 for Q&A task using the MedQuAD ([GitHub - abachaa/MedQuAD: Medical Question Answering Dataset of 47,457 QA pairs created from 12 NIH websites](https://github.com/abachaa/MedQuAD)) dataset. In the dataset, there are many long answers with thousands of words. I have used pytorch_lightning to...
CLOSED
2022-12-08T19:48:46
2022-12-08T19:57:17
2022-12-08T19:57:17
https://github.com/huggingface/datasets/issues/5343
{ "login": "junyongyou" }
{ "nodes": [] }
[]
I_kwDODunzps5YhwcS
5,342
Emotion dataset cannot be downloaded
### Describe the bug The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`. It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022). ### Steps to reproduce the bug ...
CLOSED
2022-12-08T19:07:09
2023-02-23T19:13:19
2022-12-09T10:46:11
https://github.com/huggingface/datasets/issues/5342
{ "login": "cbarond" }
{ "nodes": [ { "name": "duplicate" } ] }
[ "Hi @cbarond there's already an open issue at https://github.com/dair-ai/emotion_dataset/issues/5, as the data seems to be missing now, so check that issue instead 👍🏻 ", "Thanks @cbarond for reporting and @alvarobartt for pointing to the issue we opened in the author's repo.\r\n\r\nIndeed, this issue was first ...
I_kwDODunzps5YX2KH
5,338
`map()` stops every 1000 steps
### Describe the bug I am passing the following `prepare_dataset` function to `Dataset.map` (code is inspired from [here](https://github.com/huggingface/community-events/blob/main/whisper-fine-tuning-event/run_speech_recognition_seq2seq_streaming.py#L454)) ```python3 def prepare_dataset(batch): # load and res...
CLOSED
2022-12-07T19:09:40
2025-02-14T18:10:07
2022-12-10T00:39:28
https://github.com/huggingface/datasets/issues/5338
{ "login": "bayartsogt-ya" }
{ "nodes": [] }
[ "Hi !\r\n\r\n> It starts using all the cores (I am not sure why because I did not pass num_proc)\r\n\r\nThe tokenizer uses Rust code that is multithreaded. And maybe the `feature_extractor` might run some things in parallel as well - but I'm not super familiar with its internals.\r\n\r\n> then progress bar stops at...
I_kwDODunzps5YUNP8
5,337
Support webdataset format
Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234. In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset o...
CLOSED
2022-12-07T11:32:25
2024-03-06T14:39:29
2024-03-06T14:39:28
https://github.com/huggingface/datasets/issues/5337
{ "login": "lhoestq" }
{ "nodes": [] }
[ "I like the idea of having `webdataset` as an optional dependency to ensure our loader generates web datasets the same way as the main project.", "Webdataset is the one of the most popular dataset formats for large scale computer vision tasks. Upvote for this issue. ", "Any updates on this?", "We haven't had ...
I_kwDODunzps5YAc0w
5,332
Passing numpy array to ClassLabel names causes ValueError
### Describe the bug If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error. ### Steps to reproduce the bug https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX TLDR: If I define my classes as: ``` my_classes = np.array(['on...
CLOSED
2022-12-05T12:59:03
2022-12-22T16:32:50
2022-12-22T16:32:50
https://github.com/huggingface/datasets/issues/5332
{ "login": "freddyheppell" }
{ "nodes": [] }
[ "Should `datasets` allow `ClassLabel` input parameter to be an `np.array` even though internally we need to cast it to a Python list? @lhoestq @mariosasko ", "Hi! No, I don't think so. The `names` parameter is [annotated](https://github.com/huggingface/datasets/blob/582236640b9109988e5f7a16a8353696ffa09a16/src/d...
I_kwDODunzps5Xt1r4
5,326
No documentation for main branch is built
Since: - #5250 - Commit: 703b84311f4ead83c7f79639f2dfa739295f0be6 the docs for main branch are no longer built. The change introduced only triggers the docs building for releases.
CLOSED
2022-12-01T16:50:58
2022-12-02T16:26:01
2022-12-02T16:26:01
https://github.com/huggingface/datasets/issues/5326
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5Xtd62
5,325
map(...batch_size=None) for IterableDataset
### Feature request Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too. ### Motivation Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice. One is th...
CLOSED
2022-12-01T15:43:42
2022-12-07T15:54:43
2022-12-07T15:54:42
https://github.com/huggingface/datasets/issues/5325
{ "login": "frankier" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good first issue" } ] }
[ "Hi! I agree it makes sense for `IterableDataset.map` to support the `batch_size=None` case. This should be super easy to fix.", "@mariosasko as this is something simple maybe I can include it as part of https://github.com/huggingface/datasets/pull/5311? Let me know :+1:", "#self-assign", "Feel free to close ...
I_kwDODunzps5Xta6g
5,324
Fix docstrings and types in documentation that appears on the website
While I was working on https://github.com/huggingface/datasets/pull/5313 I've noticed that we have a mess in how we annotate types and format args and return values in the code. And some of it is displayed in the [Reference section](https://huggingface.co/docs/datasets/package_reference/builder_classes) of the document...
OPEN
2022-12-01T15:34:53
2024-01-23T16:21:54
null
https://github.com/huggingface/datasets/issues/5324
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "documentation" } ] }
[ "I agree we have a mess with docstrings...", "Ok, I believe we've cleaned up most of the old syntax we were using for the user-facing docs! There are still a couple of `:obj:`'s and `:class:` floating around in the docstrings we don't expose that I'll track down :)", "Hi @polinaeterna @albertvillanova @stevhliu...
I_kwDODunzps5XtZhT
5,323
Duplicated Keys in Taskmaster-2 Dataset
### Describe the bug Loading certain splits () of the taskmaster-2 dataset fails because of a DuplicatedKeysError. This occurs for the following domains: `'hotels', 'movies', 'music', 'sports'`. The domains `'flights', 'food-ordering', 'restaurant-search'` load fine. Output: ### Steps to reproduce the bug ``` ...
CLOSED
2022-12-01T15:31:06
2022-12-01T16:26:06
2022-12-01T16:26:06
https://github.com/huggingface/datasets/issues/5323
{ "login": "liaeh" }
{ "nodes": [] }
[ "Thanks for reporting, @liaeh.\r\n\r\nWe are having a look at it. ", "I have transferred the discussion to the Community tab of the dataset: https://huggingface.co/datasets/taskmaster2/discussions/1" ]
I_kwDODunzps5XpF-U
5,317
`ImageFolder` performs poorly with large datasets
### Describe the bug While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images. ## Setup * Nested directories (5 levels deep) * 3M+ images * 1 `metadata.jsonl` file ## Performance Degradation Point...
OPEN
2022-12-01T00:04:21
2022-12-01T21:49:26
null
https://github.com/huggingface/datasets/issues/5317
{ "login": "salieri" }
{ "nodes": [] }
[ "Hi ! ImageFolder is made for small scale datasets indeed. For large scale image datasets you better group your images in TAR archives or Arrow/Parquet files. This is true not just for ImageFolder loading performance, but also because having millions of files is not ideal for your filesystem or when moving the data...
I_kwDODunzps5XoC9h
5,316
Bug in sample_by="paragraph"
### Describe the bug I think [this line](https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/text/text.py#L96) is wrong and should be `batch = f.read(self.config.chunksize)`. Otherwise it will never terminate because even when `f` is finished reading, `batch` will still be truthy from the l...
CLOSED
2022-11-30T19:24:13
2022-12-01T15:19:02
2022-12-01T15:19:02
https://github.com/huggingface/datasets/issues/5316
{ "login": "adampauls" }
{ "nodes": [] }
[ "Thanks for reporting, @adampauls.\r\n\r\nWe are having a look at it. " ]
I_kwDODunzps5XntQt
5,315
Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails
### Describe the bug If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails. That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385f...
OPEN
2022-11-30T18:02:15
2022-12-02T07:02:53
null
https://github.com/huggingface/datasets/issues/5315
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "bug" } ] }
[ "EDIT:\r\nI think in this case, the metadata files (either README or JSON) should not be read (i.e. `self.info.splits` should be None).\r\n\r\nOne idea: \r\n- I think ideally we should set this behavior when we pass `--save_info` to the CLI `test`\r\n- However, currently, the builder is unaware of this: `save_info`...
I_kwDODunzps5XmZ1-
5,314
Datasets: classification_report() got an unexpected keyword argument 'suffix'
https://github.com/huggingface/datasets/blob/main/metrics/seqeval/seqeval.py > import datasets predictions = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] references = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']] seqeval = datasets.load_metri...
CLOSED
2022-11-30T14:01:03
2023-07-21T14:40:31
2023-07-21T14:40:31
https://github.com/huggingface/datasets/issues/5314
{ "login": "JonathanAlis" }
{ "nodes": [] }
[ "This seems similar to https://github.com/huggingface/datasets/issues/2512 Can you try to update seqeval ? ", "@JonathanAlis also note that the metrics are deprecated in our `datasets` library.\r\n\r\nPlease, use the new library 🤗 Evaluate instead: https://huggingface.co/docs/evaluate" ]
I_kwDODunzps5XYOf_
5,306
Can't use custom feature description when loading a dataset
### Describe the bug I have created a feature dictionary to describe my datasets' column types, to use when loading the dataset, following [the doc](https://huggingface.co/docs/datasets/main/en/about_dataset_features). It crashes at dataset load. ### Steps to reproduce the bug ```python # Creating features task_...
CLOSED
2022-11-28T07:55:44
2022-11-28T08:11:45
2022-11-28T08:11:44
https://github.com/huggingface/datasets/issues/5306
{ "login": "clefourrier" }
{ "nodes": [] }
[ "Forgot to actually convert the feature dict to a Feature object. Closing." ]
I_kwDODunzps5XW7Sy
5,305
Dataset joelito/mc4_legal does not work with multiple files
### Describe the bug The dataset https://huggingface.co/datasets/joelito/mc4_legal works for languages like bg with a single data file, but not for languages with multiple files like de. It shows zero rows for the de dataset. joelniklaus@Joels-MacBook-Pro ~/N/P/C/L/p/m/mc4_legal (main) [1]> python test_mc4_legal....
CLOSED
2022-11-28T00:16:16
2022-11-28T07:22:42
2022-11-28T07:22:42
https://github.com/huggingface/datasets/issues/5305
{ "login": "JoelNiklaus" }
{ "nodes": [] }
[ "Thanks for reporting @JoelNiklaus.\r\n\r\nPlease note that since we moved all dataset loading scripts to the Hub, the issues and pull requests relative to specific datasets are directly handled on the Hub, in their Community tab. I'm transferring this issue there: https://huggingface.co/datasets/joelito/mc4_legal/...
I_kwDODunzps5XU89f
5,304
timit_asr doesn't load the test split.
### Describe the bug When I use the function ```timit = load_dataset('timit_asr', data_dir=data_dir)```, it only loads train split, not test split. I tried to change the directory and filename to lower case to upper case for the test split, but it does not work at all. ```python DatasetDict({ train: Datase...
CLOSED
2022-11-26T10:18:22
2023-02-10T16:33:21
2023-02-10T16:33:21
https://github.com/huggingface/datasets/issues/5304
{ "login": "seyong92" }
{ "nodes": [] }
[ "The [timit_asr.py](https://huggingface.co/datasets/timit_asr/blob/main/timit_asr.py) script iterates over the WAV files per split directory using this:\r\n```python\r\nwav_paths = sorted(Path(data_dir).glob(f\"**/{split}/**/*.wav\"))\r\nwav_paths = wav_paths if wav_paths else sorted(Path(data_dir).glob(f\"**/{spli...
I_kwDODunzps5XTUWP
5,298
Bug in xopen with Windows pathnames
Currently, `xopen` function has a bug with local Windows pathnames: From its implementation: ```python def xopen(file: str, mode="r", *args, **kwargs): file = _as_posix(PurePath(file)) main_hop, *rest_hops = file.split("::") if is_local_path(main_hop): return open(file, mode, *args, **kwarg...
CLOSED
2022-11-25T15:21:32
2022-11-29T08:21:25
2022-11-29T08:21:25
https://github.com/huggingface/datasets/issues/5298
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5XS1Bs
5,296
Bug in xjoin with Windows pathnames
Currently, `xjoin` function has a bug with local Windows pathnames: instead of returning the OS-dependent join pathname, it always returns it in POSIX format. ```python from datasets.download.streaming_download_manager import xjoin path = xjoin("C:\\Users\\USERNAME", "filename.txt") ``` Join path should be: ...
CLOSED
2022-11-25T13:29:33
2022-11-29T08:05:13
2022-11-29T08:05:13
https://github.com/huggingface/datasets/issues/5296
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5XQvhX
5,295
Extractions failed when .zip file located on read-only path (e.g., SageMaker FastFile mode)
### Describe the bug Hi, `load_dataset()` does not work .zip files located on a read-only directory. Looks like it's because Dataset creates a lock file in the [same directory](https://github.com/huggingface/datasets/blob/df4bdd365f2abb695f113cbf8856a925bc70901b/src/datasets/utils/extract.py) as the .zip file. ...
CLOSED
2022-11-25T03:59:43
2023-07-21T14:39:09
2023-07-21T14:39:09
https://github.com/huggingface/datasets/issues/5295
{ "login": "verdimrc" }
{ "nodes": [] }
[ "Hi ! Thanks for reporting. Indeed the lock file should be placed in a directory with write permission (e.g. in the directory where the archive is extracted).", "I opened https://github.com/huggingface/datasets/pull/5320 to fix this - it places the lock file in the cache directory instead of trying to put in next...
I_kwDODunzps5XPdHR
5,293
Support streaming datasets with pathlib.Path.with_suffix
Extend support for streaming datasets that use `pathlib.Path.with_suffix`. This feature will be useful e.g. for datasets containing text files and annotated files with the same name but different extension.
CLOSED
2022-11-24T17:52:08
2022-11-29T07:06:33
2022-11-29T07:06:33
https://github.com/huggingface/datasets/issues/5293
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5XNG4I
5,292
Missing documentation build for versions 2.7.1 and 2.6.2
After the patch releases [2.7.1](https://github.com/huggingface/datasets/releases/tag/2.7.1) and [2.6.2](https://github.com/huggingface/datasets/releases/tag/2.6.2), the online docs were not properly built (the build_documentation workflow was not triggered). There was a fix by: - #5291 However, both documentati...
CLOSED
2022-11-24T09:42:10
2022-11-24T10:10:02
2022-11-24T10:10:02
https://github.com/huggingface/datasets/issues/5292
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "maintenance" } ] }
[ "- Build docs for 2.6.2:\r\n - Commit: a6a5a1cf4cdf1e0be65168aed5a327f543001fe8\r\n - Build docs GH Action: https://github.com/huggingface/datasets/actions/runs/3539470622/jobs/5941404044\r\n- Build docs for 2.7.1:\r\n - Commit: 5ef1ab1cc06c2b7a574bf2df454cd9fcb071ccb2\r\n - Build docs GH Action: https://github...
I_kwDODunzps5XJmUz
5,288
Lossy json serialization - deserialization of dataset info
### Describe the bug Saving a dataset to disk as json (using `to_json`) and then loading it again (using `load_dataset`) results in features whose labels are not type-cast correctly. In the code snippet below, `features.label` should have a label of type `ClassLabel` but has type `Value` instead. ### Steps to re...
OPEN
2022-11-23T17:20:15
2022-11-25T12:53:51
null
https://github.com/huggingface/datasets/issues/5288
{ "login": "anuragprat1k" }
{ "nodes": [] }
[ "Hi ! JSON is a lossy format indeed. If you want to keep the feature types or other metadata I'd encourage you to store them as well. For example you can use `dataset.info.write_to_directory` and `DatasetInfo.from_directory` to store the feature types, split info, description, license etc." ]
I_kwDODunzps5XIvJ3
5,286
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json
### Describe the bug I follow the steps provided on the website [https://huggingface.co/datasets/wikipedia](https://huggingface.co/datasets/wikipedia) $ pip install apache_beam mwparserfromhell >>> from datasets import load_dataset >>> load_dataset("wikipedia", "20220301.en") however this results in the follo...
CLOSED
2022-11-23T14:54:15
2024-11-23T01:16:41
2022-11-25T11:33:14
https://github.com/huggingface/datasets/issues/5286
{ "login": "roritol" }
{ "nodes": [] }
[ "I found a solution \r\n\r\nIf you specifically install datasets==1.18 and then run\r\n\r\nimport datasets\r\nwiki = datasets.load_dataset('wikipedia', '20200501.en')\r\nthen this should work (it worked for me.)", "I have the same problem here but installing datasets==1.18 wont work for me\r\n", "This works wit...
I_kwDODunzps5XHQV1
5,284
Features of IterableDataset set to None by remove column
### Describe the bug The `remove_column` method of the IterableDataset sets the dataset features to None. ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset # load LS in streaming mode dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True) ...
CLOSED
2022-11-23T10:54:59
2025-02-07T11:36:41
2022-11-28T12:53:24
https://github.com/huggingface/datasets/issues/5284
{ "login": "sanchit-gandhi" }
{ "nodes": [ { "name": "bug" }, { "name": "streaming" } ] }
[ "Related to https://github.com/huggingface/datasets/issues/5245", "#self-assign", "Thanks @lhoestq and @alvarobartt!\r\n\r\nThis would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working t...
I_kwDODunzps5XBMSf
5,281
Support cloud storage in load_dataset
Would be nice to be able to do ```python data_files=["s3://..."] # or gs:// or any cloud storage path storage_options = {...} load_dataset(..., data_files=data_files, storage_options=storage_options) ``` The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`. This has been reque...
OPEN
2022-11-22T14:00:10
2024-11-15T15:03:41
null
https://github.com/huggingface/datasets/issues/5281
{ "login": "lhoestq" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good second issue" } ] }
[ "Or for example an archive on GitHub releases! Before I added support for JXL (locally only, PR still pending) I was considering hosting my files on GitHub instead...", "+1 to this. I would like to use 'audiofolder' with a data_dir that's on S3, for example. I don't want to upload my dataset to the Hub, but I wo...
I_kwDODunzps5XAyJL
5,280
Import error
https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28 Hy, I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong)
CLOSED
2022-11-22T12:56:43
2022-12-15T19:57:40
2022-12-15T19:57:40
https://github.com/huggingface/datasets/issues/5280
{ "login": "feketedavid1012" }
{ "nodes": [] }
[ "Hi ! Can you \r\n```python\r\nimport platform\r\nprint(platform.python_version())\r\n```\r\nto see that it returns ?", "Hi,\n\n3.8.13\n\nGet Outlook for Android<https://aka.ms/AAb9ysg>\n________________________________\nFrom: Quentin Lhoest ***@***.***>\nSent: Tuesday, November 22, 2022 2:37:02 PM\nTo: huggingfa...
I_kwDODunzps5W_1ba
5,278
load_dataset does not read jsonl metadata file properly
### Describe the bug Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features. B...
CLOSED
2022-11-22T10:24:46
2023-02-14T14:48:16
2022-11-23T11:38:35
https://github.com/huggingface/datasets/issues/5278
{ "login": "065294847" }
{ "nodes": [] }
[ "Can you try to remove \"drop_labels=false\" ? It may force the loader to infer the labels instead of reading the metadata", "Hi, thanks for responding. I tried that, but it does not change anything.", "Can you try updating `datasets` ? Metadata support was added in `datasets` 2.4", "Probably the issue, will ...
I_kwDODunzps5W_B5y
5,276
Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset Help please? ![image](https://user-images.githubusercontent.com/48530104/203260511-26df766f-6013-4...
CLOSED
2022-11-22T08:17:53
2023-07-21T14:33:10
2023-07-21T14:33:10
https://github.com/huggingface/datasets/issues/5276
{ "login": "capsabogdan" }
{ "nodes": [] }
[ "Sounds like one of the file is not a valid one, can you make sure you uploaded valid mp3 files ?", "Well I just sharded the original commonVoice dataset and pushed a small chunk of it in a private rep\n\nWhat did go wrong?\n\nHolen Sie sich Outlook für iOS<https://aka.ms/o0ukef>\n________________________________...
I_kwDODunzps5W_AzH
5,275
YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563): - YAML integer keys are not preserved server-side: they are transformed to strings - See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files - Original: ```yaml ...
CLOSED
2022-11-22T08:14:47
2023-01-26T10:52:35
2023-01-26T10:40:21
https://github.com/huggingface/datasets/issues/5275
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "@huggingface/datasets if you agree, I can make the bulk edit on the Hub to fix integer keys into strings.", "Ok for me, and we can merge (internal) https://github.com/huggingface/moon-landing/pull/4609", "FYI there are still 2k+ weekly users on `datasets` 2.6.1 which doesn't support the string label format for...
I_kwDODunzps5W8S23
5,274
load_dataset possibly broken for gated datasets?
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
CLOSED
2022-11-21T21:59:53
2023-05-27T00:06:14
2022-11-28T02:50:42
https://github.com/huggingface/datasets/issues/5274
{ "login": "TristanThrush" }
{ "nodes": [] }
[ "@BradleyHsu", "Btw, thanks very much for finding the hub rollback temporary fix and bringing the issue to our attention @KhoomeiK!", "I see the same issue when calling `load_dataset('poloclub/diffusiondb', 'large_random_1k')` with `datasets==2.7.1` and `huggingface-hub=0.11.0`. No issue with `datasets=2.6.1` a...
I_kwDODunzps5W55cC
5,273
download_mode="force_redownload" does not refresh cached dataset
### Describe the bug `load_datasets` does not refresh dataset when features are imported from external file, even with `download_mode="force_redownload"`. The bug is not limited to nested fields, however it is more likely to occur with nested fields. ### Steps to reproduce the bug To reproduce the bug 3 files are ne...
OPEN
2022-11-21T14:12:43
2022-11-21T14:13:03
null
https://github.com/huggingface/datasets/issues/5273
{ "login": "nomisto" }
{ "nodes": [] }
[]
I_kwDODunzps5W1yP1
5,272
Use pyarrow Tensor dtype
### Feature request I was going the discussion of converting tensors to lists. Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings? For example: ```python import pyarrow as pa import numpy as np x = np.array([[2, 2, 4], [4, 5, 100]], np.int32) pa.Tensor.from_numpy(x, dim_names=["dim1...
OPEN
2022-11-20T15:18:41
2026-02-26T15:59:00
null
https://github.com/huggingface/datasets/issues/5272
{ "login": "franz101" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! We're using the Arrow format for the datasets, and PyArrow tensors are not part of the Arrow format AFAIK:\r\n\r\n> There is no direct support in the arrow columnar format to store Tensors as column values.\r\n\r\nsource: https://github.com/apache/arrow/issues/4802#issuecomment-508494694", "@wesm @rok its b...
I_kwDODunzps5W0JA-
5,270
When len(_URLS) > 16, download will hang
### Describe the bug ```python In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test') Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.53k/2.53k [00:00<00:00, 1.88MB/s] [1...
OPEN
2022-11-19T14:27:41
2022-11-21T15:27:16
null
https://github.com/huggingface/datasets/issues/5270
{ "login": "Freed-Wu" }
{ "nodes": [] }
[ "It can fix the bug temporarily.\r\n```python\r\nfrom datasets import DownloadConfig\r\nconfig = DownloadConfig(num_proc=8)\r\nIn [5]: dataset = load_dataset('Freed-Wu/kodak', split='test', download_config=config)\r\nDownloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu__...
I_kwDODunzps5W0DWn
5,269
Shell completions
### Feature request Like <https://github.com/huggingface/huggingface_hub/issues/1197>, datasets-cli maybe need it, too. ### Motivation See above. ### Your contribution Maybe.
CLOSED
2022-11-19T13:48:59
2022-11-21T15:06:15
2022-11-21T15:06:14
https://github.com/huggingface/datasets/issues/5269
{ "login": "Freed-Wu" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "I don't think we need completion on the datasets-cli, since we're mainly developing huggingface-cli", "I see." ]
I_kwDODunzps5Wvbtw
5,265
Get an IterableDataset from a map-style Dataset
This is useful to leverage iterable datasets specific features like: - fast approximate shuffling - lazy map, filter etc. Iterating over the resulting iterable dataset should be at least as fast at iterating over the map-style dataset. Here are some ideas regarding the API: ```python # 1. # - consistency wi...
CLOSED
2022-11-18T14:54:40
2023-02-01T16:36:03
2023-02-01T16:36:03
https://github.com/huggingface/datasets/issues/5265
{ "login": "lhoestq" }
{ "nodes": [ { "name": "enhancement" }, { "name": "streaming" } ] }
[ "I think `stream` could be misleading since the data is not being streamed from remote endpoints (one could think that's the case when they see `load_dataset` followed by `stream`). Hence, I prefer the second option.\r\n\r\nPS: When we resolve https://github.com/huggingface/datasets/issues/4542, we could add `as_tf...
I_kwDODunzps5WvWWq
5,264
`datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset ```python from datasets import load_dataset ds = load_data...
CLOSED
2022-11-18T14:44:01
2023-05-07T09:52:59
2022-11-22T11:18:08
https://github.com/huggingface/datasets/issues/5264
{ "login": "loubnabnl" }
{ "nodes": [ { "name": "bug" } ] }
[ "Could you share the full stack trace please ?\r\n\r\n\r\nCan you also try running this code ? It can be useful to determine if the issue comes from `datasets` or `fsspec` (streaming) or `pyarrow` (parquet reading):\r\n```python\r\nds = load_dataset(\"parquet\", data_files=a_parquet_file_url, use_auth_token=True)\r...
I_kwDODunzps5WvWSS
5,263
Save a dataset in a determined number of shards
This is useful to distribute the shards to training nodes. This can be implemented in `save_to_disk` and can also leverage multiprocessing to speed up the process
CLOSED
2022-11-18T14:43:54
2022-12-14T18:22:59
2022-12-14T18:22:59
https://github.com/huggingface/datasets/issues/5263
{ "login": "lhoestq" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5WvCYc
5,262
AttributeError: 'Value' object has no attribute 'names'
Hello I'm trying to build a model for custom token classification I already followed the token classification course on huggingface while adapting the code to my work, this message occures : 'Value' object has no attribute 'names' Here's my code: `raw_datasets` generates DatasetDict({ train: Datas...
CLOSED
2022-11-18T13:58:42
2022-11-22T10:09:24
2022-11-22T10:09:23
https://github.com/huggingface/datasets/issues/5262
{ "login": "emnaboughariou" }
{ "nodes": [] }
[ "Hi ! It looks like your \"isDif\" column is a Sequence of Value(\"string\"), not a Sequence of ClassLabel.\r\n\r\nYou can convert your Value(\"string\") feature type to a ClassLabel feature type this way:\r\n```python\r\nfrom datasets import ClassLabel, Sequence\r\n\r\n# provide the label_names yourself\r\nlabel_n...
I_kwDODunzps5WtCo1
5,261
Add PubTables-1M
### Name PubTables-1M ### Paper https://openaccess.thecvf.com/content/CVPR2022/html/Smock_PubTables-1M_Towards_Comprehensive_Table_Extraction_From_Unstructured_Documents_CVPR_2022_paper.html ### Data https://github.com/microsoft/table-transformer ### Motivation Table Transformer is now available in 🤗 Transforme...
OPEN
2022-11-18T07:56:36
2022-11-18T08:02:18
null
https://github.com/huggingface/datasets/issues/5261
{ "login": "NielsRogge" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "cc @albertvillanova the author would like to add this dataset to the hub: https://github.com/microsoft/table-transformer/issues/68#issuecomment-1319114621. Could you help him out?" ]
I_kwDODunzps5WqRWh
5,260
consumer-finance-complaints dataset not loading
### Describe the bug Error during dataset loading ### Steps to reproduce the bug ``` >>> import datasets >>> cf_raw = datasets.load_dataset("consumer-finance-complaints") Downloading builder script: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████...
OPEN
2022-11-17T20:10:26
2022-11-18T10:16:53
null
https://github.com/huggingface/datasets/issues/5260
{ "login": "adiprasad" }
{ "nodes": [] }
[ "Thanks for reporting, @adiprasad.\r\n\r\nWe are having a look at it.", "I have opened an issue in that dataset Community tab on the Hub: https://huggingface.co/datasets/consumer-finance-complaints/discussions/1\r\n\r\nPlease note that in the meantime, you can load the dataset by passing `ignore_verifications=Tru...
I_kwDODunzps5Wo4DT
5,259
datasets 2.7 introduces sharding error
### Describe the bug dataset fails to load with runtime error `RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize: - key audio_files has length 46 - key data has length 0 To fix this, check the ...
CLOSED
2022-11-17T15:36:52
2022-12-24T01:44:02
2022-11-18T12:52:05
https://github.com/huggingface/datasets/issues/5259
{ "login": "DCNemesis" }
{ "nodes": [] }
[ "I notice a comment in the code says:\r\n`Having lists of different sizes makes sharding ambigious, raise an error in this case until we decide how to define sharding without ambiguity for users` \r\n \r\n ... which suggests this update was pushed knowing that it might break some things. But, it didn't seem to h...
I_kwDODunzps5Woudc
5,258
Restore order of split names in dataset_info for canonical datasets
After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example: - https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c Note that this order is the one appearing in the preview of the...
CLOSED
2022-11-17T15:13:15
2023-02-16T09:49:05
2022-11-19T06:51:37
https://github.com/huggingface/datasets/issues/5258
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "dataset contribution" } ] }
[ "The bulk edit is running...\r\n\r\nSee for example: \r\n- A single config: https://huggingface.co/datasets/acronym_identification/discussions/2\r\n- Multiple configs: https://huggingface.co/datasets/babi_qa/discussions/1", "TODO: Add \"dataset_info\" YAML metadata to:\r\n- [x] \"chr_en\" has no metadata JSON fil...
I_kwDODunzps5WlWXd
5,255
Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name NYUDepth ### Paper http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf ### Data https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html ### Motivation Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well: * [GLPN...
CLOSED
2022-11-17T03:22:22
2022-12-17T12:20:38
2022-12-17T12:20:37
https://github.com/huggingface/datasets/issues/5255
{ "login": "sayakpaul" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "Also cc @mariosasko and @lhoestq ", "Cool ! Let us know if you have questions or if we can help :)\r\n\r\nI guess we'll also have to create the NYU CS Department on the Hub ?", "> I guess we'll also have to create the NYU CS Department on the Hub ?\r\n\r\nYes, you're right! Let me add it to my profile first, a...
I_kwDODunzps5WiB6p
5,251
Docs are not generated after latest release
After the latest `datasets` release version 0.7.0, the docs were not generated. As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action: https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad4...
CLOSED
2022-11-16T14:59:31
2022-11-22T16:27:50
2022-11-22T16:27:50
https://github.com/huggingface/datasets/issues/5251
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "maintenance" } ] }
[ "After a discussion with @mishig25:\r\n- He said that this action should be triggered if we call our release branch according to the regex `v*-release`, as transformers does\r\n- I said that our procedure is different: our release branch is *temporary* and it is deleted just after the release PR is merged to main\r...
I_kwDODunzps5WhxDX
5,249
Protect the main branch from inadvertent direct pushes
We have decided to implement a protection mechanism in this repository, so that nobody (not even administrators) can inadvertently push accidentally directly to the main branch. See context here: - d7c942228b8dcf4de64b00a3053dce59b335f618 To do: - [x] Protect main branch - Settings > Branches > Branch protec...
CLOSED
2022-11-16T14:19:03
2023-12-21T10:28:27
2023-12-21T10:28:26
https://github.com/huggingface/datasets/issues/5249
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "maintenance" } ] }
[ "It seems all the tasks have been addressed, meaning this issue can be closed, no?" ]
I_kwDODunzps5Wcvzx
5,245
Unable to rename columns in streaming dataset
### Describe the bug Trying to rename column in a streaming datasets, destroys the features object. ### Steps to reproduce the bug The following code illustrates the error: ``` from datasets import load_dataset dataset = load_dataset('mc4', 'en', streaming=True, split='train') dataset.info.features # {'text':...
CLOSED
2022-11-15T21:04:41
2022-11-28T12:53:24
2022-11-28T12:53:24
https://github.com/huggingface/datasets/issues/5245
{ "login": "peregilk" }
{ "nodes": [] }
[ "Hi @peregilk this bug is directly related to https://github.com/huggingface/datasets/issues/3888, and still not fixed... But I'll try to have a look!", "Thanks @alvarobartt. It is great if you are able to fix it, but when reading the explanation it seems like it is possible to work around it.\r\n\r\nWe also trie...
I_kwDODunzps5WbYmZ
5,244
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_...
OPEN
2022-11-15T16:02:10
2022-11-23T14:02:30
null
https://github.com/huggingface/datasets/issues/5244
{ "login": "bruno-hays" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! What kind of private source ? We're exploring adding support for cloud storage and URIs like s3://, gs:// etc. with authentication in the download manager", "Hello! It's a google cloud storage, so gs://, but I'm using it with https.\r\nBeing able to provide a file system like [here](https://huggingface.co/d...
I_kwDODunzps5WZfr6
5,243
Download only split data
### Feature request Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed. common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", ...
OPEN
2022-11-15T10:15:54
2025-02-25T14:47:03
null
https://github.com/huggingface/datasets/issues/5243
{ "login": "capsabogdan" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi @capsabogdan! Unfortunately, it's hard to implement because quite often datasets data is being hosted in a single archive for all splits :( So we have to download the whole archive to split it into splits. This is the case for CommonVoice too. \r\n\r\nHowever, for cases when data is distributed in separate arch...
I_kwDODunzps5WXwtG
5,242
Failed Data Processing upon upload with zip file full of images
I went to autotrain and under image classification arrived where it was time to prepare my dataset. Screenshot below ![image](https://user-images.githubusercontent.com/82735473/201814099-3cc5ff8a-88dc-4f5f-8140-f19560641d83.png) I chose the method 2 option. I have a csv file with two columns. ~23,000 files. I...
OPEN
2022-11-15T02:47:52
2022-11-15T17:59:23
null
https://github.com/huggingface/datasets/issues/5242
{ "login": "scrambled2" }
{ "nodes": [] }
[ "cc @abhishekkrthakur @SBrandeis " ]
I_kwDODunzps5WNLKV
5,232
Incompatible dill versions in datasets 2.6.1
### Describe the bug datasets version 2.6.1 has a dependency on dill<0.3.6. This causes a conflict with dill>=0.3.6 used by multiprocess dependency in datasets 2.6.1 This issue is already fixed in https://github.com/huggingface/datasets/pull/5166/files, but not yet been released. Please release a new version of the...
CLOSED
2022-11-12T06:46:23
2022-11-14T08:24:43
2022-11-14T08:07:59
https://github.com/huggingface/datasets/issues/5232
{ "login": "vinaykakade" }
{ "nodes": [] }
[ "Thanks for reporting, @vinaykakade.\r\n\r\nWe are discussing about making a release early this week.\r\n\r\nPlease note that in the meantime, in your specific case (as we also pointed out here: https://github.com/huggingface/datasets/issues/5162#issuecomment-1291720293), you can circumvent the issue by pinning `mu...
I_kwDODunzps5WLm2D
5,231
Using `set_format(type='torch', columns=columns)` makes Array2D/3D columns stop formatting correctly
I have a Dataset with two Features defined as follows: ``` 'image': Array3D(dtype="int64", shape=(3, 224, 224)), 'bbox': Array2D(dtype="int64", shape=(512, 4)), ``` On said dataset, if I `dataset.set_format(type='torch')` and then use the dataset in a dataloader, these columns are correctly cast to Tensors of ...
CLOSED
2022-11-11T18:54:36
2022-11-11T20:42:29
2022-11-11T18:59:50
https://github.com/huggingface/datasets/issues/5231
{ "login": "plamb-viso" }
{ "nodes": [] }
[ "In case others find this, the problem was not with set_format, but my usages of `to_pandas()` and `from_pandas()` which I was using during dataset splitting; somewhere in the chain of converting to and from pandas the `Array2D/Array3D` types get converted to series of `Sequence()` types" ]
I_kwDODunzps5WKLH8
5,230
dataclasses error when importing the library in python 3.11
### Describe the bug When I import datasets using python 3.11 the dataclasses standard library raises the following error: `ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory` When I tried to import the library using the following jupyter note...
CLOSED
2022-11-11T13:53:49
2023-05-25T04:37:05
2022-11-14T15:27:37
https://github.com/huggingface/datasets/issues/5230
{ "login": "yonikremer" }
{ "nodes": [] }
[ "I opened [this issue](https://github.com/python/cpython/issues/99401).\r\nPython's maintainers say that the issue is caused by [this change](https://docs.python.org/3.11/whatsnew/3.11.html#dataclasses).\r\nI believe adding a `__hash__` method to `datasets.utils.version.Version` should solve (at least partially) th...
I_kwDODunzps5WIswE
5,229
Type error when calling `map` over dataset containing 0-d tensors
### Describe the bug 0-dimensional tensors in a dataset lead to `TypeError: iteration over a 0-d array` when calling `map`. It is easy to generate such tensors by using `.with_format("...")` on the whole dataset. ### Steps to reproduce the bug ``` ds = datasets.Dataset.from_list([{"a": 1}, {"a": 1}]).with_fo...
CLOSED
2022-11-11T08:27:28
2023-01-13T16:00:53
2023-01-13T16:00:53
https://github.com/huggingface/datasets/issues/5229
{ "login": "phipsgabler" }
{ "nodes": [] }
[ "Hi! \r\n\r\nWe could address this by calling `.item()` on such tensors to extract the value, but this would lose us the type, which could lead to storing the generated dataset in a suboptimal format. Considering this, I think the only proper fix would be implementing support for 0-D tensors on Apache Arrow's side ...
I_kwDODunzps5WHVXh
5,228
Loading a dataset from the hub fails if you happen to have a folder of the same name
### Describe the bug I'm not 100% sure this should be considered a bug, but it was certainly annoying to figure out the cause of. And perhaps I am just missing a specific argument needed to avoid this conflict. Basically I had a situation where multiple workers were downloading different parts of the glue dataset and ...
OPEN
2022-11-11T00:51:54
2023-05-03T23:23:04
null
https://github.com/huggingface/datasets/issues/5228
{ "login": "dakinggg" }
{ "nodes": [] }
[ "`load_dataset` first checks for a local directory before checking for the Hub.\r\n\r\nTo make it explicit that it has to fetch the Hub, we could support the `hffs` syntax:\r\n```python\r\nload_dataset(\"hf://datasets/glue\")\r\n```\r\n\r\nwould that work for you ? Also cc @mariosasko who's leading the `hffs` proje...
I_kwDODunzps5WGyc-
5,227
datasets.data_files.EmptyDatasetError: The directory at wikisql doesn't contain any data files
### Describe the bug From these lines: from datasets import list_datasets, load_dataset dataset = load_dataset("wikisql","binary") I get error message: datasets.data_files.EmptyDatasetError: The directory at wikisql doesn't contain any data files And yet the 'wikisql' is reported to exist via the list_datas...
CLOSED
2022-11-10T21:57:06
2023-10-07T05:04:41
2022-11-10T22:05:43
https://github.com/huggingface/datasets/issues/5227
{ "login": "ScottM-wizard" }
{ "nodes": [] }
[ "Fixed. Please close.", "how to fix?i need your help" ]
I_kwDODunzps5WF5F8
5,226
Q: Memory release when removing the column?
### Describe the bug How do I release memory when I use methods like `.remove_columns()` or `clear()` in notebooks? ```python from datasets import load_dataset common_voice = load_dataset("mozilla-foundation/common_voice_11_0", "ja", use_auth_token=True) # check memory -> RAM Used (GB): 0.704 / Total (GB) 33.670...
CLOSED
2022-11-10T18:35:27
2022-11-29T15:10:10
2022-11-29T15:10:10
https://github.com/huggingface/datasets/issues/5226
{ "login": "bayartsogt-ya" }
{ "nodes": [] }
[ "Hi ! Datasets are memory mapped from your disk, i.e. they're not loaded in RAM. This is possible thanks to the Arrow data format.\r\n\r\nTherefore the column you remove is not in RAM, so removing it doesn't cause the RAM to decrease.", "Thanks for the explanation! @lhoestq \r\nI wonder since it is memory mapped,...
I_kwDODunzps5WFlkf
5,225
Add video feature
### Feature request Add a `Video` feature to the library so folks can include videos in their datasets. ### Motivation Being able to load Video data would be quite helpful. However, there are some challenges when it comes to videos: 1. Videos, unlike images, can end up being extremely large files 2. Often times ...
OPEN
2022-11-10T17:36:11
2022-12-02T15:13:15
null
https://github.com/huggingface/datasets/issues/5225
{ "login": "nateraw" }
{ "nodes": [ { "name": "enhancement" }, { "name": "help wanted" }, { "name": "vision" } ] }
[ "@NielsRogge @rwightman may have additional requirements regarding this feature.\r\n\r\nWhen adding a new (decodable) type, the hardest part is choosing the right decoding library. What I mean by \"right\" here is that it has all the features we need and is easy to install (with GPU support?).\r\n\r\nSome candidate...
I_kwDODunzps5WDDYj
5,224
Seems to freeze when loading audio dataset with wav files from local folder
### Describe the bug I'm following the instructions in [https://huggingface.co/docs/datasets/audio_load#audiofolder-with-metadata](url) to be able to load a dataset from a local folder. I have everything into a folder, into a train folder and then the audios and csv. When I try to load the dataset and run from term...
CLOSED
2022-11-10T10:29:31
2023-04-25T09:54:05
2022-11-22T11:24:19
https://github.com/huggingface/datasets/issues/5224
{ "login": "uriii3" }
{ "nodes": [] }
[ "I just tried to do the same but changing the `.wav` files to `.mp3` files and that doesn't fix it.", "I don't know if anyone will ever read this but I've tried to upload the same dataset with google colab and the output seems more clarifying. I didn't specify the train/test split so the dataset wasn't fully uplo...
I_kwDODunzps5V-Xfb
5,222
HuggingFace website is incorrectly reporting that my datasets are pickled
### Describe the bug HuggingFace is incorrectly reporting that my datasets are pickled. They are not picked, they are simple ZIP files containing PNG images. Hopefully this is the right location to report this bug. ### Steps to reproduce the bug Inspect my dataset respository here: https://huggingface.co/datasets...
CLOSED
2022-11-09T16:41:16
2022-11-09T18:10:46
2022-11-09T18:06:57
https://github.com/huggingface/datasets/issues/5222
{ "login": "ProGamerGov" }
{ "nodes": [] }
[ "cc @McPatate maybe you know what's happening ?", "Yes I think I know what is happening. We check in zips for pickles, and the UI must display the pickle jar when a scan has an associated list of imports, even when empty.\r\n~I'll fix ASAP !~", "> I'll fix ASAP !\r\n\r\nActually I'd rather leave it like that f...
I_kwDODunzps5V9-Pm
5,221
Cannot push
### Describe the bug I am facing the issue when I try to push the tar.gz file around 11G to HUB. ``` (venv) ╭─laptop@laptop ~/PersonalProjects/data/ulaanbal_v0 ‹main●› ╰─$ du -sh * 4.0K README.md 13G data 516K test.jsonl 18M train.jsonl 4.0K ulaanbal_v0.py 11G ulaanbal_v0.tar.gz 452K validation.jsonl...
CLOSED
2022-11-09T15:32:05
2022-11-10T18:11:21
2022-11-10T18:11:11
https://github.com/huggingface/datasets/issues/5221
{ "login": "bayartsogt-ya" }
{ "nodes": [] }
[ "Did you run `huggingface-cli lfs-enable-largefiles` before committing or before adding ? Maybe you can try before adding\r\n\r\nAnyway I'd encourage you to split your data into several TAR archives if possible, this way the dataset can loaded faster using multiprocessing (by giving each process a subset of shards ...
I_kwDODunzps5V7g15
5,220
Implicit type conversion of lists in to_pandas
### Describe the bug ``` ds = Dataset.from_list([{'a':[1,2,3]}]) ds.to_pandas().a.values[0] ``` Results in `array([1, 2, 3])` -- a rather unexpected conversion of types which made downstream tools expecting lists not happy. ### Steps to reproduce the bug See snippet ### Expected behavior Keep the original typ...
CLOSED
2022-11-09T08:40:18
2022-11-10T16:12:26
2022-11-10T16:12:26
https://github.com/huggingface/datasets/issues/5220
{ "login": "sanderland" }
{ "nodes": [] }
[ "I think this behavior comes from PyArrow:\r\n```python\r\nimport pyarrow as pa\r\nt = pa.table({\"a\": [[0]]})\r\nt.to_pandas().a.values[0]\r\n# array([0])\r\n```\r\n\r\nI believe this has to do with zero-copy: you can get a pandas DataFrame without copying the buffers from arrow, and therefore end up with numpy a...
I_kwDODunzps5V59Hm
5,219
Delta Tables usage using Datasets Library
### Feature request Adding compatibility of Datasets library with Delta Format. Elevating the utilities of Datasets library from Machine Learning Scope to Data Engineering Scope as well. ### Motivation We know datasets library can absorb csv, json, parquet, etc. file formats but it would be great if Datasets library...
OPEN
2022-11-09T02:43:56
2023-03-02T19:29:12
null
https://github.com/huggingface/datasets/issues/5219
{ "login": "reichenbch" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! Interesting :) Can you provide concrete examples of cases where it can be useful ?", "Few example blogs and posts that might help on this - \r\n\r\n1. https://hevodata.com/learn/databricks-delta-tables/\r\n2. https://docs.databricks.com/delta/index.html\r\n\r\nBasically, we are looking at utility of Dataset...
I_kwDODunzps5V58sy
5,218
Delta Tables usage using Datasets Library
### Feature request Adding compatibility of Datasets library with Delta Format. Elevating the utilities of Datasets library from Machine Learning Scope to Data Engineering Scope as well. ### Motivation We know datasets library can absorb csv, json, parquet, etc. file formats but it would be great if Datasets library...
CLOSED
2022-11-09T02:42:18
2022-11-09T02:42:36
2022-11-09T02:42:36
https://github.com/huggingface/datasets/issues/5218
{ "login": "rcv-koo" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5V5I4b
5,216
save_elasticsearch_index
Hi, I am new to Dataset and elasticsearch. I was wondering is there any equivalent approach to save elasticsearch index as of save_faiss_index locally for later use, to remove the need to re-index a dataset?
OPEN
2022-11-08T23:06:52
2022-11-09T13:16:45
null
https://github.com/huggingface/datasets/issues/5216
{ "login": "amobash2" }
{ "nodes": [] }
[ "Hi ! I think there exist tools to dump and reload an index in your elastic search but I'm not super familiar with it.\r\n\r\nAnyway after reloading an index in elastic search you can call `ds.load_elasticsearch_index` which will connect the index to the dataset without re-indexing" ]
I_kwDODunzps5Vu7--
5,209
Implement ability to define splits in metadata section of dataset card
### Feature request If you go here: https://huggingface.co/datasets/inria-soda/tabular-benchmark/tree/main you will see bunch of folders that has various CSV files. I’d like dataset viewer to show these files instead of only one dataset like it currently does. (and also people to be able to load them as splits inste...
CLOSED
2022-11-07T13:27:16
2023-07-21T14:36:02
2023-07-21T14:36:01
https://github.com/huggingface/datasets/issues/5209
{ "login": "merveenoyan" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "@merveenoyan Do you want different files to be splits or configurations?\r\n\r\nFrom [what you specified in `Readme.md`](https://huggingface.co/datasets/inria-soda/tabular-benchmark/commit/fb4575853772c62a20203bdd6cc0202f5db4ce4e) I hypothesize that you want to have 4 **configs** corresponding to directories: `\"c...
I_kwDODunzps5Vs_rK
5,207
Connection error of the HuggingFace's dataset Hub due to SSLError with proxy
### Describe the bug It's weird. I could not normally connect the dataset Hub of HuggingFace due to a SSLError in my office. Even when I try to connect using my company's proxy address (e.g., http_proxy and https_proxy), I'm getting the SSLError issue. What should I do to download the datanet stored in Hugg...
OPEN
2022-11-07T06:56:23
2025-03-08T09:04:10
null
https://github.com/huggingface/datasets/issues/5207
{ "login": "leemgs" }
{ "nodes": [] }
[ "Hi ! It looks like an issue with your python environment, can you make sure you're able to run GET requests to https://huggingface.co using `requests` in python ?", "Thanks for your reply. Does this mean that I have to use the `do_dataset `function and the `requests `function to download the dataset from the com...
I_kwDODunzps5VqkvW
5,206
Use logging instead of printing to console
### Describe the bug Some logs ([here](https://github.com/huggingface/datasets/blob/4a6e1fe2735505efc7e3a3dbd3e1835da0702575/src/datasets/builder.py#L778), [here](https://github.com/huggingface/datasets/blob/4a6e1fe2735505efc7e3a3dbd3e1835da0702575/src/datasets/builder.py#L786), and [here](https://github.com/huggingfa...
CLOSED
2022-11-05T23:48:02
2022-11-06T00:06:00
2022-11-06T00:05:59
https://github.com/huggingface/datasets/issues/5206
{ "login": "bilelomrani1" }
{ "nodes": [] }
[ "Actually upon closer inspection, it is documented in the code that this behavior is intentional, so I'll close this." ]
I_kwDODunzps5VqkGL
5,204
`push_to_hub` not propagating `token` through `DownloadConfig`
### Describe the bug When trying to upload a new 🤗 Dataset to the Hub via Python, and providing the `token` as a parameter to the `Dataset.push_to_hub` function, it just works for the first time, assuming that the dataset didn't exist before. But when trying to run `Dataset.push_to_hub` again over the same dataset...
CLOSED
2022-11-05T23:32:20
2022-11-08T10:12:09
2022-11-08T10:12:08
https://github.com/huggingface/datasets/issues/5204
{ "login": "alvarobartt" }
{ "nodes": [] }
[ "#self-assign", "@lhoestq can you close this issue as part of the recent #5205 merge? Thanks 🤗 ", "Thank you :)" ]
I_kwDODunzps5VleIK
5,202
CI fails after bulk edit of canonical datasets
``` ______ test_get_dataset_config_info[paws-labeled_final-expected_splits2] _______ [gw0] linux -- Python 3.7.15 /opt/hostedtoolcache/Python/3.7.15/x64/bin/python path = 'paws', config_name = 'labeled_final' expected_splits = ['train', 'test', 'validation'] @pytest.mark.parametrize( "path, config...
CLOSED
2022-11-04T10:51:20
2023-02-16T09:11:10
2023-02-16T09:11:10
https://github.com/huggingface/datasets/issues/5202
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "Fixed by: https://huggingface.co/datasets/paws/discussions/1" ]
I_kwDODunzps5VlQ0H
5,200
Some links to canonical datasets in the docs are outdated
As we don't have canonical datasets in the github repo anymore, some old links to them doesn't work. I don't know how many of them are there, I found link to SuperGlue here: https://huggingface.co/docs/datasets/dataset_script#multiple-configurations, probably there are more of them. These links should be replaced by li...
CLOSED
2022-11-04T10:06:21
2022-11-07T18:40:20
2022-11-07T18:40:20
https://github.com/huggingface/datasets/issues/5200
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "documentation" } ] }
[ "Thanks for catching this, I can go through the docs and replace the links to their corresponding datasets on the Hub!" ]
I_kwDODunzps5Vd1SE
5,193
"One or several metadata. were found, but not in the same directory or in a parent directory"
### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datasets import load_dataset load_dataset("corentinm7/MyoQuant-SDH-Data") ``` ```python Downlo...
CLOSED
2022-11-02T22:46:25
2022-11-03T13:39:16
2022-11-03T13:35:44
https://github.com/huggingface/datasets/issues/5193
{ "login": "lambda-science" }
{ "nodes": [] }
[ "Also unrelated but still: https://huggingface.co/docs/datasets/image_dataset#generate-the-dataset\r\n```If your loading script passed the test, you should now have a dataset_infos.json file in your dataset folder.```\r\nIt's not the case anymore as it's now in the readme.md, it was confusing to me", "And here is...
I_kwDODunzps5VahFi
5,190
`path` is `None` when downloading a custom audio dataset from the Hub
### Describe the bug I've created an [audio dataset](https://huggingface.co/datasets/lewtun/audio-test-push) using the `audiofolder` feature desribed in the [docs](https://huggingface.co/docs/datasets/audio_dataset#audiofolder) and then pushed it to the Hub. Locally, I can see the `audio.path` feature is of the ...
CLOSED
2022-11-02T11:51:25
2022-11-02T12:55:02
2022-11-02T12:55:02
https://github.com/huggingface/datasets/issues/5190
{ "login": "lewtun" }
{ "nodes": [] }
[ "Hi! Yes, this is expected behavior - we do this as a security measure to not leak local paths (this info would be useless on other users' machines anyways) and only push audio bytes. \r\n" ]
I_kwDODunzps5VZlJ3
5,189
Reduce friction in tabular dataset workflow by eliminating having splits when dataset is loaded
### Feature request Sorry for cryptic name but I'd like to explain using code itself. When I want to load a specific dataset from a repository (for instance, this: https://huggingface.co/datasets/inria-soda/tabular-benchmark) ```python from datasets import load_dataset dataset = load_dataset("inria-soda/tabular-b...
OPEN
2022-11-02T09:15:02
2022-12-06T12:13:17
null
https://github.com/huggingface/datasets/issues/5189
{ "login": "merveenoyan" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "I have to admit I'm not a fan of this idea, as this would result in a non-consistent behavior between tabular and non-tabular datasets, which is confusing if done without the context you provided. Instead, we could consider returning a `Dataset` object rather than `DatasetDict` if there is only one split in the ge...
I_kwDODunzps5VW0XT
5,186
Incorrect error message when Dataset.from_sql fails and sqlalchemy not installed
### Describe the bug When calling `Dataset.from_sql` (in my case, with sqlite3), it fails with a message ```ValueError: Please pass `features` or at least one example when writing data``` when I don't have `sqlalchemy` installed. ### Steps to reproduce the bug Make a new sqlite db with `sqlite3` and `pandas` from...
CLOSED
2022-11-01T20:25:51
2022-11-15T18:24:39
2022-11-15T18:24:39
https://github.com/huggingface/datasets/issues/5186
{ "login": "nateraw" }
{ "nodes": [] }
[ "Hi! The first `Dataset.from_sql` call also outputs the \"ImportError: Using URI string without sqlalchemy installed.\" message, but you also get \"During handling of the above exception another exception occurred: ...\" after which the ValueError is printed. I agree that this behavior makes it easy to miss the ori...
I_kwDODunzps5VWupr
5,185
Allow passing a subset of output features to Dataset.map
### Feature request Currently, map does one of two things to the features (if I'm not mistaken): * when you do not pass features, types are assumed to be equal to the input if they can be cast, and inferred otherwise * when you pass a full specification of features, output features are set to this However, so...
OPEN
2022-11-01T20:07:20
2022-11-01T20:07:34
null
https://github.com/huggingface/datasets/issues/5185
{ "login": "sanderland" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5VUbTS
5,183
Loading an external dataset in a format similar to conll2003
I'm trying to load a custom dataset in a Dataset object, it's similar to conll2003 but with 2 columns only (word entity), I used the following script: features = datasets.Features( {"tokens": datasets.Sequence(datasets.Value("string")), "ner_tags": datasets.Sequence( datasets.featu...
CLOSED
2022-11-01T13:18:29
2022-11-02T11:57:50
2022-11-02T11:57:50
https://github.com/huggingface/datasets/issues/5183
{ "login": "Taghreed7878" }
{ "nodes": [] }
[]
I_kwDODunzps5VS8cr
5,182
Add notebook / other resource links to the task-specific data loading guides
Does it make sense to include links to notebooks / scripts that show how to use a dataset for training / fine-tuning a model? For example, here in [https://huggingface.co/docs/datasets/image_classification] we could include a mention of https://github.com/huggingface/notebooks/blob/main/examples/image_classificatio...
CLOSED
2022-11-01T07:57:26
2022-11-03T01:49:57
2022-11-03T01:49:57
https://github.com/huggingface/datasets/issues/5182
{ "login": "sayakpaul" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Yea this would be great! We would need an object detection tutorial notebook too if it doesn't already exist there. ", "There is one: https://huggingface.co/docs/datasets/object_detection.\r\n\r\nI will start the work. " ]
I_kwDODunzps5VS72e
5,181
Add a guide for semantic segmentation
Currently, we have these guides for object detection and image classification: * https://huggingface.co/docs/datasets/object_detection * https://huggingface.co/docs/datasets/image_classification I am proposing adding a similar guide for semantic segmentation. I am happy to contribute a PR for it. Cc: @os...
CLOSED
2022-11-01T07:54:50
2022-11-04T18:23:36
2022-11-04T18:23:36
https://github.com/huggingface/datasets/issues/5181
{ "login": "sayakpaul" }
{ "nodes": [ { "name": "documentation" } ] }
[ "Sure this sounds great! Would this be pure torchvision, albumentations, or something else?", "I am considering `torchvision` and `albumentations`. Also [works with TensorFlow](https://github.com/deep-diver/segformer-tf-transformers/blob/main/notebooks/TFSegFormer_Finetune.ipynb). \r\n\r\nI am assigning the issue...
I_kwDODunzps5VS4RW
5,180
An example or recommendations for creating large image datasets?
I know that Apache Beam and `datasets` have [some connector utilities](https://huggingface.co/docs/datasets/beam). But it's a little unclear what we mean by "But if you want to run your own Beam pipeline with Dataflow, here is how:". What does that pipeline do? As a user, I was wondering if we have this support for...
OPEN
2022-11-01T07:38:38
2022-11-02T10:17:11
null
https://github.com/huggingface/datasets/issues/5180
{ "login": "sayakpaul" }
{ "nodes": [] }
[ "The beam utilities allow to prepare a dataset as parquet in your cloud storage. From my perspective this CLI is not super easy to use, but we've been working on a new python API to prepare a dataset in your cloud storage:\r\n```python\r\nfrom datasets import load_dataset_builder\r\n\r\nbuilder = load_dataset_build...
I_kwDODunzps5VSKx0
5,179
`map()` fails midway due to format incompatibility
### Describe the bug I am using the `emotion` dataset from Hub for sequence classification. After training the model, I am using it to generate predictions for all the entries present in the `validation` split of the dataset. ```py def get_test_accuracy(model): def fn(batch): inputs = {k:v.to(device...
CLOSED
2022-11-01T03:57:59
2022-11-08T11:35:26
2022-11-08T11:35:26
https://github.com/huggingface/datasets/issues/5179
{ "login": "sayakpaul" }
{ "nodes": [ { "name": "bug" } ] }
[ "Cc: @lhoestq ", "You can end up with a list instead of a tensor if all the tensors inside the list can't be stacked together - can you make sure all your inputs are tensors with the same shape ?", "Is there an easy way to ensure it?", "You can make sure your `tokenize` function always return tensors of the s...
I_kwDODunzps5VSEmq
5,178
Unable to download the Chinese `wikipedia`, the dumpstatus.json not found!
### Describe the bug I tried: `data = load_dataset('wikipedia', '20220301.zh', beam_runner='DirectRunner')` and `data = load_dataset("wikipedia", language="zh", date="20220301", beam_runner='DirectRunner')` but both got: `FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/zhwiki/20220301/dumpsta...
CLOSED
2022-11-01T03:17:55
2022-11-02T08:27:15
2022-11-02T08:24:29
https://github.com/huggingface/datasets/issues/5178
{ "login": "beyondguo" }
{ "nodes": [] }
[ "In the dumps page of the wiki (https://dumps.wikimedia.org/zhwiki/), I found the following dumps:\r\n```\r\nIndex of /zhwiki/\r\n[../](https://dumps.wikimedia.org/)\r\n[20220701/](https://dumps.wikimedia.org/zhwiki/20220701/) 21-Aug-2022 01:48 -\r\n[202207...
I_kwDODunzps5VP1eL
5,176
prepare dataset for cloud storage doesn't work
### Describe the bug Following the [documentation](https://huggingface.co/docs/datasets/filesystems#load-and-save-your-datasets-using-your-cloud-storage-filesystem) and [this PR](https://github.com/huggingface/datasets/pull/4724), I was downloading and storing huggingface dataset to cloud storage. ``` from datasets ...
CLOSED
2022-10-31T17:28:57
2023-03-28T09:11:46
2023-03-28T09:11:45
https://github.com/huggingface/datasets/issues/5176
{ "login": "araonblake" }
{ "nodes": [] }
[ "It looks like an issue with `gcsfs`, are you able to instantiate a `GCSFileSystem` manually ?", "closing since it was probably due to gcsfs" ]
I_kwDODunzps5VKCyn
5,175
Loading an external NER dataset
I need to use huggingface datasets to load a custom dataset similar to conll2003 but with more entities and each the files contain only two columns: word and ner tag. I tried this code snnipet that I found here as an answer to a similar issue: from datasets import Dataset INPUT_COLUMNS = "ID Text NER".split() ...
CLOSED
2022-10-30T09:31:55
2022-11-01T13:15:49
2022-11-01T13:15:49
https://github.com/huggingface/datasets/issues/5175
{ "login": "Taghreed7878" }
{ "nodes": [] }
[]
I_kwDODunzps5U98Gq
5,172
Inconsistency behavior between handling local file protocol and other FS protocols
### Describe the bug These lines us used during load_from_disk: ``` if is_remote_filesystem(fs): dest_dataset_dict_path = extract_path_from_uri(dataset_dict_path) else: fs = fsspec.filesystem("file") dest_dataset_dict_path = dataset_dict_path ``` If a local FS is given, then it will the URL as th...
OPEN
2022-10-27T12:03:20
2024-05-08T19:31:13
null
https://github.com/huggingface/datasets/issues/5172
{ "login": "leoleoasd" }
{ "nodes": [] }
[]