mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

新增数据集中labe图像为灰度图片怎么处理?

Open Leng-bingo opened this issue 1 year ago • 2 comments

如下错误:请问如何处理。label为灰度图像,img为rgb RuntimeError: stack expects each tensor to be equal size, but got [1, 512, 512] at entry 0 and [1, 512, 512, 512] at entry 7

Leng-bingo avatar Apr 05 '23 07:04 Leng-bingo

We recommend using English or English & Chinese for issues so that we could have broader discussion.

mm-assistant[bot] avatar Apr 05 '23 07:04 mm-assistant[bot]

如下错误:请问如何处理。label为灰度图像,img为rgb RuntimeError: stack expects each tensor to be equal size, but got [1, 512, 512] at entry 0 and [1, 512, 512, 512] at entry 7

解决了吗?我和你的错误一模一样

LiangYong1216 avatar Jan 04 '24 02:01 LiangYong1216