Intel® FPGA AI Suite: Getting Started Guide

ID 768970
Date 4/05/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.10. Preparing a ResNet50 v1 Model

OpenVINO™ Model Zoo 2021.4.2 does not include a ResNet50 v1 model.

The following commands create graph.xml and graph.bin files for ResNet50 v1, using the mo_caffe.py command from OpenVINO™ Model Optimizer. These commands assume that you have enabled OpenVINO™ Model Optimizer as described Preparing OpenVINO Model Zoo and Model Optimizer.
wget https://www.deepdetect.com/models/resnet/ResNet-50-model.caffemodel
wget https://raw.githubusercontent.com/yihui-he/\
resnet-imagenet-caffe/master/resnet_50/ResNet-50-deploy.prototxt
mo_caffe.py \
    --input_shape=[1,3,224,224] \
    --mean_values=[103.53,116.28,123.675] \
    --input=data \
    --output=prob \
    --input_model=ResNet-50-model.caffemodel \
    --input_proto=ResNet-50-deploy.prototxt \
    --model_name=graph