Toybrick

IndexError: list index out of range

18022443868

中级会员

积分
228
发表于 2020-12-30 15:17:20    查看: 519|回复: 0 | [复制链接]    打印 | 显示全部楼层
E Catch exception when loading pytorch model: ./model.pt!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 319, in rknn.api.rknn_base.RKNNBase.load_pytorch
E   File "rknn/base/RKNNlib/RK_nn.py", line 220, in rknn.base.RKNNlib.RK_nn.RKnn.load_pytorch_by_onnx_backend
E   File "rknn/base/RKNNlib/onnx_ir/frontend/pytorch_frontend/pytorch_frontend.py", line 242, in rknn.base.RKNNlib.onnx_ir.frontend.pytorch_frontend.pytorch_frontend.torch_frontend.model_export
E   File "rknn/base/RKNNlib/onnx_ir/onnx_optimizer/optimizer.py", line 68, in rknn.base.RKNNlib.onnx_ir.onnx_optimizer.optimizer.optimizer_manager.optimize
E   File "rknn/base/RKNNlib/onnx_ir/onnx_optimizer/passes/froze_const_branch.py", line 30, in rknn.base.RKNNlib.onnx_ir.onnx_optimizer.passes.froze_const_branch.froze_const_branch.runPass
E   File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/smart_graph_engine.py", line 70, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.smart_graph_engine.smart_engine.smart_onnx_scanner
E   File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/smart_node.py", line 48, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.smart_node.smart_node_driver.calc_and_assign_smart_info
E   File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/smart_toolkit.py", line 897, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.smart_toolkit.transpose_shape
E IndexError: list index out of range
Load pytorch model failed!



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表