Hey guys, I’m using Khadas Vim3 pro and decided to run TimVX tool to use my gpu and npu.
But after I made everything from your tutorial in github, I got the error while checking the result of your demo:
Error, not found chip def: ChipID:0x0, ChipVersion:0x0, ProductID:0x0, EcoID:0x0, CustomerID:0x0! tm_yolov5s_timvx: nnArchPerf.cpp:7187: void* CreateAPModel(APM_IN_PARAM_T): Assertion `0' failed. Aborted
Also make sure that your models and weights are correct because while testing your demo yolov5s on CPU it failed with error
Please find time to answer it, because I’m coping with this problem already few days
Also this are the installation commands I’ve used:
git clone https://github.com/VeriSilicon/TIM-VX.git cd TIM-VX && git checkout 68b5acb && cd .. wget -c https://github.com/VeriSilicon/TIM-VX/releases/download/v1.1.28/aarch64_A311D_D312513_A294074_R311680_T312233_O312045.tgz && tar zxvf aarch64_A311D_D312513_A294074_R311680_T312233_O312045.tgz && mv aarch64_A311D_D312513_A294074_R311680_T312233_O312045 prebuild-sdk-a311d && rm aarch64_A311D_D312513_A294074_R311680_T312233_O312045.tgz cd <tengine-lite-root-dir> mkdir -p ./3rdparty/tim-vx/lib/aarch64 mkdir -p ./3rdparty/tim-vx/include cp -rf ../TIM-VX/include/* ./3rdparty/tim-vx/include/ cp -rf ../TIM-VX/src ./source/device/tim-vx/ cp -rf ../prebuild-sdk-a311d/include/* ./3rdparty/tim-vx/include/ cp -rf ../prebuild-sdk-a311d/lib/* ./3rdparty/tim-vx/lib/aarch64/ rm ./source/device/tim-vx/src/tim/vx/*_test.cc export LD_LIBRARY_PATH=<tengine-lite-root-dir>/3rdparty/tim-vx/lib/aarch64 cd <tengine-lite-root-dir> mkdir build && cd build cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DTENGINE_ENABLE_TIM_VX=ON -DTIM_VX_ENABLE_TEST=ON .. make -j4```