*Note that i used input_shape (None, None, 8) because the image i tested has shape (276, 384, 8), but other images of the dataset have different number of channels and dimension, but I didn't see any way of using a dataset with images that have different number of channels.
This return the error in the title, is there a way to correct it?
I'm trying to segment MRI images with the following shape (x_img, y_image, n_slices).
The shape varies from image to image (in number of slices and image size).
I tried to use only 1 image to train just to test if the dimensions are correct, but it returns the following error:
Call arguments received by layer 'model_18' (type Functional): • inputs=tf.Tensor(shape=(1, 384, 8), dtype=float32) • training=True • mask=None
The code used was:
*Note that i used input_shape (None, None, 8) because the image i tested has shape (276, 384, 8), but other images of the dataset have different number of channels and dimension, but I didn't see any way of using a dataset with images that have different number of channels.
This return the error in the title, is there a way to correct it?