FPGA AI Suite: Getting Started Guide

ID 768970
Date 9/06/2024
Public
Document Table of Contents

6.10. Preparing a ResNet50 v1 Model

OpenVINO™ Model Zoo 2023.3 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.
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
source ~/build-openvino-dev/openvino_env/bin/activate
mo \
    --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