Hello
I am trying to run the example code for using ksnn on the Vim3 on Ubuntu 20 (dekstop)
for the yolo examples and for the caffe examples I am getting this error:
|---+ KSNN Version: v1.0 +---|
Start init neural network ...
Done.
Get input data ...
Done.
Start inference ...
Traceback (most recent call last):
File "mobilenet.py", line 80, in <module>
outputs = mobilenet_caffe.nn_inference(cv_img, platform = 'CAFFE', reorder='2 1 0', output_format=output_format.OUT_FORMAT_FLOAT32)
File "/usr/local/lib/python3.8/dist-packages/ksnn/api.py", line 215, in nn_inference
res = self.nn_set_inputs(cv_img, platform=platform, reorder=reorder, tensor=input_tensor)
File "/usr/local/lib/python3.8/dist-packages/ksnn/api.py", line 137, in nn_set_inputs
val = self.ksnn_api.neural_network_set_input(pixel_data, reorder_format, platform_format, i)
File "/usr/local/lib/python3.8/dist-packages/ksnn/kplatform/vim3/vim3_nn_api.py", line 171, in neural_network_set_input
pre_process = self.detect_so.NPU_SetInput
File "/usr/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: ./libs/libnn_mobilenet.so: undefined symbol: NPU_SetInput
This was solved by installing ksnn-1.2 instead of ksnn 1.0 mentioned on the khadas website:
The website may need an update.
Cheers