Run a MobileNet* SSD FP32 Inference Using a TensorFlow* Model

Published: 10/23/2020  

Last Updated: 06/15/2022

Download Command

wget https://storage.googleapis.com/intel-optimized-tensorflow/models/v2_3_0/ssd-mobilenet-fp32-inference.tar.gz

Description

This document has instructions for running MobileNet* SSD FP32 inference using Intel® Optimization for TensorFlow*.

The COCO validation dataset is used in these Mobilenet SSD quick start scripts. The inference and accuracy quick start scripts require the dataset to be converted into the TF records format. See the COCO dataset for instructions on downloading and preprocessing the COCO validation dataset.

Quick Start Scripts

Script name Description
fp32_inference Runs inference on TF records and outputs performance metrics.
fp32_accuracy Processes the TF records to run inference and check accuracy on the results.

Bare Metal

To run on bare metal, the following prerequisites must be installed in your environment:

  • Python* 3
  • Intel-tensorflow
  • Numactl
  • Build-essential
  • Cython
  • Contextlib2
  • Jupyter*
  • Lxml
  • Matplotlib
  • Numpy 1.17.2
  • Pillow 7.1.0
  • Pycocotools

For more information, see the documentation on prerequisites in the TensorFlow models repo.

To run inference, set environment variables with the path to the dataset and an output directory, download and untar the MobileNet SSD FP32 inference model package, and then run a quick start script.

DATASET_DIR=<path to the coco tf record file>
OUTPUT_DIR=<directory where log files will be written>

wget https://storage.googleapis.com/intel-optimized-tensorflow/models/v2_3_0/ssd-mobilenet-fp32-inference.tar.gz
tar -xzf ssd-mobilenet-fp32-inference.tar.gz
cd ssd-mobilenet-fp32-inference

quickstart/<script name>.sh

Documentation and Sources

Get Started​
Main GitHub*
Readme
Release Notes
Get Started Guide

Code Sources
Report Issue


License Agreement

LEGAL NOTICE: By accessing, downloading or using this software and any required dependent software (the “Software Package”), you agree to the terms and conditions of the software license agreements for the Software Package, which may also include notices, disclaimers, or license terms for third party software included with the Software Package. Please refer to the license file for additional details.


Related Containers and Solutions

MobileNet SSD FP32 Inference TensorFlow* Container

View All Containers and Solutions 🡢

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.