htshinichi / caffe-onnx

caffe model convert to onnx model
MIT License
175 stars 43 forks source link

IndexError: list index out of range #31

Open Note-Liu opened 2 years ago

Note-Liu commented 2 years ago

the error meaasge: 添加参数conv5_1_W输入信息和tensor数据 conv5_1 节点构建完成 Failed at layer fc7, layer's bottom not detected ... Traceback (most recent call last): File "convert2onnx.py", line 34, in main(args) File "convert2onnx.py", line 27, in main c2o = Caffe2Onnx(graph, params, onnx_name) File "/Documents/caffe-onnx/src/caffe2onnx.py", line 28, in init self.getNodeList(LayerList) File "/Documents/caffe-onnx/src/caffe2onnx.py", line 433, in getNodeList paramdata = op.getReshapeOutShape(Layers[i],reshape_input_shape) File "/Documents/caffe-onnx/src/OPs/Reshape.py", line 13, in getReshapeOutShape for dim in input_shape[0]: IndexError: list index out of range Hou to solve?

sandeepy1 commented 2 years ago

Hello, If you have managed to solve it please tell.