mnist-cgan icon indicating copy to clipboard operation
mnist-cgan copied to clipboard

wrong MNIST format

Open 2448845600 opened this issue 5 years ago • 0 comments

error: RuntimeError: output with shape [1, 28, 28] doesn't match the broadcast shape [3, 28, 28]

MNIST has [1, 28, 28] and [3. 28. 28] two format. In this code, change transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)) to transforms.Normalize([0.5], [0.5])

2448845600 avatar Jul 16 '19 01:07 2448845600