首页 炼丹房 帖子详情
The input tensor X'size must be equal to the capacity of 'shape'.
收藏
快速回复
炼丹房 问答新手上路 1324 1
The input tensor X'size must be equal to the capacity of 'shape'.
收藏
快速回复
炼丹房 问答新手上路 1324 1

环境paddleseg2.3  paddle2.2.1

使用fcn8s+vgg,已经训练完了,在测试时报错。

ValueError: (InvalidArgument) The 'shape' in ReshapeOp is invalid. The input tensor X'size must be equal to the capacity of 'shape'. But received X's shape = [1, 2, 512, 512], X's size = 524288, 'shape' is [512, 512], the capacity of 'shape' is 262144.
[Hint: Expected capacity == in_size, but received capacity:262144 != in_size:524288.] (at ..\paddle/fluid/operators/reshape_op.cc:224)
[operator < reshape2 > error]

网上搜到的都是tensorflow,并且和我的情况不太像。求教如何改正。

0
收藏
回复
全部评论(1)
时间顺序
FutureSI
#2 回复于2022-03

报错数据形状不对,reshape进行不了

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户