PaddleOCR
PaddleOCR copied to clipboard
rec_svtrnet_ch.yml 配置训练的图片,识别报错
背景
经过需求征集https://github.com/PaddlePaddle/PaddleOCR/issues/10334 和每周技术研讨会 https://github.com/PaddlePaddle/PaddleOCR/issues/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]