
shi-labs/oneformer_coco_swin_large
•
Updated
•
211
Error code: SplitsNamesError Exception: SplitsNotFoundError Message: The split names could not be parsed from the dataset config. Traceback: Traceback (most recent call last): File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 388, in get_dataset_config_info for split_generator in builder._split_generators( File "/tmp/modules-cache/datasets_modules/datasets/ydshieh--coco_dataset_script/e033205c0266a54c10be132f9264f2a39dcf893e798f6756d224b1ff5078998f/coco_dataset_script.py", line 112, in _split_generators raise ValueError( ValueError: This script is supposed to work with local (downloaded) COCO dataset. The argument `data_dir` in `load_dataset()` is required. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/src/workers/datasets_based/src/datasets_based/workers/splits.py", line 119, in compute_splits_response split_items = get_dataset_split_full_names(dataset=dataset, use_auth_token=use_auth_token) File "/src/workers/datasets_based/src/datasets_based/workers/splits.py", line 76, in get_dataset_split_full_names return [ File "/src/workers/datasets_based/src/datasets_based/workers/splits.py", line 79, in <listcomp> for split in get_dataset_split_names(path=dataset, config_name=config, use_auth_token=use_auth_token) File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 442, in get_dataset_split_names info = get_dataset_config_info( File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 393, in get_dataset_config_info raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
Need help to make the dataset viewer work? Open an discussion for direct support.
For testing purpose, you can use the hosted dummy dataset (dummy_data
) as follows:
import datasets
ds = datasets.load_dataset("ydshieh/coco_dataset_script", "2017", data_dir="./dummy_data/")
For using the COCO dataset (2017), you need to download it manually first:
wget http://images.cocodataset.org/zips/train2017.zip
wget http://images.cocodataset.org/zips/val2017.zip
wget http://images.cocodataset.org/zips/test2017.zip
wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip
wget http://images.cocodataset.org/annotations/image_info_test2017.zip
Then to load the dataset:
COCO_DIR = ...(path to the downloaded dataset directory)...
ds = datasets.load_dataset("ydshieh/coco_dataset_script", "2017", data_dir=COCO_DIR)