summaryrefslogtreecommitdiff
path: root/python/openvino/run_inference.sh
blob: a7f31faf5d31869c14f22623b66c93d4cfe773dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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` \