<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/python/metadata_writers/__init__.py) |

TF Lite Metadata Writer API.

This module provides interfaces for writing metadata for common model types
supported by the task library, such as:

- Image classification
- Object detection
- Image segmentation
- (Bert) Natural language classification
- Audio classification

It is provided as part of the `tflite-support` package:

    pip install tflite-support

Learn more about this API in the [metadata writer
tutorial](https://www.tensorflow.org/lite/convert/metadata_writer_tutorial).

## Modules

[`audio_classifier`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/audio_classifier) module: Writes metadata and label file to the audio classifier models.

[`bert_nl_classifier`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/bert_nl_classifier) module: Writes metadata and label file to the Bert NL classifier models.

[`image_classifier`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/image_classifier) module: Writes metadata and label file to the image classifier models.

[`image_segmenter`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/image_segmenter) module: Writes metadata and label file to the image segmenter models.

[`metadata_info`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/metadata_info) module: Helper classes for common model metadata information.

[`nl_classifier`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/nl_classifier) module: Writes metadata and label file to the NL classifier models.

[`object_detector`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/object_detector) module: Writes metadata and label file to the object detector models.

[`writer_utils`](https://developers.google.com/edge/api/tflite/python/tflite_support/metadata_writers/writer_utils) module: Helper methods for writing metadata into TFLite models.