You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
使用如下命令将预训练模型导出后推理出错, 请教下是否还需要其他配置 python main.py -c paddlex/configs/modules/formula_recognition/PP-FormulaNet-L.yaml -o Global.mode=export -o Export.weight_path=/Users/xxx/PP-FormulaNet-L_pretrained.pdparams
其中预训练模型文件为PP-FormulaNet-L.yaml文件中的地址直接下载后的文件
异常信息: ValueError: In user code: InvalidArgumentError: Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [4, 16, 2, 146] and the shape of Y = [4, 1, 2, 2]. Received [146] in X is not equal to [2] in Y at i:3. [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 /Users/paddle/xly/workspace/18120d4d-074c-4f46-9fac-8c77f096760e/Paddle/paddle/phi/kernels/funcs/common_shape.h:84) [operator < pd_op.while > error]
环境
请提供您使用的PaddleX的版本号
3.0rc最新提交
请提供您使用的操作系统信息,如Linux/Windows/MacOS
macos
请问您使用的Python版本是
3.10
The text was updated successfully, but these errors were encountered:
Checklist:
描述问题
使用如下命令将预训练模型导出后推理出错, 请教下是否还需要其他配置
python main.py -c paddlex/configs/modules/formula_recognition/PP-FormulaNet-L.yaml -o Global.mode=export -o Export.weight_path=/Users/xxx/PP-FormulaNet-L_pretrained.pdparams
其中预训练模型文件为
PP-FormulaNet-L.yaml
文件中的地址直接下载后的文件异常信息:
ValueError: In user code: InvalidArgumentError: Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [4, 16, 2, 146] and the shape of Y = [4, 1, 2, 2]. Received [146] in X is not equal to [2] in Y at i:3. [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 /Users/paddle/xly/workspace/18120d4d-074c-4f46-9fac-8c77f096760e/Paddle/paddle/phi/kernels/funcs/common_shape.h:84) [operator < pd_op.while > error]
环境
3.0rc最新提交
macos
3.10
The text was updated successfully, but these errors were encountered: