Hi all,
I’m building a custom yocto image and trying to run inference using the NPU as follows:
root@verdin-imx8mp:/usr/bin/tensorflow-lite-2.9.1/examples# USE_GPU_INFERENCE=0 python3 label_image.py -e /usr/lib/libvx_delegate.so
Loading external delegate from /usr/lib/libvx_delegate.so with args: {}
Vx delegate: allowed_cache_mode set to 0.
Vx delegate: device num set to 0.
Vx delegate: allowed_builtin_code set to 0.
Vx delegate: error_during_init set to 0.
Vx delegate: error_during_prepare set to 0.
Vx delegate: error_during_invoke set to 0.
Loaded delegate
Running inference?
[ 1] Failed to open device: No such file or directory, Try again...
[ 2] Failed to open device: No such file or directory, Try again...
[ 3] Failed to open device: No such file or directory, Try again...
[ 4] Failed to open device: No such file or directory, Try again...
[ 5] _OpenDevice(1249): FATAL: Failed to open device, errno=No such file or directory.
The yocto recipie seems to have built fine, the delegate etc is all installced and tensorflow lite appears to be working but it’s failing with the above.
My assumption is this is because something isn’t loaded in /dev/ but I don’t know what that something is or what I am potentially missing.
So a few questions:
Should I see something npu related in dmesg?
Should I see something in /dev if everything is installed correctly?
Thank you!
p.s I basically just followed the guide here to get this far:
Repos used
header:
version: 11
repos:
meta-toradex-nxp:
url: "https://git.toradex.com/meta-toradex-nxp.git"
path: sources/meta-toradex-nxp
branch: kirkstone-6.x.y
commit: 92a03e8efa00234026139919789989a11bc7ed58
meta-freescale-3rdparty:
url: "https://github.com/Freescale/meta-freescale-3rdparty.git"
path: sources/meta-freescale-3rdparty
branch: kirkstone
commit: "9e94b64bdfebcf7bfdf2af6447cec866a4efa814"
meta-freescale-distro:
url: "https://github.com/Freescale/meta-freescale-distro.git"
path: sources/meta-freescale-distro
branch: kirkstone
commit: "d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-freescale:
url: "https://github.com/Freescale/meta-freescale.git"
path: sources/meta-freescale
branch: kirkstone
commit: "fb17bfb8edcc9560bc1beb966a68f1f4c08ecfb3"
meta-toradex-bsp-common:
url: "https://git.toradex.com/meta-toradex-bsp-common.git"
path: sources/meta-toradex-bsp-common
branch: kirkstone-6.x.y
commit: "cc1fdcaf6fe8a657c3706b66faa827994ede416f"
meta-toradex-econ:
url: "https://github.com/toradex/meta-toradex-econ.git"
path: sources/meta-toradex-econ
branch: kirkstone-6.x.y
commit: "2d6b647072daadeaa321d377d5dc1d56c3fc4c8e"
layers:
meta-ar0521:
meta-imx:
url: "https://github.com/nxp-imx/meta-imx.git"
path: sources/meta-imx
branch: kirkstone-5.15.71-2.2.2
commit: "ca68ab5d25322b51f54564275c84ab8de3c74ea6"
layers:
meta-ml:
meta-mender-community:
url: "https://github.com/mendersoftware/meta-mender-community.git"
path: sources/meta-mender-community
branch: kirkstone
commit: 4dce73360532fe9b65db7759fc984b839efb37ca
layers:
meta-mender-toradex-nxp: