summaryrefslogtreecommitdiff
path: root/python/openvino/run_inference.sh
diff options
context:
space:
mode:
Diffstat (limited to 'python/openvino/run_inference.sh')
-rwxr-xr-xpython/openvino/run_inference.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/python/openvino/run_inference.sh b/python/openvino/run_inference.sh
new file mode 100755
index 0000000..a7f31fa
--- /dev/null
+++ b/python/openvino/run_inference.sh
@@ -0,0 +1,41 @@
+modeldir=$COREDLA_WORK/demo/models
+imagedir=$COREDLA_WORK/demo/sample_images
+curarch=/home/ekd/ekd_research/pet_reconstruction/python/openvino/demo/models/architectures/agx7_area.arch
+
+cd $COREDLA_WORK/runtime/build_Release/dla_benchmark
+
+./dla_benchmark \
+ -b 1 `# Run only a single image` \
+ -niter 1 `# Run only a single image` \
+ -nireq 1 `# Running emulator: so -nireq=1` \
+ -m $modeldir/model_bmp.xml \
+ `# Same as when running on hardware - specify the graph` \
+ -d HETERO:CPU \
+ `# Same as when running on hardware - \
+ use FPGA if possible, fallback to CPU` \
+ -i $imagedir \
+ `# Same as when running on hardware - specify image directory` \
+ -arch_file $curarch \
+ `# Same as when running on hardware - specify .arch file` \
+ -dump_output \
+ `# Dump output result.txt file` \
+ -plugins emulation \
+ `# Use the software emulator` \
+
+# ./dla_benchmark \
+# -b 1 `# Run only a single image` \
+# -niter 1 `# Run only a single image` \
+# -nireq 1 `# Running emulator: so -nireq=1` \
+# -cm $COREDLA_WORK/demo/models/model_bmp_de5a_area.bin \
+# `# Same as when running on hardware - specify the graph` \
+# -d HETERO:FPGA \
+# `# Same as when running on hardware - \
+# use FPGA if possible, fallback to CPU` \
+# -i $imagedir \
+# `# Same as when running on hardware - specify image directory` \
+# -arch_file $curarch \
+# `# Same as when running on hardware - specify .arch file` \
+# -dump_output \
+# `# Dump output result.txt file` \
+# -plugins emulation \
+# `# Use the software emulator` \ \ No newline at end of file