Dataset Viewer issue

#8
by cv300 - 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('test'): ('json', {})}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 55, in compute_config_names_response
                  for config in sorted(get_dataset_config_names(path=dataset, token=hf_token))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 351, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1512, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1489, in dataset_module_factory
                  return HubDatasetModuleFactoryWithoutScript(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1054, 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 513, 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('test'): ('json', {})}

cc @albertvillanova @lhoestq @severo .

Unable to load the dataset from huggingface-hub using the datasets package

>>> from datasets import load_dataset_builder
>>> ds_builder = load_dataset_builder("CLAP_freesound")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/home/acw532/venvs/ssl/lib/python3.10/site-packages/datasets/load.py", line 1814, in load_dataset_builder
    dataset_module = dataset_module_factory(
  File "/data/home/acw532/venvs/ssl/lib/python3.10/site-packages/datasets/load.py", line 1507, in dataset_module_factory
    raise FileNotFoundError(
FileNotFoundError: Couldn't find a dataset script at /data/home/acw532/CLAP_freesound/CLAP_freesound.py or any data file in the same directory. Couldn't find 'CLAP_freesound' on the Hugging Face Hub either: FileNotFoundError: Dataset 'CLAP_freesound' doesn't exist on the Hub
>>> ds_builder = load_dataset_builder("Meranti/CLAP_freesound")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/home/acw532/venvs/ssl/lib/python3.10/site-packages/datasets/load.py", line 1814, in load_dataset_builder
    dataset_module = dataset_module_factory(
  File "/data/home/acw532/venvs/ssl/lib/python3.10/site-packages/datasets/load.py", line 1511, in dataset_module_factory
    raise e1 from None
  File "/data/home/acw532/venvs/ssl/lib/python3.10/site-packages/datasets/load.py", line 1495, in dataset_module_factory
    ).get_module()
  File "/data/home/acw532/venvs/ssl/lib/python3.10/site-packages/datasets/load.py", line 1053, in get_module
    module_name, default_builder_kwargs = infer_module_for_data_files(
  File "/data/home/acw532/venvs/ssl/lib/python3.10/site-packages/datasets/load.py", line 512, 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('test'): ('json', {})}

Hi @cv300 ,

If you are trying to create an audio dataset, you have the information about the right folder structure in our docs: https://huggingface.co/docs/datasets/audio_dataset

Sign up or log in to comment