Error when loading and preparing the dataset
#1
by
adymaharana
- opened
Hi Team,
Thank you for releasing this dataset! I am facing an error when trying to load and read from this repository. Any help with this is much appreciated! My datasets version is 2.18.0
>>> dataset = load_dataset('Vision-Flan/vision-flan_191-task_1k')
Generating train split: 186103 examples [00:13, 13842.29 examples/s]
Traceback (most recent call last):
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/packaged_modules/json/json.py", line 121, in _generate_tables
pa_table = paj.read_json(
File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Invalid value. in row 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/builder.py", line 1973, in _prepare_split_single
for _, table in generator:
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/packaged_modules/json/json.py", line 144, in _generate_tables
dataset = json.load(f)
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/load.py", line 2582, in load_dataset
builder_instance.download_and_prepare(
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/builder.py", line 1005, in download_and_prepare
self._download_and_prepare(
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/builder.py", line 1100, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/builder.py", line 1860, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/playpen/adyasha/anaconda3/envs/llava/lib/python3.10/site-packages/datasets/builder.py", line 2016, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset