Commit 3e4e14ad authored by Ukhu's avatar Ukhu
Browse files

Factoring datatype bench

parent 064e885f
......@@ -5,46 +5,24 @@ source $setupvars
# app, device, model and input are defined in the runcmd file
benchmark=/root/inference_engine_samples_build/intel64/Release/benchmark_app
input=/opt/intel/openvino/deployment_tools/demo/car.png
stars=/////////////////////////////////////////////////
models=/root/openvino_models
echo "Benchmarking starts now!"
lscpu
if [ "$device" == "CPU" ]; then
echo $stars
echo "Inception V3"
$benchmark -d $device -i $input -api $api -m $models/public/googlenet-v3/FP32/googlenet-v3.xml
echo $stars
echo "Inception V4"
$benchmark -d $device -i $input -api $api -m $models/public/googlenet-v4-tf/FP32/googlenet-v4-tf.xml
echo $stars
echo "VGG16"
$benchmark -d $device -i $input -api $api -m $models/public/vgg16/FP32/vgg16.xml
echo $stars
echo "VGG19"
$benchmark -d $device -i $input -api $api -m $models/public/vgg19/FP32/vgg19.xml
echo $stars
echo "Resnet 50"
$benchmark -d $device -i $input -api $api -m $models/public/resnet-50-tf/FP32/resnet-50-tf.xml
else
echo $stars
echo "Inception V3"
$benchmark -d $device -i $input -api $api -m $models/public/googlenet-v3/FP16/googlenet
-v3.xml
echo $stars
echo "Inception V4"
$benchmark -d $device -i $input -api $api -m $models/public/googlenet-v4-tf/FP16/google
net-v4-tf.xml
echo $stars
echo "VGG16"
$benchmark -d $device -i $input -api $api -m $models/public/vgg16/FP16/vgg16.xml
echo $stars
echo "VGG19"
$benchmark -d $device -i $input -api $api -m $models/public/vgg19/FP16/vgg19.xml
echo $stars
echo "Resnet 50"
$benchmark -d $device -i $input -api $api -m $models/public/resnet-50-tf/FP16/resnet-50
-tf.xml
fi
echo "Inception V3"
$benchmark -d $device -i $input -api $api -m $models/public/googlenet-v3/$datatype/googlenet-v3.xml
echo "Inception V4"
$benchmark -d $device -i $input -api $api -m $models/public/googlenet-v4-tf/$datatype/googlenet-v4-tf.xml
echo "VGG16"
$benchmark -d $device -i $input -api $api -m $models/public/vgg16/$datatype/vgg16.xml
echo "VGG19"
$benchmark -d $device -i $input -api $api -m $models/public/vgg19/$datatype/vgg19.xml
echo "Resnet 50"
$benchmark -d $device -i $input -api $api -m $models/public/resnet-50-tf/$datatype/resnet-50-tf.xml
echo "Benchmarking done!"
......@@ -4,9 +4,9 @@ myname=benchmark
###### Settings ########
setupvars=/opt/intel/openvino/bin/setupvars.sh
device=CPU # CPU OR MYRIAD
device=CPU # CPU or MYRIAD
api=async # sync or async
datatype=FP32 # FP32 or FP16
set -x
docker run \
-d \
......@@ -16,6 +16,7 @@ docker run \
--env="DISPLAY" \
--env="device=$device" \
--env="api=$api" \
--env="datatype=$datatype" \
--env="setupvars=$setupvars" \
--volume="/dev:/dev" \
--cap-add SYS_PTRACE \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment