From <builder_dir>/features.json it infers the structure (feature names,
nested dict,...) and content (image, sequence,...) of the dataset. The
serialization format is defined in
tfds.features.FeatureConnector in to_json().
Args
builder_dir
str, path of the directory containing the dataset to read (
e.g. ~/tensorflow_datasets/mnist/3.0.0/).
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tfds.builder_from_directory\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/core/read_only_builder.py#L115-L138) |\n\nLoads a [`tfds.core.DatasetBuilder`](../tfds/core/DatasetBuilder) from the given generated dataset path. \n\n tfds.builder_from_directory(\n builder_dir: ../tfds/typing/PathLike\n ) -\u003e ../tfds/core/DatasetBuilder\n\nReconstructs the [`tfds.core.DatasetBuilder`](../tfds/core/DatasetBuilder) without requiring the original\ngeneration code.\n\nFrom `\u003cbuilder_dir\u003e/features.json` it infers the structure (feature names,\nnested dict,...) and content (image, sequence,...) of the dataset. The\nserialization format is defined in\n[`tfds.features.FeatureConnector`](../tfds/features/FeatureConnector) in `to_json()`.\n| **Note:** This function only works for datasets generated with TFDS `4.0.0` or above.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|-----------------------------------------------------------------------------------------------------------|\n| `builder_dir` | `str`, path of the directory containing the dataset to read ( e.g. `~/tensorflow_datasets/mnist/3.0.0/`). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|-----------|---------------------------------------------------------------------------------------------------|\n| `builder` | [`tfds.core.DatasetBuilder`](../tfds/core/DatasetBuilder), builder for dataset at the given path. |\n\n\u003cbr /\u003e"]]