标题: pre_compile问题 [打印本页] 作者: yanghe 时间: 2020-8-19 10:38 标题: pre_compile问题 我在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