|
我在PC ubuntu系统上使用pre_compile=true转换模型, 提示如下警告:
--> Loading model
done
--> Building model
W The RKNN Model generated can not run on simulator when pre_compile is True.
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
done
--> Export RKNN model
done
--> init runtime
E Pre compile model can not run on simulator
E Catch exception when init runtime!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 988, in rknn.api.rknn_base.RKNNBase.init_runtime
E File "rknn/api/rknn_runtime.py", line 287, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. Wrong platform: simulator
init runtime failed.
有生成rknn模型, 但是我在rk3399pro上跑的时候提示如下信息:
model name: ../darknet_precompile.rknn
rknn_init start
E RKNNAPI: rknn_init, msg_load_ack fail, ack = 1(ACK_FAIL), expect 0(ACK_SUCC)!
E RKNNAPI: ==============================================
E RKNNAPI: RKNN VERSION:
E RKNNAPI: API: 1.3.0 (c5654ea build: 2019-12-25 14:12:00)
E RKNNAPI: DRV: 0.9.9 (8509ec7 build: 2019-08-05 10:54:34)
E RKNNAPI: ==============================================
rknn_init fail! ret=-6
initial fail -6
Segmentation fault
使用pre_compile=false转的模型可以在板子上跑, 但是rknn_init需要1个小时, 我的模型是yolov3-608. 我现在想做一些测试, 但是初始化需要1个小时太久了. 我看到帖子上说pre_compile不能在板子上做, 为什么我在PC上转的模型不可以跑?
|
|