rknn-toolkit
rknn-toolkit copied to clipboard
关于onnx转换rknn问题
pth>onnx: env:pc 、python3.7、onnx=1.6.0、torch=1.8.1 onnx>rknn: env:rk3399+rk1808、python3.7、onnx=1.6.0、rknn_toolkit=1.6.0、torch=1.6.0 Related file links:链接:https://pan.baidu.com/s/1C6hSnbGKns4btDjZbIHvgg 提取码:9966 Problem Description:
--> config model
done
--> Loading model
W Call onnx.optimizer.optimize fail, skip optimize
E Calc node Conv : Conv_0 output shape fail
W ----------------Warning(1)----------------
E Catch exception when loading onnx model: openpose.onnx!
E Traceback (most recent call last):
E File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/shape_inference.py", line 57, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.shape_inference.infer_shape
E File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/ops/conv.py", line 49, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.ops.conv.Conv
E File "/home/linaro/.local/lib/python3.7/site-packages/torch/init.py", line 19, in
I have encountered the same problem. Have you solved it?
I have encoutered the same problem too, Have you solved it?
rk3399 with the sdk, works only for python2.7 atm it seems, so the conversions for torch might not be available between those different python versions. Idk if that can be the cause of the problem. After a long time debugging, I finally found this link which explains how to properly install opencv for the sdk:
According to the official website, their chips can accelerate tensorflow. I am heartbroken because their sample programs are all python 2.7.
The latest examples of tensorflow are all python 3.8