rockchip-linux / rknn-toolkit2

BSD 3-Clause "New" or "Revised" License
891 stars 155 forks source link

初始化环境失败:Invalid RKNN model version 6 #316

Open GitHubmalajava opened 5 months ago

GitHubmalajava commented 5 months ago

--> Init runtime environment I RKNN: [17:10:15.695] RKNN Runtime Information: librknnrt version: 1.5.0 (e6fe0c678@2023-05-25T08:09:20) I RKNN: [17:10:15.695] RKNN Driver Information: version: 0.9.0 E RKNN: [17:10:15.696] 6, 4 E RKNN: [17:10:15.696] Invalid RKNN model version 6 E RKNN: [17:10:15.696] rknn_init, load model failed! E Catch exception when init runtime! E Traceback (most recent call last): File "/home/linaro/miniconda3/envs/rk39/lib/python3.9/site-packages/rknnlite/api/rknn_lite.py", line 149, in init_runtime self.rknn_runtime.build_graph(self.rknn_data, self.load_model_in_npu) File "rknnlite/api/rknn_runtime.py", line 921, in rknnlite.api.rknn_runtime.RKNNRuntime.build_graph Exception: RKNN init failed. error code: RKNN_ERR_MODEL_INVALID 是因为开发板环境太低了吗

Link164735 commented 4 months ago

去官网下载最新的librknnrt.so替换/usr/lib下原来的库就行

133673 commented 3 months ago

您好我下载最新的so之后并替换还是报这个错为什么呢 pi@NanoPC-T6-LTS:~/rk_zo/1.6/rknn_model_zoo-1.6.0/install/rk3588_linux_aarch64/rknn_yolov8_demo$ sudo ./rknn_yolov8_demo model/yolov8.rknn model/bus.jpg load lable ./model/coco_80_labels_list.txt E RKNN: [16:40:58.701] 6, 1 E RKNN: [16:40:58.701] Invalid RKNN model version 6 E RKNN: [16:40:58.701] rknn_init, load model failed! rknn_init fail! ret=-1 init_yolov8_model fail! ret=-1 model_path=model/yolov8.rknn Segmentation fault

suse-chen commented 2 months ago

想问一下解决了吗?

suse-chen commented 2 months ago

有用

exzvm commented 2 weeks ago

去官网下载最新的librknnrt.so替换/usr/lib下原来的库就行

感谢感谢,解决了