Load error

#2
by TypeY - opened

I downloaded all files from hub to a dir, and load them with:

from datasets import load_dataset#, Audio
dataset = load_dataset(r"my dir/data")

And I got this error:

File ...\Python\Python310\lib\site-packages\datasets\load.py:1024, in LocalDatasetModuleFactoryWithoutScript.get_module(self)
1018 patterns = get_data_patterns(base_path)
1019 data_files = DataFilesDict.from_patterns(
1020 patterns,
1021 base_path=base_path,
1022 allowed_extensions=ALL_ALLOWED_EXTENSIONS,
1023 )
-> 1024 module_name, default_builder_kwargs = infer_module_for_data_files(
1025 data_files=data_files,
1026 path=self.path,
1027 )
1028 data_files = data_files.filter_extensions(_MODULE_TO_EXTENSIONS[module_name])
1029 # Collect metadata files if the module supports them
...
--> 589 raise ValueError(f"Couldn't infer the same data file format for all splits. Got {split_modules}")
590 if not module_name:
591 raise DataFilesNotFoundError("No (supported) data files found" + (f" in {path}" if path else ""))

ValueError: Couldn't infer the same data file format for all splits. Got {NamedSplit('train'): ('audiofolder', {}), NamedSplit('validation'): ('json', {}), NamedSplit('test'): ('json', {})}

However, load of any individual file is okay.

TypeY changed discussion status to closed
ShoukanLabs org

Hmm odd, this might be a problem with hugging faces default load system, as we haven't implemented our own loading script

Sign up or log in to comment