I'm trying to build this sample code on my XU-4 running Mate 16.04 and Mate 18.04 to help evaluate a potential performance regression in Mate18 vs. Mate16 that I uncovered running an OpenVINO C++ example code for the Movidius NCS2.
I get the same error on both systems.
doing: ./tools/make/build_rpi_lib.sh
I get this error:
In file included from ./tensorflow/lite/core/api/op_resolver.h:20:0,
from ./tensorflow/lite/core/api/flatbuffer_conversions.h:24,
from tensorflow/lite/core/api/flatbuffer_conversions.cc:16:
./tensorflow/lite/schema/schema_generated.h:21:37: fatal error: flatbuffers/flatbuffers.h: No such file or directory
I've no idea what package flatbuffers.h belongs to :(
but I doubt its the only missing dependency.
The idea is that if the Coral code doesn't have the performance decrement, the problem is likely in OpenVINO as its not "officially" supported on 18.04 at present.
Python samples using Coral and Movidius show differences within the run to run repeat variance of the code, although Mate16 is on average ~0.5 fps higher, although I won't claim statistical significance.
Gist of the performance decrement:
There appears to be a performance regression where Mate18 is significantly worse than the Mate16 system, remember this is C++ code, not Python. I get the following results from the sample code:
Odroid XU-4 Mate16
NCS: 8.22 fps
NCS2: 11.5 fps
Looks to be performance regression on Mate18 vs. Mate16!
Odroid XU-4 Mate18
NCS: 6.56 fps
NCS2: 8.36 fps
Raspberry Pi3B:
NCS: 6.93 fps
NCS2: 8.58 fps
Basically Mate18 is a bit worse than a Pi3B here!