Open Nullkooland opened 3 years ago
Hello, your model cannot be opened, could you check and re-upload it?
May fixed. Pull code and try again.
The latest version convert tool is able to convert the model, but the feature map shape after convolution is still incorrect as I mentioned before. Seems that the groups attribute is ignored by the Conv node.
Converted tmfile structure:
Model files: (original onnx and converted tmfile) ncc.tar.gz
I guess the issue is with the tengine runtime, not the convert tool or the shape check (I guess you shouldn't have removed the shape check feature as it expose such problems early. Since the converted model is still incorrect and would trigger runtime error later in deployment environment.)
You are right. I just found the weight of this conv, is a variable tensor rather than a constant tensor.
You are right. I just found the weight of this conv, is a variable tensor rather than a constant tensor.
Yes, what this NN do is to compute the normalized cross correlation between two feature maps, so the weights of the Conv is reshaped from an input tensor.
NN structure:
Log from convert_tool:
ONNX file: ncc.onnx.tar.gz
The Conv node is a grouped convolution with
groups == 32
, and the input tensor have 32 channels, so the output feature map's shape should be1 x 32 x 385 x 385
== 4743200 elements. However, it seemed that the output tensor produced by tengine is actually in1 x 1 x 385 x 385
== 148255 elements, so the subsequent Reshape Op failed because of elements number mismatch.