Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Number of values does not match tensor's size. Expected 1, but it is 14112. #37

Open
Sunshine066 opened this issue Oct 16, 2023 · 0 comments

Comments

@Sunshine066
Copy link

1.caffe模型加载完成
添加模型输入信息
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 "/home/yt/software/caffe-onnx-master/src/caffe2onnx.py", line 28, in init
self.__getNodeList(LayerList)
File "/home/yt/software/caffe-onnx-master/src/caffe2onnx.py", line 225, in __getNodeList
conv_pname = self.__addInputsTVIfromParams(Layers[i],op_pname["Conv"],op_ptype["Conv"])
File "/home/yt/software/caffe-onnx-master/src/caffe2onnx.py", line 144, in __addInputsTVIfromParams
p_t = helper.make_tensor(ParamName[i],ParamType[i],ParamShape[i],ParamData[i])
File "/home/yt/.conda/envs/inface/lib/python3.8/site-packages/onnx/helper.py", line 384, in make_tensor
raise ValueError(
ValueError: Number of values does not match tensor's size. Expected 1, but it is 14112.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant