|
混合量化第一步完成后,对cfg文件不做修改直接运行第二步,得到的模型能正常调用和推理。
cfg文件去掉几层后,再运行混合量化第二步,得到的模型能正常调用和推理。
cfg文件再去掉几层,再运行混合量化第二步,得到的模型不能正常调用,错误信息如下。
- 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
|
|