Open
Description
/!\ PLEASE INCLUDE THE FULL STACKTRACE AND CODE SNIPPET
Short description
tfds plant_leaves is not getting loaded successfully. It's throwing NotImplementedError. Tried on May 16, 2024
Environment information
-
Operating System: Windows 11
-
Python version: 3.10.12
-
tensorflow-datasets
/tfds-nightly
version: 4.9.4 -
tensorflow
/tf-nightly
version: version: 2.15.0 -
Does the issue still exists with the last
tfds-nightly
package (pip install --upgrade tfds-nightly
) ? Yup
Reproduction instructions
import tensorflow_datasets as tfds
plant_leaves = tfds.load('plant_leaves', split='train', shuffle_files=True)
Gives:
Downloading and preparing dataset 6.56 GiB (download: 6.56 GiB, generated: 6.81 GiB, total: 13.37 GiB) to /root/tensorflow_datasets/plant_leaves/0.1.1...
Dl Completed...: 100%
1/1 [10:04<00:00, 604.39s/ url]
Dl Size...: 100%
6718/6718 [10:04<00:00, 11.25 MiB/s]
Dataset plant_leaves downloaded and prepared to /root/tensorflow_datasets/plant_leaves/0.1.1. Subsequent calls will reuse this data.
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
[<ipython-input-3-d88d46497437>](https://localhost:8080/#) in <cell line: 2>()
1 import tensorflow_datasets as tfds
----> 2 plant_leaves = tfds.load('plant_leaves', split='train', shuffle_files=True)
33 frames
[/usr/local/lib/python3.10/dist-packages/tensorflow_datasets/core/file_adapters.py](https://localhost:8080/#) in make_tf_data(cls, filename, buffer_size)
206 ) -> tf.data.Dataset:
207 """Returns TensorFlow Dataset comprising given array record file."""
--> 208 raise NotImplementedError(
209 '`.as_dataset()` not implemented for ArrayRecord files. Please, use'
210 ' `.as_data_source()`.'
NotImplementedError: `.as_dataset()` not implemented for ArrayRecord files. Please, use `.as_data_source()`.
Expected behavior
To load dataset successfully.
Activity