v3.0.0
·
4518 commits
to master
since this release
Breaking changes:
- Legacy mode
tfds.experiment.S3has been removed - New
image_classificationsection. Some datasets have been move there fromimages. in_memoryargument has been removed fromas_dataset/tfds.load(small datasets are now auto-cached).DownloadConfigdo 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.downloadurls has registered checksums. To opt-out, addSKIP_CHECKSUMS = Trueto yourDatasetBuilderTestCase. tfds.loadnow 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.ALLhas been removed from the API.
Future breaking change:
- The
tfds.features.textencoding API is deprecated. Please use tensorflow_text instead. num_shardsargument oftfds.core.SplitGeneratoris currently ignored and will be removed in the next version.
Features:
DownloadManageris 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!