I’m working image classification dataset, and facing the below error. I hope all images have 3 channels (RGB) in my training set. Not sure how to confirm about it. And in case if any grey images included in , how to convert them to 3 channel images, or any other solution to go about it. Please suggest me.
RuntimeError: stack expects each tensor to be equal size, but got [3, 224, 224] at entry 0 and [1, 224, 224] at entry 7