Spaces:
Runtime error
A newer version of the Gradio SDK is available:
5.9.1
TensorFlow Official Models
The TensorFlow official models are a collection of models that use TensorFlow’s high-level APIs. They are intended to be well-maintained, tested, and kept up to date with the latest TensorFlow API.
They should also be reasonably optimized for fast performance while still being easy to read. These models are used as end-to-end tests, ensuring that the models run with the same or improved speed and performance with each new TensorFlow build.
The API documentation of the latest stable release is published to tensorflow.org.
More models to come!
The team is actively developing new models. In the near future, we will add:
- State-of-the-art language understanding models.
- State-of-the-art image classification models.
- State-of-the-art object detection and instance segmentation models.
- State-of-the-art video classification models.
Table of Contents
Models and Implementations
Computer Vision
Image Classification
Object Detection and Segmentation
Video Classification
Model | Reference (Paper) |
---|---|
Mobile Video Networks (MoViNets) | MoViNets: Mobile Video Networks for Efficient Video Recognition |
Natural Language Processing
Pre-trained Language Model
Neural Machine Translation
Model | Reference (Paper) |
---|---|
Transformer | Attention Is All You Need |
Natural Language Generation
Model | Reference (Paper) |
---|---|
NHNet (News Headline generation model) | Generating Representative Headlines for News Stories |
Knowledge Distillation
Model | Reference (Paper) |
---|---|
MobileBERT | MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices |
Recommendation
How to get started with the official models
- The official models in the master branch are developed using
master branch of TensorFlow 2.
When you clone (the repository) or download (
pip
binary) master branch of official models , master branch of TensorFlow gets downloaded as a dependency. This is equivalent to the following.
pip3 install tf-models-nightly
pip3 install tensorflow-text-nightly # when model uses `nlp` packages
- Incase of stable versions, targeting a specific release, Tensorflow-models repository version numbers match with the target TensorFlow release. For example, TensorFlow-models v2.8.x is compatible with TensorFlow v2.8.x. This is equivalent to the following:
pip3 install tf-models-official==2.8.0
pip3 install tensorflow-text==2.8.0 # when models in uses `nlp` packages
Starting from 2.9.x release, we release the modeling library as
tensorflow_models
package and users can import tensorflow_models
directly to
access to the exported symbols. If you are
using the latest nightly version or github code directly, please follow the
docstrings in the github.
Please follow the below steps before running models in this repository.
Requirements
- The latest TensorFlow Model Garden release and the latest TensorFlow 2
- If you are on a version of TensorFlow earlier than 2.2, please upgrade your TensorFlow to the latest TensorFlow 2.
- Python 3.7+
Our integration tests run with Python 3.7. Although Python 3.6 should work, we don't recommend earlier versions.
Installation
Please check here for the instructions.
Available pypi packages:
- tf-models-official
- tf-models-nightly: nightly release with the latest changes.
- tf-models-no-deps: without
tensorflow
andtensorflow-text
in theinstall_requires
list.
Contributions
If you want to contribute, please review the contribution guidelines.