Datasets:
NotADirectoryError: [Errno 20] Not a directory
Downloading and preparing dataset diffusiondb/2m_first_100k to /opt/data/private/LDM/model/ClipCAP/../../data/poloclub___diffusiondb/2m_first_100k/0.9.1/b3bc1e64570dc7149af62c4bac49ecfbce16b683dd4fee083292fae1afa95f7c...
Generating train split: 15992 examples [00:53, 297.75 examples/s]Traceback (most recent call last):
File "/root/anaconda3/lib/python3.9/site-packages/datasets/builder.py", line 1608, in _prepare_split_single
for key, record in generator:
File "/root/.cache/huggingface/modules/datasets_modules/datasets/poloclub--diffusiondb/b3bc1e64570dc7149af62c4bac49ecfbce16b683dd4fee083292fae1afa95f7c/diffusiondb.py", line 380, in _generate_examples
json_data = load(open(cur_json_path, "r", encoding="utf8"))
File "/root/anaconda3/lib/python3.9/site-packages/datasets/streaming.py", line 70, in wrapper
return function(*args, use_auth_token=use_auth_token, **kwargs)
File "/root/anaconda3/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 482, in xopen
return open(main_hop, mode, *args, **kwargs)
NotADirectoryError: [Errno 20] Not a directory: '../../data/downloads/02320dce6cc5623c2842b376c3cf1835643ce49328af9876138d995d291e08c5/part-000018.json'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/data/private/LDM/model/ClipCAP/Data.py", line 111, in
exit(ClipDiffusionDB(args.clip_model_type))
File "/opt/data/private/LDM/model/ClipCAP/Data.py", line 70, in ClipDiffusionDB
dataset = load_dataset(
File "/root/anaconda3/lib/python3.9/site-packages/datasets/load.py", line 1782, in load_dataset
builder_instance.download_and_prepare(
File "/root/anaconda3/lib/python3.9/site-packages/datasets/builder.py", line 872, in download_and_prepare
self._download_and_prepare(
File "/root/anaconda3/lib/python3.9/site-packages/datasets/builder.py", line 1649, in _download_and_prepare
super()._download_and_prepare(
File "/root/anaconda3/lib/python3.9/site-packages/datasets/builder.py", line 967, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/root/anaconda3/lib/python3.9/site-packages/datasets/builder.py", line 1488, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/root/anaconda3/lib/python3.9/site-packages/datasets/builder.py", line 1644, 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
When splitting to example 15992, this error occurs. We use the 2m_first_100k dataset.
Deleting the '02320dce6cc5623c2842b376c3cf1835643ce49328af9876138d995d291e08c5' and download again can solve this problem