Autoencoders-Variants icon indicating copy to clipboard operation
Autoencoders-Variants copied to clipboard

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

Open ghost opened this issue 5 years ago • 2 comments

Make train any variant.

ghost avatar Jan 18 '21 13:01 ghost

In data_utils.py ~remove/comment~ change the Normalize() lines to:

    transform = transforms.Compose([
        transforms.ToTensor(),
        transforms.Normalize((0.5), (0.5))
    ])

rmsc avatar Mar 26 '21 16:03 rmsc

Turns out you should still normalize the data, just edited my answer above.

rmsc avatar Mar 26 '21 16:03 rmsc