Hello,
I have 10 input color-images ([10, 3, 224, 224]), I want to convert to gray image in PyTorch…
torch.Size([10, 3, 224, 224])   -->   torch.Size([10, 224, 224])

rgb2gray.jpg803×332 84.9 KB

How can I do that, should I chose one channel from RGB or is there any function to convert RGB to GRAY…?