pytorch实现mnist手写数字识别,如果网络是要求输入2通道的,如何把1通道的图片变成2通道的?
收起
transforms.Grayscale(num_output_channels=2)
报告相同问题?