rknn.load_onnx 无法加载onnx模型
报错如下,
--> Loading onnx model
WARNING: ONNX Optimizer has been moved to https://github.com/onnx/optimizer.
All further enhancements and fixes to optimizers will be done in this new repo.
The optimizer code in onnx/onnx repo will be removed in 1.9 release.
这个错误的原因, 暂时不知,
或许与中文路径有关.(后修改发现与中文路径无关)
目前在调试模式下可以正常加载.
错误1.
--> Building model
E Catch exception when building RKNN model!
E Traceback (most recent call last):
E File "rknn\api\rknn_base.py", line 616, in rknn.api.rknn_base.RKNNBase.build
E File "rknn\api\rknn_base.py", line 1478, in rknn.api.rknn_base.RKNNBase._quantize2
E FileNotFoundError: [Errno 2] No such file or directory: 'dataset.txt'
done
E Catch exception when snapshot: UnicodeDecodeError('gbk', b'H:\\project\\\xe4\xba\x8c\xe4\xbb\xa3\xe5\x9e\x83\xe5\x9c\xbe\xe6\xa1\xb6\\\xe4\xb8\xbb\xe7\x95\x8c\xe9\x9d\xa2\\\xe6\xba\x90\xe4\x
解决rknn.load_onnx加载失败:编码问题与路径困扰

最低0.47元/天 解锁文章
2916





