I have created a numpy array that the shape is as follow:
(98, 15, 64, 64, 3)
I want to change it to
(98, 15, 64, 64, 1)
How can I do that? The last dimension is the image channel such that 3 is the rgb and 1 is the grayscale. I want to represents the color cods as grayscale because the image is just black and white color.