Dataset Viewer issue: ConfigNamesError

#2
by MadCodex - opened

The dataset viewer is not working.

Error details:

Error code:   ConfigNamesError
Exception:    ValueError
Message:      Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): (None, {}), NamedSplit('validation'): ('imagefolder', {}), NamedSplit('test'): ('imagefolder', {})}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
                  get_dataset_config_names(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 347, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1846, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1821, in dataset_module_factory
                  return HubDatasetModuleFactoryWithoutScript(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1215, in get_module
                  module_name, default_builder_kwargs = infer_module_for_data_files(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 589, in infer_module_for_data_files
                  raise ValueError(f"Couldn't infer the same data file format for all splits. Got {split_modules}")
              ValueError: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): (None, {}), NamedSplit('validation'): ('imagefolder', {}), NamedSplit('test'): ('imagefolder', {})}

cc @albertvillanova @lhoestq @severo .

Hi. Due to their names, the three root directories are detected as three splits (train, val and test). But their content structures are different, which is not supported: all the splits are assumed to have the same set of columns and types.

You can help our auto-detection by configuring the dataset viewer. Read more at https://huggingface.co/docs/hub/datasets-data-files-configuration

Sign up or log in to comment