微调中文PPOCR-v4出错,输入数据维度不匹配 #12810
Replies: 7 comments
-
同一批数据,在v3上调是没问题的,v4上就会出现这样的错误,不知道是什么原因呢?谢谢 |
Beta Was this translation helpful? Give feedback.
-
Please share your yml file and what is the version you are using of PaddleOCR, I am asking about the version of github PaddleOCR you are using? share a more output please |
Beta Was this translation helpful? Give feedback.
-
Global:
使用paddleOCR 2.6.1 |
Beta Was this translation helpful? Give feedback.
-
我参考了这篇回答 #10700进行代码的修改。 |
Beta Was this translation helpful? Give feedback.
-
不调整neck就行了,如果是SVTR还是用的reshape |
Beta Was this translation helpful? Give feedback.
-
你用的config是Teacher-Student蒸餾用的, 會報錯正常 |
Beta Was this translation helpful? Give feedback.
-
请问v4模型微调您跑通了吗?能分指点一下如何操作吗? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
File "/root/miniconda3/lib/python3.8/site-packages/paddle/nn/layer/conv.py", line 712, in forward
out = F.conv._conv_nd(
File "/root/miniconda3/lib/python3.8/site-packages/paddle/nn/functional/conv.py", line 140, in _conv_nd
pre_bias = _C_ops.conv2d(
ValueError: (InvalidArgument) The input of Op(Conv) should be a 4-D or 5-D Tensor. But received: input's dimension is 3, input's shape is [64, 240, 256].
[Hint: Expected in_dims.size() == 4 || in_dims.size() == 5 == true, but received in_dims.size() == 4 || in_dims.size() == 5:0 != true:1.] (at /paddle/paddle/phi/infermeta/binary.cc:470)
Beta Was this translation helpful? Give feedback.
All reactions