-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bug in vgg19 model #90
Comments
Ping! |
@ranjith-jr All onnx models over here have been converted from different frameworks and a lot depends on how these onnx operators have been mapped to the native framework's operator. The above model has been converted from caffe. So, I would look how the above mentioned onnx operator are mapped to Caffe operators. Since onnx doesn't have all the operators as of now, usually converters try to map to the closest operator present and taking a look into converters might help in answering your question. |
@ankkhedia Thanks for the reply. Even though the models are from different framework, is it not the philosophy behind the ONNX to provide a universal exchange format. The model in question is here is not as per the the ONNX standards. Should not this be considered as the bug in the model generation and fixed accordingly? |
@ranjith-jr |
I noticed the same and this IS a bug in the model (and therefore in the converter): It misses a "Flatten" operator between See also onnx/onnx#1101 |
The issue has been fixed and new model uploaded to the model zoo. |
@ankkhedia I'm facing the same error. my model is from mx to onnx. Can you give me some suggestion to fix it? |
Revision : https://s3.amazonaws.com/download.onnx/models/opset_8/vgg19.tar.gz
The model contains following two operators.
%vgg0_pool4_fwd = MaxPoolkernel_shape = [2, 2], pads = [0, 0, 0, 0], strides = [2, 2]
%vgg0_dense0_fwd = Gemm[alpha = 1, beta = 1, transA = 0, transB = 1](%vgg0_pool4_fwd, %vgg0_dense0_weight, %vgg0_dense0_bias)
The Tensor inputs for the Gemm operator has incompatible shapes.
%vgg0_pool4_fwd (Output of maxpool)- shape : [1L, 512L, 7L, 7L]
%vgg0_dense0_weight(Initializer)- shape : [4096L, 25088L]
The above two shapes are not compatible for matrix multiplication.
Note : The shape inference is done using onnx infer_shapes()
The text was updated successfully, but these errors were encountered: