tensorflow / datasets

TFDS is a collection of datasets ready to use with TensorFlow, Jax, ...
https://www.tensorflow.org/datasets
Apache License 2.0
4.27k stars 1.53k forks source link

Unable to load "time_series.smartwatch_gestures" #4062

Open wkaisertexas opened 2 years ago

wkaisertexas commented 2 years ago

I am trying to load time_series dataset for smartwatch_gestures.

Using the following code, I was trying to load the dataset using tfds-nightly

train, test, val = tfds.load('smartwatch_gestures', split=['train[:80%]', 'train[80%:95%]', 'train[95%:]'], as_supervised=True, shuffle_files=True)

It is unable to find the datasets despite being listed in the TesnorFlow Datasets Catalog

Error Message:

RuntimeError: NotFoundError: Failed to construct dataset smartwatch_gestures: /opt/conda/lib/python3.7/site-packages/tensorflow_datasets/time_series/smartwatch_gestures/class_labels.txt; No such file or directory
Chinedu-E commented 2 years ago

I had the same issue. You're missing the class_labels.txt file, I was missing it too but it's here on github..

Copy and paste the file to the location of your package. in your case, /opt/conda/lib/python3.7/site-packages/tensorflow_datasets/time_series/smartwatch_gestures/

Conchylicultor commented 2 years ago

Thanks for reporting, the issue is that we forgot to upload the file here: https://github.com/tensorflow/datasets/blob/e5ca78ccef0c7715600e014934198afc30988a95/setup.py#L103

andreped commented 2 years ago

Thanks for reporting, the issue is that we forgot to upload the file here:

Has this now been fixed for any of the new releases?


EDIT: It does not seem to be in the latest release, but available in the nightly.