PaddlePaddle / PaddleSeg

Easy-to-use image segmentation library with awesome pre-trained model zoo, supporting wide-range of practical tasks in Semantic Segmentation, Interactive Segmentation, Panoptic Segmentation, Image Matting, 3D Segmentation, etc.
https://arxiv.org/abs/2101.06175
Apache License 2.0
8.68k stars 1.68k forks source link

DDRnet在使用ADE20K数据集训练时,报错如下。期待回复,谢谢。 #2127

Closed Murphy-MML closed 2 years ago

Murphy-MML commented 2 years ago

base: '../base/ade20k.yml'

batch_size: 3 iters: 120000

train_dataset: transforms:

model: type: DDRNet_23 enable_auxiliary_loss: False pretrained: Null

optimizer: type: sgd weight_decay: 0.0005

loss: types:

lr_scheduler: type: PolynomialDecay learning_rate: 0.01 end_lr: 0.0 power: 0.9

在训练时没有出现问题,在验证时 ValueError: (InvalidArgument) Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [1, 128, 32, 45] and the shape of Y = [1, 128, 32, 44]. Received [45] in X is not equal to [44] 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 /paddle/paddle/phi/kernels/funcs/common_shape.h:84) [operator < elementwise_add > error]

liukp557 commented 8 months ago

I'm having the same problem.