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 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 objection detection and instance segmentation models.
Model | Reference (Paper) |
---|---|
MNIST | A basic model to classify digits from the MNIST dataset |
ResNet | Deep Residual Learning for Image Recognition |
EfficientNet | EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks |
Model | Reference (Paper) |
---|---|
NCF | Neural Collaborative Filtering |
- The models in the master branch are developed using TensorFlow 2, and they target the TensorFlow nightly binaries built from the master branch of TensorFlow.
- The stable versions targeting releases of TensorFlow are available as tagged branches or downloadable releases.
- Model repository version numbers match the target TensorFlow release, such that release v2.2.0 are compatible with TensorFlow v2.2.0.
Please follow the below steps before running models in this repository.
- The latest TensorFlow Model Garden release and TensorFlow 2
- If you are on a version of TensorFlow earlier than 2.2, please upgrade your TensorFlow to the latest TensorFlow 2.
pip3 install tf-nightly
tf-models-official is the stable Model Garden package. pip will install all models and dependencies automatically.
pip install tf-models-official
Please check out our example to learn how to use a PIP package.
Note that tf-models-official may not include the latest changes in this github repo. To include latest changes, you may install tf-models-nightly, which is the nightly Model Garden package created daily automatically.
pip install tf-models-nightly
- Clone the GitHub repository:
git clone https://github.com/tensorflow/models.git
- Add the top-level /models folder to the Python path.
export PYTHONPATH=$PYTHONPATH:/path/to/models
If you are using a Colab notebook, please set the Python path with os.environ.
import os
os.environ['PYTHONPATH'] += ":/path/to/models"
- Install other dependencies
pip3 install --user -r official/requirements.txt
If you want to contribute, please review the contribution guidelines.
To cite this repository:
@software{tfmodels2020github,
author = {Chen Chen and Xianzhi Du and Le Hou and Jaeyoun Kim and Pengchong
Jin and Jing Li and Yeqing Li and Abdullah Rashwan and Hongkun Yu},
title = {TensorFlow Official Model Garden},
url = {https://github.com/tensorflow/models/tree/master/official},
year = {2020},
}