firefly@zt-firefly ~/m/z/stable-diffusion-3.5-medium> ls -l text_encoder_3/t5-v1_1-xxl-encoder.rknn
-rw-r--r-- 1 firefly firefly 9550357619 11月 8 22:31 text_encoder_3/t5-v1_1-xxl-encoder.rknn
firefly@zt-firefly ~/m/z/stable-diffusion-3.5-medium> python ./text_similarity_rknn.py
W rknn-toolkit-lite2 version: 2.2.0
W Verbose file path is invalid, debug info will not dump to file.
D target set by user is: None
D Starting ntp or adb, target soc is RK3588, device id is: None
I RKNN: [23:21:46.537] RKNN Runtime Information, librknnrt version: 2.2.0 (c195366594@2024-09-14T12:18:56)
I RKNN: [23:21:46.537] RKNN Driver Information, version: 0.9.8
E RKNN: [23:21:46.539] parseRKNN: exportDataSize large then model size: 9550356224 vs 960423027!
E RKNN: [23:21:46.539] parseRKNN from buffer: Invalid RKNN format!
E RKNN: [23:21:46.539] rknn_init, load model failed!
E Catch exception when init runtime!
E Traceback (most recent call last):
File "/home/firefly/.local/lib/python3.9/site-packages/rknnlite/api/rknn_lite.py", line 157, 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
发生错误: Init runtime failed
如题
rknn-toolkit2版本 2.0.0b17 (更高版本转换时会报
invalid tensor malloc size, tensor name: , target: CPU, size: 0
这个错误) librknnrt.so版本2.2.0导出onnx:
转换代码:
测试代码:
报错日志: