By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: How to Use TensorFlow Model Garden for Vision and NLP Projects | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > How to Use TensorFlow Model Garden for Vision and NLP Projects | HackerNoon
Computing

How to Use TensorFlow Model Garden for Vision and NLP Projects | HackerNoon

News Room
Last updated: 2025/08/13 at 3:03 AM
News Room Published 13 August 2025
Share
SHARE

Content Overview

  • Model Garden models
  • Official models
  • Research models
  • Training experiment framework
  • Specialized ML operations
  • Training loops with Orbit

The TensorFlow Model Garden provides implementations of many state-of-the-art machine learning (ML) models for vision and natural language processing (NLP), as well as workflow tools to let you quickly configure and run those models on standard datasets. Whether you are looking to benchmark performance for a well-known model, verify the results of recently released research, or extend existing models, the Model Garden can help you drive your ML research and applications forward.

The Model Garden includes the following resources for machine learning developers:

These resources are built to be used with the TensorFlow Core framework and integrate with your existing TensorFlow development projects. Model Garden resources are also provided under an open source license, so you can freely extend and distribute the models and tools.

Practical ML models are computationally intensive to train and run, and may require accelerators such as Graphical Processing Units (GPUs) and Tensor Processing Units (TPUs). Most of the models in Model Garden were trained on large datasets using TPUs. However, you can also train and run these models on GPU and CPU processors.

Model Garden models

The machine learning models in the Model Garden include full code so you can test, train, or re-train them for research and experimentation. The Model Garden includes two primary categories of models: official models and research models.

Official models

The Official Models repository is a collection of state-of-the-art models, with a focus on vision and natural language processing (NLP). These models are implemented using current TensorFlow 2.x high-level APIs. Model libraries in this repository are optimized for fast performance and actively maintained by Google engineers. The official models include additional metadata you can use to quickly configure experiments using the Model Garden training experiment framework.

Research models

The Research Models repository is a collection of models published as code resources for research papers. These models are implemented using both TensorFlow 1.x and 2.x. Model libraries in the research folder are supported by the code owners and the research community.

Training experiment framework

The Model Garden training experiment framework lets you quickly assemble and run training experiments using its official models and standard datasets. The training framework uses additional metadata included with the Model Garden’s official models to allow you to configure models quickly using a declarative programming model. You can define a training experiment using Python commands in the TensorFlow Model library or configure training using a YAML configuration file, like this example.

The training framework uses tfm.core.base_trainer.ExperimentConfig as the configuration object, which contains the following top-level configuration objects:

  • runtime: Defines the processing hardware, distribution strategy, and other performance optimizations
  • task: Defines the model, training data, losses, and initialization
  • trainer: Defines the optimizer, training loops, evaluation loops, summaries, and checkpoints

For a complete example using the Model Garden training experiment framework, see the Image classification with Model Garden tutorial. For information on the training experiment framework, check out the TensorFlow Models API documentation. If you are looking for a solution to manage training loops for your model training experiments, check out Orbit.

Specialized ML operations

The Model Garden contains many vision and NLP operations specifically designed to execute state-of-the-art models that run efficiently on GPUs and TPUs. Review the TensorFlow Models Vision library API docs for a list of specialized vision operations. Review the TensorFlow Models NLP Library API docs for a list of NLP operations. These libraries also include additional utility functions used for vision and NLP data processing, training, and model execution.

Training loops with Orbit

There are two default options for training TensorFlow models:

  • Use the high-level Keras Model.fit function. If your model and training procedure fit the assumptions of Keras’ Model.fit (incremental gradient descent on batches of data) method this can be very convenient.
  • Write a custom training loop with keras, or without. You can write a custom training loop with low-level TensorFlow methods such as tf.GradientTape or tf.function. However, this approach requires a lot of boilerplate code, and doesn’t do anything to simplify distributed training.

Orbit tries to provide a third option in between these two extremes.

Orbit is a flexible, lightweight library designed to make it easier to write custom training loops in TensorFlow 2.x, and works well with the Model Garden training experiment framework. Orbit handles common model training tasks such as saving checkpoints, running model evaluations, and setting up summary writing. It seamlessly integrates with tf.distribute and supports running on different device types, including CPU, GPU, and TPU hardware. The Orbit tool is also open source, so you can extend and adapt to your model training needs.

The Orbit guide is available here.

Note: You can customize how the Keras API executes training. Mainly you must override the Model.train_step method or use keras.callbacks like callbacks.ModelCheckpoint or callbacks.TensorBoard. For more information about modifying the behavior of train_step, check out the Customize what happens in Model.fit page.

Originally published on the TensorFlow website, this article appears here under a new headline and is licensed under CC BY 4.0. Code samples shared under the Apache 2.0 License.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article CoreWeave’s stock crumbles on wider-than-expected loss – News
Next Article The Only Amazon Fire TV Stick Browser You Should Be Using – BGR
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Apple responds to Musk's lawsuit threat over the App Store
News
How Blob Gas Priority Fees Influence Ethereum’s Transaction Costs | HackerNoon
Computing
UK facial recognition rollout is a ‘no-brainer’, claims Tony Blair Institute – UKTN
News
On a mission to ‘kill Google Chrome,’ UW students join Y Combinator to launch AI-powered browser
Computing

You Might also Like

Computing

How Blob Gas Priority Fees Influence Ethereum’s Transaction Costs | HackerNoon

18 Min Read
Computing

On a mission to ‘kill Google Chrome,’ UW students join Y Combinator to launch AI-powered browser

5 Min Read
Computing

Linux Preps For New “SoC Power Slider” With Upcoming Panther Lake

3 Min Read
Computing

Baidu unveils its first AI glasses Xiaodu AI Glasses · TechNode

3 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?