Cannot load "Idaho Camera Traps"

#2
by stefanistrate - opened

Hi!

It seems that "Idaho Camera Traps" is misconfigured. When I call the following:

datasets.load_dataset("society-ethics/lila_camera_traps", "Idaho Camera Traps")

I encounter the following error:

Downloading and preparing dataset lila_camera_traps/Idaho Camera Traps to /Users/istefan/.cache/huggingface/datasets/society-ethics___lila_camera_traps/Idaho Camera Traps/1.0.0/bda8338f13abad112b29eeee3721cc60aca059eb056c2fab30780fe1f4b7133e...
Traceback (most recent call last):
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/builder.py", line 1625, in _prepare_split_single
    example = self.info.features.encode_example(record) if self.info.features is not None else record
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/features/features.py", line 1809, in encode_example
    return encode_nested_example(self, example)
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/features/features.py", line 1212, in encode_nested_example
    {
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/features/features.py", line 1212, in <dictcomp>
    {
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 302, in zip_dict
    yield key, tuple(d[key] for d in dicts)
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 302, in <genexpr>
    yield key, tuple(d[key] for d in dicts)
KeyError: 'original_relative_path'

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

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/load.py", line 1782, in load_dataset
    builder_instance.download_and_prepare(
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/builder.py", line 872, in download_and_prepare
    self._download_and_prepare(
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/builder.py", line 1649, in _download_and_prepare
    super()._download_and_prepare(
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/builder.py", line 967, in _download_and_prepare
    self._prepare_split(split_generator, **prepare_split_kwargs)
  File "/Users/istefan/workspace/lila-camera-traps/.env/lib/python3.9/site-packages/datasets/builder.py", line 1488, in _prepare_split
    for job_id, done, content in self._prepare_split_single(
  File "/Users/istefan/workspace/lila-camera-traps/.env/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

Ștefan

Society & Ethics org

Whoops, thanks for catching that! Looks like I'd left a wrong feature in the Idaho configuration. I've pushed a fix, should be all good now but let me know if you still run into issues!

All good now, thanks!

stefanistrate changed discussion status to closed

Sign up or log in to comment