|
混合量化,将一些层从cfg文件中去掉,方法改成delete,生成模型之后运行会报这个错误。
- Create RKNN model fail!
- E Catch exception when init runtime!
- E Traceback (most recent call last):
- E File "rknn/api/rknn_base.py", line 788, in rknn.api.rknn_base.RKNNBase.init_runtime
- E File "rknn/api/rknn_runtime.py", line 303, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
- E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
- W We need do some initial work, it will increase call time of inference for the first time.
- Create RKNN model fail!
- E Catch exception when init model!
- E Traceback (most recent call last):
- E File "rknn/api/rknn_base.py", line 901, in rknn.api.rknn_base.RKNNBase.inference
- E File "rknn/api/rknn_runtime.py", line 303, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
- E Exception: RKNN init failed. error code: RKNN_ERR_DEVICE_UNAVAILABLE
- Traceback (most recent call last):
- File "ctdet.py", line 10, in <module>
- det.run(img)
- File "/home/lsc/rknn-toolkit-v1.3.0/centernet/ctdet_rknn_v2/detector.py", line 93, in run
- output, dets = self.process(images)
- File "/home/lsc/rknn-toolkit-v1.3.0/centernet/ctdet_rknn_v2/detector.py", line 44, in process
- hm = output[3].reshape((1,80,128,128))
- TypeError: 'NoneType' object is not subscriptable
|
|