v3.0.0
Conchylicultor
released this
16 Apr 03:03
·
4263 commits
to master
since this release
Breaking changes:
- Legacy mode
tfds.experiment.S3
has been removed - New
image_classification
section. Some datasets have been move there fromimages
. in_memory
argument has been removed fromas_dataset
/tfds.load
(small datasets are now auto-cached).DownloadConfig
do not append the dataset name anymore (manual data should be in<manual_dir>/
instead of<manual_dir>/<dataset_name>/
)- Tests now check that all
dl_manager.download
urls has registered checksums. To opt-out, addSKIP_CHECKSUMS = True
to yourDatasetBuilderTestCase
. tfds.load
now always returnstf.compat.v2.Dataset
. If you're using still usingtf.compat.v1
:- Use
tf.compat.v1.data.make_one_shot_iterator(ds)
rather thands.make_one_shot_iterator()
- Use
isinstance(ds, tf.compat.v2.Dataset)
instead ofisinstance(ds, tf.data.Dataset)
- Use
tfds.Split.ALL
has been removed from the API.
Future breaking change:
- The
tfds.features.text
encoding API is deprecated. Please use tensorflow_text instead. num_shards
argument oftfds.core.SplitGenerator
is currently ignored and will be removed in the next version.
Features:
DownloadManager
is now pickable (can be used inside Beam pipelines)tfds.features.Audio
:- Support float as returned value
- Expose sample_rate through
info.features['audio'].sample_rate
- Support for encoding audio features from file objects
- Various bug fixes, better error messages, documentation improvements
- More datasets
Thank you to all our contributors for helping us make TFDS better for everyone!