datasets icon indicating copy to clipboard operation
datasets copied to clipboard

Unable to load "time_series.smartwatch_gestures"

Open wkaisertexas opened this issue 1 year ago • 3 comments

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

wkaisertexas avatar Aug 09 '22 02:08 wkaisertexas

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/

Chinedu-E avatar Aug 13 '22 19:08 Chinedu-E

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

Conchylicultor avatar Aug 13 '22 22:08 Conchylicultor

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.

andreped avatar Sep 07 '22 15:09 andreped