How can i customize my Convolution Neural Network (CNN) to deal with gray images (2D ultrasound) as the input layer is something like (3, 256, 256) the 3 represents the R, G and B channel in CNN but in my case the number of channels will be only one.
when i run the code i got the error :
ValueError: Cannot feed value of shape (16, 256, 256, 3) for Tensor 'x:0', which has shape '(?, 256, 256, 1)'.
is there any workaround for this without affecting the network performance?