# How can a Keras convolutional network be defined such that it outputs images of the same dimensions as the input?

I wanna train a convolutional neural network to convert an input image to an output image, where the input and output images are of the same dimensions (50 pixels wide, 300 pixels high and greyscale). So, x_test.shape is (11264, 300, 50, 1).

When I try to put together a super-simple model (the actual model is intended to have multiple convolutional layers), I run into problems with dimensions. The model is as follows:

input_shape = (300, 50, 1)
model = Sequential()

Error when checking target: expected conv2d_25 to have shape (300, 50, 300) but got array with shape (300, 50, 1)