Toybrick

标题: rknn-toolkit1.6 accuracy_analysis的问题 [打印本页]

作者: hezhengting    时间: 2021-3-13 17:34
标题: rknn-toolkit1.6 accuracy_analysis的问题
rknn-toolkit1.6:调用hybrid_quantization_step2后,再调用accuracy_analysis,报下面的exception.
rknn.accuracy_analysis()
E Catch exception when snapshot: AttributeError("'NoneType' object has no attribute 'load_quantize'",)
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 766, in rknn.api.rknn_base.RKNNBase.accuracy_analysis
E   File "rknn/api/rknn_base.py", line 1838, in rknn.api.rknn_base.RKNNBase._accuracy_analysis
E AttributeError: 'NoneType' object has no attribute 'load_quantize'

但是调用bulid_model后,再调用accuracy_analysis,就正常。请问这个是什么问题?看USER_MANUAL, accuracy_analysis可以在hybrid_quantization_step2之后调用啊。


作者: xiongzhuang    时间: 2021-5-14 16:32
遇到了同样的问题,请问楼主解决了么?




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3