As the error message points suggests, the number of expected input channels in the first convolution doesn’t match the passed input tensor.
While in_channels=1 is set in the first conv layer, you are passing an input tensor with 3 channels.
You could thus either change the in_channels to 3 in the conv layer or use grayscale tensor images, which would use 1 channel.