Datasets:
load dataset error
Hi, I tried to run this scirpt:
from datasets import load_dataset
dataset = load_dataset("food101", split="train[:100]")
dataset[0]["image"]
i ran this in spyder and it returns this error:
for job_id, done, content in self._prepare_split_single(
File ~\anaconda3\envs\HF\Lib\site-packages\datasets\builder.py:1644 in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
DatasetGenerationError: An error occurred while generating the dataset
anyone knows what's wrong with this?
I get the same error. I solve it by downloading the dataset to my system by using --> "huggingface-cli download --repo-type dataset --resume-download ethz/food101". Then you can load the dataset from local by "dataset = load_dataset("path_to_your_dataset_dir/food101", split="train[:10]")".