Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
1M<n<10M
Language Creators:
crowdsourced
Annotations Creators:
crowdsourced
Source Datasets:
original
ArXiv:
Tags:
License:

Error while generating the datasets.

#3
by PY007 - opened

Downloading and preparing dataset imagenet-1k/default to /root/.cache/huggingface/datasets/imagenet-1k/default/1.0.0/a1e9bfc56c3a7350165007d1176b15e9128fcaf9ab972147840529aed3ae52bc...
Downloading data: 10%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 2.97G/29.0G [07:39<1:07:04, 6.48MB/s]
Downloading data: 2%|β–ˆ | 514M/29.2G [06:19<5:53:22, 1.35MB/s]
Downloading data: 1%|β–‹ | 345M/29.1G [02:09<2:59:53, 2.67MB/s]
Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 6.67G/6.67G [13:49<00:00, 8.04MB/s]
Downloading data: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 13.5G/13.5G [35:45<00:00, 6.31MB/s]
Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3/3 [1:06:46<00:00, 1335.57s/it]
Generating train split: 36%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰ | 465123/1281167 [07:32<18:56, 718.11 examples/s]Traceback (most recent call last):
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/site-packages/datasets/builder.py", line 1514, in _prepare_split_single
for key, record in generator:
File "/root/.cache/huggingface/modules/datasets_modules/datasets/imagenet-1k/a1e9bfc56c3a7350165007d1176b15e9128fcaf9ab972147840529aed3ae52bc/imagenet-1k.py", line 118, in _generate_examples
ex = {"image": {"path": path, "bytes": file.read()}, "label": label}
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/tarfile.py", line 686, in read
raise ReadError("unexpected end of data")
tarfile.ReadError: unexpected end of data

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "image_classification.py", line 396, in
main()
File "image_classification.py", line 227, in main
dataset = load_dataset(
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/site-packages/datasets/builder.py", line 913, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/site-packages/datasets/builder.py", line 1396, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/root/miniconda3/envs/T5Adapt/lib/python3.8/site-packages/datasets/builder.py", line 1550, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.builder.DatasetGenerationError: An error occurred while generating the dataset

try load_dataset("imagenet-1k", use_auth_token = True)

apparantly, its a dataset accessible by permission only, for which we have to pass in the access token as well

@PY007 I have the same error, did you find a workaround ?

@laurendudu Yeah, I managed to bypass it using git lfs and load the dataset from a local path.
I guess the error is caused by network fluctuation.

PY007 changed discussion status to closed

Sign up or log in to comment