I have a grayscale image input with shape [4, 1, 32, 32]. I want to make the second parameter to 3, which will have three channels and shape becomes [4, 3, 32, 32]. Are there any methods that can achieve this using numpy? Thank you so much for your help in advance.
[4, 1, 32, 32]
[4, 3, 32, 32]
1.4m articles
1.4m replys
5 comments
57.0k users