Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

models

> 编程语言
Open source

Models and examples built with TensorFlow

77.7K stars0 likes1 views
WebsiteGitHub

About

Models and examples built with TensorFlow

Welcome to the Model Garden for TensorFlow

The TensorFlow Model Garden is a repository with a number of different implementations of state-of-the-art (SOTA) models and modeling solutions for TensorFlow users. We aim to demonstrate the best practices for modeling so that TensorFlow users can take full advantage of TensorFlow for their research and product development.

To improve the transparency and reproducibility of our models, training logs on TensorBoard.dev are also provided for models to the extent possible though not all models are suitable.

Directory Description
official • A collection of example implementations for SOTA models using the latest TensorFlow 2's high-level APIs
• Officially maintained, supported, and kept up to date with the latest TensorFlow 2 APIs by TensorFlow
• Reasonably optimized for fast performance while still being easy to read
For more details on the capabilities, check the guide on the Model-garden
research • A collection of research model implementations in TensorFlow 1 or 2 by researchers
• Maintained and supported by researchers
community • A curated list of the GitHub repositories with machine learning models and implementations powered by TensorFlow 2
orbit • A flexible and lightweight library that users can easily use or fork when writing customized training loop code in TensorFlow 2.x. It seamlessly integrates with tf.distribute and supports running on different device types (CPU, GPU, and TPU).

Installation

To install the current release of tensorflow-models, please follow any one of the methods described below.

Method 1: Install the TensorFlow Model Garden pip package

tf-models-official is the stable Model Garden package. Please check out the releases to see what are available modules.

pip3 will install all models and dependencies automatically.

bash
pip3 install tf-models-official

Please check out our examples:

  • basic library import
  • nlp model building to learn how to use a PIP package.

Note that tf-models-official may not include the latest changes in the master branch of this github repo. To include latest changes, you may install tf-models-nightly, which is the nightly Model Garden package created daily automatically.

bash
pip3 install tf-models-nightly

Method 2: Clone the source

  1. Clone the GitHub repository:
bash
git clone https://github.com/tensorflow/models.git
  1. Add the top-level /models folder to the Python path.
bash
export PYTHONPATH=$PYTHONPATH:/path/to/models

If you are using in a Windows environment, you may need to use the following command with PowerShell:

bash
$env:PYTHONPATH += ":\path\to\models"

If you are using a Colab notebook, please set the Python path with os.environ.

python
import os
os.environ['PYTHONPATH'] += ":/path/to/models"
  1. Install other dependencies
bash
pip3 install --user -r models/official/requirements.txt

Finally, if you are using nlp packages, please also install tensorflow-text-nightly:

bash
pip3 install tensorflow-text-nightly

Announcements

Please check this page for recent announcements.

Contributions

If you want to contribute, please review the contribution guidelines.

License

Apache License 2.0

Citing TensorFlow Model Garden

If you use TensorFlow Model Garden in your research, please cite this repository.

@misc{tensorflowmodelgarden2020,
  author = {Hongkun Yu and Chen Chen and Xianzhi Du and Yeqing Li and Abdullah Rashwan and Le Hou and Pengchong Jin and Fan Yang
            and Frederick Liu and Jaeyoun Kim and Jing Li},
  title = {{TensorFlow Model Garden}},
  howpublished = {\url{https://github.com/tensorflow/models}},
  year = {2020}
}

Issues· 1272 open

View all issuesOpen on GitHub
  • #11258

    MaskConver README.md missing installation & use guide

    stat:awaiting responsetype:docsmodels:officialstaleUpdated Sep 26, 2026
  • #13566

    Movinet kinetics 400 weights are actually kinetics 600 weights

    stat:community supporttype:bugmodels:officialUpdated Sep 24, 2026
  • #13581

    TensorFlow R-CNN Broken Should Be Removed from Documentation

    stat:community supporttype:bugmodels:officialUpdated Sep 24, 2026
  • #13557

    How to download init checkpoint

    stat:awaiting responsetype:bugmodels:officialstaleUpdated Sep 24, 2026
  • #10945

    Potential bug in RelativePositionEmbedding

    stat:awaiting model gardenertype:bugmodels:officialUpdated Sep 18, 2026
  • #11455

    MaskConver: ModuleNotFoundError: No module named 'official.vision.configs.google'

    stat:awaiting responsetype:bugmodels:officialstaleUpdated Sep 12, 2026
  • #11166

    Apache Beam Pipeline cannot maximize the number of workers for criteo_preprocess.py in Google Cloud

    stat:awaiting responsetype:bugmodels:officialstaleUpdated Sep 11, 2026
  • #11054

    Documentation: ELECTRA Pretraining

    stat:awaiting responsetype:docsmodels:officialUpdated Sep 10, 2026
  • #13564

    Error when installing `tf-models-official`

    type:bugmodels:officialUpdated Sep 3, 2026
  • #13653

    Verify evals on Papers with Code

    Updated Aug 28, 2026

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言