Using the dataset API
#1
by
robfiras
- opened
Hi!
the datasets looks amazing, thanks for that! I would like to try it out, but currently I can not download the dataset using the huggingface datasetn api:
from datasets import load_dataset
# Load the dataset from Hugging Face
dataset = load_dataset("unitreerobotics/LAFAN1_Retargeting_Dataset", data_dir="h1")
I get the following error:
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 36 new columns ({'1.171921', '0.093906', '-0.190791', '-0.096474', '-1.661460', '1.117313', '1.710336', '0.179874', '0.446640', '-0.003180', '-0.320937', '-0.000128', '-0.083894', '0.370233', '0.010702', '-0.300216', '0.002137', '-0.210048', '0.003238', '-0.070976', '-0.171327', '-0.005507', '-0.009570', '-0.200741', '-0.041495', '0.319062', '-0.145459', '0.416376', '0.779868', '0.134352', '0.023534', '-0.048090', '-0.278292', '0.000606', '0.997195', '-0.306177'}) and 36 missing columns ({'-0.119414', '0.799087', '-0.017476', '0.000098', '0.016061', '1.220329', '0.000167', '0.060532', '-0.068885', '0.229778', '0.001142', '-1.454644', '-0.023962', '0.004109', '0.999755', '-0.004409', '0.002375', '0.039829', '-0.172469', '0.281551', '0.021641', '0.176276', '0.040313', '-0.162874', '-0.006092', '0.069432', '0.206674', '-0.097473', '-0.180823', '0.196130', '-0.385817', '-0.000161', '0.166431', '0.063265', '1.374207', '1.474532'}).
This happened while the csv dataset builder was generating data using
hf://datasets/unitreerobotics/LAFAN1_Retargeting_Dataset/g1/dance1_subject2.csv (at revision d4da0161e39e42859148a51bcdf6d74273d2bc01)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Any idea how to resolve this, or how did you intend to download this dataset?