Toybrick

标题: rk toolkit lite2使用/usr/lib的librknn_api.so而不是whl包里面的so [打印本页]

作者: zylo117    时间: 2022-11-2 15:05
标题: rk toolkit lite2使用/usr/lib的librknn_api.so而不是whl包里面的so
如题,rk toolkit2 lite使用/usr/lib的librknn_api.so而不是whl包里面的so。
比如系统中的/usr/lib/librknn_api.so和librknnrt.so是1.3的,而whl中的so是1.4的,这种时候就会提示在用1.3版的runtime。
如果移除/usr/lib/librknn_api.so和librknnrt.so,则提示

D target set by user is: None
E Catch exception when init runtime!
E Traceback (most recent call last):
  File "/home/zylo117/.local/lib/python3.9/site-packages/rknnlite/api/rknn_lite.py", line 140, in init_runtime
    self.rknn_runtime = RKNNRuntime(root_dir=self.root_dir, target=target, device_id=device_id,
  File "rknnlite/api/rknn_runtime.py", line 313, in rknnlite.api.rknn_runtime.RKNNRuntime.__init__
  File "rknnlite/api/rknn_runtime.py", line 526, in rknnlite.api.rknn_runtime.RKNNRuntime._load_library
  File "rknnlite/api/rknn_runtime.py", line 502, in rknnlite.api.rknn_runtime.RKNNRuntime._get_rknn_api_lib_path
Exception: Can not find dynamic library on RK3588!
Please download the corresponding librknnrt.so from https://github.com/rockchip-linu ... librknn_api/aarch64 and move it to directory /usr/lib/


说明它只认/usr/lib/的lib,whl包里面的so是没用的。。。






欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3