vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface extension. Do you have a compatible Vulkan installable client driver (ICD) installed? Please look at the Getting Started guide for additional information.
$ rfkill list 0: bt_default: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 2: brcmfmac-wifi: Wireless LAN Soft blocked: no Hard blocked: no 3: hci0: Bluetooth Soft blocked: yes Hard blocked: no
from rknn.api import RKNN import os if __name__ == '__main__': platform = 'rk3588' '''step 1: create RKNN object''' rknn = RKNN() '''step 2: load the .onnx model''' rknn.config(target_platform='rk3588') print('--> Loading model') ret = rknn.load_onnx('gmstereo-scale1-sceneflow-124a438f_1x3x480x640_sim.onnx') # 这里填写onnx模型的路径 if ret != 0: print('load model failed') exit(ret) print('done') '''step 3: building model''' print('-->Building model') ret = rknn.build(do_quantization=False) if ret != 0: print('build model failed') exit() print('done') '''step 4: export and save the .rknn model''' RKNN_MODEL_PATH = 'unimatch_stereo_scale1_1x3x480x640_sim.rknn' # 这里填写rknn模型的名称 ret = rknn.export_rknn(RKNN_MODEL_PATH) if ret != 0: print('Export rknn model failed.') exit(ret) print('done') '''step 5: release the model''' rknn.release()
W rknn-toolkit-lite2 version: 2.1.0 --> Load RKNN model done --> Init runtime environment I RKNN: [15:54:49.666] RKNN Runtime Information: librknnrt version: 1.4.0 (a10f100eb@2022-09-09T09:07:14) I RKNN: [15:54:49.666] RKNN Driver Information: version: 0.9.3 E RKNN: [15:54:49.666] 6, 1 E RKNN: [15:54:49.666] Invalid RKNN model version 6 E RKNN: [15:54:49.666] rknn_init, load model failed! E Catch exception when init runtime! E Traceback (most recent call last): File "/home/orangepi/miniconda3/envs/rknn/lib/python3.10/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_FAIL
# load RKNN model print('--> Load RKNN model') ret = rknn_lite.load_rknn(rknn_model) if ret != 0: print('Load RKNN model failed') exit(ret) print('done')