I followed User-Defined Layers (UDL) Tutorial which you support.
When I execute following command,
python snpe-caffe-to-dlc-udl --caffe_txt blabla...
It gave me following error.
File "snpe-caffe-to-dlc-udl", line 104, in if not converter.set_udl_factory_func(udl_factory_func()): AttributeError: 'CaffeSnapDnnConverter' object has no attribute 'set_udl_factory_func'
It seems that I didn't mistakes.
Hi,
Thank you for interest in Snapdragon NPE.
It seems that snpe-caffe-to-dlc-udl example script in examples/Python/UDLExample somehow uses older version of udl interface.
Could you please edit snpe-caffe-to-dlc-udl file and change line 104 to
and give it a try?
Thanks
Thank you for reply.
As you suggested, I modified line 104 in snpe-caffe-to-dlc-udl in snpe-1.2.2/examples/Python/UdlExample.
After that I tried again, but still different error occurs.
Traceback (most recent call last):
File "snpe-caffe-to-dlc-udl", line 104, in <module>
if not converter.set_udls(udl_supported_types):
File "/home/myaccount/snpe-1.2.2/lib/python/snpe/snpe_caffe_to_dlc.py", line 881, in set_udls
self._udl_factory_func[up] = layer_obj.getLayerCallback()
AttributeError: 'function' object has no attribute 'getLayerCallback'
Could you check this error one more time?
I posted the error some days ago like below:
As you suggested, I modified line 104 in snpe-caffe-to-dlc-udl in snpe-1.2.2/examples/Python/UdlExample. After that I tried again, but still different error occurs. Traceback (most recent call last): File "snpe-caffe-to-dlc-udl", line 104, in if not converter.set_udls(udl_supported_types): File "/home/myaccount/snpe-1.2.2/lib/python/snpe/snpe_caffe_to_dlc.py", line 881, in set_udls self._udl_factory_func[up] = layer_obj.getLayerCallback() AttributeError: 'function' object has no attribute 'getLayerCallback'
Please check it and reply.
Sorry for the dalay in replying. Yeah, UDL example code needs more debugging. We will try to resove it as soon as possible. Will let you know.
Hi,
Please try the following workaround
I have made the example worked as you suggested, but I have a question. In "udl-tutorial.html", there is a command "ndk-build" after command "make -f Makefile.x86_64-linux-clang" , however, this command cannot work with the error information "ndk-build: command not found". Does the problem affect it's run on android?
Hi,
The "ndk-build: command not found" error is due to unavailability of the executable in the PATH mentioned. Kindly update the PATH with the source path of "ndk-build".