跳至主要内容

How to retrain an image classification model?


Got a tutorial from Google Coral Team:
This tutorial shows you how to retrain an image classification model to recognize a new set of classes. You'll use a technique called transfer learning to retrain an existing model and then compile it to run on an Edge TPU device—you can use the retrained model with either the Coral Dev Board or the Coral USB Accelerator.
Specifically, this tutorial shows you how to retrain a quantized MobileNet V1 model to recognize different types of flowers (adopted from TensorFlow's docs). But you can reuse these procedures with your own image dataset, and with a different pre-trained model.
Tip: If you want a shortcut to train an image classification model, try Cloud AutoML Vision. It's a web-based tool that allows you to train a model with your own images, optimize it, and then export it for the Edge TPU.
  1. Set up the Docker container
  2. Prepare your dataset
  3. Retrain your classification model
  4. Compile the model for the Edge TPU
  5. Run the model
Before you retrain an image classification model, you have to get a Cora devices: Dev Board or the Coral USB Accelerator, which you can get there: https://store.gravitylink.com/global

评论

此博客中的热门博文

Introducing Google Coral Dev Board

Introducing Google Coral Dev Board (Part 1) Introducing Google Coral Dev Board (Part 2) Introducing Google Coral Dev Board (Part 3) Introducing Google Coral Dev Board (Part 4)

10 questions you should know about Google Edge TPU

1. What is the Edge TPU? The Edge TPU is a small ASIC designed by Google that provides high performance ML inferencing for low-power devices. For example, it can execute state-of-the-art mobile vision models such as MobileNet V2 at almost 400 FPS, in a power efficient manner. Google offers multiple products that include the Edge TPU built-in. Two Edge TPU chips on the head of a US penny 2. What machine learning frameworks does the Edge TPU support? TensorFlow Lite only. 3. What type of neural networks does the Edge TPU support? The first-generation Edge TPU is capable of executing deep feed-forward neural networks (DFF) such as convolutional neural networks (CNN), making it ideal for a variety of vision-based ML applications. 4. How do I create a TensorFlow Lite model for the Edge TPU? You need to convert your model to TensorFlow Lite and it must be quantized using either quantization-aware training (recommended) or full integer post-training quantization. (To create a compatible model...

Introducing Google Coral Edge TPU Device--Mini PCIe Accelerator

Mini PCIe Accelerator A PCIe device that enables easy integration of the Edge TPU into existing systems. Supported host OS: Debian Linux Half-size Mini PCIe form factor Supported Framework: TensorFlow Lite Works with AutoML Vision Edge https://store.gravitylink.com/global/product/miniPcIe The Coral Mini PCIe Accelerator is a PCIe module that brings the Edge TPU coprocessor to existing systems and products. The Mini PCIe Accelerator is a half-size Mini PCIe card designed to fit in any standard Mini PCIe slot. This form-factor enables easy integration into ARM and x86 platforms so you can add local ML acceleration to products such as embedded platforms, mini-PCs, and industrial gateways. https://store.gravitylink.com/global/product/miniPcIe Features Google Edge TPU ML accelerator Standard Half-Mini PCIe card Supports Debian Linux and other variants on host CPU About Edge TPU  The Edge TPU is a small ASIC designed by Google that provi...