skillfed

tensorflow-datasets

tensorflow/datasets is a library of datasets ready to use with TensorFlow.

tensorflow-datasets v4.9.10 1.8M downloads/30d#3,579 on PyPI4,581
Permissive license Apache 2.0 Active released

What it is and what it does

TensorFlow Datasets is a library that provides standardized access to many public datasets, automatically handling download and preparation into tf.data.Dataset objects ready for training pipelines. It wraps datasets from various sources and exposes them through a simple API, letting you load data like MNIST or other benchmarks with a single function call, then chain standard TensorFlow operations like shuffle, batch, and prefetch.

The library emphasizes simplicity for standard use cases, reproducibility (all users get the same examples in the same order), and performance by following TensorFlow best practices. It has 18 runtime dependencies including numpy, pyarrow, and tensorflow-metadata, and requires Python 3.10 or later. The package is actively maintained and carries no known security vulnerabilities.

Use it for:

  • Load benchmark datasets like MNIST or CIFAR for quick prototyping and model evaluation.
  • Build reproducible input pipelines for training by ensuring deterministic dataset ordering across runs.
  • Access a curated catalog of public datasets without manually downloading or preprocessing files.
  • Integrate datasets into tf.data pipelines with standard operations like batching and prefetching.
  • Prepare datasets for distributed training by leveraging TFDS's performance-optimized loading.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides access to many public datasets as tf.data.Datasets, handling download, preparation, and loading for TensorFlow workflows.

Yes. The package is actively maintained, has no known vulnerabilities, and low install friction. It solves a real problem—standardized dataset access for TensorFlow workflows—with a permissive license. Install it if you work with TensorFlow and need quick access to public datasets; skip it only if you manage datasets entirely through custom pipelines.

Install

tensorflow-datasets on PyPI

pip

pip install tensorflow-datasets

uv

uv add tensorflow-datasets

poetry

poetry add tensorflow-datasets

Installing tensorflow-datasets

Before you install

Low install friction with a pure-Python wheel. Active maintenance (last commit 2026-07-29) and 18 runtime dependencies including numpy, pyarrow, and tensorflow-metadata. Requires Python 3.10 or later.

License in practice

Apache 2.0 permissive license. Users are responsible for determining their own permission to use each underlying dataset; the library itself is freely usable and modifiable.

Quickstart

pip install tensorflow-datasets
import tensorflow_datasets as tfds
ds = tfds.load('mnist', split='train', as_supervised=True, shuffle_files=True)
ds = ds.shuffle(1000).batch(128).prefetch(10)

Requires Python 3.10 or later and TensorFlow installed separately.

Verify before relying

  • Whether all advertised datasets in the catalog are currently available and maintained.
  • Performance characteristics and download speeds for large datasets.
  • Compatibility with specific TensorFlow versions beyond the Python requirement.

Package facts

License Apache 2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 18 — absl-py, array_record, dm-tree, etils, immutabledict, numpy, promise, protobuf, psutil, pyarrow, requests, simple_parsing, tensorflow-metadata, termcolor, toml, tqdm, wrapt, importlib_resources
Maintenance actively maintained — 98 days since the last release
Last repo commit
First released
Downloads 1,764,589/month — #3,579 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: tensorflow_datasets-4.9.10-py3-none-any.whl

Keywords: tensorflow, machine, learning, datasets

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Scientific/Engineering :: Artificial Intelligence

Tags

tensorflow datasets loaderpublic datasets for machine learningtf.data.Dataset ready-to-usedownload and prepare datasetsmachine learning dataset catalogtensorflow data pipelinedataset management for tensorflow
tensorflowdatasetsmachine-learning

More Artificial Intelligence packages