Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
Post image 6
1 / 6
0

How to use the TensorFlow Object Detection API (inference, with Colab)

DEV Community: tensorflow·Daisuke Majima·4 months ago
#58mAH55e
Reading 0:00
15s threshold

This article shows how to use the TensorFlow Object Detection API (the inference part). You can do it in Colab. Colab sample — run the cells in order to try the TensorFlow Object Detection API. Change Image_Path in the last cell to your own image to detect objects in it. The official TensorFlow Model Zoo has many kinds of models. (For training a model: Train an object detection model with the TensorFlow Object Detection API ) (For quick training with just a few images: Quick-train an object detection model with the TensorFlow Object Detection API ) Steps 0. Install TensorFlow 2 ! pip install - U -- pre tensorflow == " 2.2.0 " Enter fullscreen mode Exit fullscreen mode 1. Clone the official TensorFlow Models from GitHub import os import pathlib # If "models" is in the current directory path, move there. Otherwise clone it. if " models " in pathlib . Path . cwd (). parts : while " models " in pathlib . Path . cwd (). parts : os . chdir ( ' .. ' ) elif not pathlib . Path ( ' models ' ). exists (): !…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More