-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
rec_svtrnet_ch.yml 配置训练的图片,识别报错 #12646
Labels
bug
Something isn't working
Comments
GreatV
added
bug
Something isn't working
and removed
Code PR is needed
This issue could inspire a code PR
labels
Jun 4, 2024
这可能是一个bug,你愿意尝试修复修复一下吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
背景
经过需求征集#10334 和每周技术研讨会 #10223 讨论,我们确定了XXXX任务。
解决步骤
python tools/infer/predict_rec.py --image_dir="F:/23.png" --rec_algorithm='SVTR' --rec_model_dir=C:\Users\Ni\Desktop\4lansvtr\best_accuracy --rec_image_shape=3,48,320 --rec_char_dict_path=C:\Users\Ni\Desktop\4lan5000fonts\japan_dict.txt --use_gpu=True
InvalidArgumentError: Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [1, 1404, 64] and the shape of Y = [1, 960, 64]. Received [1404] in X is not equal to [960] in Y at i:1.
[Hint: Expected x_dims_array[i] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1 == true, but received x_dims_array[i] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1:0 != true:1.] (at ..\paddle/phi/kernels/funcs/common_shape.h:84)
[operator < elementwise_add > error]
The text was updated successfully, but these errors were encountered: