paddleseg推断过程中出现异常
Created by: HongChen123
Error in DL_InspImpl::ImgSegment_Proc 1.
C++ Call Stacks (More useful to developers):
Windows not support stack backtrace yet.
Python Call Stacks (More useful to users):
File "C:\Users\ga\AppData\Local\Programs\Python\Python35\lib\site-packages\paddle\fluid\framework.py", line 2525, in append_op attrs=kwargs.get("attrs", None)) File "C:\Users\ga\AppData\Local\Programs\Python\Python35\lib\site-packages\paddle\fluid\layers\math_op_patch.py", line 243, in impl attrs={'axis': axis}) File "E:\z-DLFramework\PaddleSeg\pdseg\models\model_builder.py", line 153, in export_preprocess image = (image / 255 - mean) / std File "E:\z-DLFramework\PaddleSeg\pdseg\models\model_builder.py", line 189, in build_model origin_image) File "pdseg/export_model.py", line 88, in export_inference_model infer_prog, startup_prog, phase=ModelPhase.PREDICT) File "pdseg/export_model.py", line 124, in main export_inference_model(args) File "pdseg/export_model.py", line 128, in main()
Error Message Summary:
Error: ShapeError: broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [1, 512, 512, 512] and the shape of Y = [1, 3, 1, 1]. Received [512] in X is not equal to [3] in Y at (D:\Paddle2\paddle/fluid/operators/elementwise/elementwise_op_function.h:145) [operator < elementwise_sub > error]